From ae0a09f1752307e621add580f73b5a45a2dda389 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 17 Jun 2022 17:48:15 +0000 Subject: [PATCH 1/7] feat!: add support for new API methods BREAKING_CHANGE: the removed Snapshots methods were never officially released PiperOrigin-RevId: 455640857 Source-Link: https://github.com/googleapis/googleapis/commit/7b1657f015de5214f3aa235168eafd5534f10551 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b8765c5896185dbbd786d828c24415a699204a7c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjg3NjVjNTg5NjE4NWRiYmQ3ODZkODI4YzI0NDE1YTY5OTIwNGE3YyJ9 --- .../v2/BareMetalSolutionGrpc.java | 2714 ----------- .../v2/BareMetalSolutionClient.java | 2093 ++++---- .../v2/BareMetalSolutionSettings.java | 326 +- .../baremetalsolution/v2/gapic_metadata.json | 50 +- .../baremetalsolution/v2/package-info.java | 0 .../v2/stub/BareMetalSolutionStub.java | 166 +- .../stub/BareMetalSolutionStubSettings.java | 980 ++-- .../GrpcBareMetalSolutionCallableFactory.java | 0 .../v2/stub/GrpcBareMetalSolutionStub.java | 759 +-- .../v2/BareMetalSolutionClientTest.java | 1376 +++--- .../v2/MockBareMetalSolution.java | 0 .../v2/MockBareMetalSolutionImpl.java | 194 +- .../v2/BareMetalSolutionGrpc.java | 1975 ++++++++ .../v2/BareMetalSolutionProto.java | 218 + .../v2/DetachLunRequest.java | 761 +++ .../v2/DetachLunRequestOrBuilder.java | 49 + .../v2/GetInstanceRequest.java | 344 +- .../v2/GetInstanceRequestOrBuilder.java | 29 + .../baremetalsolution/v2/GetLunRequest.java | 341 +- .../v2/GetLunRequestOrBuilder.java | 29 + .../v2/GetNetworkRequest.java | 344 +- .../v2/GetNetworkRequestOrBuilder.java | 29 + .../v2/GetNfsShareRequest.java | 595 +++ .../v2/GetNfsShareRequestOrBuilder.java | 29 + .../v2/GetVolumeRequest.java | 344 +- .../v2/GetVolumeRequestOrBuilder.java | 29 + .../cloud/baremetalsolution/v2/Instance.java | 4225 +++++++++++++++++ .../baremetalsolution/v2/InstanceName.java | 0 .../v2/InstanceOrBuilder.java | 311 +- .../baremetalsolution/v2/InstanceProto.java | 283 ++ .../v2/ListInstancesRequest.java | 621 +-- .../v2/ListInstancesRequestOrBuilder.java | 69 +- .../v2/ListInstancesResponse.java | 573 +-- .../v2/ListInstancesResponseOrBuilder.java | 65 +- .../baremetalsolution/v2/ListLunsRequest.java | 457 +- .../v2/ListLunsRequestOrBuilder.java | 49 +- .../v2/ListLunsResponse.java | 574 +-- .../v2/ListLunsResponseOrBuilder.java | 65 +- .../v2/ListNetworkUsageRequest.java | 595 +++ .../v2/ListNetworkUsageRequestOrBuilder.java | 29 + .../v2/ListNetworkUsageResponse.java | 872 ++++ .../v2/ListNetworkUsageResponseOrBuilder.java | 53 + .../v2/ListNetworksRequest.java | 621 +-- .../v2/ListNetworksRequestOrBuilder.java | 69 +- .../v2/ListNetworksResponse.java | 576 +-- .../v2/ListNetworksResponseOrBuilder.java | 65 +- .../v2/ListNfsSharesRequest.java | 1011 ++++ .../v2/ListNfsSharesRequestOrBuilder.java | 80 + .../v2/ListNfsSharesResponse.java | 1282 +++++ .../v2/ListNfsSharesResponseOrBuilder.java | 114 + .../v2/ListVolumesRequest.java | 621 +-- .../v2/ListVolumesRequestOrBuilder.java | 69 +- .../v2/ListVolumesResponse.java | 572 +-- .../v2/ListVolumesResponseOrBuilder.java | 65 +- .../baremetalsolution/v2/LocationName.java | 0 .../v2/LogicalInterface.java | 2360 +++++++++ .../v2/LogicalInterfaceOrBuilder.java | 86 + .../cloud/baremetalsolution/v2/Lun.java | 1135 +++-- .../cloud/baremetalsolution/v2/LunName.java | 0 .../baremetalsolution/v2/LunOrBuilder.java | 90 +- .../cloud/baremetalsolution/v2/LunProto.java | 126 + .../baremetalsolution/v2/NFSShareName.java | 101 +- .../cloud/baremetalsolution/v2/Network.java | 3290 +++++++++++++ .../v2/NetworkAddressReservation.java | 955 ++++ .../NetworkAddressReservationOrBuilder.java | 77 + .../baremetalsolution/v2/NetworkName.java | 0 .../v2/NetworkOrBuilder.java | 253 +- .../baremetalsolution/v2/NetworkProto.java | 283 ++ .../baremetalsolution/v2/NetworkUsage.java | 912 ++++ .../v2/NetworkUsageOrBuilder.java | 77 + .../cloud/baremetalsolution/v2/NfsShare.java | 3509 ++++++++++++++ .../v2/NfsShareOrBuilder.java | 188 + .../baremetalsolution/v2/NfsShareProto.java | 171 + .../v2/OperationMetadata.java | 855 ++-- .../v2/OperationMetadataOrBuilder.java | 91 +- .../v2/ResetInstanceRequest.java | 344 +- .../v2/ResetInstanceRequestOrBuilder.java | 29 + .../v2/ResetInstanceResponse.java | 238 +- .../v2/ResetInstanceResponseOrBuilder.java | 9 + .../v2/ResizeVolumeRequest.java | 676 +++ .../v2/ResizeVolumeRequestOrBuilder.java | 39 + .../v2/ServerNetworkTemplate.java | 2332 +++++++++ .../v2/ServerNetworkTemplateOrBuilder.java | 120 + .../v2/StartInstanceRequest.java | 595 +++ .../v2/StartInstanceRequestOrBuilder.java | 29 + .../v2/StartInstanceResponse.java | 429 ++ .../v2/StartInstanceResponseOrBuilder.java | 9 + .../v2/StopInstanceRequest.java | 595 +++ .../v2/StopInstanceRequestOrBuilder.java | 29 + .../v2/StopInstanceResponse.java | 429 ++ .../v2/StopInstanceResponseOrBuilder.java | 9 + .../v2/UpdateInstanceRequest.java | 973 ++++ .../v2/UpdateInstanceRequestOrBuilder.java | 81 + .../v2/UpdateNetworkRequest.java | 949 ++++ .../v2/UpdateNetworkRequestOrBuilder.java | 75 + .../v2/UpdateNfsShareRequest.java | 949 ++++ .../v2/UpdateNfsShareRequestOrBuilder.java | 75 + .../v2/UpdateVolumeRequest.java | 521 +- .../v2/UpdateVolumeRequestOrBuilder.java | 57 +- .../cloud/baremetalsolution/v2/VRF.java | 1459 +++--- .../baremetalsolution/v2/VRFOrBuilder.java | 73 +- .../cloud/baremetalsolution/v2/Volume.java | 2404 ++++++---- .../baremetalsolution/v2/VolumeName.java | 0 .../baremetalsolution/v2/VolumeOrBuilder.java | 198 +- .../baremetalsolution/v2/VolumeProto.java | 192 + .../v2/baremetalsolution.proto | 290 ++ .../cloud/baremetalsolution/v2/instance.proto | 288 ++ .../cloud/baremetalsolution/v2/lun.proto | 149 + .../cloud/baremetalsolution/v2/network.proto | 284 ++ .../baremetalsolution/v2/nfs_share.proto | 164 + .../cloud/baremetalsolution/v2/volume.proto | 231 + .../SyncCreateSetCredentialsProvider.java | 42 + .../create/SyncCreateSetEndpoint.java | 39 + .../detachlun/AsyncDetachLun.java | 48 + .../detachlun/AsyncDetachLunLRO.java | 50 + .../detachlun/SyncDetachLun.java | 45 + .../SyncDetachLunInstancenameLunname.java | 41 + .../SyncDetachLunInstancenameString.java | 41 + .../detachlun/SyncDetachLunStringLunname.java | 41 + .../detachlun/SyncDetachLunStringString.java | 41 + .../getinstance/AsyncGetInstance.java | 47 + .../getinstance/SyncGetInstance.java | 43 + .../SyncGetInstanceInstancename.java | 39 + .../getinstance/SyncGetInstanceString.java | 39 + .../getlun/AsyncGetLun.java | 46 + .../getlun/SyncGetLun.java | 43 + .../getlun/SyncGetLunLunname.java | 39 + .../getlun/SyncGetLunString.java | 39 + .../getnetwork/AsyncGetNetwork.java | 46 + .../getnetwork/SyncGetNetwork.java | 43 + .../getnetwork/SyncGetNetworkNetworkname.java | 39 + .../getnetwork/SyncGetNetworkString.java | 39 + .../getnfsshare/AsyncGetNfsShare.java | 47 + .../getnfsshare/SyncGetNfsShare.java | 43 + .../SyncGetNfsShareNfssharename.java | 39 + .../getnfsshare/SyncGetNfsShareString.java | 39 + .../getvolume/AsyncGetVolume.java | 46 + .../getvolume/SyncGetVolume.java | 43 + .../getvolume/SyncGetVolumeString.java | 39 + .../getvolume/SyncGetVolumeVolumename.java | 39 + .../listinstances/AsyncListInstances.java | 52 + .../AsyncListInstancesPaged.java | 60 + .../listinstances/SyncListInstances.java | 48 + .../SyncListInstancesLocationname.java | 41 + .../SyncListInstancesString.java | 41 + .../listluns/AsyncListLuns.java | 50 + .../listluns/AsyncListLunsPaged.java | 58 + .../listluns/SyncListLuns.java | 47 + .../listluns/SyncListLunsString.java | 41 + .../listluns/SyncListLunsVolumename.java | 41 + .../listnetworks/AsyncListNetworks.java | 52 + .../listnetworks/AsyncListNetworksPaged.java | 60 + .../listnetworks/SyncListNetworks.java | 48 + .../SyncListNetworksLocationname.java | 41 + .../listnetworks/SyncListNetworksString.java | 41 + .../AsyncListNetworkUsage.java | 47 + .../SyncListNetworkUsage.java | 43 + .../SyncListNetworkUsageLocationname.java | 39 + .../SyncListNetworkUsageString.java | 39 + .../listnfsshares/AsyncListNfsShares.java | 52 + .../AsyncListNfsSharesPaged.java | 60 + .../listnfsshares/SyncListNfsShares.java | 48 + .../SyncListNfsSharesLocationname.java | 41 + .../SyncListNfsSharesString.java | 41 + .../listvolumes/AsyncListVolumes.java | 52 + .../listvolumes/AsyncListVolumesPaged.java | 59 + .../listvolumes/SyncListVolumes.java | 48 + .../SyncListVolumesLocationname.java | 41 + .../listvolumes/SyncListVolumesString.java | 41 + .../resetinstance/AsyncResetInstance.java | 47 + .../resetinstance/AsyncResetInstanceLRO.java | 48 + .../resetinstance/SyncResetInstance.java | 43 + .../SyncResetInstanceInstancename.java | 39 + .../SyncResetInstanceString.java | 39 + .../resizevolume/AsyncResizeVolume.java | 48 + .../resizevolume/AsyncResizeVolumeLRO.java | 49 + .../resizevolume/SyncResizeVolume.java | 44 + .../SyncResizeVolumeStringLong.java | 40 + .../SyncResizeVolumeVolumenameLong.java | 40 + .../startinstance/AsyncStartInstance.java | 47 + .../startinstance/AsyncStartInstanceLRO.java | 48 + .../startinstance/SyncStartInstance.java | 43 + .../SyncStartInstanceInstancename.java | 39 + .../SyncStartInstanceString.java | 39 + .../stopinstance/AsyncStopInstance.java | 47 + .../stopinstance/AsyncStopInstanceLRO.java | 48 + .../stopinstance/SyncStopInstance.java | 43 + .../SyncStopInstanceInstancename.java | 39 + .../stopinstance/SyncStopInstanceString.java | 39 + .../updateinstance/AsyncUpdateInstance.java | 49 + .../AsyncUpdateInstanceLRO.java | 49 + .../updateinstance/SyncUpdateInstance.java | 44 + .../SyncUpdateInstanceInstanceFieldmask.java | 40 + .../updatenetwork/AsyncUpdateNetwork.java | 49 + .../updatenetwork/AsyncUpdateNetworkLRO.java | 49 + .../updatenetwork/SyncUpdateNetwork.java | 44 + .../SyncUpdateNetworkNetworkFieldmask.java | 40 + .../updatenfsshare/AsyncUpdateNfsShare.java | 49 + .../AsyncUpdateNfsShareLRO.java | 49 + .../updatenfsshare/SyncUpdateNfsShare.java | 44 + .../SyncUpdateNfsShareNfsshareFieldmask.java | 40 + .../updatevolume/AsyncUpdateVolume.java | 49 + .../updatevolume/AsyncUpdateVolumeLRO.java | 49 + .../updatevolume/SyncUpdateVolume.java | 44 + .../SyncUpdateVolumeVolumeFieldmask.java | 40 + .../getinstance/SyncGetInstance.java | 46 + .../getinstance/SyncGetInstance.java | 47 + .../v2/BaremetalsolutionProto.java | 921 ---- .../CreateSnapshotSchedulePolicyRequest.java | 1171 ----- ...napshotSchedulePolicyRequestOrBuilder.java | 121 - .../v2/CreateVolumeSnapshotRequest.java | 967 ---- .../CreateVolumeSnapshotRequestOrBuilder.java | 95 - .../DeleteSnapshotSchedulePolicyRequest.java | 674 --- ...napshotSchedulePolicyRequestOrBuilder.java | 54 - .../v2/DeleteVolumeSnapshotRequest.java | 662 --- .../DeleteVolumeSnapshotRequestOrBuilder.java | 54 - .../v2/GetInstanceRequestOrBuilder.java | 54 - .../v2/GetLunRequestOrBuilder.java | 54 - .../v2/GetNetworkRequestOrBuilder.java | 54 - .../v2/GetSnapshotSchedulePolicyRequest.java | 666 --- ...napshotSchedulePolicyRequestOrBuilder.java | 54 - .../v2/GetVolumeRequestOrBuilder.java | 54 - .../v2/GetVolumeSnapshotRequest.java | 659 --- .../v2/GetVolumeSnapshotRequestOrBuilder.java | 54 - .../cloud/baremetalsolution/v2/Instance.java | 3277 ------------- .../ListSnapshotSchedulePoliciesRequest.java | 943 ---- ...pshotSchedulePoliciesRequestOrBuilder.java | 92 - .../ListSnapshotSchedulePoliciesResponse.java | 1245 ----- ...shotSchedulePoliciesResponseOrBuilder.java | 117 - .../v2/ListVolumeSnapshotsRequest.java | 933 ---- .../ListVolumeSnapshotsRequestOrBuilder.java | 93 - .../v2/ListVolumeSnapshotsResponse.java | 1434 ------ .../ListVolumeSnapshotsResponseOrBuilder.java | 154 - .../cloud/baremetalsolution/v2/Network.java | 2581 ---------- .../v2/ResetInstanceRequestOrBuilder.java | 54 - .../v2/ResetInstanceResponseOrBuilder.java | 24 - .../v2/RestoreVolumeSnapshotRequest.java | 664 --- ...RestoreVolumeSnapshotRequestOrBuilder.java | 54 - .../v2/SnapshotSchedulePolicy.java | 2404 ---------- .../v2/SnapshotSchedulePolicyOrBuilder.java | 145 - .../UpdateSnapshotSchedulePolicyRequest.java | 1112 ----- ...napshotSchedulePolicyRequestOrBuilder.java | 114 - .../baremetalsolution/v2/VolumeSnapshot.java | 1370 ------ .../v2/VolumeSnapshotName.java | 258 - .../v2/VolumeSnapshotOrBuilder.java | 151 - .../v2/baremetalsolution.proto | 1020 ---- 246 files changed, 48410 insertions(+), 38126 deletions(-) delete mode 100644 grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java (70%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java (63%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json (52%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java (60%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java (60%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java (59%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java (65%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java (79%) create mode 100644 owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java (50%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java (60%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java (50%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java (67%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java (50%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java (68%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java (60%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java (50%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java (70%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java (60%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java (50%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java (69%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java (100%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java (77%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java rename proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicyName.java => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java (56%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java (50%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java (74%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java (67%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java (64%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java (58%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java (58%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BaremetalsolutionProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateSnapshotSchedulePolicyRequest.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateSnapshotSchedulePolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateVolumeSnapshotRequest.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateVolumeSnapshotRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteSnapshotSchedulePolicyRequest.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteSnapshotSchedulePolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteVolumeSnapshotRequest.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteVolumeSnapshotRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetSnapshotSchedulePolicyRequest.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetSnapshotSchedulePolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeSnapshotRequest.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeSnapshotRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesRequest.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesResponse.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesResponseOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsRequest.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsResponse.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsResponseOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/RestoreVolumeSnapshotRequest.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/RestoreVolumeSnapshotRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicy.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicyOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateSnapshotSchedulePolicyRequest.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateSnapshotSchedulePolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshot.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotName.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto diff --git a/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java deleted file mode 100644 index 5873ee5..0000000 --- a/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java +++ /dev/null @@ -1,2714 +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.baremetalsolution.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Performs management operations on Bare Metal Solution servers.
- * The `baremetalsolution.googleapis.com` service provides management
- * capabilities for Bare Metal Solution servers. To access the API methods, you
- * must assign Bare Metal Solution IAM roles containing the desired permissions
- * to your staff in your Google Cloud project. You must also enable the Bare
- * Metal Solution API. Once enabled, the methods act
- * upon specific servers in your Bare Metal Solution environment.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BareMetalSolutionGrpc { - - private BareMetalSolutionGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - getListInstancesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - getListInstancesMethod; - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - BareMetalSolutionGrpc.getListInstancesMethod = - getListInstancesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance> - getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance> - getGetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance> - getGetInstanceMethod; - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - BareMetalSolutionGrpc.getGetInstanceMethod = - getGetInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation> - getResetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetInstance", - requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation> - getResetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation> - getResetInstanceMethod; - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - BareMetalSolutionGrpc.getResetInstanceMethod = - getResetInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) - .build(); - } - } - } - return getResetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - getListVolumesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumes", - requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - getListVolumesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - getListVolumesMethod; - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - BareMetalSolutionGrpc.getListVolumesMethod = - getListVolumesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) - .build(); - } - } - } - return getListVolumesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume> - getGetVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolume", - requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Volume.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume> - getGetVolumeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume> - getGetVolumeMethod; - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - BareMetalSolutionGrpc.getGetVolumeMethod = - getGetVolumeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) - .build(); - } - } - } - return getGetVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation> - getUpdateVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", - requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation> - getUpdateVolumeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation> - getUpdateVolumeMethod; - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - BareMetalSolutionGrpc.getUpdateVolumeMethod = - getUpdateVolumeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) - .build(); - } - } - } - return getUpdateVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - getListNetworksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworks", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - getListNetworksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - getListNetworksMethod; - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - BareMetalSolutionGrpc.getListNetworksMethod = - getListNetworksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) - .build(); - } - } - } - return getListNetworksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network> - getGetNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNetwork", - requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Network.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network> - getGetNetworkMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network> - getGetNetworkMethod; - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - BareMetalSolutionGrpc.getGetNetworkMethod = - getGetNetworkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) - .build(); - } - } - } - return getGetNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest, - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse> - getListSnapshotSchedulePoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSnapshotSchedulePolicies", - requestType = com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest.class, - responseType = - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest, - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse> - getListSnapshotSchedulePoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest, - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse> - getListSnapshotSchedulePoliciesMethod; - if ((getListSnapshotSchedulePoliciesMethod = - BareMetalSolutionGrpc.getListSnapshotSchedulePoliciesMethod) - == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListSnapshotSchedulePoliciesMethod = - BareMetalSolutionGrpc.getListSnapshotSchedulePoliciesMethod) - == null) { - BareMetalSolutionGrpc.getListSnapshotSchedulePoliciesMethod = - getListSnapshotSchedulePoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListSnapshotSchedulePolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2 - .ListSnapshotSchedulePoliciesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2 - .ListSnapshotSchedulePoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier( - "ListSnapshotSchedulePolicies")) - .build(); - } - } - } - return getListSnapshotSchedulePoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - getGetSnapshotSchedulePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSnapshotSchedulePolicy", - requestType = com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - getGetSnapshotSchedulePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - getGetSnapshotSchedulePolicyMethod; - if ((getGetSnapshotSchedulePolicyMethod = - BareMetalSolutionGrpc.getGetSnapshotSchedulePolicyMethod) - == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetSnapshotSchedulePolicyMethod = - BareMetalSolutionGrpc.getGetSnapshotSchedulePolicyMethod) - == null) { - BareMetalSolutionGrpc.getGetSnapshotSchedulePolicyMethod = - getGetSnapshotSchedulePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetSnapshotSchedulePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier( - "GetSnapshotSchedulePolicy")) - .build(); - } - } - } - return getGetSnapshotSchedulePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - getCreateSnapshotSchedulePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSnapshotSchedulePolicy", - requestType = com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - getCreateSnapshotSchedulePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - getCreateSnapshotSchedulePolicyMethod; - if ((getCreateSnapshotSchedulePolicyMethod = - BareMetalSolutionGrpc.getCreateSnapshotSchedulePolicyMethod) - == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getCreateSnapshotSchedulePolicyMethod = - BareMetalSolutionGrpc.getCreateSnapshotSchedulePolicyMethod) - == null) { - BareMetalSolutionGrpc.getCreateSnapshotSchedulePolicyMethod = - getCreateSnapshotSchedulePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateSnapshotSchedulePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2 - .CreateSnapshotSchedulePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier( - "CreateSnapshotSchedulePolicy")) - .build(); - } - } - } - return getCreateSnapshotSchedulePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - getUpdateSnapshotSchedulePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSnapshotSchedulePolicy", - requestType = com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - getUpdateSnapshotSchedulePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - getUpdateSnapshotSchedulePolicyMethod; - if ((getUpdateSnapshotSchedulePolicyMethod = - BareMetalSolutionGrpc.getUpdateSnapshotSchedulePolicyMethod) - == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateSnapshotSchedulePolicyMethod = - BareMetalSolutionGrpc.getUpdateSnapshotSchedulePolicyMethod) - == null) { - BareMetalSolutionGrpc.getUpdateSnapshotSchedulePolicyMethod = - getUpdateSnapshotSchedulePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateSnapshotSchedulePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2 - .UpdateSnapshotSchedulePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier( - "UpdateSnapshotSchedulePolicy")) - .build(); - } - } - } - return getUpdateSnapshotSchedulePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest, - com.google.protobuf.Empty> - getDeleteSnapshotSchedulePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSnapshotSchedulePolicy", - requestType = com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest, - com.google.protobuf.Empty> - getDeleteSnapshotSchedulePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest, - com.google.protobuf.Empty> - getDeleteSnapshotSchedulePolicyMethod; - if ((getDeleteSnapshotSchedulePolicyMethod = - BareMetalSolutionGrpc.getDeleteSnapshotSchedulePolicyMethod) - == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getDeleteSnapshotSchedulePolicyMethod = - BareMetalSolutionGrpc.getDeleteSnapshotSchedulePolicyMethod) - == null) { - BareMetalSolutionGrpc.getDeleteSnapshotSchedulePolicyMethod = - getDeleteSnapshotSchedulePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteSnapshotSchedulePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2 - .DeleteSnapshotSchedulePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier( - "DeleteSnapshotSchedulePolicy")) - .build(); - } - } - } - return getDeleteSnapshotSchedulePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot> - getCreateVolumeSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateVolumeSnapshot", - requestType = com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.VolumeSnapshot.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot> - getCreateVolumeSnapshotMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot> - getCreateVolumeSnapshotMethod; - if ((getCreateVolumeSnapshotMethod = BareMetalSolutionGrpc.getCreateVolumeSnapshotMethod) - == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getCreateVolumeSnapshotMethod = BareMetalSolutionGrpc.getCreateVolumeSnapshotMethod) - == null) { - BareMetalSolutionGrpc.getCreateVolumeSnapshotMethod = - getCreateVolumeSnapshotMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateVolumeSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.VolumeSnapshot - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("CreateVolumeSnapshot")) - .build(); - } - } - } - return getCreateVolumeSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest, - com.google.longrunning.Operation> - getRestoreVolumeSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestoreVolumeSnapshot", - requestType = com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest, - com.google.longrunning.Operation> - getRestoreVolumeSnapshotMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest, - com.google.longrunning.Operation> - getRestoreVolumeSnapshotMethod; - if ((getRestoreVolumeSnapshotMethod = BareMetalSolutionGrpc.getRestoreVolumeSnapshotMethod) - == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getRestoreVolumeSnapshotMethod = BareMetalSolutionGrpc.getRestoreVolumeSnapshotMethod) - == null) { - BareMetalSolutionGrpc.getRestoreVolumeSnapshotMethod = - getRestoreVolumeSnapshotMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RestoreVolumeSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("RestoreVolumeSnapshot")) - .build(); - } - } - } - return getRestoreVolumeSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest, - com.google.protobuf.Empty> - getDeleteVolumeSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteVolumeSnapshot", - requestType = com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest, - com.google.protobuf.Empty> - getDeleteVolumeSnapshotMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest, - com.google.protobuf.Empty> - getDeleteVolumeSnapshotMethod; - if ((getDeleteVolumeSnapshotMethod = BareMetalSolutionGrpc.getDeleteVolumeSnapshotMethod) - == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getDeleteVolumeSnapshotMethod = BareMetalSolutionGrpc.getDeleteVolumeSnapshotMethod) - == null) { - BareMetalSolutionGrpc.getDeleteVolumeSnapshotMethod = - getDeleteVolumeSnapshotMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteVolumeSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("DeleteVolumeSnapshot")) - .build(); - } - } - } - return getDeleteVolumeSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot> - getGetVolumeSnapshotMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolumeSnapshot", - requestType = com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.VolumeSnapshot.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot> - getGetVolumeSnapshotMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot> - getGetVolumeSnapshotMethod; - if ((getGetVolumeSnapshotMethod = BareMetalSolutionGrpc.getGetVolumeSnapshotMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetVolumeSnapshotMethod = BareMetalSolutionGrpc.getGetVolumeSnapshotMethod) - == null) { - BareMetalSolutionGrpc.getGetVolumeSnapshotMethod = - getGetVolumeSnapshotMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolumeSnapshot")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.VolumeSnapshot - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetVolumeSnapshot")) - .build(); - } - } - } - return getGetVolumeSnapshotMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest, - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse> - getListVolumeSnapshotsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumeSnapshots", - requestType = com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest, - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse> - getListVolumeSnapshotsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest, - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse> - getListVolumeSnapshotsMethod; - if ((getListVolumeSnapshotsMethod = BareMetalSolutionGrpc.getListVolumeSnapshotsMethod) - == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListVolumeSnapshotsMethod = BareMetalSolutionGrpc.getListVolumeSnapshotsMethod) - == null) { - BareMetalSolutionGrpc.getListVolumeSnapshotsMethod = - getListVolumeSnapshotsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListVolumeSnapshots")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListVolumeSnapshots")) - .build(); - } - } - } - return getListVolumeSnapshotsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun> - getGetLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLun", - requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Lun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun> - getGetLunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun> - getGetLunMethod; - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - BareMetalSolutionGrpc.getGetLunMethod = - getGetLunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetLunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) - .build(); - } - } - } - return getGetLunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - getListLunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLuns", - requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - getListLunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - getListLunsMethod; - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - BareMetalSolutionGrpc.getListLunsMethod = - getListLunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) - .build(); - } - } - } - return getListLunsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - }; - return BareMetalSolutionStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BareMetalSolutionBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - }; - return BareMetalSolutionBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BareMetalSolutionFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - }; - return BareMetalSolutionFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public abstract static class BareMetalSolutionImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResetInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListVolumesMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateVolumeMethod(), responseObserver); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNetworksMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); - } - - /** - * - * - *
-     * List snapshot schedule policies in a given project and location.
-     * 
- */ - public void listSnapshotSchedulePolicies( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSnapshotSchedulePoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single snapshot schedule policy.
-     * 
- */ - public void getSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSnapshotSchedulePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a snapshot schedule policy in the specified project.
-     * 
- */ - public void createSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSnapshotSchedulePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a snapshot schedule policy in the specified project.
-     * 
- */ - public void updateSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSnapshotSchedulePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a named snapshot schedule policy.
-     * 
- */ - public void deleteSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSnapshotSchedulePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a storage volume snapshot in a containing volume.
-     * 
- */ - public void createVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateVolumeSnapshotMethod(), responseObserver); - } - - /** - * - * - *
-     * Restore a storage volume snapshot to its containing volume.
-     * 
- */ - public void restoreVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreVolumeSnapshotMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a storage volume snapshot for a given volume.
-     * 
- */ - public void deleteVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteVolumeSnapshotMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage volume snapshot.
-     * 
- */ - public void getVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetVolumeSnapshotMethod(), responseObserver); - } - - /** - * - * - *
-     * List storage volume snapshots for given storage volume.
-     * 
- */ - public void listVolumeSnapshots( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListVolumeSnapshotsMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance>(this, METHODID_GET_INSTANCE))) - .addMethod( - getResetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_RESET_INSTANCE))) - .addMethod( - getListVolumesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( - this, METHODID_LIST_VOLUMES))) - .addMethod( - getGetVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume>(this, METHODID_GET_VOLUME))) - .addMethod( - getUpdateVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_VOLUME))) - .addMethod( - getListNetworksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( - this, METHODID_LIST_NETWORKS))) - .addMethod( - getGetNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network>(this, METHODID_GET_NETWORK))) - .addMethod( - getListSnapshotSchedulePoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest, - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse>( - this, METHODID_LIST_SNAPSHOT_SCHEDULE_POLICIES))) - .addMethod( - getGetSnapshotSchedulePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy>( - this, METHODID_GET_SNAPSHOT_SCHEDULE_POLICY))) - .addMethod( - getCreateSnapshotSchedulePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy>( - this, METHODID_CREATE_SNAPSHOT_SCHEDULE_POLICY))) - .addMethod( - getUpdateSnapshotSchedulePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy>( - this, METHODID_UPDATE_SNAPSHOT_SCHEDULE_POLICY))) - .addMethod( - getDeleteSnapshotSchedulePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SNAPSHOT_SCHEDULE_POLICY))) - .addMethod( - getCreateVolumeSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot>( - this, METHODID_CREATE_VOLUME_SNAPSHOT))) - .addMethod( - getRestoreVolumeSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest, - com.google.longrunning.Operation>(this, METHODID_RESTORE_VOLUME_SNAPSHOT))) - .addMethod( - getDeleteVolumeSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_VOLUME_SNAPSHOT))) - .addMethod( - getGetVolumeSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot>( - this, METHODID_GET_VOLUME_SNAPSHOT))) - .addMethod( - getListVolumeSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest, - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse>( - this, METHODID_LIST_VOLUME_SNAPSHOTS))) - .addMethod( - getGetLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun>(this, METHODID_GET_LUN))) - .addMethod( - getListLunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse>( - this, METHODID_LIST_LUNS))) - .build(); - } - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionStub - extends io.grpc.stub.AbstractAsyncStub { - private BareMetalSolutionStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List snapshot schedule policies in a given project and location.
-     * 
- */ - public void listSnapshotSchedulePolicies( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSnapshotSchedulePoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single snapshot schedule policy.
-     * 
- */ - public void getSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSnapshotSchedulePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a snapshot schedule policy in the specified project.
-     * 
- */ - public void createSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSnapshotSchedulePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a snapshot schedule policy in the specified project.
-     * 
- */ - public void updateSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSnapshotSchedulePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete a named snapshot schedule policy.
-     * 
- */ - public void deleteSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSnapshotSchedulePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a storage volume snapshot in a containing volume.
-     * 
- */ - public void createVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateVolumeSnapshotMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Restore a storage volume snapshot to its containing volume.
-     * 
- */ - public void restoreVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreVolumeSnapshotMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a storage volume snapshot for a given volume.
-     * 
- */ - public void deleteVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteVolumeSnapshotMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage volume snapshot.
-     * 
- */ - public void getVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeSnapshotMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List storage volume snapshots for given storage volume.
-     * 
- */ - public void listVolumeSnapshots( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumeSnapshotsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BareMetalSolutionBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Instance getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.longrunning.Operation resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Volume getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.longrunning.Operation updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Network getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNetworkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List snapshot schedule policies in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - listSnapshotSchedulePolicies( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSnapshotSchedulePoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single snapshot schedule policy.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy getSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSnapshotSchedulePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a snapshot schedule policy in the specified project.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy - createSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSnapshotSchedulePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a snapshot schedule policy in the specified project.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy - updateSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSnapshotSchedulePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a named snapshot schedule policy.
-     * 
- */ - public com.google.protobuf.Empty deleteSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSnapshotSchedulePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a storage volume snapshot in a containing volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot createVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateVolumeSnapshotMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Restore a storage volume snapshot to its containing volume.
-     * 
- */ - public com.google.longrunning.Operation restoreVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreVolumeSnapshotMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a storage volume snapshot for a given volume.
-     * 
- */ - public com.google.protobuf.Empty deleteVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteVolumeSnapshotMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single storage volume snapshot.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot getVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeSnapshotMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List storage volume snapshots for given storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse listVolumeSnapshots( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumeSnapshotsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Lun getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLunsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BareMetalSolutionFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Instance> - getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Volume> - getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Network> - getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List snapshot schedule policies in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse> - listSnapshotSchedulePolicies( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSnapshotSchedulePoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single snapshot schedule policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - getSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSnapshotSchedulePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Create a snapshot schedule policy in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - createSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSnapshotSchedulePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a snapshot schedule policy in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy> - updateSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSnapshotSchedulePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a named snapshot schedule policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSnapshotSchedulePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Create a storage volume snapshot in a containing volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.VolumeSnapshot> - createVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateVolumeSnapshotMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Restore a storage volume snapshot to its containing volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - restoreVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestoreVolumeSnapshotMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a storage volume snapshot for a given volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteVolumeSnapshotMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single storage volume snapshot.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.VolumeSnapshot> - getVolumeSnapshot(com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeSnapshotMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List storage volume snapshots for given storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse> - listVolumeSnapshots( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumeSnapshotsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Lun> - getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_RESET_INSTANCE = 2; - private static final int METHODID_LIST_VOLUMES = 3; - private static final int METHODID_GET_VOLUME = 4; - private static final int METHODID_UPDATE_VOLUME = 5; - private static final int METHODID_LIST_NETWORKS = 6; - private static final int METHODID_GET_NETWORK = 7; - private static final int METHODID_LIST_SNAPSHOT_SCHEDULE_POLICIES = 8; - private static final int METHODID_GET_SNAPSHOT_SCHEDULE_POLICY = 9; - private static final int METHODID_CREATE_SNAPSHOT_SCHEDULE_POLICY = 10; - private static final int METHODID_UPDATE_SNAPSHOT_SCHEDULE_POLICY = 11; - private static final int METHODID_DELETE_SNAPSHOT_SCHEDULE_POLICY = 12; - private static final int METHODID_CREATE_VOLUME_SNAPSHOT = 13; - private static final int METHODID_RESTORE_VOLUME_SNAPSHOT = 14; - private static final int METHODID_DELETE_VOLUME_SNAPSHOT = 15; - private static final int METHODID_GET_VOLUME_SNAPSHOT = 16; - private static final int METHODID_LIST_VOLUME_SNAPSHOTS = 17; - private static final int METHODID_GET_LUN = 18; - private static final int METHODID_LIST_LUNS = 19; - - 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 BareMetalSolutionImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances( - (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListInstancesResponse>) - responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RESET_INSTANCE: - serviceImpl.resetInstance( - (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VOLUMES: - serviceImpl.listVolumes( - (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListVolumesResponse>) - responseObserver); - break; - case METHODID_GET_VOLUME: - serviceImpl.getVolume( - (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_VOLUME: - serviceImpl.updateVolume( - (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NETWORKS: - serviceImpl.listNetworks( - (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListNetworksResponse>) - responseObserver); - break; - case METHODID_GET_NETWORK: - serviceImpl.getNetwork( - (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SNAPSHOT_SCHEDULE_POLICIES: - serviceImpl.listSnapshotSchedulePolicies( - (com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse>) - responseObserver); - break; - case METHODID_GET_SNAPSHOT_SCHEDULE_POLICY: - serviceImpl.getSnapshotSchedulePolicy( - (com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy>) - responseObserver); - break; - case METHODID_CREATE_SNAPSHOT_SCHEDULE_POLICY: - serviceImpl.createSnapshotSchedulePolicy( - (com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy>) - responseObserver); - break; - case METHODID_UPDATE_SNAPSHOT_SCHEDULE_POLICY: - serviceImpl.updateSnapshotSchedulePolicy( - (com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy>) - responseObserver); - break; - case METHODID_DELETE_SNAPSHOT_SCHEDULE_POLICY: - serviceImpl.deleteSnapshotSchedulePolicy( - (com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_VOLUME_SNAPSHOT: - serviceImpl.createVolumeSnapshot( - (com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RESTORE_VOLUME_SNAPSHOT: - serviceImpl.restoreVolumeSnapshot( - (com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_VOLUME_SNAPSHOT: - serviceImpl.deleteVolumeSnapshot( - (com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_VOLUME_SNAPSHOT: - serviceImpl.getVolumeSnapshot( - (com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_VOLUME_SNAPSHOTS: - serviceImpl.listVolumeSnapshots( - (com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse>) - responseObserver); - break; - case METHODID_GET_LUN: - serviceImpl.getLun( - (com.google.cloud.baremetalsolution.v2.GetLunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_LUNS: - serviceImpl.listLuns( - (com.google.cloud.baremetalsolution.v2.ListLunsRequest) 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 BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BareMetalSolutionBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BareMetalSolution"); - } - } - - private static final class BareMetalSolutionFileDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier { - BareMetalSolutionFileDescriptorSupplier() {} - } - - private static final class BareMetalSolutionMethodDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getResetInstanceMethod()) - .addMethod(getListVolumesMethod()) - .addMethod(getGetVolumeMethod()) - .addMethod(getUpdateVolumeMethod()) - .addMethod(getListNetworksMethod()) - .addMethod(getGetNetworkMethod()) - .addMethod(getListSnapshotSchedulePoliciesMethod()) - .addMethod(getGetSnapshotSchedulePolicyMethod()) - .addMethod(getCreateSnapshotSchedulePolicyMethod()) - .addMethod(getUpdateSnapshotSchedulePolicyMethod()) - .addMethod(getDeleteSnapshotSchedulePolicyMethod()) - .addMethod(getCreateVolumeSnapshotMethod()) - .addMethod(getRestoreVolumeSnapshotMethod()) - .addMethod(getDeleteVolumeSnapshotMethod()) - .addMethod(getGetVolumeSnapshotMethod()) - .addMethod(getListVolumeSnapshotsMethod()) - .addMethod(getGetLunMethod()) - .addMethod(getListLunsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java similarity index 70% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java index 1c913ed..ce914c1 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java @@ -31,7 +31,6 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; @@ -68,13 +67,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. *
* @@ -242,6 +241,7 @@ public final ListInstancesPagedResponse listInstances(String parent) { * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); * for (Instance element : bareMetalSolutionClient.listInstances(request).iterateAll()) { * // doThingsWith(element); @@ -271,6 +271,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); * ApiFuture future = * bareMetalSolutionClient.listInstancesPagedCallable().futureCall(request); @@ -301,6 +302,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); * while (true) { * ListInstancesResponse response = @@ -419,6 +421,116 @@ public final UnaryCallable getInstanceCallable() { return stub.getInstanceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single server. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
+   *   Instance instance = Instance.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Instance response = bareMetalSolutionClient.updateInstanceAsync(instance, updateMask).get();
+   * }
+   * }
+ * + * @param instance Required. The server to update. + *

The `name` field is used to identify the instance to update. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @param updateMask The list of fields to update. The currently supported fields are: `labels` + * `hyperthreading_enabled` `os_image` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateInstanceAsync( + Instance instance, FieldMask updateMask) { + UpdateInstanceRequest request = + UpdateInstanceRequest.newBuilder().setInstance(instance).setUpdateMask(updateMask).build(); + return updateInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single server. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
+   *   UpdateInstanceRequest request =
+   *       UpdateInstanceRequest.newBuilder()
+   *           .setInstance(Instance.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Instance response = bareMetalSolutionClient.updateInstanceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateInstanceAsync( + UpdateInstanceRequest request) { + return updateInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single server. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
+   *   UpdateInstanceRequest request =
+   *       UpdateInstanceRequest.newBuilder()
+   *           .setInstance(Instance.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       bareMetalSolutionClient.updateInstanceOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Instance response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateInstanceOperationCallable() { + return stub.updateInstanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single server. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
+   *   UpdateInstanceRequest request =
+   *       UpdateInstanceRequest.newBuilder()
+   *           .setInstance(Instance.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       bareMetalSolutionClient.updateInstanceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateInstanceCallable() { + return stub.updateInstanceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then @@ -552,7 +664,7 @@ public final UnaryCallable resetInstanceCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volumes in a given project and location. + * Starts a server that was shutdown. * *

Sample code: * @@ -560,27 +672,24 @@ public final UnaryCallable resetInstanceCallabl * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Volume element : bareMetalSolutionClient.listVolumes(parent).iterateAll()) { - * // doThingsWith(element); - * } + * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * StartInstanceResponse response = bareMetalSolutionClient.startInstanceAsync(name).get(); * } * } * - * @param parent Required. Parent value for ListVolumesRequest. + * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumesPagedResponse listVolumes(LocationName parent) { - ListVolumesRequest request = - ListVolumesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listVolumes(request); + public final OperationFuture startInstanceAsync( + InstanceName name) { + StartInstanceRequest request = + StartInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return startInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volumes in a given project and location. + * Starts a server that was shutdown. * *

Sample code: * @@ -588,24 +697,23 @@ public final ListVolumesPagedResponse listVolumes(LocationName parent) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Volume element : bareMetalSolutionClient.listVolumes(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * StartInstanceResponse response = bareMetalSolutionClient.startInstanceAsync(name).get(); * } * } * - * @param parent Required. Parent value for ListVolumesRequest. + * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumesPagedResponse listVolumes(String parent) { - ListVolumesRequest request = ListVolumesRequest.newBuilder().setParent(parent).build(); - return listVolumes(request); + public final OperationFuture startInstanceAsync( + String name) { + StartInstanceRequest request = StartInstanceRequest.newBuilder().setName(name).build(); + return startInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volumes in a given project and location. + * Starts a server that was shutdown. * *

Sample code: * @@ -613,28 +721,25 @@ public final ListVolumesPagedResponse listVolumes(String parent) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListVolumesRequest request = - * ListVolumesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * StartInstanceRequest request = + * StartInstanceRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .build(); - * for (Volume element : bareMetalSolutionClient.listVolumes(request).iterateAll()) { - * // doThingsWith(element); - * } + * StartInstanceResponse response = bareMetalSolutionClient.startInstanceAsync(request).get(); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumesPagedResponse listVolumes(ListVolumesRequest request) { - return listVolumesPagedCallable().call(request); + public final OperationFuture startInstanceAsync( + StartInstanceRequest request) { + return startInstanceOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volumes in a given project and location. + * Starts a server that was shutdown. * *

Sample code: * @@ -642,29 +747,25 @@ public final ListVolumesPagedResponse listVolumes(ListVolumesRequest request) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListVolumesRequest request = - * ListVolumesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * StartInstanceRequest request = + * StartInstanceRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .build(); - * ApiFuture future = - * bareMetalSolutionClient.listVolumesPagedCallable().futureCall(request); + * OperationFuture future = + * bareMetalSolutionClient.startInstanceOperationCallable().futureCall(request); * // Do something. - * for (Volume element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * StartInstanceResponse response = future.get(); * } * } */ - public final UnaryCallable - listVolumesPagedCallable() { - return stub.listVolumesPagedCallable(); + public final OperationCallable + startInstanceOperationCallable() { + return stub.startInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volumes in a given project and location. + * Starts a server that was shutdown. * *

Sample code: * @@ -672,34 +773,24 @@ public final ListVolumesPagedResponse listVolumes(ListVolumesRequest request) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListVolumesRequest request = - * ListVolumesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * StartInstanceRequest request = + * StartInstanceRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .build(); - * while (true) { - * ListVolumesResponse response = bareMetalSolutionClient.listVolumesCallable().call(request); - * for (Volume element : response.getVolumesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * bareMetalSolutionClient.startInstanceCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable listVolumesCallable() { - return stub.listVolumesCallable(); + public final UnaryCallable startInstanceCallable() { + return stub.startInstanceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage volume. + * Stop a running server. * *

Sample code: * @@ -707,23 +798,24 @@ public final UnaryCallable listVolumesC * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - * Volume response = bareMetalSolutionClient.getVolume(name); + * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * StopInstanceResponse response = bareMetalSolutionClient.stopInstanceAsync(name).get(); * } * } * * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Volume getVolume(VolumeName name) { - GetVolumeRequest request = - GetVolumeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getVolume(request); + public final OperationFuture stopInstanceAsync( + InstanceName name) { + StopInstanceRequest request = + StopInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return stopInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage volume. + * Stop a running server. * *

Sample code: * @@ -731,22 +823,23 @@ public final Volume getVolume(VolumeName name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); - * Volume response = bareMetalSolutionClient.getVolume(name); + * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * StopInstanceResponse response = bareMetalSolutionClient.stopInstanceAsync(name).get(); * } * } * * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Volume getVolume(String name) { - GetVolumeRequest request = GetVolumeRequest.newBuilder().setName(name).build(); - return getVolume(request); + public final OperationFuture stopInstanceAsync( + String name) { + StopInstanceRequest request = StopInstanceRequest.newBuilder().setName(name).build(); + return stopInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage volume. + * Stop a running server. * *

Sample code: * @@ -754,24 +847,25 @@ public final Volume getVolume(String name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * GetVolumeRequest request = - * GetVolumeRequest.newBuilder() - * .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + * StopInstanceRequest request = + * StopInstanceRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .build(); - * Volume response = bareMetalSolutionClient.getVolume(request); + * StopInstanceResponse response = bareMetalSolutionClient.stopInstanceAsync(request).get(); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Volume getVolume(GetVolumeRequest request) { - return getVolumeCallable().call(request); + public final OperationFuture stopInstanceAsync( + StopInstanceRequest request) { + return stopInstanceOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage volume. + * Stop a running server. * *

Sample code: * @@ -779,23 +873,25 @@ public final Volume getVolume(GetVolumeRequest request) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * GetVolumeRequest request = - * GetVolumeRequest.newBuilder() - * .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + * StopInstanceRequest request = + * StopInstanceRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .build(); - * ApiFuture future = bareMetalSolutionClient.getVolumeCallable().futureCall(request); + * OperationFuture future = + * bareMetalSolutionClient.stopInstanceOperationCallable().futureCall(request); * // Do something. - * Volume response = future.get(); + * StopInstanceResponse response = future.get(); * } * } */ - public final UnaryCallable getVolumeCallable() { - return stub.getVolumeCallable(); + public final OperationCallable + stopInstanceOperationCallable() { + return stub.stopInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update details of a single storage volume. + * Stop a running server. * *

Sample code: * @@ -803,29 +899,24 @@ public final UnaryCallable getVolumeCallable() { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * Volume volume = Volume.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Volume response = bareMetalSolutionClient.updateVolumeAsync(volume, updateMask).get(); + * StopInstanceRequest request = + * StopInstanceRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .build(); + * ApiFuture future = + * bareMetalSolutionClient.stopInstanceCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } - * - * @param volume Required. The volume to update. - *

The `name` field is used to identify the volume to update. Format: - * projects/{project}/locations/{location}/volumes/{volume} - * @param updateMask The list of fields to update. The only currently supported fields are: - * `snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateVolumeAsync( - Volume volume, FieldMask updateMask) { - UpdateVolumeRequest request = - UpdateVolumeRequest.newBuilder().setVolume(volume).setUpdateMask(updateMask).build(); - return updateVolumeAsync(request); + public final UnaryCallable stopInstanceCallable() { + return stub.stopInstanceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update details of a single storage volume. + * Detach LUN from Instance. * *

Sample code: * @@ -833,26 +924,29 @@ public final OperationFuture updateVolumeAsync( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * UpdateVolumeRequest request = - * UpdateVolumeRequest.newBuilder() - * .setVolume(Volume.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * Volume response = bareMetalSolutionClient.updateVolumeAsync(request).get(); + * InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + * Instance response = bareMetalSolutionClient.detachLunAsync(instance, lun).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param instance Required. Name of the instance. + * @param lun Required. Name of the Lun to detach. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateVolumeAsync( - UpdateVolumeRequest request) { - return updateVolumeOperationCallable().futureCall(request); + public final OperationFuture detachLunAsync( + InstanceName instance, LunName lun) { + DetachLunRequest request = + DetachLunRequest.newBuilder() + .setInstance(instance == null ? null : instance.toString()) + .setLun(lun == null ? null : lun.toString()) + .build(); + return detachLunAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update details of a single storage volume. + * Detach LUN from Instance. * *

Sample code: * @@ -860,26 +954,29 @@ public final OperationFuture updateVolumeAsync( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * UpdateVolumeRequest request = - * UpdateVolumeRequest.newBuilder() - * .setVolume(Volume.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * OperationFuture future = - * bareMetalSolutionClient.updateVolumeOperationCallable().futureCall(request); - * // Do something. - * Volume response = future.get(); + * InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * String lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString(); + * Instance response = bareMetalSolutionClient.detachLunAsync(instance, lun).get(); * } * } + * + * @param instance Required. Name of the instance. + * @param lun Required. Name of the Lun to detach. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationCallable - updateVolumeOperationCallable() { - return stub.updateVolumeOperationCallable(); + public final OperationFuture detachLunAsync( + InstanceName instance, String lun) { + DetachLunRequest request = + DetachLunRequest.newBuilder() + .setInstance(instance == null ? null : instance.toString()) + .setLun(lun) + .build(); + return detachLunAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update details of a single storage volume. + * Detach LUN from Instance. * *

Sample code: * @@ -887,25 +984,29 @@ public final OperationFuture updateVolumeAsync( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * UpdateVolumeRequest request = - * UpdateVolumeRequest.newBuilder() - * .setVolume(Volume.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * ApiFuture future = - * bareMetalSolutionClient.updateVolumeCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + * Instance response = bareMetalSolutionClient.detachLunAsync(instance, lun).get(); * } * } + * + * @param instance Required. Name of the instance. + * @param lun Required. Name of the Lun to detach. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable updateVolumeCallable() { - return stub.updateVolumeCallable(); + public final OperationFuture detachLunAsync( + String instance, LunName lun) { + DetachLunRequest request = + DetachLunRequest.newBuilder() + .setInstance(instance) + .setLun(lun == null ? null : lun.toString()) + .build(); + return detachLunAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List network in a given project and location. + * Detach LUN from Instance. * *

Sample code: * @@ -913,52 +1014,26 @@ public final UnaryCallable updateVolumeCallable( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Network element : bareMetalSolutionClient.listNetworks(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * String lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString(); + * Instance response = bareMetalSolutionClient.detachLunAsync(instance, lun).get(); * } * } * - * @param parent Required. Parent value for ListNetworksRequest. + * @param instance Required. Name of the instance. + * @param lun Required. Name of the Lun to detach. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNetworksPagedResponse listNetworks(LocationName parent) { - ListNetworksRequest request = - ListNetworksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listNetworks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * List network in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Network element : bareMetalSolutionClient.listNetworks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Parent value for ListNetworksRequest. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListNetworksPagedResponse listNetworks(String parent) { - ListNetworksRequest request = ListNetworksRequest.newBuilder().setParent(parent).build(); - return listNetworks(request); + public final OperationFuture detachLunAsync( + String instance, String lun) { + DetachLunRequest request = + DetachLunRequest.newBuilder().setInstance(instance).setLun(lun).build(); + return detachLunAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List network in a given project and location. + * Detach LUN from Instance. * *

Sample code: * @@ -966,28 +1041,26 @@ public final ListNetworksPagedResponse listNetworks(String parent) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListNetworksRequest request = - * ListNetworksRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DetachLunRequest request = + * DetachLunRequest.newBuilder() + * .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setLun(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) * .build(); - * for (Network element : bareMetalSolutionClient.listNetworks(request).iterateAll()) { - * // doThingsWith(element); - * } + * Instance response = bareMetalSolutionClient.detachLunAsync(request).get(); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNetworksPagedResponse listNetworks(ListNetworksRequest request) { - return listNetworksPagedCallable().call(request); + public final OperationFuture detachLunAsync( + DetachLunRequest request) { + return detachLunOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List network in a given project and location. + * Detach LUN from Instance. * *

Sample code: * @@ -995,29 +1068,26 @@ public final ListNetworksPagedResponse listNetworks(ListNetworksRequest request) * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListNetworksRequest request = - * ListNetworksRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DetachLunRequest request = + * DetachLunRequest.newBuilder() + * .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setLun(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) * .build(); - * ApiFuture future = - * bareMetalSolutionClient.listNetworksPagedCallable().futureCall(request); + * OperationFuture future = + * bareMetalSolutionClient.detachLunOperationCallable().futureCall(request); * // Do something. - * for (Network element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * Instance response = future.get(); * } * } */ - public final UnaryCallable - listNetworksPagedCallable() { - return stub.listNetworksPagedCallable(); + public final OperationCallable + detachLunOperationCallable() { + return stub.detachLunOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List network in a given project and location. + * Detach LUN from Instance. * *

Sample code: * @@ -1025,35 +1095,24 @@ public final ListNetworksPagedResponse listNetworks(ListNetworksRequest request) * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListNetworksRequest request = - * ListNetworksRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DetachLunRequest request = + * DetachLunRequest.newBuilder() + * .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setLun(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) * .build(); - * while (true) { - * ListNetworksResponse response = - * bareMetalSolutionClient.listNetworksCallable().call(request); - * for (Network element : response.getNetworksList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = bareMetalSolutionClient.detachLunCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable listNetworksCallable() { - return stub.listNetworksCallable(); + public final UnaryCallable detachLunCallable() { + return stub.detachLunCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single network. + * List storage volumes in a given project and location. * *

Sample code: * @@ -1061,23 +1120,27 @@ public final UnaryCallable listNetwor * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]"); - * Network response = bareMetalSolutionClient.getNetwork(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (Volume element : bareMetalSolutionClient.listVolumes(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Name of the resource. + * @param parent Required. Parent value for ListVolumesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Network getNetwork(NetworkName name) { - GetNetworkRequest request = - GetNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getNetwork(request); + public final ListVolumesPagedResponse listVolumes(LocationName parent) { + ListVolumesRequest request = + ListVolumesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVolumes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single network. + * List storage volumes in a given project and location. * *

Sample code: * @@ -1085,22 +1148,24 @@ public final Network getNetwork(NetworkName name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString(); - * Network response = bareMetalSolutionClient.getNetwork(name); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (Volume element : bareMetalSolutionClient.listVolumes(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Name of the resource. + * @param parent Required. Parent value for ListVolumesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Network getNetwork(String name) { - GetNetworkRequest request = GetNetworkRequest.newBuilder().setName(name).build(); - return getNetwork(request); + public final ListVolumesPagedResponse listVolumes(String parent) { + ListVolumesRequest request = ListVolumesRequest.newBuilder().setParent(parent).build(); + return listVolumes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single network. + * List storage volumes in a given project and location. * *

Sample code: * @@ -1108,24 +1173,29 @@ public final Network getNetwork(String name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * GetNetworkRequest request = - * GetNetworkRequest.newBuilder() - * .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + * ListVolumesRequest request = + * ListVolumesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * Network response = bareMetalSolutionClient.getNetwork(request); + * for (Volume element : bareMetalSolutionClient.listVolumes(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Network getNetwork(GetNetworkRequest request) { - return getNetworkCallable().call(request); + public final ListVolumesPagedResponse listVolumes(ListVolumesRequest request) { + return listVolumesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single network. + * List storage volumes in a given project and location. * *

Sample code: * @@ -1133,23 +1203,30 @@ public final Network getNetwork(GetNetworkRequest request) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * GetNetworkRequest request = - * GetNetworkRequest.newBuilder() - * .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + * ListVolumesRequest request = + * ListVolumesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = bareMetalSolutionClient.getNetworkCallable().futureCall(request); + * ApiFuture future = + * bareMetalSolutionClient.listVolumesPagedCallable().futureCall(request); * // Do something. - * Network response = future.get(); + * for (Volume element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable getNetworkCallable() { - return stub.getNetworkCallable(); + public final UnaryCallable + listVolumesPagedCallable() { + return stub.listVolumesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List snapshot schedule policies in a given project and location. + * List storage volumes in a given project and location. * *

Sample code: * @@ -1157,29 +1234,35 @@ public final UnaryCallable getNetworkCallable() { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (SnapshotSchedulePolicy element : - * bareMetalSolutionClient.listSnapshotSchedulePolicies(parent).iterateAll()) { - * // doThingsWith(element); + * ListVolumesRequest request = + * ListVolumesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * ListVolumesResponse response = bareMetalSolutionClient.listVolumesCallable().call(request); + * for (Volume element : response.getVolumesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } * } * } * } - * - * @param parent Required. The parent project containing the Snapshot Schedule Policies. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSnapshotSchedulePoliciesPagedResponse listSnapshotSchedulePolicies( - LocationName parent) { - ListSnapshotSchedulePoliciesRequest request = - ListSnapshotSchedulePoliciesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listSnapshotSchedulePolicies(request); + public final UnaryCallable listVolumesCallable() { + return stub.listVolumesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List snapshot schedule policies in a given project and location. + * Get details of a single storage volume. * *

Sample code: * @@ -1187,27 +1270,23 @@ public final ListSnapshotSchedulePoliciesPagedResponse listSnapshotSchedulePolic * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (SnapshotSchedulePolicy element : - * bareMetalSolutionClient.listSnapshotSchedulePolicies(parent).iterateAll()) { - * // doThingsWith(element); - * } + * VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + * Volume response = bareMetalSolutionClient.getVolume(name); * } * } * - * @param parent Required. The parent project containing the Snapshot Schedule Policies. + * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSnapshotSchedulePoliciesPagedResponse listSnapshotSchedulePolicies( - String parent) { - ListSnapshotSchedulePoliciesRequest request = - ListSnapshotSchedulePoliciesRequest.newBuilder().setParent(parent).build(); - return listSnapshotSchedulePolicies(request); + public final Volume getVolume(VolumeName name) { + GetVolumeRequest request = + GetVolumeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getVolume(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List snapshot schedule policies in a given project and location. + * Get details of a single storage volume. * *

Sample code: * @@ -1215,30 +1294,22 @@ public final ListSnapshotSchedulePoliciesPagedResponse listSnapshotSchedulePolic * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListSnapshotSchedulePoliciesRequest request = - * ListSnapshotSchedulePoliciesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (SnapshotSchedulePolicy element : - * bareMetalSolutionClient.listSnapshotSchedulePolicies(request).iterateAll()) { - * // doThingsWith(element); - * } + * String name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); + * Volume response = bareMetalSolutionClient.getVolume(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSnapshotSchedulePoliciesPagedResponse listSnapshotSchedulePolicies( - ListSnapshotSchedulePoliciesRequest request) { - return listSnapshotSchedulePoliciesPagedCallable().call(request); + public final Volume getVolume(String name) { + GetVolumeRequest request = GetVolumeRequest.newBuilder().setName(name).build(); + return getVolume(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List snapshot schedule policies in a given project and location. + * Get details of a single storage volume. * *

Sample code: * @@ -1246,68 +1317,24 @@ public final ListSnapshotSchedulePoliciesPagedResponse listSnapshotSchedulePolic * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListSnapshotSchedulePoliciesRequest request = - * ListSnapshotSchedulePoliciesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetVolumeRequest request = + * GetVolumeRequest.newBuilder() + * .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) * .build(); - * ApiFuture future = - * bareMetalSolutionClient.listSnapshotSchedulePoliciesPagedCallable().futureCall(request); - * // Do something. - * for (SnapshotSchedulePolicy element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * Volume response = bareMetalSolutionClient.getVolume(request); * } * } - */ - public final UnaryCallable< - ListSnapshotSchedulePoliciesRequest, ListSnapshotSchedulePoliciesPagedResponse> - listSnapshotSchedulePoliciesPagedCallable() { - return stub.listSnapshotSchedulePoliciesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * List snapshot schedule policies in a given project and location. - * - *

Sample code: * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
-   *   ListSnapshotSchedulePoliciesRequest request =
-   *       ListSnapshotSchedulePoliciesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListSnapshotSchedulePoliciesResponse response =
-   *         bareMetalSolutionClient.listSnapshotSchedulePoliciesCallable().call(request);
-   *     for (SnapshotSchedulePolicy element : response.getSnapshotSchedulePoliciesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
+ * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - ListSnapshotSchedulePoliciesRequest, ListSnapshotSchedulePoliciesResponse> - listSnapshotSchedulePoliciesCallable() { - return stub.listSnapshotSchedulePoliciesCallable(); + public final Volume getVolume(GetVolumeRequest request) { + return getVolumeCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single snapshot schedule policy. + * Get details of a single storage volume. * *

Sample code: * @@ -1315,26 +1342,23 @@ public final ListSnapshotSchedulePoliciesPagedResponse listSnapshotSchedulePolic * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * SnapshotSchedulePolicyName name = - * SnapshotSchedulePolicyName.of("[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]"); - * SnapshotSchedulePolicy response = bareMetalSolutionClient.getSnapshotSchedulePolicy(name); + * GetVolumeRequest request = + * GetVolumeRequest.newBuilder() + * .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + * .build(); + * ApiFuture future = bareMetalSolutionClient.getVolumeCallable().futureCall(request); + * // Do something. + * Volume response = future.get(); * } * } - * - * @param name Required. Name of the resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SnapshotSchedulePolicy getSnapshotSchedulePolicy(SnapshotSchedulePolicyName name) { - GetSnapshotSchedulePolicyRequest request = - GetSnapshotSchedulePolicyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getSnapshotSchedulePolicy(request); + public final UnaryCallable getVolumeCallable() { + return stub.getVolumeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single snapshot schedule policy. + * Update details of a single storage volume. * *

Sample code: * @@ -1342,25 +1366,30 @@ public final SnapshotSchedulePolicy getSnapshotSchedulePolicy(SnapshotSchedulePo * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String name = - * SnapshotSchedulePolicyName.of("[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - * .toString(); - * SnapshotSchedulePolicy response = bareMetalSolutionClient.getSnapshotSchedulePolicy(name); + * Volume volume = Volume.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * Volume response = bareMetalSolutionClient.updateVolumeAsync(volume, updateMask).get(); * } * } * - * @param name Required. Name of the resource. + * @param volume Required. The volume to update. + *

The `name` field is used to identify the volume to update. Format: + * projects/{project}/locations/{location}/volumes/{volume} + * @param updateMask The list of fields to update. The only currently supported fields are: + * `snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels' 'snapshot_enabled' + * 'snapshot_reservation_detail.reserved_space_percent' * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SnapshotSchedulePolicy getSnapshotSchedulePolicy(String name) { - GetSnapshotSchedulePolicyRequest request = - GetSnapshotSchedulePolicyRequest.newBuilder().setName(name).build(); - return getSnapshotSchedulePolicy(request); + public final OperationFuture updateVolumeAsync( + Volume volume, FieldMask updateMask) { + UpdateVolumeRequest request = + UpdateVolumeRequest.newBuilder().setVolume(volume).setUpdateMask(updateMask).build(); + return updateVolumeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single snapshot schedule policy. + * Update details of a single storage volume. * *

Sample code: * @@ -1368,28 +1397,26 @@ public final SnapshotSchedulePolicy getSnapshotSchedulePolicy(String name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * GetSnapshotSchedulePolicyRequest request = - * GetSnapshotSchedulePolicyRequest.newBuilder() - * .setName( - * SnapshotSchedulePolicyName.of( - * "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - * .toString()) + * UpdateVolumeRequest request = + * UpdateVolumeRequest.newBuilder() + * .setVolume(Volume.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * SnapshotSchedulePolicy response = bareMetalSolutionClient.getSnapshotSchedulePolicy(request); + * Volume response = bareMetalSolutionClient.updateVolumeAsync(request).get(); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SnapshotSchedulePolicy getSnapshotSchedulePolicy( - GetSnapshotSchedulePolicyRequest request) { - return getSnapshotSchedulePolicyCallable().call(request); + public final OperationFuture updateVolumeAsync( + UpdateVolumeRequest request) { + return updateVolumeOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single snapshot schedule policy. + * Update details of a single storage volume. * *

Sample code: * @@ -1397,28 +1424,26 @@ public final SnapshotSchedulePolicy getSnapshotSchedulePolicy( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * GetSnapshotSchedulePolicyRequest request = - * GetSnapshotSchedulePolicyRequest.newBuilder() - * .setName( - * SnapshotSchedulePolicyName.of( - * "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - * .toString()) + * UpdateVolumeRequest request = + * UpdateVolumeRequest.newBuilder() + * .setVolume(Volume.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * bareMetalSolutionClient.getSnapshotSchedulePolicyCallable().futureCall(request); + * OperationFuture future = + * bareMetalSolutionClient.updateVolumeOperationCallable().futureCall(request); * // Do something. - * SnapshotSchedulePolicy response = future.get(); + * Volume response = future.get(); * } * } */ - public final UnaryCallable - getSnapshotSchedulePolicyCallable() { - return stub.getSnapshotSchedulePolicyCallable(); + public final OperationCallable + updateVolumeOperationCallable() { + return stub.updateVolumeOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a snapshot schedule policy in the specified project. + * Update details of a single storage volume. * *

Sample code: * @@ -1426,36 +1451,25 @@ public final SnapshotSchedulePolicy getSnapshotSchedulePolicy( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * SnapshotSchedulePolicy snapshotSchedulePolicy = SnapshotSchedulePolicy.newBuilder().build(); - * String snapshotSchedulePolicyId = "snapshotSchedulePolicyId1929948040"; - * SnapshotSchedulePolicy response = - * bareMetalSolutionClient.createSnapshotSchedulePolicy( - * parent, snapshotSchedulePolicy, snapshotSchedulePolicyId); + * UpdateVolumeRequest request = + * UpdateVolumeRequest.newBuilder() + * .setVolume(Volume.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * ApiFuture future = + * bareMetalSolutionClient.updateVolumeCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } - * - * @param parent Required. The parent project and location containing the SnapshotSchedulePolicy. - * @param snapshotSchedulePolicy Required. The SnapshotSchedulePolicy to create. - * @param snapshotSchedulePolicyId Required. Snapshot policy ID - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SnapshotSchedulePolicy createSnapshotSchedulePolicy( - LocationName parent, - SnapshotSchedulePolicy snapshotSchedulePolicy, - String snapshotSchedulePolicyId) { - CreateSnapshotSchedulePolicyRequest request = - CreateSnapshotSchedulePolicyRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSnapshotSchedulePolicy(snapshotSchedulePolicy) - .setSnapshotSchedulePolicyId(snapshotSchedulePolicyId) - .build(); - return createSnapshotSchedulePolicy(request); + public final UnaryCallable updateVolumeCallable() { + return stub.updateVolumeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a snapshot schedule policy in the specified project. + * Emergency Volume resize. * *

Sample code: * @@ -1463,36 +1477,29 @@ public final SnapshotSchedulePolicy createSnapshotSchedulePolicy( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * SnapshotSchedulePolicy snapshotSchedulePolicy = SnapshotSchedulePolicy.newBuilder().build(); - * String snapshotSchedulePolicyId = "snapshotSchedulePolicyId1929948040"; - * SnapshotSchedulePolicy response = - * bareMetalSolutionClient.createSnapshotSchedulePolicy( - * parent, snapshotSchedulePolicy, snapshotSchedulePolicyId); + * VolumeName volume = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + * long sizeGib = 847296130; + * Volume response = bareMetalSolutionClient.resizeVolumeAsync(volume, sizeGib).get(); * } * } * - * @param parent Required. The parent project and location containing the SnapshotSchedulePolicy. - * @param snapshotSchedulePolicy Required. The SnapshotSchedulePolicy to create. - * @param snapshotSchedulePolicyId Required. Snapshot policy ID + * @param volume Required. Volume to resize. + * @param sizeGib New Volume size, in GiB. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SnapshotSchedulePolicy createSnapshotSchedulePolicy( - String parent, - SnapshotSchedulePolicy snapshotSchedulePolicy, - String snapshotSchedulePolicyId) { - CreateSnapshotSchedulePolicyRequest request = - CreateSnapshotSchedulePolicyRequest.newBuilder() - .setParent(parent) - .setSnapshotSchedulePolicy(snapshotSchedulePolicy) - .setSnapshotSchedulePolicyId(snapshotSchedulePolicyId) + public final OperationFuture resizeVolumeAsync( + VolumeName volume, long sizeGib) { + ResizeVolumeRequest request = + ResizeVolumeRequest.newBuilder() + .setVolume(volume == null ? null : volume.toString()) + .setSizeGib(sizeGib) .build(); - return createSnapshotSchedulePolicy(request); + return resizeVolumeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a snapshot schedule policy in the specified project. + * Emergency Volume resize. * *

Sample code: * @@ -1500,28 +1507,26 @@ public final SnapshotSchedulePolicy createSnapshotSchedulePolicy( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * CreateSnapshotSchedulePolicyRequest request = - * CreateSnapshotSchedulePolicyRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setSnapshotSchedulePolicy(SnapshotSchedulePolicy.newBuilder().build()) - * .setSnapshotSchedulePolicyId("snapshotSchedulePolicyId1929948040") - * .build(); - * SnapshotSchedulePolicy response = - * bareMetalSolutionClient.createSnapshotSchedulePolicy(request); + * String volume = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); + * long sizeGib = 847296130; + * Volume response = bareMetalSolutionClient.resizeVolumeAsync(volume, sizeGib).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param volume Required. Volume to resize. + * @param sizeGib New Volume size, in GiB. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SnapshotSchedulePolicy createSnapshotSchedulePolicy( - CreateSnapshotSchedulePolicyRequest request) { - return createSnapshotSchedulePolicyCallable().call(request); + public final OperationFuture resizeVolumeAsync( + String volume, long sizeGib) { + ResizeVolumeRequest request = + ResizeVolumeRequest.newBuilder().setVolume(volume).setSizeGib(sizeGib).build(); + return resizeVolumeAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a snapshot schedule policy in the specified project. + * Emergency Volume resize. * *

Sample code: * @@ -1529,60 +1534,26 @@ public final SnapshotSchedulePolicy createSnapshotSchedulePolicy( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * CreateSnapshotSchedulePolicyRequest request = - * CreateSnapshotSchedulePolicyRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setSnapshotSchedulePolicy(SnapshotSchedulePolicy.newBuilder().build()) - * .setSnapshotSchedulePolicyId("snapshotSchedulePolicyId1929948040") + * ResizeVolumeRequest request = + * ResizeVolumeRequest.newBuilder() + * .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + * .setSizeGib(847296130) * .build(); - * ApiFuture future = - * bareMetalSolutionClient.createSnapshotSchedulePolicyCallable().futureCall(request); - * // Do something. - * SnapshotSchedulePolicy response = future.get(); - * } - * } - */ - public final UnaryCallable - createSnapshotSchedulePolicyCallable() { - return stub.createSnapshotSchedulePolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Update a snapshot schedule policy in the specified project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
-   *   SnapshotSchedulePolicy snapshotSchedulePolicy = SnapshotSchedulePolicy.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   SnapshotSchedulePolicy response =
-   *       bareMetalSolutionClient.updateSnapshotSchedulePolicy(snapshotSchedulePolicy, updateMask);
+   *   Volume response = bareMetalSolutionClient.resizeVolumeAsync(request).get();
    * }
    * }
* - * @param snapshotSchedulePolicy Required. The snapshot schedule policy to update. - *

The `name` field is used to identify the snapshot schedule policy to update. Format: - * projects/{project}/locations/global/snapshotSchedulePolicies/{policy} - * @param updateMask Required. The list of fields to update. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SnapshotSchedulePolicy updateSnapshotSchedulePolicy( - SnapshotSchedulePolicy snapshotSchedulePolicy, FieldMask updateMask) { - UpdateSnapshotSchedulePolicyRequest request = - UpdateSnapshotSchedulePolicyRequest.newBuilder() - .setSnapshotSchedulePolicy(snapshotSchedulePolicy) - .setUpdateMask(updateMask) - .build(); - return updateSnapshotSchedulePolicy(request); + public final OperationFuture resizeVolumeAsync( + ResizeVolumeRequest request) { + return resizeVolumeOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update a snapshot schedule policy in the specified project. + * Emergency Volume resize. * *

Sample code: * @@ -1590,27 +1561,26 @@ public final SnapshotSchedulePolicy updateSnapshotSchedulePolicy( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * UpdateSnapshotSchedulePolicyRequest request = - * UpdateSnapshotSchedulePolicyRequest.newBuilder() - * .setSnapshotSchedulePolicy(SnapshotSchedulePolicy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ResizeVolumeRequest request = + * ResizeVolumeRequest.newBuilder() + * .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + * .setSizeGib(847296130) * .build(); - * SnapshotSchedulePolicy response = - * bareMetalSolutionClient.updateSnapshotSchedulePolicy(request); + * OperationFuture future = + * bareMetalSolutionClient.resizeVolumeOperationCallable().futureCall(request); + * // Do something. + * Volume response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SnapshotSchedulePolicy updateSnapshotSchedulePolicy( - UpdateSnapshotSchedulePolicyRequest request) { - return updateSnapshotSchedulePolicyCallable().call(request); + public final OperationCallable + resizeVolumeOperationCallable() { + return stub.resizeVolumeOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update a snapshot schedule policy in the specified project. + * Emergency Volume resize. * *

Sample code: * @@ -1618,26 +1588,25 @@ public final SnapshotSchedulePolicy updateSnapshotSchedulePolicy( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * UpdateSnapshotSchedulePolicyRequest request = - * UpdateSnapshotSchedulePolicyRequest.newBuilder() - * .setSnapshotSchedulePolicy(SnapshotSchedulePolicy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ResizeVolumeRequest request = + * ResizeVolumeRequest.newBuilder() + * .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + * .setSizeGib(847296130) * .build(); - * ApiFuture future = - * bareMetalSolutionClient.updateSnapshotSchedulePolicyCallable().futureCall(request); + * ApiFuture future = + * bareMetalSolutionClient.resizeVolumeCallable().futureCall(request); * // Do something. - * SnapshotSchedulePolicy response = future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable - updateSnapshotSchedulePolicyCallable() { - return stub.updateSnapshotSchedulePolicyCallable(); + public final UnaryCallable resizeVolumeCallable() { + return stub.resizeVolumeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a named snapshot schedule policy. + * List network in a given project and location. * *

Sample code: * @@ -1645,26 +1614,27 @@ public final SnapshotSchedulePolicy updateSnapshotSchedulePolicy( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * SnapshotSchedulePolicyName name = - * SnapshotSchedulePolicyName.of("[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]"); - * bareMetalSolutionClient.deleteSnapshotSchedulePolicy(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (Network element : bareMetalSolutionClient.listNetworks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the snapshot schedule policy to delete. + * @param parent Required. Parent value for ListNetworksRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSnapshotSchedulePolicy(SnapshotSchedulePolicyName name) { - DeleteSnapshotSchedulePolicyRequest request = - DeleteSnapshotSchedulePolicyRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final ListNetworksPagedResponse listNetworks(LocationName parent) { + ListNetworksRequest request = + ListNetworksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) .build(); - deleteSnapshotSchedulePolicy(request); + return listNetworks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a named snapshot schedule policy. + * List network in a given project and location. * *

Sample code: * @@ -1672,25 +1642,24 @@ public final void deleteSnapshotSchedulePolicy(SnapshotSchedulePolicyName name) * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String name = - * SnapshotSchedulePolicyName.of("[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - * .toString(); - * bareMetalSolutionClient.deleteSnapshotSchedulePolicy(name); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (Network element : bareMetalSolutionClient.listNetworks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the snapshot schedule policy to delete. + * @param parent Required. Parent value for ListNetworksRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSnapshotSchedulePolicy(String name) { - DeleteSnapshotSchedulePolicyRequest request = - DeleteSnapshotSchedulePolicyRequest.newBuilder().setName(name).build(); - deleteSnapshotSchedulePolicy(request); + public final ListNetworksPagedResponse listNetworks(String parent) { + ListNetworksRequest request = ListNetworksRequest.newBuilder().setParent(parent).build(); + return listNetworks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a named snapshot schedule policy. + * List network in a given project and location. * *

Sample code: * @@ -1698,27 +1667,29 @@ public final void deleteSnapshotSchedulePolicy(String name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * DeleteSnapshotSchedulePolicyRequest request = - * DeleteSnapshotSchedulePolicyRequest.newBuilder() - * .setName( - * SnapshotSchedulePolicyName.of( - * "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - * .toString()) + * ListNetworksRequest request = + * ListNetworksRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * bareMetalSolutionClient.deleteSnapshotSchedulePolicy(request); + * for (Network element : bareMetalSolutionClient.listNetworks(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSnapshotSchedulePolicy(DeleteSnapshotSchedulePolicyRequest request) { - deleteSnapshotSchedulePolicyCallable().call(request); + public final ListNetworksPagedResponse listNetworks(ListNetworksRequest request) { + return listNetworksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a named snapshot schedule policy. + * List network in a given project and location. * *

Sample code: * @@ -1726,28 +1697,30 @@ public final void deleteSnapshotSchedulePolicy(DeleteSnapshotSchedulePolicyReque * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * DeleteSnapshotSchedulePolicyRequest request = - * DeleteSnapshotSchedulePolicyRequest.newBuilder() - * .setName( - * SnapshotSchedulePolicyName.of( - * "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - * .toString()) + * ListNetworksRequest request = + * ListNetworksRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * bareMetalSolutionClient.deleteSnapshotSchedulePolicyCallable().futureCall(request); + * ApiFuture future = + * bareMetalSolutionClient.listNetworksPagedCallable().futureCall(request); * // Do something. - * future.get(); + * for (Network element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable - deleteSnapshotSchedulePolicyCallable() { - return stub.deleteSnapshotSchedulePolicyCallable(); + public final UnaryCallable + listNetworksPagedCallable() { + return stub.listNetworksPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a storage volume snapshot in a containing volume. + * List network in a given project and location. * *

Sample code: * @@ -1755,31 +1728,37 @@ public final void deleteSnapshotSchedulePolicy(DeleteSnapshotSchedulePolicyReque * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - * VolumeSnapshot volumeSnapshot = VolumeSnapshot.newBuilder().build(); - * VolumeSnapshot response = - * bareMetalSolutionClient.createVolumeSnapshot(parent, volumeSnapshot); + * ListNetworksRequest request = + * ListNetworksRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * ListNetworksResponse response = + * bareMetalSolutionClient.listNetworksCallable().call(request); + * for (Network element : response.getNetworksList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param parent Required. The volume to snapshot. - * @param volumeSnapshot Required. The volume snapshot to create. Only the description field may - * be specified. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VolumeSnapshot createVolumeSnapshot( - VolumeName parent, VolumeSnapshot volumeSnapshot) { - CreateVolumeSnapshotRequest request = - CreateVolumeSnapshotRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setVolumeSnapshot(volumeSnapshot) - .build(); - return createVolumeSnapshot(request); + public final UnaryCallable listNetworksCallable() { + return stub.listNetworksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a storage volume snapshot in a containing volume. + * List all Networks (and used IPs for each Network) in the vendor account associated with the + * specified project. * *

Sample code: * @@ -1787,30 +1766,26 @@ public final VolumeSnapshot createVolumeSnapshot( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); - * VolumeSnapshot volumeSnapshot = VolumeSnapshot.newBuilder().build(); - * VolumeSnapshot response = - * bareMetalSolutionClient.createVolumeSnapshot(parent, volumeSnapshot); + * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + * ListNetworkUsageResponse response = bareMetalSolutionClient.listNetworkUsage(location); * } * } * - * @param parent Required. The volume to snapshot. - * @param volumeSnapshot Required. The volume snapshot to create. Only the description field may - * be specified. + * @param location Required. Parent value (project and location). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VolumeSnapshot createVolumeSnapshot(String parent, VolumeSnapshot volumeSnapshot) { - CreateVolumeSnapshotRequest request = - CreateVolumeSnapshotRequest.newBuilder() - .setParent(parent) - .setVolumeSnapshot(volumeSnapshot) + public final ListNetworkUsageResponse listNetworkUsage(LocationName location) { + ListNetworkUsageRequest request = + ListNetworkUsageRequest.newBuilder() + .setLocation(location == null ? null : location.toString()) .build(); - return createVolumeSnapshot(request); + return listNetworkUsage(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a storage volume snapshot in a containing volume. + * List all Networks (and used IPs for each Network) in the vendor account associated with the + * specified project. * *

Sample code: * @@ -1818,25 +1793,24 @@ public final VolumeSnapshot createVolumeSnapshot(String parent, VolumeSnapshot v * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * CreateVolumeSnapshotRequest request = - * CreateVolumeSnapshotRequest.newBuilder() - * .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) - * .setVolumeSnapshot(VolumeSnapshot.newBuilder().build()) - * .build(); - * VolumeSnapshot response = bareMetalSolutionClient.createVolumeSnapshot(request); + * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * ListNetworkUsageResponse response = bareMetalSolutionClient.listNetworkUsage(location); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param location Required. Parent value (project and location). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VolumeSnapshot createVolumeSnapshot(CreateVolumeSnapshotRequest request) { - return createVolumeSnapshotCallable().call(request); + public final ListNetworkUsageResponse listNetworkUsage(String location) { + ListNetworkUsageRequest request = + ListNetworkUsageRequest.newBuilder().setLocation(location).build(); + return listNetworkUsage(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a storage volume snapshot in a containing volume. + * List all Networks (and used IPs for each Network) in the vendor account associated with the + * specified project. * *

Sample code: * @@ -1844,26 +1818,25 @@ public final VolumeSnapshot createVolumeSnapshot(CreateVolumeSnapshotRequest req * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * CreateVolumeSnapshotRequest request = - * CreateVolumeSnapshotRequest.newBuilder() - * .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) - * .setVolumeSnapshot(VolumeSnapshot.newBuilder().build()) + * ListNetworkUsageRequest request = + * ListNetworkUsageRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .build(); - * ApiFuture future = - * bareMetalSolutionClient.createVolumeSnapshotCallable().futureCall(request); - * // Do something. - * VolumeSnapshot response = future.get(); + * ListNetworkUsageResponse response = bareMetalSolutionClient.listNetworkUsage(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - createVolumeSnapshotCallable() { - return stub.createVolumeSnapshotCallable(); + public final ListNetworkUsageResponse listNetworkUsage(ListNetworkUsageRequest request) { + return listNetworkUsageCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restore a storage volume snapshot to its containing volume. + * List all Networks (and used IPs for each Network) in the vendor account associated with the + * specified project. * *

Sample code: * @@ -1871,28 +1844,25 @@ public final VolumeSnapshot createVolumeSnapshot(CreateVolumeSnapshotRequest req * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * VolumeSnapshotName volumeSnapshot = - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"); - * VolumeSnapshot response = - * bareMetalSolutionClient.restoreVolumeSnapshotAsync(volumeSnapshot).get(); + * ListNetworkUsageRequest request = + * ListNetworkUsageRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .build(); + * ApiFuture future = + * bareMetalSolutionClient.listNetworkUsageCallable().futureCall(request); + * // Do something. + * ListNetworkUsageResponse response = future.get(); * } * } - * - * @param volumeSnapshot Required. Name of the resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture restoreVolumeSnapshotAsync( - VolumeSnapshotName volumeSnapshot) { - RestoreVolumeSnapshotRequest request = - RestoreVolumeSnapshotRequest.newBuilder() - .setVolumeSnapshot(volumeSnapshot == null ? null : volumeSnapshot.toString()) - .build(); - return restoreVolumeSnapshotAsync(request); + public final UnaryCallable + listNetworkUsageCallable() { + return stub.listNetworkUsageCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restore a storage volume snapshot to its containing volume. + * Get details of a single network. * *

Sample code: * @@ -1900,26 +1870,23 @@ public final OperationFuture restoreVolumeSna * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String volumeSnapshot = - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]").toString(); - * VolumeSnapshot response = - * bareMetalSolutionClient.restoreVolumeSnapshotAsync(volumeSnapshot).get(); + * NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]"); + * Network response = bareMetalSolutionClient.getNetwork(name); * } * } * - * @param volumeSnapshot Required. Name of the resource. + * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture restoreVolumeSnapshotAsync( - String volumeSnapshot) { - RestoreVolumeSnapshotRequest request = - RestoreVolumeSnapshotRequest.newBuilder().setVolumeSnapshot(volumeSnapshot).build(); - return restoreVolumeSnapshotAsync(request); + public final Network getNetwork(NetworkName name) { + GetNetworkRequest request = + GetNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getNetwork(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restore a storage volume snapshot to its containing volume. + * Get details of a single network. * *

Sample code: * @@ -1927,27 +1894,22 @@ public final OperationFuture restoreVolumeSna * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * RestoreVolumeSnapshotRequest request = - * RestoreVolumeSnapshotRequest.newBuilder() - * .setVolumeSnapshot( - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - * .toString()) - * .build(); - * VolumeSnapshot response = bareMetalSolutionClient.restoreVolumeSnapshotAsync(request).get(); + * String name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString(); + * Network response = bareMetalSolutionClient.getNetwork(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture restoreVolumeSnapshotAsync( - RestoreVolumeSnapshotRequest request) { - return restoreVolumeSnapshotOperationCallable().futureCall(request); + public final Network getNetwork(String name) { + GetNetworkRequest request = GetNetworkRequest.newBuilder().setName(name).build(); + return getNetwork(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restore a storage volume snapshot to its containing volume. + * Get details of a single network. * *

Sample code: * @@ -1955,27 +1917,24 @@ public final OperationFuture restoreVolumeSna * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * RestoreVolumeSnapshotRequest request = - * RestoreVolumeSnapshotRequest.newBuilder() - * .setVolumeSnapshot( - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - * .toString()) + * GetNetworkRequest request = + * GetNetworkRequest.newBuilder() + * .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) * .build(); - * OperationFuture future = - * bareMetalSolutionClient.restoreVolumeSnapshotOperationCallable().futureCall(request); - * // Do something. - * VolumeSnapshot response = future.get(); + * Network response = bareMetalSolutionClient.getNetwork(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationCallable - restoreVolumeSnapshotOperationCallable() { - return stub.restoreVolumeSnapshotOperationCallable(); + public final Network getNetwork(GetNetworkRequest request) { + return getNetworkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Restore a storage volume snapshot to its containing volume. + * Get details of a single network. * *

Sample code: * @@ -1983,27 +1942,23 @@ public final OperationFuture restoreVolumeSna * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * RestoreVolumeSnapshotRequest request = - * RestoreVolumeSnapshotRequest.newBuilder() - * .setVolumeSnapshot( - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - * .toString()) + * GetNetworkRequest request = + * GetNetworkRequest.newBuilder() + * .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) * .build(); - * ApiFuture future = - * bareMetalSolutionClient.restoreVolumeSnapshotCallable().futureCall(request); + * ApiFuture future = bareMetalSolutionClient.getNetworkCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * Network response = future.get(); * } * } */ - public final UnaryCallable - restoreVolumeSnapshotCallable() { - return stub.restoreVolumeSnapshotCallable(); + public final UnaryCallable getNetworkCallable() { + return stub.getNetworkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a storage volume snapshot for a given volume. + * Update details of a single network. * *

Sample code: * @@ -2011,26 +1966,29 @@ public final OperationFuture restoreVolumeSna * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * VolumeSnapshotName name = - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"); - * bareMetalSolutionClient.deleteVolumeSnapshot(name); + * Network network = Network.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * Network response = bareMetalSolutionClient.updateNetworkAsync(network, updateMask).get(); * } * } * - * @param name Required. The name of the snapshot to delete. + * @param network Required. The network to update. + *

The `name` field is used to identify the instance to update. Format: + * projects/{project}/locations/{location}/networks/{network} + * @param updateMask The list of fields to update. The only currently supported fields are: + * `labels`, `reservations` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteVolumeSnapshot(VolumeSnapshotName name) { - DeleteVolumeSnapshotRequest request = - DeleteVolumeSnapshotRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteVolumeSnapshot(request); + public final OperationFuture updateNetworkAsync( + Network network, FieldMask updateMask) { + UpdateNetworkRequest request = + UpdateNetworkRequest.newBuilder().setNetwork(network).setUpdateMask(updateMask).build(); + return updateNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a storage volume snapshot for a given volume. + * Update details of a single network. * *

Sample code: * @@ -2038,24 +1996,26 @@ public final void deleteVolumeSnapshot(VolumeSnapshotName name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String name = - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]").toString(); - * bareMetalSolutionClient.deleteVolumeSnapshot(name); + * UpdateNetworkRequest request = + * UpdateNetworkRequest.newBuilder() + * .setNetwork(Network.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * Network response = bareMetalSolutionClient.updateNetworkAsync(request).get(); * } * } * - * @param name Required. The name of the snapshot to delete. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteVolumeSnapshot(String name) { - DeleteVolumeSnapshotRequest request = - DeleteVolumeSnapshotRequest.newBuilder().setName(name).build(); - deleteVolumeSnapshot(request); + public final OperationFuture updateNetworkAsync( + UpdateNetworkRequest request) { + return updateNetworkOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a storage volume snapshot for a given volume. + * Update details of a single network. * *

Sample code: * @@ -2063,26 +2023,26 @@ public final void deleteVolumeSnapshot(String name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * DeleteVolumeSnapshotRequest request = - * DeleteVolumeSnapshotRequest.newBuilder() - * .setName( - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - * .toString()) + * UpdateNetworkRequest request = + * UpdateNetworkRequest.newBuilder() + * .setNetwork(Network.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * bareMetalSolutionClient.deleteVolumeSnapshot(request); + * OperationFuture future = + * bareMetalSolutionClient.updateNetworkOperationCallable().futureCall(request); + * // Do something. + * Network response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteVolumeSnapshot(DeleteVolumeSnapshotRequest request) { - deleteVolumeSnapshotCallable().call(request); + public final OperationCallable + updateNetworkOperationCallable() { + return stub.updateNetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a storage volume snapshot for a given volume. + * Update details of a single network. * *

Sample code: * @@ -2090,26 +2050,25 @@ public final void deleteVolumeSnapshot(DeleteVolumeSnapshotRequest request) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * DeleteVolumeSnapshotRequest request = - * DeleteVolumeSnapshotRequest.newBuilder() - * .setName( - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - * .toString()) + * UpdateNetworkRequest request = + * UpdateNetworkRequest.newBuilder() + * .setNetwork(Network.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * bareMetalSolutionClient.deleteVolumeSnapshotCallable().futureCall(request); + * ApiFuture future = + * bareMetalSolutionClient.updateNetworkCallable().futureCall(request); * // Do something. - * future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable deleteVolumeSnapshotCallable() { - return stub.deleteVolumeSnapshotCallable(); + public final UnaryCallable updateNetworkCallable() { + return stub.updateNetworkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage volume snapshot. + * Get details of a single storage logical unit number(LUN). * *

Sample code: * @@ -2117,26 +2076,23 @@ public final UnaryCallable deleteVolumeSnaps * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * VolumeSnapshotName name = - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"); - * VolumeSnapshot response = bareMetalSolutionClient.getVolumeSnapshot(name); + * LunName name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + * Lun response = bareMetalSolutionClient.getLun(name); * } * } * * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VolumeSnapshot getVolumeSnapshot(VolumeSnapshotName name) { - GetVolumeSnapshotRequest request = - GetVolumeSnapshotRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getVolumeSnapshot(request); + public final Lun getLun(LunName name) { + GetLunRequest request = + GetLunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getLun(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage volume snapshot. + * Get details of a single storage logical unit number(LUN). * *

Sample code: * @@ -2144,23 +2100,22 @@ public final VolumeSnapshot getVolumeSnapshot(VolumeSnapshotName name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String name = - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]").toString(); - * VolumeSnapshot response = bareMetalSolutionClient.getVolumeSnapshot(name); + * String name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString(); + * Lun response = bareMetalSolutionClient.getLun(name); * } * } * * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VolumeSnapshot getVolumeSnapshot(String name) { - GetVolumeSnapshotRequest request = GetVolumeSnapshotRequest.newBuilder().setName(name).build(); - return getVolumeSnapshot(request); + public final Lun getLun(String name) { + GetLunRequest request = GetLunRequest.newBuilder().setName(name).build(); + return getLun(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage volume snapshot. + * Get details of a single storage logical unit number(LUN). * *

Sample code: * @@ -2168,26 +2123,24 @@ public final VolumeSnapshot getVolumeSnapshot(String name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * GetVolumeSnapshotRequest request = - * GetVolumeSnapshotRequest.newBuilder() - * .setName( - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - * .toString()) + * GetLunRequest request = + * GetLunRequest.newBuilder() + * .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) * .build(); - * VolumeSnapshot response = bareMetalSolutionClient.getVolumeSnapshot(request); + * Lun response = bareMetalSolutionClient.getLun(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VolumeSnapshot getVolumeSnapshot(GetVolumeSnapshotRequest request) { - return getVolumeSnapshotCallable().call(request); + public final Lun getLun(GetLunRequest request) { + return getLunCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage volume snapshot. + * Get details of a single storage logical unit number(LUN). * *

Sample code: * @@ -2195,26 +2148,23 @@ public final VolumeSnapshot getVolumeSnapshot(GetVolumeSnapshotRequest request) * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * GetVolumeSnapshotRequest request = - * GetVolumeSnapshotRequest.newBuilder() - * .setName( - * VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - * .toString()) + * GetLunRequest request = + * GetLunRequest.newBuilder() + * .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) * .build(); - * ApiFuture future = - * bareMetalSolutionClient.getVolumeSnapshotCallable().futureCall(request); + * ApiFuture future = bareMetalSolutionClient.getLunCallable().futureCall(request); * // Do something. - * VolumeSnapshot response = future.get(); + * Lun response = future.get(); * } * } */ - public final UnaryCallable getVolumeSnapshotCallable() { - return stub.getVolumeSnapshotCallable(); + public final UnaryCallable getLunCallable() { + return stub.getLunCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volume snapshots for given storage volume. + * List storage volume luns for given storage volume. * *

Sample code: * @@ -2223,27 +2173,24 @@ public final UnaryCallable getVolumeSn * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { * VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - * for (VolumeSnapshot element : - * bareMetalSolutionClient.listVolumeSnapshots(parent).iterateAll()) { + * for (Lun element : bareMetalSolutionClient.listLuns(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Parent value for ListVolumesRequest. + * @param parent Required. Parent value for ListLunsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots(VolumeName parent) { - ListVolumeSnapshotsRequest request = - ListVolumeSnapshotsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listVolumeSnapshots(request); + public final ListLunsPagedResponse listLuns(VolumeName parent) { + ListLunsRequest request = + ListLunsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listLuns(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volume snapshots for given storage volume. + * List storage volume luns for given storage volume. * *

Sample code: * @@ -2252,25 +2199,23 @@ public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots(VolumeName par * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { * String parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); - * for (VolumeSnapshot element : - * bareMetalSolutionClient.listVolumeSnapshots(parent).iterateAll()) { + * for (Lun element : bareMetalSolutionClient.listLuns(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Parent value for ListVolumesRequest. + * @param parent Required. Parent value for ListLunsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots(String parent) { - ListVolumeSnapshotsRequest request = - ListVolumeSnapshotsRequest.newBuilder().setParent(parent).build(); - return listVolumeSnapshots(request); + public final ListLunsPagedResponse listLuns(String parent) { + ListLunsRequest request = ListLunsRequest.newBuilder().setParent(parent).build(); + return listLuns(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volume snapshots for given storage volume. + * List storage volume luns for given storage volume. * *

Sample code: * @@ -2278,14 +2223,13 @@ public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots(String parent) * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListVolumeSnapshotsRequest request = - * ListVolumeSnapshotsRequest.newBuilder() + * ListLunsRequest request = + * ListLunsRequest.newBuilder() * .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (VolumeSnapshot element : - * bareMetalSolutionClient.listVolumeSnapshots(request).iterateAll()) { + * for (Lun element : bareMetalSolutionClient.listLuns(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2294,14 +2238,13 @@ public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots(String parent) * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots( - ListVolumeSnapshotsRequest request) { - return listVolumeSnapshotsPagedCallable().call(request); + public final ListLunsPagedResponse listLuns(ListLunsRequest request) { + return listLunsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volume snapshots for given storage volume. + * List storage volume luns for given storage volume. * *

Sample code: * @@ -2309,29 +2252,27 @@ public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListVolumeSnapshotsRequest request = - * ListVolumeSnapshotsRequest.newBuilder() + * ListLunsRequest request = + * ListLunsRequest.newBuilder() * .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * bareMetalSolutionClient.listVolumeSnapshotsPagedCallable().futureCall(request); + * ApiFuture future = bareMetalSolutionClient.listLunsPagedCallable().futureCall(request); * // Do something. - * for (VolumeSnapshot element : future.get().iterateAll()) { + * for (Lun element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listVolumeSnapshotsPagedCallable() { - return stub.listVolumeSnapshotsPagedCallable(); + public final UnaryCallable listLunsPagedCallable() { + return stub.listLunsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volume snapshots for given storage volume. + * List storage volume luns for given storage volume. * *

Sample code: * @@ -2339,16 +2280,15 @@ public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListVolumeSnapshotsRequest request = - * ListVolumeSnapshotsRequest.newBuilder() + * ListLunsRequest request = + * ListLunsRequest.newBuilder() * .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListVolumeSnapshotsResponse response = - * bareMetalSolutionClient.listVolumeSnapshotsCallable().call(request); - * for (VolumeSnapshot element : response.getVolumeSnapshotsList()) { + * ListLunsResponse response = bareMetalSolutionClient.listLunsCallable().call(request); + * for (Lun element : response.getLunsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2361,14 +2301,13 @@ public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots( * } * } */ - public final UnaryCallable - listVolumeSnapshotsCallable() { - return stub.listVolumeSnapshotsCallable(); + public final UnaryCallable listLunsCallable() { + return stub.listLunsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage logical unit number(LUN). + * Get details of a single NFS share. * *

Sample code: * @@ -2376,23 +2315,23 @@ public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots( * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * LunName name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); - * Lun response = bareMetalSolutionClient.getLun(name); + * NFSShareName name = NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"); + * NfsShare response = bareMetalSolutionClient.getNfsShare(name); * } * } * * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Lun getLun(LunName name) { - GetLunRequest request = - GetLunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getLun(request); + public final NfsShare getNfsShare(NFSShareName name) { + GetNfsShareRequest request = + GetNfsShareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getNfsShare(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage logical unit number(LUN). + * Get details of a single NFS share. * *

Sample code: * @@ -2400,22 +2339,22 @@ public final Lun getLun(LunName name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString(); - * Lun response = bareMetalSolutionClient.getLun(name); + * String name = NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString(); + * NfsShare response = bareMetalSolutionClient.getNfsShare(name); * } * } * * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Lun getLun(String name) { - GetLunRequest request = GetLunRequest.newBuilder().setName(name).build(); - return getLun(request); + public final NfsShare getNfsShare(String name) { + GetNfsShareRequest request = GetNfsShareRequest.newBuilder().setName(name).build(); + return getNfsShare(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage logical unit number(LUN). + * Get details of a single NFS share. * *

Sample code: * @@ -2423,24 +2362,24 @@ public final Lun getLun(String name) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * GetLunRequest request = - * GetLunRequest.newBuilder() - * .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + * GetNfsShareRequest request = + * GetNfsShareRequest.newBuilder() + * .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) * .build(); - * Lun response = bareMetalSolutionClient.getLun(request); + * NfsShare response = bareMetalSolutionClient.getNfsShare(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Lun getLun(GetLunRequest request) { - return getLunCallable().call(request); + public final NfsShare getNfsShare(GetNfsShareRequest request) { + return getNfsShareCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get details of a single storage logical unit number(LUN). + * Get details of a single NFS share. * *

Sample code: * @@ -2448,23 +2387,24 @@ public final Lun getLun(GetLunRequest request) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * GetLunRequest request = - * GetLunRequest.newBuilder() - * .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + * GetNfsShareRequest request = + * GetNfsShareRequest.newBuilder() + * .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) * .build(); - * ApiFuture future = bareMetalSolutionClient.getLunCallable().futureCall(request); + * ApiFuture future = + * bareMetalSolutionClient.getNfsShareCallable().futureCall(request); * // Do something. - * Lun response = future.get(); + * NfsShare response = future.get(); * } * } */ - public final UnaryCallable getLunCallable() { - return stub.getLunCallable(); + public final UnaryCallable getNfsShareCallable() { + return stub.getNfsShareCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volume luns for given storage volume. + * List NFS shares. * *

Sample code: * @@ -2472,25 +2412,27 @@ public final UnaryCallable getLunCallable() { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - * for (Lun element : bareMetalSolutionClient.listLuns(parent).iterateAll()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (NfsShare element : bareMetalSolutionClient.listNfsShares(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Parent value for ListLunsRequest. + * @param parent Required. Parent value for ListNfsSharesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLunsPagedResponse listLuns(VolumeName parent) { - ListLunsRequest request = - ListLunsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listLuns(request); + public final ListNfsSharesPagedResponse listNfsShares(LocationName parent) { + ListNfsSharesRequest request = + ListNfsSharesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listNfsShares(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volume luns for given storage volume. + * List NFS shares. * *

Sample code: * @@ -2498,24 +2440,24 @@ public final ListLunsPagedResponse listLuns(VolumeName parent) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * String parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); - * for (Lun element : bareMetalSolutionClient.listLuns(parent).iterateAll()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (NfsShare element : bareMetalSolutionClient.listNfsShares(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Parent value for ListLunsRequest. + * @param parent Required. Parent value for ListNfsSharesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLunsPagedResponse listLuns(String parent) { - ListLunsRequest request = ListLunsRequest.newBuilder().setParent(parent).build(); - return listLuns(request); + public final ListNfsSharesPagedResponse listNfsShares(String parent) { + ListNfsSharesRequest request = ListNfsSharesRequest.newBuilder().setParent(parent).build(); + return listNfsShares(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volume luns for given storage volume. + * List NFS shares. * *

Sample code: * @@ -2523,13 +2465,14 @@ public final ListLunsPagedResponse listLuns(String parent) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListLunsRequest request = - * ListLunsRequest.newBuilder() - * .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + * ListNfsSharesRequest request = + * ListNfsSharesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * for (Lun element : bareMetalSolutionClient.listLuns(request).iterateAll()) { + * for (NfsShare element : bareMetalSolutionClient.listNfsShares(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2538,13 +2481,13 @@ public final ListLunsPagedResponse listLuns(String parent) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLunsPagedResponse listLuns(ListLunsRequest request) { - return listLunsPagedCallable().call(request); + public final ListNfsSharesPagedResponse listNfsShares(ListNfsSharesRequest request) { + return listNfsSharesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volume luns for given storage volume. + * List NFS shares. * *

Sample code: * @@ -2552,27 +2495,30 @@ public final ListLunsPagedResponse listLuns(ListLunsRequest request) { * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListLunsRequest request = - * ListLunsRequest.newBuilder() - * .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + * ListNfsSharesRequest request = + * ListNfsSharesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = bareMetalSolutionClient.listLunsPagedCallable().futureCall(request); + * ApiFuture future = + * bareMetalSolutionClient.listNfsSharesPagedCallable().futureCall(request); * // Do something. - * for (Lun element : future.get().iterateAll()) { + * for (NfsShare element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable listLunsPagedCallable() { - return stub.listLunsPagedCallable(); + public final UnaryCallable + listNfsSharesPagedCallable() { + return stub.listNfsSharesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List storage volume luns for given storage volume. + * List NFS shares. * *

Sample code: * @@ -2580,15 +2526,17 @@ public final UnaryCallable listLunsPaged * // This snippet has been automatically generated for illustrative purposes only. * // It may require modifications to work in your environment. * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { - * ListLunsRequest request = - * ListLunsRequest.newBuilder() - * .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + * ListNfsSharesRequest request = + * ListNfsSharesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListLunsResponse response = bareMetalSolutionClient.listLunsCallable().call(request); - * for (Lun element : response.getLunsList()) { + * ListNfsSharesResponse response = + * bareMetalSolutionClient.listNfsSharesCallable().call(request); + * for (NfsShare element : response.getNfsSharesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2601,8 +2549,118 @@ public final UnaryCallable listLunsPaged * } * } */ - public final UnaryCallable listLunsCallable() { - return stub.listLunsCallable(); + public final UnaryCallable listNfsSharesCallable() { + return stub.listNfsSharesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single NFS share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
+   *   NfsShare nfsShare = NfsShare.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   NfsShare response = bareMetalSolutionClient.updateNfsShareAsync(nfsShare, updateMask).get();
+   * }
+   * }
+ * + * @param nfsShare Required. The NFS share to update. + *

The `name` field is used to identify the NFS share to update. Format: + * projects/{project}/locations/{location}/nfsShares/{nfs_share} + * @param updateMask The list of fields to update. The only currently supported fields are: + * `labels` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateNfsShareAsync( + NfsShare nfsShare, FieldMask updateMask) { + UpdateNfsShareRequest request = + UpdateNfsShareRequest.newBuilder().setNfsShare(nfsShare).setUpdateMask(updateMask).build(); + return updateNfsShareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single NFS share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
+   *   UpdateNfsShareRequest request =
+   *       UpdateNfsShareRequest.newBuilder()
+   *           .setNfsShare(NfsShare.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   NfsShare response = bareMetalSolutionClient.updateNfsShareAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateNfsShareAsync( + UpdateNfsShareRequest request) { + return updateNfsShareOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single NFS share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
+   *   UpdateNfsShareRequest request =
+   *       UpdateNfsShareRequest.newBuilder()
+   *           .setNfsShare(NfsShare.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       bareMetalSolutionClient.updateNfsShareOperationCallable().futureCall(request);
+   *   // Do something.
+   *   NfsShare response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateNfsShareOperationCallable() { + return stub.updateNfsShareOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single NFS share. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
+   *   UpdateNfsShareRequest request =
+   *       UpdateNfsShareRequest.newBuilder()
+   *           .setNfsShare(NfsShare.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       bareMetalSolutionClient.updateNfsShareCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateNfsShareCallable() { + return stub.updateNfsShareCallable(); } @Override @@ -2637,10 +2695,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListInstancesPagedResponse extends AbstractPagedListResponse< - ListInstancesRequest, - ListInstancesResponse, - Instance, - ListInstancesPage, + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, ListInstancesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2690,10 +2745,7 @@ public ApiFuture createPageAsync( public static class ListInstancesFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstancesRequest, - ListInstancesResponse, - Instance, - ListInstancesPage, + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, ListInstancesFixedSizeCollection> { private ListInstancesFixedSizeCollection(List pages, int collectionSize) { @@ -2713,10 +2765,7 @@ protected ListInstancesFixedSizeCollection createCollection( public static class ListVolumesPagedResponse extends AbstractPagedListResponse< - ListVolumesRequest, - ListVolumesResponse, - Volume, - ListVolumesPage, + ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, ListVolumesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2763,10 +2812,7 @@ public ApiFuture createPageAsync( public static class ListVolumesFixedSizeCollection extends AbstractFixedSizeCollection< - ListVolumesRequest, - ListVolumesResponse, - Volume, - ListVolumesPage, + ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, ListVolumesFixedSizeCollection> { private ListVolumesFixedSizeCollection(List pages, int collectionSize) { @@ -2786,10 +2832,7 @@ protected ListVolumesFixedSizeCollection createCollection( public static class ListNetworksPagedResponse extends AbstractPagedListResponse< - ListNetworksRequest, - ListNetworksResponse, - Network, - ListNetworksPage, + ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, ListNetworksFixedSizeCollection> { public static ApiFuture createAsync( @@ -2838,10 +2881,7 @@ public ApiFuture createPageAsync( public static class ListNetworksFixedSizeCollection extends AbstractFixedSizeCollection< - ListNetworksRequest, - ListNetworksResponse, - Network, - ListNetworksPage, + ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, ListNetworksFixedSizeCollection> { private ListNetworksFixedSizeCollection(List pages, int collectionSize) { @@ -2859,247 +2899,136 @@ protected ListNetworksFixedSizeCollection createCollection( } } - public static class ListSnapshotSchedulePoliciesPagedResponse + public static class ListLunsPagedResponse extends AbstractPagedListResponse< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - SnapshotSchedulePolicy, - ListSnapshotSchedulePoliciesPage, - ListSnapshotSchedulePoliciesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - SnapshotSchedulePolicy> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListSnapshotSchedulePoliciesPage.createEmptyPage() - .createPageAsync(context, futureResponse); + ListLunsRequest, ListLunsResponse, Lun, ListLunsPage, ListLunsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLunsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - input -> new ListSnapshotSchedulePoliciesPagedResponse(input), - MoreExecutors.directExecutor()); + futurePage, input -> new ListLunsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListSnapshotSchedulePoliciesPagedResponse(ListSnapshotSchedulePoliciesPage page) { - super(page, ListSnapshotSchedulePoliciesFixedSizeCollection.createEmptyCollection()); + private ListLunsPagedResponse(ListLunsPage page) { + super(page, ListLunsFixedSizeCollection.createEmptyCollection()); } } - public static class ListSnapshotSchedulePoliciesPage - extends AbstractPage< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - SnapshotSchedulePolicy, - ListSnapshotSchedulePoliciesPage> { - - private ListSnapshotSchedulePoliciesPage( - PageContext< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - SnapshotSchedulePolicy> - context, - ListSnapshotSchedulePoliciesResponse response) { + public static class ListLunsPage + extends AbstractPage { + + private ListLunsPage( + PageContext context, ListLunsResponse response) { super(context, response); } - private static ListSnapshotSchedulePoliciesPage createEmptyPage() { - return new ListSnapshotSchedulePoliciesPage(null, null); + private static ListLunsPage createEmptyPage() { + return new ListLunsPage(null, null); } @Override - protected ListSnapshotSchedulePoliciesPage createPage( - PageContext< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - SnapshotSchedulePolicy> - context, - ListSnapshotSchedulePoliciesResponse response) { - return new ListSnapshotSchedulePoliciesPage(context, response); + protected ListLunsPage createPage( + PageContext context, ListLunsResponse response) { + return new ListLunsPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - SnapshotSchedulePolicy> - context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListSnapshotSchedulePoliciesFixedSizeCollection + public static class ListLunsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - SnapshotSchedulePolicy, - ListSnapshotSchedulePoliciesPage, - ListSnapshotSchedulePoliciesFixedSizeCollection> { - - private ListSnapshotSchedulePoliciesFixedSizeCollection( - List pages, int collectionSize) { + ListLunsRequest, ListLunsResponse, Lun, ListLunsPage, ListLunsFixedSizeCollection> { + + private ListLunsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } - private static ListSnapshotSchedulePoliciesFixedSizeCollection createEmptyCollection() { - return new ListSnapshotSchedulePoliciesFixedSizeCollection(null, 0); + private static ListLunsFixedSizeCollection createEmptyCollection() { + return new ListLunsFixedSizeCollection(null, 0); } @Override - protected ListSnapshotSchedulePoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListSnapshotSchedulePoliciesFixedSizeCollection(pages, collectionSize); + protected ListLunsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLunsFixedSizeCollection(pages, collectionSize); } } - public static class ListVolumeSnapshotsPagedResponse + public static class ListNfsSharesPagedResponse extends AbstractPagedListResponse< - ListVolumeSnapshotsRequest, - ListVolumeSnapshotsResponse, - VolumeSnapshot, - ListVolumeSnapshotsPage, - ListVolumeSnapshotsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListVolumeSnapshotsPage.createEmptyPage().createPageAsync(context, futureResponse); + ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, + ListNfsSharesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListNfsSharesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListVolumeSnapshotsPagedResponse(input), + input -> new ListNfsSharesPagedResponse(input), MoreExecutors.directExecutor()); } - private ListVolumeSnapshotsPagedResponse(ListVolumeSnapshotsPage page) { - super(page, ListVolumeSnapshotsFixedSizeCollection.createEmptyCollection()); + private ListNfsSharesPagedResponse(ListNfsSharesPage page) { + super(page, ListNfsSharesFixedSizeCollection.createEmptyCollection()); } } - public static class ListVolumeSnapshotsPage + public static class ListNfsSharesPage extends AbstractPage< - ListVolumeSnapshotsRequest, - ListVolumeSnapshotsResponse, - VolumeSnapshot, - ListVolumeSnapshotsPage> { - - private ListVolumeSnapshotsPage( - PageContext - context, - ListVolumeSnapshotsResponse response) { - super(context, response); - } - - private static ListVolumeSnapshotsPage createEmptyPage() { - return new ListVolumeSnapshotsPage(null, null); - } - - @Override - protected ListVolumeSnapshotsPage createPage( - PageContext - context, - ListVolumeSnapshotsResponse response) { - return new ListVolumeSnapshotsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListVolumeSnapshotsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListVolumeSnapshotsRequest, - ListVolumeSnapshotsResponse, - VolumeSnapshot, - ListVolumeSnapshotsPage, - ListVolumeSnapshotsFixedSizeCollection> { - - private ListVolumeSnapshotsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListVolumeSnapshotsFixedSizeCollection createEmptyCollection() { - return new ListVolumeSnapshotsFixedSizeCollection(null, 0); - } - - @Override - protected ListVolumeSnapshotsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListVolumeSnapshotsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListLunsPagedResponse - extends AbstractPagedListResponse< - ListLunsRequest, ListLunsResponse, Lun, ListLunsPage, ListLunsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListLunsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListLunsPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListLunsPagedResponse(ListLunsPage page) { - super(page, ListLunsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListLunsPage - extends AbstractPage { + ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage> { - private ListLunsPage( - PageContext context, ListLunsResponse response) { + private ListNfsSharesPage( + PageContext context, + ListNfsSharesResponse response) { super(context, response); } - private static ListLunsPage createEmptyPage() { - return new ListLunsPage(null, null); + private static ListNfsSharesPage createEmptyPage() { + return new ListNfsSharesPage(null, null); } @Override - protected ListLunsPage createPage( - PageContext context, ListLunsResponse response) { - return new ListLunsPage(context, response); + protected ListNfsSharesPage createPage( + PageContext context, + ListNfsSharesResponse response) { + return new ListNfsSharesPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListLunsFixedSizeCollection + public static class ListNfsSharesFixedSizeCollection extends AbstractFixedSizeCollection< - ListLunsRequest, ListLunsResponse, Lun, ListLunsPage, ListLunsFixedSizeCollection> { + ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, + ListNfsSharesFixedSizeCollection> { - private ListLunsFixedSizeCollection(List pages, int collectionSize) { + private ListNfsSharesFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); } - private static ListLunsFixedSizeCollection createEmptyCollection() { - return new ListLunsFixedSizeCollection(null, 0); + private static ListNfsSharesFixedSizeCollection createEmptyCollection() { + return new ListNfsSharesFixedSizeCollection(null, 0); } @Override - protected ListLunsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListLunsFixedSizeCollection(pages, collectionSize); + protected ListNfsSharesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListNfsSharesFixedSizeCollection(pages, collectionSize); } } } diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java similarity index 63% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java index ce3f297..3c28ef9 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java @@ -19,8 +19,7 @@ import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListInstancesPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListLunsPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNetworksPagedResponse; -import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListSnapshotSchedulePoliciesPagedResponse; -import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumeSnapshotsPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNfsSharesPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumesPagedResponse; import com.google.api.core.ApiFunction; @@ -33,11 +32,11 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.baremetalsolution.v2.stub.BareMetalSolutionStubSettings; import com.google.longrunning.Operation; -import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -49,10 +48,10 @@ *

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

    - *
  • The default service address (baremetalsolution.googleapis.com) and default port (443) are + *
  • The default service address (baremetalsolution.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. + *
  • 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 @@ -91,6 +90,17 @@ public UnaryCallSettings getInstanceSettings() { return ((BareMetalSolutionStubSettings) getStubSettings()).getInstanceSettings(); } + /** Returns the object with the settings used for calls to updateInstance. */ + public UnaryCallSettings updateInstanceSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).updateInstanceSettings(); + } + + /** Returns the object with the settings used for calls to updateInstance. */ + public OperationCallSettings + updateInstanceOperationSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).updateInstanceOperationSettings(); + } + /** Returns the object with the settings used for calls to resetInstance. */ public UnaryCallSettings resetInstanceSettings() { return ((BareMetalSolutionStubSettings) getStubSettings()).resetInstanceSettings(); @@ -102,6 +112,39 @@ public UnaryCallSettings resetInstanceSettings( return ((BareMetalSolutionStubSettings) getStubSettings()).resetInstanceOperationSettings(); } + /** Returns the object with the settings used for calls to startInstance. */ + public UnaryCallSettings startInstanceSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).startInstanceSettings(); + } + + /** Returns the object with the settings used for calls to startInstance. */ + public OperationCallSettings + startInstanceOperationSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).startInstanceOperationSettings(); + } + + /** Returns the object with the settings used for calls to stopInstance. */ + public UnaryCallSettings stopInstanceSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).stopInstanceSettings(); + } + + /** Returns the object with the settings used for calls to stopInstance. */ + public OperationCallSettings + stopInstanceOperationSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).stopInstanceOperationSettings(); + } + + /** Returns the object with the settings used for calls to detachLun. */ + public UnaryCallSettings detachLunSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).detachLunSettings(); + } + + /** Returns the object with the settings used for calls to detachLun. */ + public OperationCallSettings + detachLunOperationSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).detachLunOperationSettings(); + } + /** Returns the object with the settings used for calls to listVolumes. */ public PagedCallSettings listVolumesSettings() { @@ -124,99 +167,76 @@ public UnaryCallSettings updateVolumeSettings() return ((BareMetalSolutionStubSettings) getStubSettings()).updateVolumeOperationSettings(); } + /** Returns the object with the settings used for calls to resizeVolume. */ + public UnaryCallSettings resizeVolumeSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).resizeVolumeSettings(); + } + + /** Returns the object with the settings used for calls to resizeVolume. */ + public OperationCallSettings + resizeVolumeOperationSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).resizeVolumeOperationSettings(); + } + /** Returns the object with the settings used for calls to listNetworks. */ public PagedCallSettings listNetworksSettings() { return ((BareMetalSolutionStubSettings) getStubSettings()).listNetworksSettings(); } + /** Returns the object with the settings used for calls to listNetworkUsage. */ + public UnaryCallSettings + listNetworkUsageSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).listNetworkUsageSettings(); + } + /** Returns the object with the settings used for calls to getNetwork. */ public UnaryCallSettings getNetworkSettings() { return ((BareMetalSolutionStubSettings) getStubSettings()).getNetworkSettings(); } - /** Returns the object with the settings used for calls to listSnapshotSchedulePolicies. */ - public PagedCallSettings< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - ListSnapshotSchedulePoliciesPagedResponse> - listSnapshotSchedulePoliciesSettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()) - .listSnapshotSchedulePoliciesSettings(); - } - - /** Returns the object with the settings used for calls to getSnapshotSchedulePolicy. */ - public UnaryCallSettings - getSnapshotSchedulePolicySettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()).getSnapshotSchedulePolicySettings(); + /** Returns the object with the settings used for calls to updateNetwork. */ + public UnaryCallSettings updateNetworkSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).updateNetworkSettings(); } - /** Returns the object with the settings used for calls to createSnapshotSchedulePolicy. */ - public UnaryCallSettings - createSnapshotSchedulePolicySettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()) - .createSnapshotSchedulePolicySettings(); + /** Returns the object with the settings used for calls to updateNetwork. */ + public OperationCallSettings + updateNetworkOperationSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).updateNetworkOperationSettings(); } - /** Returns the object with the settings used for calls to updateSnapshotSchedulePolicy. */ - public UnaryCallSettings - updateSnapshotSchedulePolicySettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()) - .updateSnapshotSchedulePolicySettings(); - } - - /** Returns the object with the settings used for calls to deleteSnapshotSchedulePolicy. */ - public UnaryCallSettings - deleteSnapshotSchedulePolicySettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()) - .deleteSnapshotSchedulePolicySettings(); - } - - /** Returns the object with the settings used for calls to createVolumeSnapshot. */ - public UnaryCallSettings - createVolumeSnapshotSettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()).createVolumeSnapshotSettings(); - } - - /** Returns the object with the settings used for calls to restoreVolumeSnapshot. */ - public UnaryCallSettings - restoreVolumeSnapshotSettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()).restoreVolumeSnapshotSettings(); - } - - /** Returns the object with the settings used for calls to restoreVolumeSnapshot. */ - public OperationCallSettings - restoreVolumeSnapshotOperationSettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()) - .restoreVolumeSnapshotOperationSettings(); + /** Returns the object with the settings used for calls to getLun. */ + public UnaryCallSettings getLunSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).getLunSettings(); } - /** Returns the object with the settings used for calls to deleteVolumeSnapshot. */ - public UnaryCallSettings deleteVolumeSnapshotSettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()).deleteVolumeSnapshotSettings(); + /** Returns the object with the settings used for calls to listLuns. */ + public PagedCallSettings + listLunsSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).listLunsSettings(); } - /** Returns the object with the settings used for calls to getVolumeSnapshot. */ - public UnaryCallSettings getVolumeSnapshotSettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()).getVolumeSnapshotSettings(); + /** Returns the object with the settings used for calls to getNfsShare. */ + public UnaryCallSettings getNfsShareSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).getNfsShareSettings(); } - /** Returns the object with the settings used for calls to listVolumeSnapshots. */ - public PagedCallSettings< - ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse, ListVolumeSnapshotsPagedResponse> - listVolumeSnapshotsSettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()).listVolumeSnapshotsSettings(); + /** Returns the object with the settings used for calls to listNfsShares. */ + public PagedCallSettings + listNfsSharesSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).listNfsSharesSettings(); } - /** Returns the object with the settings used for calls to getLun. */ - public UnaryCallSettings getLunSettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()).getLunSettings(); + /** Returns the object with the settings used for calls to updateNfsShare. */ + public UnaryCallSettings updateNfsShareSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).updateNfsShareSettings(); } - /** Returns the object with the settings used for calls to listLuns. */ - public PagedCallSettings - listLunsSettings() { - return ((BareMetalSolutionStubSettings) getStubSettings()).listLunsSettings(); + /** Returns the object with the settings used for calls to updateNfsShare. */ + public OperationCallSettings + updateNfsShareOperationSettings() { + return ((BareMetalSolutionStubSettings) getStubSettings()).updateNfsShareOperationSettings(); } public static final BareMetalSolutionSettings create(BareMetalSolutionStubSettings stub) @@ -328,6 +348,17 @@ public UnaryCallSettings.Builder getInstanceSettin return getStubSettingsBuilder().getInstanceSettings(); } + /** Returns the builder for the settings used for calls to updateInstance. */ + public UnaryCallSettings.Builder updateInstanceSettings() { + return getStubSettingsBuilder().updateInstanceSettings(); + } + + /** Returns the builder for the settings used for calls to updateInstance. */ + public OperationCallSettings.Builder + updateInstanceOperationSettings() { + return getStubSettingsBuilder().updateInstanceOperationSettings(); + } + /** Returns the builder for the settings used for calls to resetInstance. */ public UnaryCallSettings.Builder resetInstanceSettings() { return getStubSettingsBuilder().resetInstanceSettings(); @@ -340,6 +371,41 @@ public UnaryCallSettings.Builder resetInstanceS return getStubSettingsBuilder().resetInstanceOperationSettings(); } + /** Returns the builder for the settings used for calls to startInstance. */ + public UnaryCallSettings.Builder startInstanceSettings() { + return getStubSettingsBuilder().startInstanceSettings(); + } + + /** Returns the builder for the settings used for calls to startInstance. */ + public OperationCallSettings.Builder< + StartInstanceRequest, StartInstanceResponse, OperationMetadata> + startInstanceOperationSettings() { + return getStubSettingsBuilder().startInstanceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to stopInstance. */ + public UnaryCallSettings.Builder stopInstanceSettings() { + return getStubSettingsBuilder().stopInstanceSettings(); + } + + /** Returns the builder for the settings used for calls to stopInstance. */ + public OperationCallSettings.Builder< + StopInstanceRequest, StopInstanceResponse, OperationMetadata> + stopInstanceOperationSettings() { + return getStubSettingsBuilder().stopInstanceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to detachLun. */ + public UnaryCallSettings.Builder detachLunSettings() { + return getStubSettingsBuilder().detachLunSettings(); + } + + /** Returns the builder for the settings used for calls to detachLun. */ + public OperationCallSettings.Builder + detachLunOperationSettings() { + return getStubSettingsBuilder().detachLunOperationSettings(); + } + /** Returns the builder for the settings used for calls to listVolumes. */ public PagedCallSettings.Builder< ListVolumesRequest, ListVolumesResponse, ListVolumesPagedResponse> @@ -363,6 +429,17 @@ public UnaryCallSettings.Builder updateVolumeSet return getStubSettingsBuilder().updateVolumeOperationSettings(); } + /** Returns the builder for the settings used for calls to resizeVolume. */ + public UnaryCallSettings.Builder resizeVolumeSettings() { + return getStubSettingsBuilder().resizeVolumeSettings(); + } + + /** Returns the builder for the settings used for calls to resizeVolume. */ + public OperationCallSettings.Builder + resizeVolumeOperationSettings() { + return getStubSettingsBuilder().resizeVolumeOperationSettings(); + } + /** Returns the builder for the settings used for calls to listNetworks. */ public PagedCallSettings.Builder< ListNetworksRequest, ListNetworksResponse, ListNetworksPagedResponse> @@ -370,93 +447,60 @@ public UnaryCallSettings.Builder updateVolumeSet return getStubSettingsBuilder().listNetworksSettings(); } + /** Returns the builder for the settings used for calls to listNetworkUsage. */ + public UnaryCallSettings.Builder + listNetworkUsageSettings() { + return getStubSettingsBuilder().listNetworkUsageSettings(); + } + /** Returns the builder for the settings used for calls to getNetwork. */ public UnaryCallSettings.Builder getNetworkSettings() { return getStubSettingsBuilder().getNetworkSettings(); } - /** Returns the builder for the settings used for calls to listSnapshotSchedulePolicies. */ - public PagedCallSettings.Builder< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - ListSnapshotSchedulePoliciesPagedResponse> - listSnapshotSchedulePoliciesSettings() { - return getStubSettingsBuilder().listSnapshotSchedulePoliciesSettings(); - } - - /** Returns the builder for the settings used for calls to getSnapshotSchedulePolicy. */ - public UnaryCallSettings.Builder - getSnapshotSchedulePolicySettings() { - return getStubSettingsBuilder().getSnapshotSchedulePolicySettings(); - } - - /** Returns the builder for the settings used for calls to createSnapshotSchedulePolicy. */ - public UnaryCallSettings.Builder - createSnapshotSchedulePolicySettings() { - return getStubSettingsBuilder().createSnapshotSchedulePolicySettings(); - } - - /** Returns the builder for the settings used for calls to updateSnapshotSchedulePolicy. */ - public UnaryCallSettings.Builder - updateSnapshotSchedulePolicySettings() { - return getStubSettingsBuilder().updateSnapshotSchedulePolicySettings(); - } - - /** Returns the builder for the settings used for calls to deleteSnapshotSchedulePolicy. */ - public UnaryCallSettings.Builder - deleteSnapshotSchedulePolicySettings() { - return getStubSettingsBuilder().deleteSnapshotSchedulePolicySettings(); - } - - /** Returns the builder for the settings used for calls to createVolumeSnapshot. */ - public UnaryCallSettings.Builder - createVolumeSnapshotSettings() { - return getStubSettingsBuilder().createVolumeSnapshotSettings(); + /** Returns the builder for the settings used for calls to updateNetwork. */ + public UnaryCallSettings.Builder updateNetworkSettings() { + return getStubSettingsBuilder().updateNetworkSettings(); } - /** Returns the builder for the settings used for calls to restoreVolumeSnapshot. */ - public UnaryCallSettings.Builder - restoreVolumeSnapshotSettings() { - return getStubSettingsBuilder().restoreVolumeSnapshotSettings(); + /** Returns the builder for the settings used for calls to updateNetwork. */ + public OperationCallSettings.Builder + updateNetworkOperationSettings() { + return getStubSettingsBuilder().updateNetworkOperationSettings(); } - /** Returns the builder for the settings used for calls to restoreVolumeSnapshot. */ - public OperationCallSettings.Builder< - RestoreVolumeSnapshotRequest, VolumeSnapshot, OperationMetadata> - restoreVolumeSnapshotOperationSettings() { - return getStubSettingsBuilder().restoreVolumeSnapshotOperationSettings(); + /** Returns the builder for the settings used for calls to getLun. */ + public UnaryCallSettings.Builder getLunSettings() { + return getStubSettingsBuilder().getLunSettings(); } - /** Returns the builder for the settings used for calls to deleteVolumeSnapshot. */ - public UnaryCallSettings.Builder - deleteVolumeSnapshotSettings() { - return getStubSettingsBuilder().deleteVolumeSnapshotSettings(); + /** Returns the builder for the settings used for calls to listLuns. */ + public PagedCallSettings.Builder + listLunsSettings() { + return getStubSettingsBuilder().listLunsSettings(); } - /** Returns the builder for the settings used for calls to getVolumeSnapshot. */ - public UnaryCallSettings.Builder - getVolumeSnapshotSettings() { - return getStubSettingsBuilder().getVolumeSnapshotSettings(); + /** Returns the builder for the settings used for calls to getNfsShare. */ + public UnaryCallSettings.Builder getNfsShareSettings() { + return getStubSettingsBuilder().getNfsShareSettings(); } - /** Returns the builder for the settings used for calls to listVolumeSnapshots. */ + /** Returns the builder for the settings used for calls to listNfsShares. */ public PagedCallSettings.Builder< - ListVolumeSnapshotsRequest, - ListVolumeSnapshotsResponse, - ListVolumeSnapshotsPagedResponse> - listVolumeSnapshotsSettings() { - return getStubSettingsBuilder().listVolumeSnapshotsSettings(); + ListNfsSharesRequest, ListNfsSharesResponse, ListNfsSharesPagedResponse> + listNfsSharesSettings() { + return getStubSettingsBuilder().listNfsSharesSettings(); } - /** Returns the builder for the settings used for calls to getLun. */ - public UnaryCallSettings.Builder getLunSettings() { - return getStubSettingsBuilder().getLunSettings(); + /** Returns the builder for the settings used for calls to updateNfsShare. */ + public UnaryCallSettings.Builder updateNfsShareSettings() { + return getStubSettingsBuilder().updateNfsShareSettings(); } - /** Returns the builder for the settings used for calls to listLuns. */ - public PagedCallSettings.Builder - listLunsSettings() { - return getStubSettingsBuilder().listLunsSettings(); + /** Returns the builder for the settings used for calls to updateNfsShare. */ + public OperationCallSettings.Builder + updateNfsShareOperationSettings() { + return getStubSettingsBuilder().updateNfsShareOperationSettings(); } @Override diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json similarity index 52% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json index a17a47c..22d1ec4 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json @@ -10,17 +10,8 @@ "grpc": { "libraryClient": "BareMetalSolutionClient", "rpcs": { - "CreateSnapshotSchedulePolicy": { - "methods": ["createSnapshotSchedulePolicy", "createSnapshotSchedulePolicy", "createSnapshotSchedulePolicy", "createSnapshotSchedulePolicyCallable"] - }, - "CreateVolumeSnapshot": { - "methods": ["createVolumeSnapshot", "createVolumeSnapshot", "createVolumeSnapshot", "createVolumeSnapshotCallable"] - }, - "DeleteSnapshotSchedulePolicy": { - "methods": ["deleteSnapshotSchedulePolicy", "deleteSnapshotSchedulePolicy", "deleteSnapshotSchedulePolicy", "deleteSnapshotSchedulePolicyCallable"] - }, - "DeleteVolumeSnapshot": { - "methods": ["deleteVolumeSnapshot", "deleteVolumeSnapshot", "deleteVolumeSnapshot", "deleteVolumeSnapshotCallable"] + "DetachLun": { + "methods": ["detachLunAsync", "detachLunAsync", "detachLunAsync", "detachLunAsync", "detachLunAsync", "detachLunOperationCallable", "detachLunCallable"] }, "GetInstance": { "methods": ["getInstance", "getInstance", "getInstance", "getInstanceCallable"] @@ -31,29 +22,26 @@ "GetNetwork": { "methods": ["getNetwork", "getNetwork", "getNetwork", "getNetworkCallable"] }, - "GetSnapshotSchedulePolicy": { - "methods": ["getSnapshotSchedulePolicy", "getSnapshotSchedulePolicy", "getSnapshotSchedulePolicy", "getSnapshotSchedulePolicyCallable"] + "GetNfsShare": { + "methods": ["getNfsShare", "getNfsShare", "getNfsShare", "getNfsShareCallable"] }, "GetVolume": { "methods": ["getVolume", "getVolume", "getVolume", "getVolumeCallable"] }, - "GetVolumeSnapshot": { - "methods": ["getVolumeSnapshot", "getVolumeSnapshot", "getVolumeSnapshot", "getVolumeSnapshotCallable"] - }, "ListInstances": { "methods": ["listInstances", "listInstances", "listInstances", "listInstancesPagedCallable", "listInstancesCallable"] }, "ListLuns": { "methods": ["listLuns", "listLuns", "listLuns", "listLunsPagedCallable", "listLunsCallable"] }, + "ListNetworkUsage": { + "methods": ["listNetworkUsage", "listNetworkUsage", "listNetworkUsage", "listNetworkUsageCallable"] + }, "ListNetworks": { "methods": ["listNetworks", "listNetworks", "listNetworks", "listNetworksPagedCallable", "listNetworksCallable"] }, - "ListSnapshotSchedulePolicies": { - "methods": ["listSnapshotSchedulePolicies", "listSnapshotSchedulePolicies", "listSnapshotSchedulePolicies", "listSnapshotSchedulePoliciesPagedCallable", "listSnapshotSchedulePoliciesCallable"] - }, - "ListVolumeSnapshots": { - "methods": ["listVolumeSnapshots", "listVolumeSnapshots", "listVolumeSnapshots", "listVolumeSnapshotsPagedCallable", "listVolumeSnapshotsCallable"] + "ListNfsShares": { + "methods": ["listNfsShares", "listNfsShares", "listNfsShares", "listNfsSharesPagedCallable", "listNfsSharesCallable"] }, "ListVolumes": { "methods": ["listVolumes", "listVolumes", "listVolumes", "listVolumesPagedCallable", "listVolumesCallable"] @@ -61,11 +49,23 @@ "ResetInstance": { "methods": ["resetInstanceAsync", "resetInstanceAsync", "resetInstanceAsync", "resetInstanceOperationCallable", "resetInstanceCallable"] }, - "RestoreVolumeSnapshot": { - "methods": ["restoreVolumeSnapshotAsync", "restoreVolumeSnapshotAsync", "restoreVolumeSnapshotAsync", "restoreVolumeSnapshotOperationCallable", "restoreVolumeSnapshotCallable"] + "ResizeVolume": { + "methods": ["resizeVolumeAsync", "resizeVolumeAsync", "resizeVolumeAsync", "resizeVolumeOperationCallable", "resizeVolumeCallable"] + }, + "StartInstance": { + "methods": ["startInstanceAsync", "startInstanceAsync", "startInstanceAsync", "startInstanceOperationCallable", "startInstanceCallable"] + }, + "StopInstance": { + "methods": ["stopInstanceAsync", "stopInstanceAsync", "stopInstanceAsync", "stopInstanceOperationCallable", "stopInstanceCallable"] + }, + "UpdateInstance": { + "methods": ["updateInstanceAsync", "updateInstanceAsync", "updateInstanceOperationCallable", "updateInstanceCallable"] + }, + "UpdateNetwork": { + "methods": ["updateNetworkAsync", "updateNetworkAsync", "updateNetworkOperationCallable", "updateNetworkCallable"] }, - "UpdateSnapshotSchedulePolicy": { - "methods": ["updateSnapshotSchedulePolicy", "updateSnapshotSchedulePolicy", "updateSnapshotSchedulePolicyCallable"] + "UpdateNfsShare": { + "methods": ["updateNfsShareAsync", "updateNfsShareAsync", "updateNfsShareOperationCallable", "updateNfsShareCallable"] }, "UpdateVolume": { "methods": ["updateVolumeAsync", "updateVolumeAsync", "updateVolumeOperationCallable", "updateVolumeCallable"] diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java similarity index 100% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java similarity index 60% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java index b341c32..98f1261 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java @@ -19,50 +19,49 @@ import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListInstancesPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListLunsPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNetworksPagedResponse; -import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListSnapshotSchedulePoliciesPagedResponse; -import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumeSnapshotsPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNfsSharesPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumesPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest; -import com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest; -import com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest; -import com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest; +import com.google.cloud.baremetalsolution.v2.DetachLunRequest; import com.google.cloud.baremetalsolution.v2.GetInstanceRequest; import com.google.cloud.baremetalsolution.v2.GetLunRequest; import com.google.cloud.baremetalsolution.v2.GetNetworkRequest; -import com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest; +import com.google.cloud.baremetalsolution.v2.GetNfsShareRequest; import com.google.cloud.baremetalsolution.v2.GetVolumeRequest; -import com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest; import com.google.cloud.baremetalsolution.v2.Instance; import com.google.cloud.baremetalsolution.v2.ListInstancesRequest; import com.google.cloud.baremetalsolution.v2.ListInstancesResponse; import com.google.cloud.baremetalsolution.v2.ListLunsRequest; import com.google.cloud.baremetalsolution.v2.ListLunsResponse; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse; import com.google.cloud.baremetalsolution.v2.ListNetworksRequest; import com.google.cloud.baremetalsolution.v2.ListNetworksResponse; -import com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest; -import com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse; -import com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest; -import com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse; import com.google.cloud.baremetalsolution.v2.ListVolumesRequest; import com.google.cloud.baremetalsolution.v2.ListVolumesResponse; import com.google.cloud.baremetalsolution.v2.Lun; import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.NfsShare; import com.google.cloud.baremetalsolution.v2.OperationMetadata; import com.google.cloud.baremetalsolution.v2.ResetInstanceRequest; import com.google.cloud.baremetalsolution.v2.ResetInstanceResponse; -import com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest; -import com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy; -import com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest; +import com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest; +import com.google.cloud.baremetalsolution.v2.StartInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StartInstanceResponse; +import com.google.cloud.baremetalsolution.v2.StopInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StopInstanceResponse; +import com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest; +import com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest; +import com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest; import com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest; import com.google.cloud.baremetalsolution.v2.Volume; -import com.google.cloud.baremetalsolution.v2.VolumeSnapshot; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -91,6 +90,15 @@ public UnaryCallable getInstanceCallable() { throw new UnsupportedOperationException("Not implemented: getInstanceCallable()"); } + public OperationCallable + updateInstanceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateInstanceOperationCallable()"); + } + + public UnaryCallable updateInstanceCallable() { + throw new UnsupportedOperationException("Not implemented: updateInstanceCallable()"); + } + public OperationCallable resetInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: resetInstanceOperationCallable()"); @@ -100,6 +108,33 @@ public UnaryCallable resetInstanceCallable() { throw new UnsupportedOperationException("Not implemented: resetInstanceCallable()"); } + public OperationCallable + startInstanceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: startInstanceOperationCallable()"); + } + + public UnaryCallable startInstanceCallable() { + throw new UnsupportedOperationException("Not implemented: startInstanceCallable()"); + } + + public OperationCallable + stopInstanceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: stopInstanceOperationCallable()"); + } + + public UnaryCallable stopInstanceCallable() { + throw new UnsupportedOperationException("Not implemented: stopInstanceCallable()"); + } + + public OperationCallable + detachLunOperationCallable() { + throw new UnsupportedOperationException("Not implemented: detachLunOperationCallable()"); + } + + public UnaryCallable detachLunCallable() { + throw new UnsupportedOperationException("Not implemented: detachLunCallable()"); + } + public UnaryCallable listVolumesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listVolumesPagedCallable()"); } @@ -121,96 +156,73 @@ public UnaryCallable updateVolumeCallable() { throw new UnsupportedOperationException("Not implemented: updateVolumeCallable()"); } - public UnaryCallable listNetworksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listNetworksPagedCallable()"); - } - - public UnaryCallable listNetworksCallable() { - throw new UnsupportedOperationException("Not implemented: listNetworksCallable()"); - } - - public UnaryCallable getNetworkCallable() { - throw new UnsupportedOperationException("Not implemented: getNetworkCallable()"); - } - - public UnaryCallable< - ListSnapshotSchedulePoliciesRequest, ListSnapshotSchedulePoliciesPagedResponse> - listSnapshotSchedulePoliciesPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listSnapshotSchedulePoliciesPagedCallable()"); + public OperationCallable + resizeVolumeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: resizeVolumeOperationCallable()"); } - public UnaryCallable - listSnapshotSchedulePoliciesCallable() { - throw new UnsupportedOperationException( - "Not implemented: listSnapshotSchedulePoliciesCallable()"); + public UnaryCallable resizeVolumeCallable() { + throw new UnsupportedOperationException("Not implemented: resizeVolumeCallable()"); } - public UnaryCallable - getSnapshotSchedulePolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getSnapshotSchedulePolicyCallable()"); + public UnaryCallable listNetworksPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listNetworksPagedCallable()"); } - public UnaryCallable - createSnapshotSchedulePolicyCallable() { - throw new UnsupportedOperationException( - "Not implemented: createSnapshotSchedulePolicyCallable()"); + public UnaryCallable listNetworksCallable() { + throw new UnsupportedOperationException("Not implemented: listNetworksCallable()"); } - public UnaryCallable - updateSnapshotSchedulePolicyCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateSnapshotSchedulePolicyCallable()"); + public UnaryCallable + listNetworkUsageCallable() { + throw new UnsupportedOperationException("Not implemented: listNetworkUsageCallable()"); } - public UnaryCallable - deleteSnapshotSchedulePolicyCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteSnapshotSchedulePolicyCallable()"); + public UnaryCallable getNetworkCallable() { + throw new UnsupportedOperationException("Not implemented: getNetworkCallable()"); } - public UnaryCallable createVolumeSnapshotCallable() { - throw new UnsupportedOperationException("Not implemented: createVolumeSnapshotCallable()"); + public OperationCallable + updateNetworkOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateNetworkOperationCallable()"); } - public OperationCallable - restoreVolumeSnapshotOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: restoreVolumeSnapshotOperationCallable()"); + public UnaryCallable updateNetworkCallable() { + throw new UnsupportedOperationException("Not implemented: updateNetworkCallable()"); } - public UnaryCallable restoreVolumeSnapshotCallable() { - throw new UnsupportedOperationException("Not implemented: restoreVolumeSnapshotCallable()"); + public UnaryCallable getLunCallable() { + throw new UnsupportedOperationException("Not implemented: getLunCallable()"); } - public UnaryCallable deleteVolumeSnapshotCallable() { - throw new UnsupportedOperationException("Not implemented: deleteVolumeSnapshotCallable()"); + public UnaryCallable listLunsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLunsPagedCallable()"); } - public UnaryCallable getVolumeSnapshotCallable() { - throw new UnsupportedOperationException("Not implemented: getVolumeSnapshotCallable()"); + public UnaryCallable listLunsCallable() { + throw new UnsupportedOperationException("Not implemented: listLunsCallable()"); } - public UnaryCallable - listVolumeSnapshotsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listVolumeSnapshotsPagedCallable()"); + public UnaryCallable getNfsShareCallable() { + throw new UnsupportedOperationException("Not implemented: getNfsShareCallable()"); } - public UnaryCallable - listVolumeSnapshotsCallable() { - throw new UnsupportedOperationException("Not implemented: listVolumeSnapshotsCallable()"); + public UnaryCallable + listNfsSharesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listNfsSharesPagedCallable()"); } - public UnaryCallable getLunCallable() { - throw new UnsupportedOperationException("Not implemented: getLunCallable()"); + public UnaryCallable listNfsSharesCallable() { + throw new UnsupportedOperationException("Not implemented: listNfsSharesCallable()"); } - public UnaryCallable listLunsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listLunsPagedCallable()"); + public OperationCallable + updateNfsShareOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateNfsShareOperationCallable()"); } - public UnaryCallable listLunsCallable() { - throw new UnsupportedOperationException("Not implemented: listLunsCallable()"); + public UnaryCallable updateNfsShareCallable() { + throw new UnsupportedOperationException("Not implemented: updateNfsShareCallable()"); } @Override diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java similarity index 60% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java index b0ba065..337ce24 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java @@ -19,8 +19,7 @@ import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListInstancesPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListLunsPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNetworksPagedResponse; -import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListSnapshotSchedulePoliciesPagedResponse; -import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumeSnapshotsPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNfsSharesPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumesPagedResponse; import com.google.api.core.ApiFunction; @@ -49,46 +48,46 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest; -import com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest; -import com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest; -import com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest; +import com.google.cloud.baremetalsolution.v2.DetachLunRequest; import com.google.cloud.baremetalsolution.v2.GetInstanceRequest; import com.google.cloud.baremetalsolution.v2.GetLunRequest; import com.google.cloud.baremetalsolution.v2.GetNetworkRequest; -import com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest; +import com.google.cloud.baremetalsolution.v2.GetNfsShareRequest; import com.google.cloud.baremetalsolution.v2.GetVolumeRequest; -import com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest; import com.google.cloud.baremetalsolution.v2.Instance; import com.google.cloud.baremetalsolution.v2.ListInstancesRequest; import com.google.cloud.baremetalsolution.v2.ListInstancesResponse; import com.google.cloud.baremetalsolution.v2.ListLunsRequest; import com.google.cloud.baremetalsolution.v2.ListLunsResponse; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse; import com.google.cloud.baremetalsolution.v2.ListNetworksRequest; import com.google.cloud.baremetalsolution.v2.ListNetworksResponse; -import com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest; -import com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse; -import com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest; -import com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse; import com.google.cloud.baremetalsolution.v2.ListVolumesRequest; import com.google.cloud.baremetalsolution.v2.ListVolumesResponse; import com.google.cloud.baremetalsolution.v2.Lun; import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.NfsShare; import com.google.cloud.baremetalsolution.v2.OperationMetadata; import com.google.cloud.baremetalsolution.v2.ResetInstanceRequest; import com.google.cloud.baremetalsolution.v2.ResetInstanceResponse; -import com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest; -import com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy; -import com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest; +import com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest; +import com.google.cloud.baremetalsolution.v2.StartInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StartInstanceResponse; +import com.google.cloud.baremetalsolution.v2.StopInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StopInstanceResponse; +import com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest; +import com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest; +import com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest; import com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest; import com.google.cloud.baremetalsolution.v2.Volume; -import com.google.cloud.baremetalsolution.v2.VolumeSnapshot; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; import com.google.longrunning.Operation; -import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -101,10 +100,10 @@ *

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

    - *
  • The default service address (baremetalsolution.googleapis.com) and default port (443) are + *
  • The default service address (baremetalsolution.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. + *
  • 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 @@ -140,49 +139,51 @@ public class BareMetalSolutionStubSettings extends StubSettings listInstancesSettings; private final UnaryCallSettings getInstanceSettings; + private final UnaryCallSettings updateInstanceSettings; + private final OperationCallSettings + updateInstanceOperationSettings; private final UnaryCallSettings resetInstanceSettings; private final OperationCallSettings< ResetInstanceRequest, ResetInstanceResponse, OperationMetadata> resetInstanceOperationSettings; + private final UnaryCallSettings startInstanceSettings; + private final OperationCallSettings< + StartInstanceRequest, StartInstanceResponse, OperationMetadata> + startInstanceOperationSettings; + private final UnaryCallSettings stopInstanceSettings; + private final OperationCallSettings + stopInstanceOperationSettings; + private final UnaryCallSettings detachLunSettings; + private final OperationCallSettings + detachLunOperationSettings; private final PagedCallSettings listVolumesSettings; private final UnaryCallSettings getVolumeSettings; private final UnaryCallSettings updateVolumeSettings; private final OperationCallSettings updateVolumeOperationSettings; + private final UnaryCallSettings resizeVolumeSettings; + private final OperationCallSettings + resizeVolumeOperationSettings; private final PagedCallSettings< ListNetworksRequest, ListNetworksResponse, ListNetworksPagedResponse> listNetworksSettings; + private final UnaryCallSettings + listNetworkUsageSettings; private final UnaryCallSettings getNetworkSettings; - private final PagedCallSettings< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - ListSnapshotSchedulePoliciesPagedResponse> - listSnapshotSchedulePoliciesSettings; - private final UnaryCallSettings - getSnapshotSchedulePolicySettings; - private final UnaryCallSettings - createSnapshotSchedulePolicySettings; - private final UnaryCallSettings - updateSnapshotSchedulePolicySettings; - private final UnaryCallSettings - deleteSnapshotSchedulePolicySettings; - private final UnaryCallSettings - createVolumeSnapshotSettings; - private final UnaryCallSettings - restoreVolumeSnapshotSettings; - private final OperationCallSettings< - RestoreVolumeSnapshotRequest, VolumeSnapshot, OperationMetadata> - restoreVolumeSnapshotOperationSettings; - private final UnaryCallSettings deleteVolumeSnapshotSettings; - private final UnaryCallSettings - getVolumeSnapshotSettings; - private final PagedCallSettings< - ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse, ListVolumeSnapshotsPagedResponse> - listVolumeSnapshotsSettings; + private final UnaryCallSettings updateNetworkSettings; + private final OperationCallSettings + updateNetworkOperationSettings; private final UnaryCallSettings getLunSettings; private final PagedCallSettings listLunsSettings; + private final UnaryCallSettings getNfsShareSettings; + private final PagedCallSettings< + ListNfsSharesRequest, ListNfsSharesResponse, ListNfsSharesPagedResponse> + listNfsSharesSettings; + private final UnaryCallSettings updateNfsShareSettings; + private final OperationCallSettings + updateNfsShareOperationSettings; private static final PagedListDescriptor LIST_INSTANCES_PAGE_STR_DESC = @@ -292,128 +293,75 @@ public Iterable extractResources(ListNetworksResponse payload) { } }; - private static final PagedListDescriptor< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - SnapshotSchedulePolicy> - LIST_SNAPSHOT_SCHEDULE_POLICIES_PAGE_STR_DESC = - new PagedListDescriptor< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - SnapshotSchedulePolicy>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListSnapshotSchedulePoliciesRequest injectToken( - ListSnapshotSchedulePoliciesRequest payload, String token) { - return ListSnapshotSchedulePoliciesRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListSnapshotSchedulePoliciesRequest injectPageSize( - ListSnapshotSchedulePoliciesRequest payload, int pageSize) { - return ListSnapshotSchedulePoliciesRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListSnapshotSchedulePoliciesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListSnapshotSchedulePoliciesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListSnapshotSchedulePoliciesResponse payload) { - return payload.getSnapshotSchedulePoliciesList() == null - ? ImmutableList.of() - : payload.getSnapshotSchedulePoliciesList(); - } - }; - - private static final PagedListDescriptor< - ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse, VolumeSnapshot> - LIST_VOLUME_SNAPSHOTS_PAGE_STR_DESC = - new PagedListDescriptor< - ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse, VolumeSnapshot>() { + private static final PagedListDescriptor + LIST_LUNS_PAGE_STR_DESC = + new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override - public ListVolumeSnapshotsRequest injectToken( - ListVolumeSnapshotsRequest payload, String token) { - return ListVolumeSnapshotsRequest.newBuilder(payload).setPageToken(token).build(); + public ListLunsRequest injectToken(ListLunsRequest payload, String token) { + return ListLunsRequest.newBuilder(payload).setPageToken(token).build(); } @Override - public ListVolumeSnapshotsRequest injectPageSize( - ListVolumeSnapshotsRequest payload, int pageSize) { - return ListVolumeSnapshotsRequest.newBuilder(payload).setPageSize(pageSize).build(); + public ListLunsRequest injectPageSize(ListLunsRequest payload, int pageSize) { + return ListLunsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override - public Integer extractPageSize(ListVolumeSnapshotsRequest payload) { + public Integer extractPageSize(ListLunsRequest payload) { return payload.getPageSize(); } @Override - public String extractNextToken(ListVolumeSnapshotsResponse payload) { + public String extractNextToken(ListLunsResponse payload) { return payload.getNextPageToken(); } @Override - public Iterable extractResources(ListVolumeSnapshotsResponse payload) { - return payload.getVolumeSnapshotsList() == null - ? ImmutableList.of() - : payload.getVolumeSnapshotsList(); + public Iterable extractResources(ListLunsResponse payload) { + return payload.getLunsList() == null + ? ImmutableList.of() + : payload.getLunsList(); } }; - private static final PagedListDescriptor - LIST_LUNS_PAGE_STR_DESC = - new PagedListDescriptor() { + private static final PagedListDescriptor + LIST_NFS_SHARES_PAGE_STR_DESC = + new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override - public ListLunsRequest injectToken(ListLunsRequest payload, String token) { - return ListLunsRequest.newBuilder(payload).setPageToken(token).build(); + public ListNfsSharesRequest injectToken(ListNfsSharesRequest payload, String token) { + return ListNfsSharesRequest.newBuilder(payload).setPageToken(token).build(); } @Override - public ListLunsRequest injectPageSize(ListLunsRequest payload, int pageSize) { - return ListLunsRequest.newBuilder(payload).setPageSize(pageSize).build(); + public ListNfsSharesRequest injectPageSize(ListNfsSharesRequest payload, int pageSize) { + return ListNfsSharesRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override - public Integer extractPageSize(ListLunsRequest payload) { + public Integer extractPageSize(ListNfsSharesRequest payload) { return payload.getPageSize(); } @Override - public String extractNextToken(ListLunsResponse payload) { + public String extractNextToken(ListNfsSharesResponse payload) { return payload.getNextPageToken(); } @Override - public Iterable extractResources(ListLunsResponse payload) { - return payload.getLunsList() == null - ? ImmutableList.of() - : payload.getLunsList(); + public Iterable extractResources(ListNfsSharesResponse payload) { + return payload.getNfsSharesList() == null + ? ImmutableList.of() + : payload.getNfsSharesList(); } }; @@ -468,59 +416,6 @@ public ApiFuture getFuturePagedResponse( } }; - private static final PagedListResponseFactory< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - ListSnapshotSchedulePoliciesPagedResponse> - LIST_SNAPSHOT_SCHEDULE_POLICIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - ListSnapshotSchedulePoliciesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable< - ListSnapshotSchedulePoliciesRequest, ListSnapshotSchedulePoliciesResponse> - callable, - ListSnapshotSchedulePoliciesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - SnapshotSchedulePolicy> - pageContext = - PageContext.create( - callable, - LIST_SNAPSHOT_SCHEDULE_POLICIES_PAGE_STR_DESC, - request, - context); - return ListSnapshotSchedulePoliciesPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse, ListVolumeSnapshotsPagedResponse> - LIST_VOLUME_SNAPSHOTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListVolumeSnapshotsRequest, - ListVolumeSnapshotsResponse, - ListVolumeSnapshotsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListVolumeSnapshotsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_VOLUME_SNAPSHOTS_PAGE_STR_DESC, request, context); - return ListVolumeSnapshotsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - private static final PagedListResponseFactory< ListLunsRequest, ListLunsResponse, ListLunsPagedResponse> LIST_LUNS_PAGE_STR_FACT = @@ -537,6 +432,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListNfsSharesRequest, ListNfsSharesResponse, ListNfsSharesPagedResponse> + LIST_NFS_SHARES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListNfsSharesRequest, ListNfsSharesResponse, ListNfsSharesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListNfsSharesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_NFS_SHARES_PAGE_STR_DESC, request, context); + return ListNfsSharesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to listInstances. */ public PagedCallSettings listInstancesSettings() { @@ -548,6 +460,17 @@ public UnaryCallSettings getInstanceSettings() { return getInstanceSettings; } + /** Returns the object with the settings used for calls to updateInstance. */ + public UnaryCallSettings updateInstanceSettings() { + return updateInstanceSettings; + } + + /** Returns the object with the settings used for calls to updateInstance. */ + public OperationCallSettings + updateInstanceOperationSettings() { + return updateInstanceOperationSettings; + } + /** Returns the object with the settings used for calls to resetInstance. */ public UnaryCallSettings resetInstanceSettings() { return resetInstanceSettings; @@ -559,6 +482,39 @@ public UnaryCallSettings resetInstanceSettings( return resetInstanceOperationSettings; } + /** Returns the object with the settings used for calls to startInstance. */ + public UnaryCallSettings startInstanceSettings() { + return startInstanceSettings; + } + + /** Returns the object with the settings used for calls to startInstance. */ + public OperationCallSettings + startInstanceOperationSettings() { + return startInstanceOperationSettings; + } + + /** Returns the object with the settings used for calls to stopInstance. */ + public UnaryCallSettings stopInstanceSettings() { + return stopInstanceSettings; + } + + /** Returns the object with the settings used for calls to stopInstance. */ + public OperationCallSettings + stopInstanceOperationSettings() { + return stopInstanceOperationSettings; + } + + /** Returns the object with the settings used for calls to detachLun. */ + public UnaryCallSettings detachLunSettings() { + return detachLunSettings; + } + + /** Returns the object with the settings used for calls to detachLun. */ + public OperationCallSettings + detachLunOperationSettings() { + return detachLunOperationSettings; + } + /** Returns the object with the settings used for calls to listVolumes. */ public PagedCallSettings listVolumesSettings() { @@ -581,94 +537,76 @@ public UnaryCallSettings updateVolumeSettings() return updateVolumeOperationSettings; } + /** Returns the object with the settings used for calls to resizeVolume. */ + public UnaryCallSettings resizeVolumeSettings() { + return resizeVolumeSettings; + } + + /** Returns the object with the settings used for calls to resizeVolume. */ + public OperationCallSettings + resizeVolumeOperationSettings() { + return resizeVolumeOperationSettings; + } + /** Returns the object with the settings used for calls to listNetworks. */ public PagedCallSettings listNetworksSettings() { return listNetworksSettings; } + /** Returns the object with the settings used for calls to listNetworkUsage. */ + public UnaryCallSettings + listNetworkUsageSettings() { + return listNetworkUsageSettings; + } + /** Returns the object with the settings used for calls to getNetwork. */ public UnaryCallSettings getNetworkSettings() { return getNetworkSettings; } - /** Returns the object with the settings used for calls to listSnapshotSchedulePolicies. */ - public PagedCallSettings< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - ListSnapshotSchedulePoliciesPagedResponse> - listSnapshotSchedulePoliciesSettings() { - return listSnapshotSchedulePoliciesSettings; - } - - /** Returns the object with the settings used for calls to getSnapshotSchedulePolicy. */ - public UnaryCallSettings - getSnapshotSchedulePolicySettings() { - return getSnapshotSchedulePolicySettings; - } - - /** Returns the object with the settings used for calls to createSnapshotSchedulePolicy. */ - public UnaryCallSettings - createSnapshotSchedulePolicySettings() { - return createSnapshotSchedulePolicySettings; - } - - /** Returns the object with the settings used for calls to updateSnapshotSchedulePolicy. */ - public UnaryCallSettings - updateSnapshotSchedulePolicySettings() { - return updateSnapshotSchedulePolicySettings; - } - - /** Returns the object with the settings used for calls to deleteSnapshotSchedulePolicy. */ - public UnaryCallSettings - deleteSnapshotSchedulePolicySettings() { - return deleteSnapshotSchedulePolicySettings; + /** Returns the object with the settings used for calls to updateNetwork. */ + public UnaryCallSettings updateNetworkSettings() { + return updateNetworkSettings; } - /** Returns the object with the settings used for calls to createVolumeSnapshot. */ - public UnaryCallSettings - createVolumeSnapshotSettings() { - return createVolumeSnapshotSettings; + /** Returns the object with the settings used for calls to updateNetwork. */ + public OperationCallSettings + updateNetworkOperationSettings() { + return updateNetworkOperationSettings; } - /** Returns the object with the settings used for calls to restoreVolumeSnapshot. */ - public UnaryCallSettings - restoreVolumeSnapshotSettings() { - return restoreVolumeSnapshotSettings; + /** Returns the object with the settings used for calls to getLun. */ + public UnaryCallSettings getLunSettings() { + return getLunSettings; } - /** Returns the object with the settings used for calls to restoreVolumeSnapshot. */ - public OperationCallSettings - restoreVolumeSnapshotOperationSettings() { - return restoreVolumeSnapshotOperationSettings; + /** Returns the object with the settings used for calls to listLuns. */ + public PagedCallSettings + listLunsSettings() { + return listLunsSettings; } - /** Returns the object with the settings used for calls to deleteVolumeSnapshot. */ - public UnaryCallSettings deleteVolumeSnapshotSettings() { - return deleteVolumeSnapshotSettings; + /** Returns the object with the settings used for calls to getNfsShare. */ + public UnaryCallSettings getNfsShareSettings() { + return getNfsShareSettings; } - /** Returns the object with the settings used for calls to getVolumeSnapshot. */ - public UnaryCallSettings getVolumeSnapshotSettings() { - return getVolumeSnapshotSettings; + /** Returns the object with the settings used for calls to listNfsShares. */ + public PagedCallSettings + listNfsSharesSettings() { + return listNfsSharesSettings; } - /** Returns the object with the settings used for calls to listVolumeSnapshots. */ - public PagedCallSettings< - ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse, ListVolumeSnapshotsPagedResponse> - listVolumeSnapshotsSettings() { - return listVolumeSnapshotsSettings; + /** Returns the object with the settings used for calls to updateNfsShare. */ + public UnaryCallSettings updateNfsShareSettings() { + return updateNfsShareSettings; } - /** Returns the object with the settings used for calls to getLun. */ - public UnaryCallSettings getLunSettings() { - return getLunSettings; - } - - /** Returns the object with the settings used for calls to listLuns. */ - public PagedCallSettings - listLunsSettings() { - return listLunsSettings; + /** Returns the object with the settings used for calls to updateNfsShare. */ + public OperationCallSettings + updateNfsShareOperationSettings() { + return updateNfsShareOperationSettings; } public BareMetalSolutionStub createStub() throws IOException { @@ -748,32 +686,33 @@ protected BareMetalSolutionStubSettings(Builder settingsBuilder) throws IOExcept listInstancesSettings = settingsBuilder.listInstancesSettings().build(); getInstanceSettings = settingsBuilder.getInstanceSettings().build(); + updateInstanceSettings = settingsBuilder.updateInstanceSettings().build(); + updateInstanceOperationSettings = settingsBuilder.updateInstanceOperationSettings().build(); resetInstanceSettings = settingsBuilder.resetInstanceSettings().build(); resetInstanceOperationSettings = settingsBuilder.resetInstanceOperationSettings().build(); + startInstanceSettings = settingsBuilder.startInstanceSettings().build(); + startInstanceOperationSettings = settingsBuilder.startInstanceOperationSettings().build(); + stopInstanceSettings = settingsBuilder.stopInstanceSettings().build(); + stopInstanceOperationSettings = settingsBuilder.stopInstanceOperationSettings().build(); + detachLunSettings = settingsBuilder.detachLunSettings().build(); + detachLunOperationSettings = settingsBuilder.detachLunOperationSettings().build(); listVolumesSettings = settingsBuilder.listVolumesSettings().build(); getVolumeSettings = settingsBuilder.getVolumeSettings().build(); updateVolumeSettings = settingsBuilder.updateVolumeSettings().build(); updateVolumeOperationSettings = settingsBuilder.updateVolumeOperationSettings().build(); + resizeVolumeSettings = settingsBuilder.resizeVolumeSettings().build(); + resizeVolumeOperationSettings = settingsBuilder.resizeVolumeOperationSettings().build(); listNetworksSettings = settingsBuilder.listNetworksSettings().build(); + listNetworkUsageSettings = settingsBuilder.listNetworkUsageSettings().build(); getNetworkSettings = settingsBuilder.getNetworkSettings().build(); - listSnapshotSchedulePoliciesSettings = - settingsBuilder.listSnapshotSchedulePoliciesSettings().build(); - getSnapshotSchedulePolicySettings = settingsBuilder.getSnapshotSchedulePolicySettings().build(); - createSnapshotSchedulePolicySettings = - settingsBuilder.createSnapshotSchedulePolicySettings().build(); - updateSnapshotSchedulePolicySettings = - settingsBuilder.updateSnapshotSchedulePolicySettings().build(); - deleteSnapshotSchedulePolicySettings = - settingsBuilder.deleteSnapshotSchedulePolicySettings().build(); - createVolumeSnapshotSettings = settingsBuilder.createVolumeSnapshotSettings().build(); - restoreVolumeSnapshotSettings = settingsBuilder.restoreVolumeSnapshotSettings().build(); - restoreVolumeSnapshotOperationSettings = - settingsBuilder.restoreVolumeSnapshotOperationSettings().build(); - deleteVolumeSnapshotSettings = settingsBuilder.deleteVolumeSnapshotSettings().build(); - getVolumeSnapshotSettings = settingsBuilder.getVolumeSnapshotSettings().build(); - listVolumeSnapshotsSettings = settingsBuilder.listVolumeSnapshotsSettings().build(); + updateNetworkSettings = settingsBuilder.updateNetworkSettings().build(); + updateNetworkOperationSettings = settingsBuilder.updateNetworkOperationSettings().build(); getLunSettings = settingsBuilder.getLunSettings().build(); listLunsSettings = settingsBuilder.listLunsSettings().build(); + getNfsShareSettings = settingsBuilder.getNfsShareSettings().build(); + listNfsSharesSettings = settingsBuilder.listNfsSharesSettings().build(); + updateNfsShareSettings = settingsBuilder.updateNfsShareSettings().build(); + updateNfsShareOperationSettings = settingsBuilder.updateNfsShareOperationSettings().build(); } /** Builder for BareMetalSolutionStubSettings. */ @@ -783,10 +722,25 @@ public static class Builder extends StubSettings.Builder listInstancesSettings; private final UnaryCallSettings.Builder getInstanceSettings; + private final UnaryCallSettings.Builder + updateInstanceSettings; + private final OperationCallSettings.Builder + updateInstanceOperationSettings; private final UnaryCallSettings.Builder resetInstanceSettings; private final OperationCallSettings.Builder< ResetInstanceRequest, ResetInstanceResponse, OperationMetadata> resetInstanceOperationSettings; + private final UnaryCallSettings.Builder startInstanceSettings; + private final OperationCallSettings.Builder< + StartInstanceRequest, StartInstanceResponse, OperationMetadata> + startInstanceOperationSettings; + private final UnaryCallSettings.Builder stopInstanceSettings; + private final OperationCallSettings.Builder< + StopInstanceRequest, StopInstanceResponse, OperationMetadata> + stopInstanceOperationSettings; + private final UnaryCallSettings.Builder detachLunSettings; + private final OperationCallSettings.Builder + detachLunOperationSettings; private final PagedCallSettings.Builder< ListVolumesRequest, ListVolumesResponse, ListVolumesPagedResponse> listVolumesSettings; @@ -794,46 +748,30 @@ public static class Builder extends StubSettings.Builder updateVolumeSettings; private final OperationCallSettings.Builder updateVolumeOperationSettings; + private final UnaryCallSettings.Builder resizeVolumeSettings; + private final OperationCallSettings.Builder + resizeVolumeOperationSettings; private final PagedCallSettings.Builder< ListNetworksRequest, ListNetworksResponse, ListNetworksPagedResponse> listNetworksSettings; + private final UnaryCallSettings.Builder + listNetworkUsageSettings; private final UnaryCallSettings.Builder getNetworkSettings; - private final PagedCallSettings.Builder< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - ListSnapshotSchedulePoliciesPagedResponse> - listSnapshotSchedulePoliciesSettings; - private final UnaryCallSettings.Builder< - GetSnapshotSchedulePolicyRequest, SnapshotSchedulePolicy> - getSnapshotSchedulePolicySettings; - private final UnaryCallSettings.Builder< - CreateSnapshotSchedulePolicyRequest, SnapshotSchedulePolicy> - createSnapshotSchedulePolicySettings; - private final UnaryCallSettings.Builder< - UpdateSnapshotSchedulePolicyRequest, SnapshotSchedulePolicy> - updateSnapshotSchedulePolicySettings; - private final UnaryCallSettings.Builder - deleteSnapshotSchedulePolicySettings; - private final UnaryCallSettings.Builder - createVolumeSnapshotSettings; - private final UnaryCallSettings.Builder - restoreVolumeSnapshotSettings; - private final OperationCallSettings.Builder< - RestoreVolumeSnapshotRequest, VolumeSnapshot, OperationMetadata> - restoreVolumeSnapshotOperationSettings; - private final UnaryCallSettings.Builder - deleteVolumeSnapshotSettings; - private final UnaryCallSettings.Builder - getVolumeSnapshotSettings; - private final PagedCallSettings.Builder< - ListVolumeSnapshotsRequest, - ListVolumeSnapshotsResponse, - ListVolumeSnapshotsPagedResponse> - listVolumeSnapshotsSettings; + private final UnaryCallSettings.Builder updateNetworkSettings; + private final OperationCallSettings.Builder + updateNetworkOperationSettings; private final UnaryCallSettings.Builder getLunSettings; private final PagedCallSettings.Builder< ListLunsRequest, ListLunsResponse, ListLunsPagedResponse> listLunsSettings; + private final UnaryCallSettings.Builder getNfsShareSettings; + private final PagedCallSettings.Builder< + ListNfsSharesRequest, ListNfsSharesResponse, ListNfsSharesPagedResponse> + listNfsSharesSettings; + private final UnaryCallSettings.Builder + updateNfsShareSettings; + private final OperationCallSettings.Builder + updateNfsShareOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -870,52 +808,56 @@ protected Builder(ClientContext clientContext) { listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); getInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateInstanceOperationSettings = OperationCallSettings.newBuilder(); resetInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); resetInstanceOperationSettings = OperationCallSettings.newBuilder(); + startInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + startInstanceOperationSettings = OperationCallSettings.newBuilder(); + stopInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + stopInstanceOperationSettings = OperationCallSettings.newBuilder(); + detachLunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + detachLunOperationSettings = OperationCallSettings.newBuilder(); listVolumesSettings = PagedCallSettings.newBuilder(LIST_VOLUMES_PAGE_STR_FACT); getVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateVolumeOperationSettings = OperationCallSettings.newBuilder(); + resizeVolumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + resizeVolumeOperationSettings = OperationCallSettings.newBuilder(); listNetworksSettings = PagedCallSettings.newBuilder(LIST_NETWORKS_PAGE_STR_FACT); + listNetworkUsageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listSnapshotSchedulePoliciesSettings = - PagedCallSettings.newBuilder(LIST_SNAPSHOT_SCHEDULE_POLICIES_PAGE_STR_FACT); - getSnapshotSchedulePolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createSnapshotSchedulePolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateSnapshotSchedulePolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteSnapshotSchedulePolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createVolumeSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - restoreVolumeSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - restoreVolumeSnapshotOperationSettings = OperationCallSettings.newBuilder(); - deleteVolumeSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getVolumeSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listVolumeSnapshotsSettings = - PagedCallSettings.newBuilder(LIST_VOLUME_SNAPSHOTS_PAGE_STR_FACT); + updateNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateNetworkOperationSettings = OperationCallSettings.newBuilder(); getLunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLunsSettings = PagedCallSettings.newBuilder(LIST_LUNS_PAGE_STR_FACT); + getNfsShareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listNfsSharesSettings = PagedCallSettings.newBuilder(LIST_NFS_SHARES_PAGE_STR_FACT); + updateNfsShareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateNfsShareOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listInstancesSettings, getInstanceSettings, + updateInstanceSettings, resetInstanceSettings, + startInstanceSettings, + stopInstanceSettings, + detachLunSettings, listVolumesSettings, getVolumeSettings, updateVolumeSettings, + resizeVolumeSettings, listNetworksSettings, + listNetworkUsageSettings, getNetworkSettings, - listSnapshotSchedulePoliciesSettings, - getSnapshotSchedulePolicySettings, - createSnapshotSchedulePolicySettings, - updateSnapshotSchedulePolicySettings, - deleteSnapshotSchedulePolicySettings, - createVolumeSnapshotSettings, - restoreVolumeSnapshotSettings, - deleteVolumeSnapshotSettings, - getVolumeSnapshotSettings, - listVolumeSnapshotsSettings, + updateNetworkSettings, getLunSettings, - listLunsSettings); + listLunsSettings, + getNfsShareSettings, + listNfsSharesSettings, + updateNfsShareSettings); initDefaults(this); } @@ -924,55 +866,56 @@ protected Builder(BareMetalSolutionStubSettings settings) { listInstancesSettings = settings.listInstancesSettings.toBuilder(); getInstanceSettings = settings.getInstanceSettings.toBuilder(); + updateInstanceSettings = settings.updateInstanceSettings.toBuilder(); + updateInstanceOperationSettings = settings.updateInstanceOperationSettings.toBuilder(); resetInstanceSettings = settings.resetInstanceSettings.toBuilder(); resetInstanceOperationSettings = settings.resetInstanceOperationSettings.toBuilder(); + startInstanceSettings = settings.startInstanceSettings.toBuilder(); + startInstanceOperationSettings = settings.startInstanceOperationSettings.toBuilder(); + stopInstanceSettings = settings.stopInstanceSettings.toBuilder(); + stopInstanceOperationSettings = settings.stopInstanceOperationSettings.toBuilder(); + detachLunSettings = settings.detachLunSettings.toBuilder(); + detachLunOperationSettings = settings.detachLunOperationSettings.toBuilder(); listVolumesSettings = settings.listVolumesSettings.toBuilder(); getVolumeSettings = settings.getVolumeSettings.toBuilder(); updateVolumeSettings = settings.updateVolumeSettings.toBuilder(); updateVolumeOperationSettings = settings.updateVolumeOperationSettings.toBuilder(); + resizeVolumeSettings = settings.resizeVolumeSettings.toBuilder(); + resizeVolumeOperationSettings = settings.resizeVolumeOperationSettings.toBuilder(); listNetworksSettings = settings.listNetworksSettings.toBuilder(); + listNetworkUsageSettings = settings.listNetworkUsageSettings.toBuilder(); getNetworkSettings = settings.getNetworkSettings.toBuilder(); - listSnapshotSchedulePoliciesSettings = - settings.listSnapshotSchedulePoliciesSettings.toBuilder(); - getSnapshotSchedulePolicySettings = settings.getSnapshotSchedulePolicySettings.toBuilder(); - createSnapshotSchedulePolicySettings = - settings.createSnapshotSchedulePolicySettings.toBuilder(); - updateSnapshotSchedulePolicySettings = - settings.updateSnapshotSchedulePolicySettings.toBuilder(); - deleteSnapshotSchedulePolicySettings = - settings.deleteSnapshotSchedulePolicySettings.toBuilder(); - createVolumeSnapshotSettings = settings.createVolumeSnapshotSettings.toBuilder(); - restoreVolumeSnapshotSettings = settings.restoreVolumeSnapshotSettings.toBuilder(); - restoreVolumeSnapshotOperationSettings = - settings.restoreVolumeSnapshotOperationSettings.toBuilder(); - deleteVolumeSnapshotSettings = settings.deleteVolumeSnapshotSettings.toBuilder(); - getVolumeSnapshotSettings = settings.getVolumeSnapshotSettings.toBuilder(); - listVolumeSnapshotsSettings = settings.listVolumeSnapshotsSettings.toBuilder(); + updateNetworkSettings = settings.updateNetworkSettings.toBuilder(); + updateNetworkOperationSettings = settings.updateNetworkOperationSettings.toBuilder(); getLunSettings = settings.getLunSettings.toBuilder(); listLunsSettings = settings.listLunsSettings.toBuilder(); + getNfsShareSettings = settings.getNfsShareSettings.toBuilder(); + listNfsSharesSettings = settings.listNfsSharesSettings.toBuilder(); + updateNfsShareSettings = settings.updateNfsShareSettings.toBuilder(); + updateNfsShareOperationSettings = settings.updateNfsShareOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listInstancesSettings, getInstanceSettings, + updateInstanceSettings, resetInstanceSettings, + startInstanceSettings, + stopInstanceSettings, + detachLunSettings, listVolumesSettings, getVolumeSettings, updateVolumeSettings, + resizeVolumeSettings, listNetworksSettings, + listNetworkUsageSettings, getNetworkSettings, - listSnapshotSchedulePoliciesSettings, - getSnapshotSchedulePolicySettings, - createSnapshotSchedulePolicySettings, - updateSnapshotSchedulePolicySettings, - deleteSnapshotSchedulePolicySettings, - createVolumeSnapshotSettings, - restoreVolumeSnapshotSettings, - deleteVolumeSnapshotSettings, - getVolumeSnapshotSettings, - listVolumeSnapshotsSettings, + updateNetworkSettings, getLunSettings, - listLunsSettings); + listLunsSettings, + getNfsShareSettings, + listNfsSharesSettings, + updateNfsShareSettings); } private static Builder createDefault() { @@ -1000,95 +943,119 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .resetInstanceSettings() + .updateInstanceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .listVolumesSettings() + .resetInstanceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .getVolumeSettings() + .startInstanceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .updateVolumeSettings() + .stopInstanceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .listNetworksSettings() + .detachLunSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .getNetworkSettings() + .listVolumesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .listSnapshotSchedulePoliciesSettings() + .getVolumeSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .getSnapshotSchedulePolicySettings() + .updateVolumeSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .createSnapshotSchedulePolicySettings() + .resizeVolumeSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .updateSnapshotSchedulePolicySettings() + .listNetworksSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .deleteSnapshotSchedulePolicySettings() + .listNetworkUsageSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .createVolumeSnapshotSettings() + .getNetworkSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .restoreVolumeSnapshotSettings() + .updateNetworkSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .deleteVolumeSnapshotSettings() + .getLunSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .getVolumeSnapshotSettings() + .listLunsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .listVolumeSnapshotsSettings() + .getNfsShareSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .getLunSettings() + .listNfsSharesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder - .listLunsSettings() + .updateNfsShareSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .updateInstanceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Instance.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .resetInstanceOperationSettings() .setInitialCallSettings( @@ -1113,6 +1080,77 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .startInstanceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(StartInstanceResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .stopInstanceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(StopInstanceResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .detachLunOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Instance.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .updateVolumeOperationSettings() .setInitialCallSettings( @@ -1138,15 +1176,63 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .restoreVolumeSnapshotOperationSettings() + .resizeVolumeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Volume.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateNetworkOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Network.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateNfsShareOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(VolumeSnapshot.class)) + ProtoOperationTransformers.ResponseTransformer.create(NfsShare.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -1191,6 +1277,19 @@ public UnaryCallSettings.Builder getInstanceSettin return getInstanceSettings; } + /** Returns the builder for the settings used for calls to updateInstance. */ + public UnaryCallSettings.Builder updateInstanceSettings() { + return updateInstanceSettings; + } + + /** Returns the builder for the settings used for calls to updateInstance. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateInstanceOperationSettings() { + return updateInstanceOperationSettings; + } + /** Returns the builder for the settings used for calls to resetInstance. */ public UnaryCallSettings.Builder resetInstanceSettings() { return resetInstanceSettings; @@ -1205,6 +1304,47 @@ public UnaryCallSettings.Builder resetInstanceS return resetInstanceOperationSettings; } + /** Returns the builder for the settings used for calls to startInstance. */ + public UnaryCallSettings.Builder startInstanceSettings() { + return startInstanceSettings; + } + + /** Returns the builder for the settings used for calls to startInstance. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + StartInstanceRequest, StartInstanceResponse, OperationMetadata> + startInstanceOperationSettings() { + return startInstanceOperationSettings; + } + + /** Returns the builder for the settings used for calls to stopInstance. */ + public UnaryCallSettings.Builder stopInstanceSettings() { + return stopInstanceSettings; + } + + /** Returns the builder for the settings used for calls to stopInstance. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + StopInstanceRequest, StopInstanceResponse, OperationMetadata> + stopInstanceOperationSettings() { + return stopInstanceOperationSettings; + } + + /** Returns the builder for the settings used for calls to detachLun. */ + public UnaryCallSettings.Builder detachLunSettings() { + return detachLunSettings; + } + + /** Returns the builder for the settings used for calls to detachLun. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + detachLunOperationSettings() { + return detachLunOperationSettings; + } + /** Returns the builder for the settings used for calls to listVolumes. */ public PagedCallSettings.Builder< ListVolumesRequest, ListVolumesResponse, ListVolumesPagedResponse> @@ -1230,6 +1370,19 @@ public UnaryCallSettings.Builder updateVolumeSet return updateVolumeOperationSettings; } + /** Returns the builder for the settings used for calls to resizeVolume. */ + public UnaryCallSettings.Builder resizeVolumeSettings() { + return resizeVolumeSettings; + } + + /** Returns the builder for the settings used for calls to resizeVolume. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + resizeVolumeOperationSettings() { + return resizeVolumeOperationSettings; + } + /** Returns the builder for the settings used for calls to listNetworks. */ public PagedCallSettings.Builder< ListNetworksRequest, ListNetworksResponse, ListNetworksPagedResponse> @@ -1237,95 +1390,64 @@ public UnaryCallSettings.Builder updateVolumeSet return listNetworksSettings; } + /** Returns the builder for the settings used for calls to listNetworkUsage. */ + public UnaryCallSettings.Builder + listNetworkUsageSettings() { + return listNetworkUsageSettings; + } + /** Returns the builder for the settings used for calls to getNetwork. */ public UnaryCallSettings.Builder getNetworkSettings() { return getNetworkSettings; } - /** Returns the builder for the settings used for calls to listSnapshotSchedulePolicies. */ - public PagedCallSettings.Builder< - ListSnapshotSchedulePoliciesRequest, - ListSnapshotSchedulePoliciesResponse, - ListSnapshotSchedulePoliciesPagedResponse> - listSnapshotSchedulePoliciesSettings() { - return listSnapshotSchedulePoliciesSettings; + /** Returns the builder for the settings used for calls to updateNetwork. */ + public UnaryCallSettings.Builder updateNetworkSettings() { + return updateNetworkSettings; } - /** Returns the builder for the settings used for calls to getSnapshotSchedulePolicy. */ - public UnaryCallSettings.Builder - getSnapshotSchedulePolicySettings() { - return getSnapshotSchedulePolicySettings; + /** Returns the builder for the settings used for calls to updateNetwork. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateNetworkOperationSettings() { + return updateNetworkOperationSettings; } - /** Returns the builder for the settings used for calls to createSnapshotSchedulePolicy. */ - public UnaryCallSettings.Builder - createSnapshotSchedulePolicySettings() { - return createSnapshotSchedulePolicySettings; + /** Returns the builder for the settings used for calls to getLun. */ + public UnaryCallSettings.Builder getLunSettings() { + return getLunSettings; } - /** Returns the builder for the settings used for calls to updateSnapshotSchedulePolicy. */ - public UnaryCallSettings.Builder - updateSnapshotSchedulePolicySettings() { - return updateSnapshotSchedulePolicySettings; + /** Returns the builder for the settings used for calls to listLuns. */ + public PagedCallSettings.Builder + listLunsSettings() { + return listLunsSettings; } - /** Returns the builder for the settings used for calls to deleteSnapshotSchedulePolicy. */ - public UnaryCallSettings.Builder - deleteSnapshotSchedulePolicySettings() { - return deleteSnapshotSchedulePolicySettings; + /** Returns the builder for the settings used for calls to getNfsShare. */ + public UnaryCallSettings.Builder getNfsShareSettings() { + return getNfsShareSettings; } - /** Returns the builder for the settings used for calls to createVolumeSnapshot. */ - public UnaryCallSettings.Builder - createVolumeSnapshotSettings() { - return createVolumeSnapshotSettings; + /** Returns the builder for the settings used for calls to listNfsShares. */ + public PagedCallSettings.Builder< + ListNfsSharesRequest, ListNfsSharesResponse, ListNfsSharesPagedResponse> + listNfsSharesSettings() { + return listNfsSharesSettings; } - /** Returns the builder for the settings used for calls to restoreVolumeSnapshot. */ - public UnaryCallSettings.Builder - restoreVolumeSnapshotSettings() { - return restoreVolumeSnapshotSettings; + /** Returns the builder for the settings used for calls to updateNfsShare. */ + public UnaryCallSettings.Builder updateNfsShareSettings() { + return updateNfsShareSettings; } - /** Returns the builder for the settings used for calls to restoreVolumeSnapshot. */ + /** Returns the builder for the settings used for calls to updateNfsShare. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - RestoreVolumeSnapshotRequest, VolumeSnapshot, OperationMetadata> - restoreVolumeSnapshotOperationSettings() { - return restoreVolumeSnapshotOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteVolumeSnapshot. */ - public UnaryCallSettings.Builder - deleteVolumeSnapshotSettings() { - return deleteVolumeSnapshotSettings; - } - - /** Returns the builder for the settings used for calls to getVolumeSnapshot. */ - public UnaryCallSettings.Builder - getVolumeSnapshotSettings() { - return getVolumeSnapshotSettings; - } - - /** Returns the builder for the settings used for calls to listVolumeSnapshots. */ - public PagedCallSettings.Builder< - ListVolumeSnapshotsRequest, - ListVolumeSnapshotsResponse, - ListVolumeSnapshotsPagedResponse> - listVolumeSnapshotsSettings() { - return listVolumeSnapshotsSettings; - } - - /** Returns the builder for the settings used for calls to getLun. */ - public UnaryCallSettings.Builder getLunSettings() { - return getLunSettings; - } - - /** Returns the builder for the settings used for calls to listLuns. */ - public PagedCallSettings.Builder - listLunsSettings() { - return listLunsSettings; + public OperationCallSettings.Builder + updateNfsShareOperationSettings() { + return updateNfsShareOperationSettings; } @Override diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java similarity index 100% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java similarity index 59% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java index 67989ca..b55630f 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java @@ -19,8 +19,7 @@ import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListInstancesPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListLunsPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNetworksPagedResponse; -import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListSnapshotSchedulePoliciesPagedResponse; -import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumeSnapshotsPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNfsSharesPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumesPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -30,47 +29,48 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest; -import com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest; -import com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest; -import com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest; +import com.google.cloud.baremetalsolution.v2.DetachLunRequest; import com.google.cloud.baremetalsolution.v2.GetInstanceRequest; import com.google.cloud.baremetalsolution.v2.GetLunRequest; import com.google.cloud.baremetalsolution.v2.GetNetworkRequest; -import com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest; +import com.google.cloud.baremetalsolution.v2.GetNfsShareRequest; import com.google.cloud.baremetalsolution.v2.GetVolumeRequest; -import com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest; import com.google.cloud.baremetalsolution.v2.Instance; import com.google.cloud.baremetalsolution.v2.ListInstancesRequest; import com.google.cloud.baremetalsolution.v2.ListInstancesResponse; import com.google.cloud.baremetalsolution.v2.ListLunsRequest; import com.google.cloud.baremetalsolution.v2.ListLunsResponse; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse; import com.google.cloud.baremetalsolution.v2.ListNetworksRequest; import com.google.cloud.baremetalsolution.v2.ListNetworksResponse; -import com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest; -import com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse; -import com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest; -import com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse; import com.google.cloud.baremetalsolution.v2.ListVolumesRequest; import com.google.cloud.baremetalsolution.v2.ListVolumesResponse; import com.google.cloud.baremetalsolution.v2.Lun; import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.NfsShare; import com.google.cloud.baremetalsolution.v2.OperationMetadata; import com.google.cloud.baremetalsolution.v2.ResetInstanceRequest; import com.google.cloud.baremetalsolution.v2.ResetInstanceResponse; -import com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest; -import com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy; -import com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest; +import com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest; +import com.google.cloud.baremetalsolution.v2.StartInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StartInstanceResponse; +import com.google.cloud.baremetalsolution.v2.StopInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StopInstanceResponse; +import com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest; +import com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest; +import com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest; import com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest; import com.google.cloud.baremetalsolution.v2.Volume; -import com.google.cloud.baremetalsolution.v2.VolumeSnapshot; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -102,6 +102,17 @@ public class GrpcBareMetalSolutionStub extends BareMetalSolutionStub { .setResponseMarshaller(ProtoUtils.marshaller(Instance.getDefaultInstance())) .build(); + private static final MethodDescriptor + updateInstanceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/UpdateInstance") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor resetInstanceMethodDescriptor = MethodDescriptor.newBuilder() @@ -113,6 +124,34 @@ public class GrpcBareMetalSolutionStub extends BareMetalSolutionStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + startInstanceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/StartInstance") + .setRequestMarshaller( + ProtoUtils.marshaller(StartInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + stopInstanceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/StopInstance") + .setRequestMarshaller(ProtoUtils.marshaller(StopInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor detachLunMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/DetachLun") + .setRequestMarshaller(ProtoUtils.marshaller(DetachLunRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listVolumesMethodDescriptor = MethodDescriptor.newBuilder() @@ -140,6 +179,15 @@ public class GrpcBareMetalSolutionStub extends BareMetalSolutionStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + resizeVolumeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/ResizeVolume") + .setRequestMarshaller(ProtoUtils.marshaller(ResizeVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listNetworksMethodDescriptor = MethodDescriptor.newBuilder() @@ -150,6 +198,18 @@ public class GrpcBareMetalSolutionStub extends BareMetalSolutionStub { ProtoUtils.marshaller(ListNetworksResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + listNetworkUsageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/ListNetworkUsage") + .setRequestMarshaller( + ProtoUtils.marshaller(ListNetworkUsageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListNetworkUsageResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor getNetworkMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -158,124 +218,17 @@ public class GrpcBareMetalSolutionStub extends BareMetalSolutionStub { .setResponseMarshaller(ProtoUtils.marshaller(Network.getDefaultInstance())) .build(); - private static final MethodDescriptor< - ListSnapshotSchedulePoliciesRequest, ListSnapshotSchedulePoliciesResponse> - listSnapshotSchedulePoliciesMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.baremetalsolution.v2.BareMetalSolution/ListSnapshotSchedulePolicies") - .setRequestMarshaller( - ProtoUtils.marshaller(ListSnapshotSchedulePoliciesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListSnapshotSchedulePoliciesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getSnapshotSchedulePolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.baremetalsolution.v2.BareMetalSolution/GetSnapshotSchedulePolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(GetSnapshotSchedulePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SnapshotSchedulePolicy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createSnapshotSchedulePolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.baremetalsolution.v2.BareMetalSolution/CreateSnapshotSchedulePolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateSnapshotSchedulePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SnapshotSchedulePolicy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateSnapshotSchedulePolicyMethodDescriptor = - MethodDescriptor.newBuilder() + private static final MethodDescriptor + updateNetworkMethodDescriptor = + MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( - "google.cloud.baremetalsolution.v2.BareMetalSolution/UpdateSnapshotSchedulePolicy") + "google.cloud.baremetalsolution.v2.BareMetalSolution/UpdateNetwork") .setRequestMarshaller( - ProtoUtils.marshaller(UpdateSnapshotSchedulePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SnapshotSchedulePolicy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteSnapshotSchedulePolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.baremetalsolution.v2.BareMetalSolution/DeleteSnapshotSchedulePolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteSnapshotSchedulePolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createVolumeSnapshotMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.baremetalsolution.v2.BareMetalSolution/CreateVolumeSnapshot") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateVolumeSnapshotRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(VolumeSnapshot.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - restoreVolumeSnapshotMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.baremetalsolution.v2.BareMetalSolution/RestoreVolumeSnapshot") - .setRequestMarshaller( - ProtoUtils.marshaller(RestoreVolumeSnapshotRequest.getDefaultInstance())) + ProtoUtils.marshaller(UpdateNetworkRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); - private static final MethodDescriptor - deleteVolumeSnapshotMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.baremetalsolution.v2.BareMetalSolution/DeleteVolumeSnapshot") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteVolumeSnapshotRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getVolumeSnapshotMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.baremetalsolution.v2.BareMetalSolution/GetVolumeSnapshot") - .setRequestMarshaller( - ProtoUtils.marshaller(GetVolumeSnapshotRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(VolumeSnapshot.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listVolumeSnapshotsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.baremetalsolution.v2.BareMetalSolution/ListVolumeSnapshots") - .setRequestMarshaller( - ProtoUtils.marshaller(ListVolumeSnapshotsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListVolumeSnapshotsResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor getLunMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -293,13 +246,56 @@ public class GrpcBareMetalSolutionStub extends BareMetalSolutionStub { .setResponseMarshaller(ProtoUtils.marshaller(ListLunsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor getNfsShareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/GetNfsShare") + .setRequestMarshaller(ProtoUtils.marshaller(GetNfsShareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NfsShare.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listNfsSharesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/ListNfsShares") + .setRequestMarshaller( + ProtoUtils.marshaller(ListNfsSharesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListNfsSharesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateNfsShareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/UpdateNfsShare") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateNfsShareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private final UnaryCallable listInstancesCallable; private final UnaryCallable listInstancesPagedCallable; private final UnaryCallable getInstanceCallable; + private final UnaryCallable updateInstanceCallable; + private final OperationCallable + updateInstanceOperationCallable; private final UnaryCallable resetInstanceCallable; private final OperationCallable resetInstanceOperationCallable; + private final UnaryCallable startInstanceCallable; + private final OperationCallable + startInstanceOperationCallable; + private final UnaryCallable stopInstanceCallable; + private final OperationCallable + stopInstanceOperationCallable; + private final UnaryCallable detachLunCallable; + private final OperationCallable + detachLunOperationCallable; private final UnaryCallable listVolumesCallable; private final UnaryCallable listVolumesPagedCallable; @@ -307,39 +303,28 @@ public class GrpcBareMetalSolutionStub extends BareMetalSolutionStub { private final UnaryCallable updateVolumeCallable; private final OperationCallable updateVolumeOperationCallable; + private final UnaryCallable resizeVolumeCallable; + private final OperationCallable + resizeVolumeOperationCallable; private final UnaryCallable listNetworksCallable; private final UnaryCallable listNetworksPagedCallable; + private final UnaryCallable + listNetworkUsageCallable; private final UnaryCallable getNetworkCallable; - private final UnaryCallable< - ListSnapshotSchedulePoliciesRequest, ListSnapshotSchedulePoliciesResponse> - listSnapshotSchedulePoliciesCallable; - private final UnaryCallable< - ListSnapshotSchedulePoliciesRequest, ListSnapshotSchedulePoliciesPagedResponse> - listSnapshotSchedulePoliciesPagedCallable; - private final UnaryCallable - getSnapshotSchedulePolicyCallable; - private final UnaryCallable - createSnapshotSchedulePolicyCallable; - private final UnaryCallable - updateSnapshotSchedulePolicyCallable; - private final UnaryCallable - deleteSnapshotSchedulePolicyCallable; - private final UnaryCallable - createVolumeSnapshotCallable; - private final UnaryCallable - restoreVolumeSnapshotCallable; - private final OperationCallable - restoreVolumeSnapshotOperationCallable; - private final UnaryCallable deleteVolumeSnapshotCallable; - private final UnaryCallable getVolumeSnapshotCallable; - private final UnaryCallable - listVolumeSnapshotsCallable; - private final UnaryCallable - listVolumeSnapshotsPagedCallable; + private final UnaryCallable updateNetworkCallable; + private final OperationCallable + updateNetworkOperationCallable; private final UnaryCallable getLunCallable; private final UnaryCallable listLunsCallable; private final UnaryCallable listLunsPagedCallable; + private final UnaryCallable getNfsShareCallable; + private final UnaryCallable listNfsSharesCallable; + private final UnaryCallable + listNfsSharesPagedCallable; + private final UnaryCallable updateNfsShareCallable; + private final OperationCallable + updateNfsShareOperationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -405,6 +390,16 @@ protected GrpcBareMetalSolutionStub( return params.build(); }) .build(); + GrpcCallSettings updateInstanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateInstanceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("instance.name", String.valueOf(request.getInstance().getName())); + return params.build(); + }) + .build(); GrpcCallSettings resetInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(resetInstanceMethodDescriptor) @@ -415,6 +410,36 @@ protected GrpcBareMetalSolutionStub( return params.build(); }) .build(); + GrpcCallSettings startInstanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(startInstanceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings stopInstanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(stopInstanceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings detachLunTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(detachLunMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("instance", String.valueOf(request.getInstance())); + return params.build(); + }) + .build(); GrpcCallSettings listVolumesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listVolumesMethodDescriptor) @@ -445,112 +470,40 @@ protected GrpcBareMetalSolutionStub( return params.build(); }) .build(); - GrpcCallSettings listNetworksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listNetworksMethodDescriptor) + GrpcCallSettings resizeVolumeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(resizeVolumeMethodDescriptor) .setParamsExtractor( request -> { ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); + params.put("volume", String.valueOf(request.getVolume())); return params.build(); }) .build(); - GrpcCallSettings getNetworkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getNetworkMethodDescriptor) + GrpcCallSettings listNetworksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNetworksMethodDescriptor) .setParamsExtractor( request -> { ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); + params.put("parent", String.valueOf(request.getParent())); return params.build(); }) .build(); - GrpcCallSettings - listSnapshotSchedulePoliciesTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listSnapshotSchedulePoliciesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getSnapshotSchedulePolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSnapshotSchedulePolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - createSnapshotSchedulePolicyTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(createSnapshotSchedulePolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateSnapshotSchedulePolicyTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(updateSnapshotSchedulePolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "snapshot_schedule_policy.name", - String.valueOf(request.getSnapshotSchedulePolicy().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - deleteSnapshotSchedulePolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteSnapshotSchedulePolicyMethodDescriptor) + GrpcCallSettings + listNetworkUsageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNetworkUsageMethodDescriptor) .setParamsExtractor( request -> { ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); + params.put("location", String.valueOf(request.getLocation())); return params.build(); }) .build(); - GrpcCallSettings - createVolumeSnapshotTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createVolumeSnapshotMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - restoreVolumeSnapshotTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(restoreVolumeSnapshotMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("volume_snapshot", String.valueOf(request.getVolumeSnapshot())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteVolumeSnapshotTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteVolumeSnapshotMethodDescriptor) + GrpcCallSettings getNetworkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNetworkMethodDescriptor) .setParamsExtractor( request -> { ImmutableMap.Builder params = ImmutableMap.builder(); @@ -558,27 +511,16 @@ protected GrpcBareMetalSolutionStub( return params.build(); }) .build(); - GrpcCallSettings getVolumeSnapshotTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getVolumeSnapshotMethodDescriptor) + GrpcCallSettings updateNetworkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateNetworkMethodDescriptor) .setParamsExtractor( request -> { ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); + params.put("network.name", String.valueOf(request.getNetwork().getName())); return params.build(); }) .build(); - GrpcCallSettings - listVolumeSnapshotsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listVolumeSnapshotsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); GrpcCallSettings getLunTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getLunMethodDescriptor) @@ -599,6 +541,36 @@ protected GrpcBareMetalSolutionStub( return params.build(); }) .build(); + GrpcCallSettings getNfsShareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNfsShareMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listNfsSharesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNfsSharesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateNfsShareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateNfsShareMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("nfs_share.name", String.valueOf(request.getNfsShare().getName())); + return params.build(); + }) + .build(); this.listInstancesCallable = callableFactory.createUnaryCallable( @@ -609,6 +581,15 @@ protected GrpcBareMetalSolutionStub( this.getInstanceCallable = callableFactory.createUnaryCallable( getInstanceTransportSettings, settings.getInstanceSettings(), clientContext); + this.updateInstanceCallable = + callableFactory.createUnaryCallable( + updateInstanceTransportSettings, settings.updateInstanceSettings(), clientContext); + this.updateInstanceOperationCallable = + callableFactory.createOperationCallable( + updateInstanceTransportSettings, + settings.updateInstanceOperationSettings(), + clientContext, + operationsStub); this.resetInstanceCallable = callableFactory.createUnaryCallable( resetInstanceTransportSettings, settings.resetInstanceSettings(), clientContext); @@ -618,6 +599,33 @@ protected GrpcBareMetalSolutionStub( settings.resetInstanceOperationSettings(), clientContext, operationsStub); + this.startInstanceCallable = + callableFactory.createUnaryCallable( + startInstanceTransportSettings, settings.startInstanceSettings(), clientContext); + this.startInstanceOperationCallable = + callableFactory.createOperationCallable( + startInstanceTransportSettings, + settings.startInstanceOperationSettings(), + clientContext, + operationsStub); + this.stopInstanceCallable = + callableFactory.createUnaryCallable( + stopInstanceTransportSettings, settings.stopInstanceSettings(), clientContext); + this.stopInstanceOperationCallable = + callableFactory.createOperationCallable( + stopInstanceTransportSettings, + settings.stopInstanceOperationSettings(), + clientContext, + operationsStub); + this.detachLunCallable = + callableFactory.createUnaryCallable( + detachLunTransportSettings, settings.detachLunSettings(), clientContext); + this.detachLunOperationCallable = + callableFactory.createOperationCallable( + detachLunTransportSettings, + settings.detachLunOperationSettings(), + clientContext, + operationsStub); this.listVolumesCallable = callableFactory.createUnaryCallable( listVolumesTransportSettings, settings.listVolumesSettings(), clientContext); @@ -636,81 +644,36 @@ protected GrpcBareMetalSolutionStub( settings.updateVolumeOperationSettings(), clientContext, operationsStub); + this.resizeVolumeCallable = + callableFactory.createUnaryCallable( + resizeVolumeTransportSettings, settings.resizeVolumeSettings(), clientContext); + this.resizeVolumeOperationCallable = + callableFactory.createOperationCallable( + resizeVolumeTransportSettings, + settings.resizeVolumeOperationSettings(), + clientContext, + operationsStub); this.listNetworksCallable = callableFactory.createUnaryCallable( listNetworksTransportSettings, settings.listNetworksSettings(), clientContext); this.listNetworksPagedCallable = callableFactory.createPagedCallable( listNetworksTransportSettings, settings.listNetworksSettings(), clientContext); + this.listNetworkUsageCallable = + callableFactory.createUnaryCallable( + listNetworkUsageTransportSettings, settings.listNetworkUsageSettings(), clientContext); this.getNetworkCallable = callableFactory.createUnaryCallable( getNetworkTransportSettings, settings.getNetworkSettings(), clientContext); - this.listSnapshotSchedulePoliciesCallable = - callableFactory.createUnaryCallable( - listSnapshotSchedulePoliciesTransportSettings, - settings.listSnapshotSchedulePoliciesSettings(), - clientContext); - this.listSnapshotSchedulePoliciesPagedCallable = - callableFactory.createPagedCallable( - listSnapshotSchedulePoliciesTransportSettings, - settings.listSnapshotSchedulePoliciesSettings(), - clientContext); - this.getSnapshotSchedulePolicyCallable = + this.updateNetworkCallable = callableFactory.createUnaryCallable( - getSnapshotSchedulePolicyTransportSettings, - settings.getSnapshotSchedulePolicySettings(), - clientContext); - this.createSnapshotSchedulePolicyCallable = - callableFactory.createUnaryCallable( - createSnapshotSchedulePolicyTransportSettings, - settings.createSnapshotSchedulePolicySettings(), - clientContext); - this.updateSnapshotSchedulePolicyCallable = - callableFactory.createUnaryCallable( - updateSnapshotSchedulePolicyTransportSettings, - settings.updateSnapshotSchedulePolicySettings(), - clientContext); - this.deleteSnapshotSchedulePolicyCallable = - callableFactory.createUnaryCallable( - deleteSnapshotSchedulePolicyTransportSettings, - settings.deleteSnapshotSchedulePolicySettings(), - clientContext); - this.createVolumeSnapshotCallable = - callableFactory.createUnaryCallable( - createVolumeSnapshotTransportSettings, - settings.createVolumeSnapshotSettings(), - clientContext); - this.restoreVolumeSnapshotCallable = - callableFactory.createUnaryCallable( - restoreVolumeSnapshotTransportSettings, - settings.restoreVolumeSnapshotSettings(), - clientContext); - this.restoreVolumeSnapshotOperationCallable = + updateNetworkTransportSettings, settings.updateNetworkSettings(), clientContext); + this.updateNetworkOperationCallable = callableFactory.createOperationCallable( - restoreVolumeSnapshotTransportSettings, - settings.restoreVolumeSnapshotOperationSettings(), + updateNetworkTransportSettings, + settings.updateNetworkOperationSettings(), clientContext, operationsStub); - this.deleteVolumeSnapshotCallable = - callableFactory.createUnaryCallable( - deleteVolumeSnapshotTransportSettings, - settings.deleteVolumeSnapshotSettings(), - clientContext); - this.getVolumeSnapshotCallable = - callableFactory.createUnaryCallable( - getVolumeSnapshotTransportSettings, - settings.getVolumeSnapshotSettings(), - clientContext); - this.listVolumeSnapshotsCallable = - callableFactory.createUnaryCallable( - listVolumeSnapshotsTransportSettings, - settings.listVolumeSnapshotsSettings(), - clientContext); - this.listVolumeSnapshotsPagedCallable = - callableFactory.createPagedCallable( - listVolumeSnapshotsTransportSettings, - settings.listVolumeSnapshotsSettings(), - clientContext); this.getLunCallable = callableFactory.createUnaryCallable( getLunTransportSettings, settings.getLunSettings(), clientContext); @@ -720,6 +683,24 @@ protected GrpcBareMetalSolutionStub( this.listLunsPagedCallable = callableFactory.createPagedCallable( listLunsTransportSettings, settings.listLunsSettings(), clientContext); + this.getNfsShareCallable = + callableFactory.createUnaryCallable( + getNfsShareTransportSettings, settings.getNfsShareSettings(), clientContext); + this.listNfsSharesCallable = + callableFactory.createUnaryCallable( + listNfsSharesTransportSettings, settings.listNfsSharesSettings(), clientContext); + this.listNfsSharesPagedCallable = + callableFactory.createPagedCallable( + listNfsSharesTransportSettings, settings.listNfsSharesSettings(), clientContext); + this.updateNfsShareCallable = + callableFactory.createUnaryCallable( + updateNfsShareTransportSettings, settings.updateNfsShareSettings(), clientContext); + this.updateNfsShareOperationCallable = + callableFactory.createOperationCallable( + updateNfsShareTransportSettings, + settings.updateNfsShareOperationSettings(), + clientContext, + operationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -745,6 +726,17 @@ public UnaryCallable getInstanceCallable() { return getInstanceCallable; } + @Override + public UnaryCallable updateInstanceCallable() { + return updateInstanceCallable; + } + + @Override + public OperationCallable + updateInstanceOperationCallable() { + return updateInstanceOperationCallable; + } + @Override public UnaryCallable resetInstanceCallable() { return resetInstanceCallable; @@ -756,6 +748,39 @@ public UnaryCallable resetInstanceCallable() { return resetInstanceOperationCallable; } + @Override + public UnaryCallable startInstanceCallable() { + return startInstanceCallable; + } + + @Override + public OperationCallable + startInstanceOperationCallable() { + return startInstanceOperationCallable; + } + + @Override + public UnaryCallable stopInstanceCallable() { + return stopInstanceCallable; + } + + @Override + public OperationCallable + stopInstanceOperationCallable() { + return stopInstanceOperationCallable; + } + + @Override + public UnaryCallable detachLunCallable() { + return detachLunCallable; + } + + @Override + public OperationCallable + detachLunOperationCallable() { + return detachLunOperationCallable; + } + @Override public UnaryCallable listVolumesCallable() { return listVolumesCallable; @@ -783,108 +808,88 @@ public UnaryCallable updateVolumeCallable() { } @Override - public UnaryCallable listNetworksCallable() { - return listNetworksCallable; - } - - @Override - public UnaryCallable listNetworksPagedCallable() { - return listNetworksPagedCallable; - } - - @Override - public UnaryCallable getNetworkCallable() { - return getNetworkCallable; - } - - @Override - public UnaryCallable - listSnapshotSchedulePoliciesCallable() { - return listSnapshotSchedulePoliciesCallable; + public UnaryCallable resizeVolumeCallable() { + return resizeVolumeCallable; } @Override - public UnaryCallable< - ListSnapshotSchedulePoliciesRequest, ListSnapshotSchedulePoliciesPagedResponse> - listSnapshotSchedulePoliciesPagedCallable() { - return listSnapshotSchedulePoliciesPagedCallable; + public OperationCallable + resizeVolumeOperationCallable() { + return resizeVolumeOperationCallable; } @Override - public UnaryCallable - getSnapshotSchedulePolicyCallable() { - return getSnapshotSchedulePolicyCallable; + public UnaryCallable listNetworksCallable() { + return listNetworksCallable; } @Override - public UnaryCallable - createSnapshotSchedulePolicyCallable() { - return createSnapshotSchedulePolicyCallable; + public UnaryCallable listNetworksPagedCallable() { + return listNetworksPagedCallable; } @Override - public UnaryCallable - updateSnapshotSchedulePolicyCallable() { - return updateSnapshotSchedulePolicyCallable; + public UnaryCallable + listNetworkUsageCallable() { + return listNetworkUsageCallable; } @Override - public UnaryCallable - deleteSnapshotSchedulePolicyCallable() { - return deleteSnapshotSchedulePolicyCallable; + public UnaryCallable getNetworkCallable() { + return getNetworkCallable; } @Override - public UnaryCallable createVolumeSnapshotCallable() { - return createVolumeSnapshotCallable; + public UnaryCallable updateNetworkCallable() { + return updateNetworkCallable; } @Override - public UnaryCallable restoreVolumeSnapshotCallable() { - return restoreVolumeSnapshotCallable; + public OperationCallable + updateNetworkOperationCallable() { + return updateNetworkOperationCallable; } @Override - public OperationCallable - restoreVolumeSnapshotOperationCallable() { - return restoreVolumeSnapshotOperationCallable; + public UnaryCallable getLunCallable() { + return getLunCallable; } @Override - public UnaryCallable deleteVolumeSnapshotCallable() { - return deleteVolumeSnapshotCallable; + public UnaryCallable listLunsCallable() { + return listLunsCallable; } @Override - public UnaryCallable getVolumeSnapshotCallable() { - return getVolumeSnapshotCallable; + public UnaryCallable listLunsPagedCallable() { + return listLunsPagedCallable; } @Override - public UnaryCallable - listVolumeSnapshotsCallable() { - return listVolumeSnapshotsCallable; + public UnaryCallable getNfsShareCallable() { + return getNfsShareCallable; } @Override - public UnaryCallable - listVolumeSnapshotsPagedCallable() { - return listVolumeSnapshotsPagedCallable; + public UnaryCallable listNfsSharesCallable() { + return listNfsSharesCallable; } @Override - public UnaryCallable getLunCallable() { - return getLunCallable; + public UnaryCallable + listNfsSharesPagedCallable() { + return listNfsSharesPagedCallable; } @Override - public UnaryCallable listLunsCallable() { - return listLunsCallable; + public UnaryCallable updateNfsShareCallable() { + return updateNfsShareCallable; } @Override - public UnaryCallable listLunsPagedCallable() { - return listLunsPagedCallable; + public OperationCallable + updateNfsShareOperationCallable() { + return updateNfsShareOperationCallable; } @Override diff --git a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java similarity index 65% rename from google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java index 8d5d158..7a2ef9f 100644 --- a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java @@ -19,8 +19,7 @@ import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListInstancesPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListLunsPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNetworksPagedResponse; -import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListSnapshotSchedulePoliciesPagedResponse; -import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumeSnapshotsPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNfsSharesPagedResponse; import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -35,7 +34,6 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; -import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; @@ -185,6 +183,7 @@ public void getInstanceTest() throws Exception { Instance expectedResponse = Instance.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setMachineType("machineType-218117087") @@ -193,6 +192,10 @@ public void getInstanceTest() throws Exception { .addAllLuns(new ArrayList()) .addAllNetworks(new ArrayList()) .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) .build(); mockBareMetalSolution.addResponse(expectedResponse); @@ -231,6 +234,7 @@ public void getInstanceTest2() throws Exception { Instance expectedResponse = Instance.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setMachineType("machineType-218117087") @@ -239,6 +243,10 @@ public void getInstanceTest2() throws Exception { .addAllLuns(new ArrayList()) .addAllNetworks(new ArrayList()) .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) .build(); mockBareMetalSolution.addResponse(expectedResponse); @@ -273,26 +281,44 @@ public void getInstanceExceptionTest2() throws Exception { } @Test - public void resetInstanceTest() throws Exception { - ResetInstanceResponse expectedResponse = ResetInstanceResponse.newBuilder().build(); + public void updateInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); Operation resultOperation = Operation.newBuilder() - .setName("resetInstanceTest") + .setName("updateInstanceTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockBareMetalSolution.addResponse(resultOperation); - InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Instance instance = Instance.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - ResetInstanceResponse actualResponse = client.resetInstanceAsync(name).get(); + Instance actualResponse = client.updateInstanceAsync(instance, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ResetInstanceRequest actualRequest = ((ResetInstanceRequest) actualRequests.get(0)); + UpdateInstanceRequest actualRequest = ((UpdateInstanceRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -300,13 +326,14 @@ public void resetInstanceTest() throws Exception { } @Test - public void resetInstanceExceptionTest() throws Exception { + public void updateInstanceExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - client.resetInstanceAsync(name).get(); + Instance instance = Instance.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateInstanceAsync(instance, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -316,7 +343,7 @@ public void resetInstanceExceptionTest() throws Exception { } @Test - public void resetInstanceTest2() throws Exception { + public void resetInstanceTest() throws Exception { ResetInstanceResponse expectedResponse = ResetInstanceResponse.newBuilder().build(); Operation resultOperation = Operation.newBuilder() @@ -326,7 +353,7 @@ public void resetInstanceTest2() throws Exception { .build(); mockBareMetalSolution.addResponse(resultOperation); - String name = "name3373707"; + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); ResetInstanceResponse actualResponse = client.resetInstanceAsync(name).get(); Assert.assertEquals(expectedResponse, actualResponse); @@ -335,7 +362,7 @@ public void resetInstanceTest2() throws Exception { Assert.assertEquals(1, actualRequests.size()); ResetInstanceRequest actualRequest = ((ResetInstanceRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -343,12 +370,12 @@ public void resetInstanceTest2() throws Exception { } @Test - public void resetInstanceExceptionTest2() throws Exception { + public void resetInstanceExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - String name = "name3373707"; + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); client.resetInstanceAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -359,29 +386,26 @@ public void resetInstanceExceptionTest2() throws Exception { } @Test - public void listVolumesTest() throws Exception { - Volume responsesElement = Volume.newBuilder().build(); - ListVolumesResponse expectedResponse = - ListVolumesResponse.newBuilder() - .setNextPageToken("") - .addAllVolumes(Arrays.asList(responsesElement)) + public void resetInstanceTest2() throws Exception { + ResetInstanceResponse expectedResponse = ResetInstanceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockBareMetalSolution.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListVolumesPagedResponse pagedListResponse = client.listVolumes(parent); + mockBareMetalSolution.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "name3373707"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getVolumesList().get(0), resources.get(0)); + ResetInstanceResponse actualResponse = client.resetInstanceAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListVolumesRequest actualRequest = ((ListVolumesRequest) actualRequests.get(0)); + ResetInstanceRequest actualRequest = ((ResetInstanceRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -389,43 +413,42 @@ public void listVolumesTest() throws Exception { } @Test - public void listVolumesExceptionTest() throws Exception { + public void resetInstanceExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listVolumes(parent); + String name = "name3373707"; + client.resetInstanceAsync(name).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void listVolumesTest2() throws Exception { - Volume responsesElement = Volume.newBuilder().build(); - ListVolumesResponse expectedResponse = - ListVolumesResponse.newBuilder() - .setNextPageToken("") - .addAllVolumes(Arrays.asList(responsesElement)) + public void startInstanceTest() throws Exception { + StartInstanceResponse expectedResponse = StartInstanceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockBareMetalSolution.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListVolumesPagedResponse pagedListResponse = client.listVolumes(parent); + mockBareMetalSolution.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getVolumesList().get(0), resources.get(0)); + StartInstanceResponse actualResponse = client.startInstanceAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListVolumesRequest actualRequest = ((ListVolumesRequest) actualRequests.get(0)); + StartInstanceRequest actualRequest = ((StartInstanceRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -433,46 +456,42 @@ public void listVolumesTest2() throws Exception { } @Test - public void listVolumesExceptionTest2() throws Exception { + public void startInstanceExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - String parent = "parent-995424086"; - client.listVolumes(parent); + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.startInstanceAsync(name).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void getVolumeTest() throws Exception { - Volume expectedResponse = - Volume.newBuilder() - .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) - .setRequestedSizeGib(525454387) - .setCurrentSizeGib(72696456) - .setAutoGrownSizeGib(1245638678) - .setRemainingSpaceGib(1423108606) - .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) - .setSnapshotSchedulePolicy( - SnapshotSchedulePolicyName.of( - "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - .toString()) + public void startInstanceTest2() throws Exception { + StartInstanceResponse expectedResponse = StartInstanceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockBareMetalSolution.addResponse(expectedResponse); + mockBareMetalSolution.addResponse(resultOperation); - VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + String name = "name3373707"; - Volume actualResponse = client.getVolume(name); + StartInstanceResponse actualResponse = client.startInstanceAsync(name).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetVolumeRequest actualRequest = ((GetVolumeRequest) actualRequests.get(0)); + StartInstanceRequest actualRequest = ((StartInstanceRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -480,46 +499,42 @@ public void getVolumeTest() throws Exception { } @Test - public void getVolumeExceptionTest() throws Exception { + public void startInstanceExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - client.getVolume(name); + String name = "name3373707"; + client.startInstanceAsync(name).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void getVolumeTest2() throws Exception { - Volume expectedResponse = - Volume.newBuilder() - .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) - .setRequestedSizeGib(525454387) - .setCurrentSizeGib(72696456) - .setAutoGrownSizeGib(1245638678) - .setRemainingSpaceGib(1423108606) - .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) - .setSnapshotSchedulePolicy( - SnapshotSchedulePolicyName.of( - "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - .toString()) + public void stopInstanceTest() throws Exception { + StopInstanceResponse expectedResponse = StopInstanceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("stopInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockBareMetalSolution.addResponse(expectedResponse); + mockBareMetalSolution.addResponse(resultOperation); - String name = "name3373707"; + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - Volume actualResponse = client.getVolume(name); + StopInstanceResponse actualResponse = client.stopInstanceAsync(name).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetVolumeRequest actualRequest = ((GetVolumeRequest) actualRequests.get(0)); + StopInstanceRequest actualRequest = ((StopInstanceRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -527,54 +542,42 @@ public void getVolumeTest2() throws Exception { } @Test - public void getVolumeExceptionTest2() throws Exception { + public void stopInstanceExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - String name = "name3373707"; - client.getVolume(name); + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.stopInstanceAsync(name).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void updateVolumeTest() throws Exception { - Volume expectedResponse = - Volume.newBuilder() - .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) - .setRequestedSizeGib(525454387) - .setCurrentSizeGib(72696456) - .setAutoGrownSizeGib(1245638678) - .setRemainingSpaceGib(1423108606) - .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) - .setSnapshotSchedulePolicy( - SnapshotSchedulePolicyName.of( - "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - .toString()) - .build(); + public void stopInstanceTest2() throws Exception { + StopInstanceResponse expectedResponse = StopInstanceResponse.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("updateVolumeTest") + .setName("stopInstanceTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); mockBareMetalSolution.addResponse(resultOperation); - Volume volume = Volume.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = "name3373707"; - Volume actualResponse = client.updateVolumeAsync(volume, updateMask).get(); + StopInstanceResponse actualResponse = client.stopInstanceAsync(name).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateVolumeRequest actualRequest = ((UpdateVolumeRequest) actualRequests.get(0)); + StopInstanceRequest actualRequest = ((StopInstanceRequest) actualRequests.get(0)); - Assert.assertEquals(volume, actualRequest.getVolume()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -582,14 +585,13 @@ public void updateVolumeTest() throws Exception { } @Test - public void updateVolumeExceptionTest() throws Exception { + public void stopInstanceExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - Volume volume = Volume.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateVolumeAsync(volume, updateMask).get(); + String name = "name3373707"; + client.stopInstanceAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -599,29 +601,44 @@ public void updateVolumeExceptionTest() throws Exception { } @Test - public void listNetworksTest() throws Exception { - Network responsesElement = Network.newBuilder().build(); - ListNetworksResponse expectedResponse = - ListNetworksResponse.newBuilder() - .setNextPageToken("") - .addAllNetworks(Arrays.asList(responsesElement)) + public void detachLunTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) .build(); - mockBareMetalSolution.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListNetworksPagedResponse pagedListResponse = client.listNetworks(parent); + Operation resultOperation = + Operation.newBuilder() + .setName("detachLunTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBareMetalSolution.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getNetworksList().get(0), resources.get(0)); + Instance actualResponse = client.detachLunAsync(instance, lun).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListNetworksRequest actualRequest = ((ListNetworksRequest) actualRequests.get(0)); + DetachLunRequest actualRequest = ((DetachLunRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(instance.toString(), actualRequest.getInstance()); + Assert.assertEquals(lun.toString(), actualRequest.getLun()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -629,43 +646,61 @@ public void listNetworksTest() throws Exception { } @Test - public void listNetworksExceptionTest() throws Exception { + public void detachLunExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listNetworks(parent); + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + client.detachLunAsync(instance, lun).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void listNetworksTest2() throws Exception { - Network responsesElement = Network.newBuilder().build(); - ListNetworksResponse expectedResponse = - ListNetworksResponse.newBuilder() - .setNextPageToken("") - .addAllNetworks(Arrays.asList(responsesElement)) + public void detachLunTest2() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) .build(); - mockBareMetalSolution.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListNetworksPagedResponse pagedListResponse = client.listNetworks(parent); + Operation resultOperation = + Operation.newBuilder() + .setName("detachLunTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBareMetalSolution.addResponse(resultOperation); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + String lun = "lun107525"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getNetworksList().get(0), resources.get(0)); + Instance actualResponse = client.detachLunAsync(instance, lun).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListNetworksRequest actualRequest = ((ListNetworksRequest) actualRequests.get(0)); + DetachLunRequest actualRequest = ((DetachLunRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(instance.toString(), actualRequest.getInstance()); + Assert.assertEquals(lun, actualRequest.getLun()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -673,43 +708,61 @@ public void listNetworksTest2() throws Exception { } @Test - public void listNetworksExceptionTest2() throws Exception { + public void detachLunExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - String parent = "parent-995424086"; - client.listNetworks(parent); + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + String lun = "lun107525"; + client.detachLunAsync(instance, lun).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void getNetworkTest() throws Exception { - Network expectedResponse = - Network.newBuilder() - .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) - .setNetwork("network1843485230") - .setIpAddress("ipAddress1634032845") - .addAllMacAddress(new ArrayList()) - .setVlanId("vlanId-813989410") - .setCidr("cidr3053428") - .setVrf(VRF.newBuilder().build()) + public void detachLunTest3() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("detachLunTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockBareMetalSolution.addResponse(expectedResponse); + mockBareMetalSolution.addResponse(resultOperation); - NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]"); + String instance = "instance555127957"; + LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); - Network actualResponse = client.getNetwork(name); + Instance actualResponse = client.detachLunAsync(instance, lun).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetNetworkRequest actualRequest = ((GetNetworkRequest) actualRequests.get(0)); + DetachLunRequest actualRequest = ((DetachLunRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertEquals(lun.toString(), actualRequest.getLun()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -717,43 +770,61 @@ public void getNetworkTest() throws Exception { } @Test - public void getNetworkExceptionTest() throws Exception { + public void detachLunExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]"); - client.getNetwork(name); + String instance = "instance555127957"; + LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + client.detachLunAsync(instance, lun).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void getNetworkTest2() throws Exception { - Network expectedResponse = - Network.newBuilder() - .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) - .setNetwork("network1843485230") - .setIpAddress("ipAddress1634032845") - .addAllMacAddress(new ArrayList()) - .setVlanId("vlanId-813989410") - .setCidr("cidr3053428") - .setVrf(VRF.newBuilder().build()) + public void detachLunTest4() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) .build(); - mockBareMetalSolution.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("detachLunTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBareMetalSolution.addResponse(resultOperation); - String name = "name3373707"; + String instance = "instance555127957"; + String lun = "lun107525"; - Network actualResponse = client.getNetwork(name); + Instance actualResponse = client.detachLunAsync(instance, lun).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetNetworkRequest actualRequest = ((GetNetworkRequest) actualRequests.get(0)); + DetachLunRequest actualRequest = ((DetachLunRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertEquals(lun, actualRequest.getLun()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -761,44 +832,44 @@ public void getNetworkTest2() throws Exception { } @Test - public void getNetworkExceptionTest2() throws Exception { + public void detachLunExceptionTest4() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - String name = "name3373707"; - client.getNetwork(name); + String instance = "instance555127957"; + String lun = "lun107525"; + client.detachLunAsync(instance, lun).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void listSnapshotSchedulePoliciesTest() throws Exception { - SnapshotSchedulePolicy responsesElement = SnapshotSchedulePolicy.newBuilder().build(); - ListSnapshotSchedulePoliciesResponse expectedResponse = - ListSnapshotSchedulePoliciesResponse.newBuilder() + public void listVolumesTest() throws Exception { + Volume responsesElement = Volume.newBuilder().build(); + ListVolumesResponse expectedResponse = + ListVolumesResponse.newBuilder() .setNextPageToken("") - .addAllSnapshotSchedulePolicies(Arrays.asList(responsesElement)) + .addAllVolumes(Arrays.asList(responsesElement)) .build(); mockBareMetalSolution.addResponse(expectedResponse); LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ListSnapshotSchedulePoliciesPagedResponse pagedListResponse = - client.listSnapshotSchedulePolicies(parent); + ListVolumesPagedResponse pagedListResponse = client.listVolumes(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getSnapshotSchedulePoliciesList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getVolumesList().get(0), resources.get(0)); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSnapshotSchedulePoliciesRequest actualRequest = - ((ListSnapshotSchedulePoliciesRequest) actualRequests.get(0)); + ListVolumesRequest actualRequest = ((ListVolumesRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -808,13 +879,13 @@ public void listSnapshotSchedulePoliciesTest() throws Exception { } @Test - public void listSnapshotSchedulePoliciesExceptionTest() throws Exception { + public void listVolumesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listSnapshotSchedulePolicies(parent); + client.listVolumes(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -822,30 +893,27 @@ public void listSnapshotSchedulePoliciesExceptionTest() throws Exception { } @Test - public void listSnapshotSchedulePoliciesTest2() throws Exception { - SnapshotSchedulePolicy responsesElement = SnapshotSchedulePolicy.newBuilder().build(); - ListSnapshotSchedulePoliciesResponse expectedResponse = - ListSnapshotSchedulePoliciesResponse.newBuilder() + public void listVolumesTest2() throws Exception { + Volume responsesElement = Volume.newBuilder().build(); + ListVolumesResponse expectedResponse = + ListVolumesResponse.newBuilder() .setNextPageToken("") - .addAllSnapshotSchedulePolicies(Arrays.asList(responsesElement)) + .addAllVolumes(Arrays.asList(responsesElement)) .build(); mockBareMetalSolution.addResponse(expectedResponse); String parent = "parent-995424086"; - ListSnapshotSchedulePoliciesPagedResponse pagedListResponse = - client.listSnapshotSchedulePolicies(parent); + ListVolumesPagedResponse pagedListResponse = client.listVolumes(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getSnapshotSchedulePoliciesList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getVolumesList().get(0), resources.get(0)); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSnapshotSchedulePoliciesRequest actualRequest = - ((ListSnapshotSchedulePoliciesRequest) actualRequests.get(0)); + ListVolumesRequest actualRequest = ((ListVolumesRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -855,13 +923,13 @@ public void listSnapshotSchedulePoliciesTest2() throws Exception { } @Test - public void listSnapshotSchedulePoliciesExceptionTest2() throws Exception { + public void listVolumesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { String parent = "parent-995424086"; - client.listSnapshotSchedulePolicies(parent); + client.listVolumes(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -869,28 +937,31 @@ public void listSnapshotSchedulePoliciesExceptionTest2() throws Exception { } @Test - public void getSnapshotSchedulePolicyTest() throws Exception { - SnapshotSchedulePolicy expectedResponse = - SnapshotSchedulePolicy.newBuilder() - .setName( - SnapshotSchedulePolicyName.of( - "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - .toString()) - .setDescription("description-1724546052") - .addAllSchedules(new ArrayList()) + public void getVolumeTest() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") .build(); mockBareMetalSolution.addResponse(expectedResponse); - SnapshotSchedulePolicyName name = - SnapshotSchedulePolicyName.of("[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]"); + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - SnapshotSchedulePolicy actualResponse = client.getSnapshotSchedulePolicy(name); + Volume actualResponse = client.getVolume(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSnapshotSchedulePolicyRequest actualRequest = - ((GetSnapshotSchedulePolicyRequest) actualRequests.get(0)); + GetVolumeRequest actualRequest = ((GetVolumeRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -900,14 +971,13 @@ public void getSnapshotSchedulePolicyTest() throws Exception { } @Test - public void getSnapshotSchedulePolicyExceptionTest() throws Exception { + public void getVolumeExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - SnapshotSchedulePolicyName name = - SnapshotSchedulePolicyName.of("[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]"); - client.getSnapshotSchedulePolicy(name); + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + client.getVolume(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -915,27 +985,31 @@ public void getSnapshotSchedulePolicyExceptionTest() throws Exception { } @Test - public void getSnapshotSchedulePolicyTest2() throws Exception { - SnapshotSchedulePolicy expectedResponse = - SnapshotSchedulePolicy.newBuilder() - .setName( - SnapshotSchedulePolicyName.of( - "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - .toString()) - .setDescription("description-1724546052") - .addAllSchedules(new ArrayList()) + public void getVolumeTest2() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") .build(); mockBareMetalSolution.addResponse(expectedResponse); String name = "name3373707"; - SnapshotSchedulePolicy actualResponse = client.getSnapshotSchedulePolicy(name); + Volume actualResponse = client.getVolume(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSnapshotSchedulePolicyRequest actualRequest = - ((GetSnapshotSchedulePolicyRequest) actualRequests.get(0)); + GetVolumeRequest actualRequest = ((GetVolumeRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -945,13 +1019,13 @@ public void getSnapshotSchedulePolicyTest2() throws Exception { } @Test - public void getSnapshotSchedulePolicyExceptionTest2() throws Exception { + public void getVolumeExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { String name = "name3373707"; - client.getSnapshotSchedulePolicy(name); + client.getVolume(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -959,35 +1033,41 @@ public void getSnapshotSchedulePolicyExceptionTest2() throws Exception { } @Test - public void createSnapshotSchedulePolicyTest() throws Exception { - SnapshotSchedulePolicy expectedResponse = - SnapshotSchedulePolicy.newBuilder() - .setName( - SnapshotSchedulePolicyName.of( - "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - .toString()) - .setDescription("description-1724546052") - .addAllSchedules(new ArrayList()) + public void updateVolumeTest() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") .build(); - mockBareMetalSolution.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVolumeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBareMetalSolution.addResponse(resultOperation); - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - SnapshotSchedulePolicy snapshotSchedulePolicy = SnapshotSchedulePolicy.newBuilder().build(); - String snapshotSchedulePolicyId = "snapshotSchedulePolicyId1929948040"; + Volume volume = Volume.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - SnapshotSchedulePolicy actualResponse = - client.createSnapshotSchedulePolicy( - parent, snapshotSchedulePolicy, snapshotSchedulePolicyId); + Volume actualResponse = client.updateVolumeAsync(volume, updateMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateSnapshotSchedulePolicyRequest actualRequest = - ((CreateSnapshotSchedulePolicyRequest) actualRequests.get(0)); + UpdateVolumeRequest actualRequest = ((UpdateVolumeRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(snapshotSchedulePolicy, actualRequest.getSnapshotSchedulePolicy()); - Assert.assertEquals(snapshotSchedulePolicyId, actualRequest.getSnapshotSchedulePolicyId()); + Assert.assertEquals(volume, actualRequest.getVolume()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -995,51 +1075,58 @@ public void createSnapshotSchedulePolicyTest() throws Exception { } @Test - public void createSnapshotSchedulePolicyExceptionTest() throws Exception { + public void updateVolumeExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - SnapshotSchedulePolicy snapshotSchedulePolicy = SnapshotSchedulePolicy.newBuilder().build(); - String snapshotSchedulePolicyId = "snapshotSchedulePolicyId1929948040"; - client.createSnapshotSchedulePolicy(parent, snapshotSchedulePolicy, snapshotSchedulePolicyId); + Volume volume = Volume.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVolumeAsync(volume, updateMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void createSnapshotSchedulePolicyTest2() throws Exception { - SnapshotSchedulePolicy expectedResponse = - SnapshotSchedulePolicy.newBuilder() - .setName( - SnapshotSchedulePolicyName.of( - "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - .toString()) - .setDescription("description-1724546052") - .addAllSchedules(new ArrayList()) + public void resizeVolumeTest() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") .build(); - mockBareMetalSolution.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("resizeVolumeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBareMetalSolution.addResponse(resultOperation); - String parent = "parent-995424086"; - SnapshotSchedulePolicy snapshotSchedulePolicy = SnapshotSchedulePolicy.newBuilder().build(); - String snapshotSchedulePolicyId = "snapshotSchedulePolicyId1929948040"; + VolumeName volume = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + long sizeGib = 847296130; - SnapshotSchedulePolicy actualResponse = - client.createSnapshotSchedulePolicy( - parent, snapshotSchedulePolicy, snapshotSchedulePolicyId); + Volume actualResponse = client.resizeVolumeAsync(volume, sizeGib).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateSnapshotSchedulePolicyRequest actualRequest = - ((CreateSnapshotSchedulePolicyRequest) actualRequests.get(0)); + ResizeVolumeRequest actualRequest = ((ResizeVolumeRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(snapshotSchedulePolicy, actualRequest.getSnapshotSchedulePolicy()); - Assert.assertEquals(snapshotSchedulePolicyId, actualRequest.getSnapshotSchedulePolicyId()); + Assert.assertEquals(volume.toString(), actualRequest.getVolume()); + Assert.assertEquals(sizeGib, actualRequest.getSizeGib()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1047,48 +1134,58 @@ public void createSnapshotSchedulePolicyTest2() throws Exception { } @Test - public void createSnapshotSchedulePolicyExceptionTest2() throws Exception { + public void resizeVolumeExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - String parent = "parent-995424086"; - SnapshotSchedulePolicy snapshotSchedulePolicy = SnapshotSchedulePolicy.newBuilder().build(); - String snapshotSchedulePolicyId = "snapshotSchedulePolicyId1929948040"; - client.createSnapshotSchedulePolicy(parent, snapshotSchedulePolicy, snapshotSchedulePolicyId); + VolumeName volume = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + long sizeGib = 847296130; + client.resizeVolumeAsync(volume, sizeGib).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void updateSnapshotSchedulePolicyTest() throws Exception { - SnapshotSchedulePolicy expectedResponse = - SnapshotSchedulePolicy.newBuilder() - .setName( - SnapshotSchedulePolicyName.of( - "[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]") - .toString()) - .setDescription("description-1724546052") - .addAllSchedules(new ArrayList()) + public void resizeVolumeTest2() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") .build(); - mockBareMetalSolution.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("resizeVolumeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBareMetalSolution.addResponse(resultOperation); - SnapshotSchedulePolicy snapshotSchedulePolicy = SnapshotSchedulePolicy.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String volume = "volume-810883302"; + long sizeGib = 847296130; - SnapshotSchedulePolicy actualResponse = - client.updateSnapshotSchedulePolicy(snapshotSchedulePolicy, updateMask); + Volume actualResponse = client.resizeVolumeAsync(volume, sizeGib).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateSnapshotSchedulePolicyRequest actualRequest = - ((UpdateSnapshotSchedulePolicyRequest) actualRequests.get(0)); + ResizeVolumeRequest actualRequest = ((ResizeVolumeRequest) actualRequests.get(0)); - Assert.assertEquals(snapshotSchedulePolicy, actualRequest.getSnapshotSchedulePolicy()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(volume, actualRequest.getVolume()); + Assert.assertEquals(sizeGib, actualRequest.getSizeGib()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1096,72 +1193,46 @@ public void updateSnapshotSchedulePolicyTest() throws Exception { } @Test - public void updateSnapshotSchedulePolicyExceptionTest() throws Exception { + public void resizeVolumeExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - SnapshotSchedulePolicy snapshotSchedulePolicy = SnapshotSchedulePolicy.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateSnapshotSchedulePolicy(snapshotSchedulePolicy, updateMask); + String volume = "volume-810883302"; + long sizeGib = 847296130; + client.resizeVolumeAsync(volume, sizeGib).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void deleteSnapshotSchedulePolicyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listNetworksTest() throws Exception { + Network responsesElement = Network.newBuilder().build(); + ListNetworksResponse expectedResponse = + ListNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllNetworks(Arrays.asList(responsesElement)) + .build(); mockBareMetalSolution.addResponse(expectedResponse); - SnapshotSchedulePolicyName name = - SnapshotSchedulePolicyName.of("[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]"); - - client.deleteSnapshotSchedulePolicy(name); - - List actualRequests = mockBareMetalSolution.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteSnapshotSchedulePolicyRequest actualRequest = - ((DeleteSnapshotSchedulePolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteSnapshotSchedulePolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBareMetalSolution.addException(exception); - - try { - SnapshotSchedulePolicyName name = - SnapshotSchedulePolicyName.of("[PROJECT]", "[LOCATION]", "[SNAPSHOT_SCHEDULE_POLICY]"); - client.deleteSnapshotSchedulePolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - @Test - public void deleteSnapshotSchedulePolicyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockBareMetalSolution.addResponse(expectedResponse); + ListNetworksPagedResponse pagedListResponse = client.listNetworks(parent); - String name = "name3373707"; + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - client.deleteSnapshotSchedulePolicy(name); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworksList().get(0), resources.get(0)); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteSnapshotSchedulePolicyRequest actualRequest = - ((DeleteSnapshotSchedulePolicyRequest) actualRequests.get(0)); + ListNetworksRequest actualRequest = ((ListNetworksRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1169,13 +1240,13 @@ public void deleteSnapshotSchedulePolicyTest2() throws Exception { } @Test - public void deleteSnapshotSchedulePolicyExceptionTest2() throws Exception { + public void listNetworksExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - String name = "name3373707"; - client.deleteSnapshotSchedulePolicy(name); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNetworks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1183,32 +1254,29 @@ public void deleteSnapshotSchedulePolicyExceptionTest2() throws Exception { } @Test - public void createVolumeSnapshotTest() throws Exception { - VolumeSnapshot expectedResponse = - VolumeSnapshot.newBuilder() - .setName( - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - .toString()) - .setDescription("description-1724546052") - .setSizeBytes(-1796325715) - .setCreateTime(Timestamp.newBuilder().build()) - .setStorageVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + public void listNetworksTest2() throws Exception { + Network responsesElement = Network.newBuilder().build(); + ListNetworksResponse expectedResponse = + ListNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllNetworks(Arrays.asList(responsesElement)) .build(); mockBareMetalSolution.addResponse(expectedResponse); - VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - VolumeSnapshot volumeSnapshot = VolumeSnapshot.newBuilder().build(); + String parent = "parent-995424086"; - VolumeSnapshot actualResponse = client.createVolumeSnapshot(parent, volumeSnapshot); - Assert.assertEquals(expectedResponse, actualResponse); + ListNetworksPagedResponse pagedListResponse = client.listNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworksList().get(0), resources.get(0)); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateVolumeSnapshotRequest actualRequest = - ((CreateVolumeSnapshotRequest) actualRequests.get(0)); + ListNetworksRequest actualRequest = ((ListNetworksRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(volumeSnapshot, actualRequest.getVolumeSnapshot()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1216,14 +1284,13 @@ public void createVolumeSnapshotTest() throws Exception { } @Test - public void createVolumeSnapshotExceptionTest() throws Exception { + public void listNetworksExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - VolumeSnapshot volumeSnapshot = VolumeSnapshot.newBuilder().build(); - client.createVolumeSnapshot(parent, volumeSnapshot); + String parent = "parent-995424086"; + client.listNetworks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1231,32 +1298,21 @@ public void createVolumeSnapshotExceptionTest() throws Exception { } @Test - public void createVolumeSnapshotTest2() throws Exception { - VolumeSnapshot expectedResponse = - VolumeSnapshot.newBuilder() - .setName( - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - .toString()) - .setDescription("description-1724546052") - .setSizeBytes(-1796325715) - .setCreateTime(Timestamp.newBuilder().build()) - .setStorageVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) - .build(); + public void listNetworkUsageTest() throws Exception { + ListNetworkUsageResponse expectedResponse = + ListNetworkUsageResponse.newBuilder().addAllNetworks(new ArrayList()).build(); mockBareMetalSolution.addResponse(expectedResponse); - String parent = "parent-995424086"; - VolumeSnapshot volumeSnapshot = VolumeSnapshot.newBuilder().build(); + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); - VolumeSnapshot actualResponse = client.createVolumeSnapshot(parent, volumeSnapshot); + ListNetworkUsageResponse actualResponse = client.listNetworkUsage(location); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateVolumeSnapshotRequest actualRequest = - ((CreateVolumeSnapshotRequest) actualRequests.get(0)); + ListNetworkUsageRequest actualRequest = ((ListNetworkUsageRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(volumeSnapshot, actualRequest.getVolumeSnapshot()); + Assert.assertEquals(location.toString(), actualRequest.getLocation()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1264,14 +1320,13 @@ public void createVolumeSnapshotTest2() throws Exception { } @Test - public void createVolumeSnapshotExceptionTest2() throws Exception { + public void listNetworkUsageExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - String parent = "parent-995424086"; - VolumeSnapshot volumeSnapshot = VolumeSnapshot.newBuilder().build(); - client.createVolumeSnapshot(parent, volumeSnapshot); + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNetworkUsage(location); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1279,37 +1334,21 @@ public void createVolumeSnapshotExceptionTest2() throws Exception { } @Test - public void restoreVolumeSnapshotTest() throws Exception { - VolumeSnapshot expectedResponse = - VolumeSnapshot.newBuilder() - .setName( - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - .toString()) - .setDescription("description-1724546052") - .setSizeBytes(-1796325715) - .setCreateTime(Timestamp.newBuilder().build()) - .setStorageVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("restoreVolumeSnapshotTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockBareMetalSolution.addResponse(resultOperation); + public void listNetworkUsageTest2() throws Exception { + ListNetworkUsageResponse expectedResponse = + ListNetworkUsageResponse.newBuilder().addAllNetworks(new ArrayList()).build(); + mockBareMetalSolution.addResponse(expectedResponse); - VolumeSnapshotName volumeSnapshot = - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"); + String location = "location1901043637"; - VolumeSnapshot actualResponse = client.restoreVolumeSnapshotAsync(volumeSnapshot).get(); + ListNetworkUsageResponse actualResponse = client.listNetworkUsage(location); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - RestoreVolumeSnapshotRequest actualRequest = - ((RestoreVolumeSnapshotRequest) actualRequests.get(0)); + ListNetworkUsageRequest actualRequest = ((ListNetworkUsageRequest) actualRequests.get(0)); - Assert.assertEquals(volumeSnapshot.toString(), actualRequest.getVolumeSnapshot()); + Assert.assertEquals(location, actualRequest.getLocation()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1317,53 +1356,46 @@ public void restoreVolumeSnapshotTest() throws Exception { } @Test - public void restoreVolumeSnapshotExceptionTest() throws Exception { + public void listNetworkUsageExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - VolumeSnapshotName volumeSnapshot = - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"); - client.restoreVolumeSnapshotAsync(volumeSnapshot).get(); + String location = "location1901043637"; + client.listNetworkUsage(location); Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void restoreVolumeSnapshotTest2() throws Exception { - VolumeSnapshot expectedResponse = - VolumeSnapshot.newBuilder() - .setName( - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - .toString()) - .setDescription("description-1724546052") - .setSizeBytes(-1796325715) - .setCreateTime(Timestamp.newBuilder().build()) - .setStorageVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("restoreVolumeSnapshotTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) + public void getNetworkTest() throws Exception { + Network expectedResponse = + Network.newBuilder() + .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + .setId("id3355") + .setIpAddress("ipAddress1634032845") + .addAllMacAddress(new ArrayList()) + .setVlanId("vlanId-813989410") + .setCidr("cidr3053428") + .setVrf(VRF.newBuilder().build()) + .putAllLabels(new HashMap()) + .setServicesCidr("servicesCidr377076978") + .addAllReservations(new ArrayList()) .build(); - mockBareMetalSolution.addResponse(resultOperation); + mockBareMetalSolution.addResponse(expectedResponse); - String volumeSnapshot = "volumeSnapshot1771857662"; + NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]"); - VolumeSnapshot actualResponse = client.restoreVolumeSnapshotAsync(volumeSnapshot).get(); + Network actualResponse = client.getNetwork(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - RestoreVolumeSnapshotRequest actualRequest = - ((RestoreVolumeSnapshotRequest) actualRequests.get(0)); + GetNetworkRequest actualRequest = ((GetNetworkRequest) actualRequests.get(0)); - Assert.assertEquals(volumeSnapshot, actualRequest.getVolumeSnapshot()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1371,37 +1403,46 @@ public void restoreVolumeSnapshotTest2() throws Exception { } @Test - public void restoreVolumeSnapshotExceptionTest2() throws Exception { + public void getNetworkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - String volumeSnapshot = "volumeSnapshot1771857662"; - client.restoreVolumeSnapshotAsync(volumeSnapshot).get(); + NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]"); + client.getNetwork(name); Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void deleteVolumeSnapshotTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getNetworkTest2() throws Exception { + Network expectedResponse = + Network.newBuilder() + .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + .setId("id3355") + .setIpAddress("ipAddress1634032845") + .addAllMacAddress(new ArrayList()) + .setVlanId("vlanId-813989410") + .setCidr("cidr3053428") + .setVrf(VRF.newBuilder().build()) + .putAllLabels(new HashMap()) + .setServicesCidr("servicesCidr377076978") + .addAllReservations(new ArrayList()) + .build(); mockBareMetalSolution.addResponse(expectedResponse); - VolumeSnapshotName name = - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"); + String name = "name3373707"; - client.deleteVolumeSnapshot(name); + Network actualResponse = client.getNetwork(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteVolumeSnapshotRequest actualRequest = - ((DeleteVolumeSnapshotRequest) actualRequests.get(0)); + GetNetworkRequest actualRequest = ((GetNetworkRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1409,14 +1450,13 @@ public void deleteVolumeSnapshotTest() throws Exception { } @Test - public void deleteVolumeSnapshotExceptionTest() throws Exception { + public void getNetworkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - VolumeSnapshotName name = - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"); - client.deleteVolumeSnapshot(name); + String name = "name3373707"; + client.getNetwork(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1424,20 +1464,40 @@ public void deleteVolumeSnapshotExceptionTest() throws Exception { } @Test - public void deleteVolumeSnapshotTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockBareMetalSolution.addResponse(expectedResponse); + public void updateNetworkTest() throws Exception { + Network expectedResponse = + Network.newBuilder() + .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + .setId("id3355") + .setIpAddress("ipAddress1634032845") + .addAllMacAddress(new ArrayList()) + .setVlanId("vlanId-813989410") + .setCidr("cidr3053428") + .setVrf(VRF.newBuilder().build()) + .putAllLabels(new HashMap()) + .setServicesCidr("servicesCidr377076978") + .addAllReservations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBareMetalSolution.addResponse(resultOperation); - String name = "name3373707"; + Network network = Network.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - client.deleteVolumeSnapshot(name); + Network actualResponse = client.updateNetworkAsync(network, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteVolumeSnapshotRequest actualRequest = - ((DeleteVolumeSnapshotRequest) actualRequests.get(0)); + UpdateNetworkRequest actualRequest = ((UpdateNetworkRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(network, actualRequest.getNetwork()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1445,42 +1505,44 @@ public void deleteVolumeSnapshotTest2() throws Exception { } @Test - public void deleteVolumeSnapshotExceptionTest2() throws Exception { + public void updateNetworkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - String name = "name3373707"; - client.deleteVolumeSnapshot(name); + Network network = Network.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNetworkAsync(network, updateMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void getVolumeSnapshotTest() throws Exception { - VolumeSnapshot expectedResponse = - VolumeSnapshot.newBuilder() - .setName( - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - .toString()) - .setDescription("description-1724546052") - .setSizeBytes(-1796325715) - .setCreateTime(Timestamp.newBuilder().build()) + public void getLunTest() throws Exception { + Lun expectedResponse = + Lun.newBuilder() + .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + .setId("id3355") + .setSizeGb(2105542105) .setStorageVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setShareable(true) + .setBootLun(true) + .setWwid("wwid3662843") .build(); mockBareMetalSolution.addResponse(expectedResponse); - VolumeSnapshotName name = - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"); + LunName name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); - VolumeSnapshot actualResponse = client.getVolumeSnapshot(name); + Lun actualResponse = client.getLun(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetVolumeSnapshotRequest actualRequest = ((GetVolumeSnapshotRequest) actualRequests.get(0)); + GetLunRequest actualRequest = ((GetLunRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -1490,14 +1552,13 @@ public void getVolumeSnapshotTest() throws Exception { } @Test - public void getVolumeSnapshotExceptionTest() throws Exception { + public void getLunExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - VolumeSnapshotName name = - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"); - client.getVolumeSnapshot(name); + LunName name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + client.getLun(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1505,27 +1566,27 @@ public void getVolumeSnapshotExceptionTest() throws Exception { } @Test - public void getVolumeSnapshotTest2() throws Exception { - VolumeSnapshot expectedResponse = - VolumeSnapshot.newBuilder() - .setName( - VolumeSnapshotName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]") - .toString()) - .setDescription("description-1724546052") - .setSizeBytes(-1796325715) - .setCreateTime(Timestamp.newBuilder().build()) + public void getLunTest2() throws Exception { + Lun expectedResponse = + Lun.newBuilder() + .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + .setId("id3355") + .setSizeGb(2105542105) .setStorageVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setShareable(true) + .setBootLun(true) + .setWwid("wwid3662843") .build(); mockBareMetalSolution.addResponse(expectedResponse); String name = "name3373707"; - VolumeSnapshot actualResponse = client.getVolumeSnapshot(name); + Lun actualResponse = client.getLun(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetVolumeSnapshotRequest actualRequest = ((GetVolumeSnapshotRequest) actualRequests.get(0)); + GetLunRequest actualRequest = ((GetLunRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1535,13 +1596,13 @@ public void getVolumeSnapshotTest2() throws Exception { } @Test - public void getVolumeSnapshotExceptionTest2() throws Exception { + public void getLunExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { String name = "name3373707"; - client.getVolumeSnapshot(name); + client.getLun(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1549,27 +1610,27 @@ public void getVolumeSnapshotExceptionTest2() throws Exception { } @Test - public void listVolumeSnapshotsTest() throws Exception { - VolumeSnapshot responsesElement = VolumeSnapshot.newBuilder().build(); - ListVolumeSnapshotsResponse expectedResponse = - ListVolumeSnapshotsResponse.newBuilder() + public void listLunsTest() throws Exception { + Lun responsesElement = Lun.newBuilder().build(); + ListLunsResponse expectedResponse = + ListLunsResponse.newBuilder() .setNextPageToken("") - .addAllVolumeSnapshots(Arrays.asList(responsesElement)) + .addAllLuns(Arrays.asList(responsesElement)) .build(); mockBareMetalSolution.addResponse(expectedResponse); VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - ListVolumeSnapshotsPagedResponse pagedListResponse = client.listVolumeSnapshots(parent); + ListLunsPagedResponse pagedListResponse = client.listLuns(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getVolumeSnapshotsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getLunsList().get(0), resources.get(0)); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListVolumeSnapshotsRequest actualRequest = ((ListVolumeSnapshotsRequest) actualRequests.get(0)); + ListLunsRequest actualRequest = ((ListLunsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -1579,13 +1640,13 @@ public void listVolumeSnapshotsTest() throws Exception { } @Test - public void listVolumeSnapshotsExceptionTest() throws Exception { + public void listLunsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - client.listVolumeSnapshots(parent); + client.listLuns(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1593,27 +1654,27 @@ public void listVolumeSnapshotsExceptionTest() throws Exception { } @Test - public void listVolumeSnapshotsTest2() throws Exception { - VolumeSnapshot responsesElement = VolumeSnapshot.newBuilder().build(); - ListVolumeSnapshotsResponse expectedResponse = - ListVolumeSnapshotsResponse.newBuilder() + public void listLunsTest2() throws Exception { + Lun responsesElement = Lun.newBuilder().build(); + ListLunsResponse expectedResponse = + ListLunsResponse.newBuilder() .setNextPageToken("") - .addAllVolumeSnapshots(Arrays.asList(responsesElement)) + .addAllLuns(Arrays.asList(responsesElement)) .build(); mockBareMetalSolution.addResponse(expectedResponse); String parent = "parent-995424086"; - ListVolumeSnapshotsPagedResponse pagedListResponse = client.listVolumeSnapshots(parent); + ListLunsPagedResponse pagedListResponse = client.listLuns(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getVolumeSnapshotsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getLunsList().get(0), resources.get(0)); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListVolumeSnapshotsRequest actualRequest = ((ListVolumeSnapshotsRequest) actualRequests.get(0)); + ListLunsRequest actualRequest = ((ListLunsRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -1623,13 +1684,13 @@ public void listVolumeSnapshotsTest2() throws Exception { } @Test - public void listVolumeSnapshotsExceptionTest2() throws Exception { + public void listLunsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { String parent = "parent-995424086"; - client.listVolumeSnapshots(parent); + client.listLuns(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1637,26 +1698,25 @@ public void listVolumeSnapshotsExceptionTest2() throws Exception { } @Test - public void getLunTest() throws Exception { - Lun expectedResponse = - Lun.newBuilder() - .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) - .setSizeGb(2105542105) - .setStorageVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) - .setShareable(true) - .setBootLun(true) - .setWwid("wwid3662843") + public void getNfsShareTest() throws Exception { + NfsShare expectedResponse = + NfsShare.newBuilder() + .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) + .setNfsShareId("nfsShareId-1834781921") + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .addAllAllowedClients(new ArrayList()) + .putAllLabels(new HashMap()) .build(); mockBareMetalSolution.addResponse(expectedResponse); - LunName name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + NFSShareName name = NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"); - Lun actualResponse = client.getLun(name); + NfsShare actualResponse = client.getNfsShare(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetLunRequest actualRequest = ((GetLunRequest) actualRequests.get(0)); + GetNfsShareRequest actualRequest = ((GetNfsShareRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -1666,13 +1726,13 @@ public void getLunTest() throws Exception { } @Test - public void getLunExceptionTest() throws Exception { + public void getNfsShareExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - LunName name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); - client.getLun(name); + NFSShareName name = NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"); + client.getNfsShare(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1680,26 +1740,25 @@ public void getLunExceptionTest() throws Exception { } @Test - public void getLunTest2() throws Exception { - Lun expectedResponse = - Lun.newBuilder() - .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) - .setSizeGb(2105542105) - .setStorageVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) - .setShareable(true) - .setBootLun(true) - .setWwid("wwid3662843") + public void getNfsShareTest2() throws Exception { + NfsShare expectedResponse = + NfsShare.newBuilder() + .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) + .setNfsShareId("nfsShareId-1834781921") + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .addAllAllowedClients(new ArrayList()) + .putAllLabels(new HashMap()) .build(); mockBareMetalSolution.addResponse(expectedResponse); String name = "name3373707"; - Lun actualResponse = client.getLun(name); + NfsShare actualResponse = client.getNfsShare(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetLunRequest actualRequest = ((GetLunRequest) actualRequests.get(0)); + GetNfsShareRequest actualRequest = ((GetNfsShareRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1709,13 +1768,13 @@ public void getLunTest2() throws Exception { } @Test - public void getLunExceptionTest2() throws Exception { + public void getNfsShareExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { String name = "name3373707"; - client.getLun(name); + client.getNfsShare(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1723,27 +1782,27 @@ public void getLunExceptionTest2() throws Exception { } @Test - public void listLunsTest() throws Exception { - Lun responsesElement = Lun.newBuilder().build(); - ListLunsResponse expectedResponse = - ListLunsResponse.newBuilder() + public void listNfsSharesTest() throws Exception { + NfsShare responsesElement = NfsShare.newBuilder().build(); + ListNfsSharesResponse expectedResponse = + ListNfsSharesResponse.newBuilder() .setNextPageToken("") - .addAllLuns(Arrays.asList(responsesElement)) + .addAllNfsShares(Arrays.asList(responsesElement)) .build(); mockBareMetalSolution.addResponse(expectedResponse); - VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - ListLunsPagedResponse pagedListResponse = client.listLuns(parent); + ListNfsSharesPagedResponse pagedListResponse = client.listNfsShares(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLunsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getNfsSharesList().get(0), resources.get(0)); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListLunsRequest actualRequest = ((ListLunsRequest) actualRequests.get(0)); + ListNfsSharesRequest actualRequest = ((ListNfsSharesRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -1753,13 +1812,13 @@ public void listLunsTest() throws Exception { } @Test - public void listLunsExceptionTest() throws Exception { + public void listNfsSharesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { - VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); - client.listLuns(parent); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNfsShares(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1767,27 +1826,27 @@ public void listLunsExceptionTest() throws Exception { } @Test - public void listLunsTest2() throws Exception { - Lun responsesElement = Lun.newBuilder().build(); - ListLunsResponse expectedResponse = - ListLunsResponse.newBuilder() + public void listNfsSharesTest2() throws Exception { + NfsShare responsesElement = NfsShare.newBuilder().build(); + ListNfsSharesResponse expectedResponse = + ListNfsSharesResponse.newBuilder() .setNextPageToken("") - .addAllLuns(Arrays.asList(responsesElement)) + .addAllNfsShares(Arrays.asList(responsesElement)) .build(); mockBareMetalSolution.addResponse(expectedResponse); String parent = "parent-995424086"; - ListLunsPagedResponse pagedListResponse = client.listLuns(parent); + ListNfsSharesPagedResponse pagedListResponse = client.listNfsShares(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLunsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getNfsSharesList().get(0), resources.get(0)); List actualRequests = mockBareMetalSolution.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListLunsRequest actualRequest = ((ListLunsRequest) actualRequests.get(0)); + ListNfsSharesRequest actualRequest = ((ListNfsSharesRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -1797,16 +1856,69 @@ public void listLunsTest2() throws Exception { } @Test - public void listLunsExceptionTest2() throws Exception { + public void listNfsSharesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockBareMetalSolution.addException(exception); try { String parent = "parent-995424086"; - client.listLuns(parent); + client.listNfsShares(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. } } + + @Test + public void updateNfsShareTest() throws Exception { + NfsShare expectedResponse = + NfsShare.newBuilder() + .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) + .setNfsShareId("nfsShareId-1834781921") + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .addAllAllowedClients(new ArrayList()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateNfsShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBareMetalSolution.addResponse(resultOperation); + + NfsShare nfsShare = NfsShare.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + NfsShare actualResponse = client.updateNfsShareAsync(nfsShare, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBareMetalSolution.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateNfsShareRequest actualRequest = ((UpdateNfsShareRequest) actualRequests.get(0)); + + Assert.assertEquals(nfsShare, actualRequest.getNfsShare()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateNfsShareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBareMetalSolution.addException(exception); + + try { + NfsShare nfsShare = NfsShare.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNfsShareAsync(nfsShare, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } } diff --git a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java similarity index 100% rename from google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java diff --git a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java similarity index 79% rename from google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java index 4698daa..0137faa 100644 --- a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java @@ -20,7 +20,6 @@ import com.google.cloud.baremetalsolution.v2.BareMetalSolutionGrpc.BareMetalSolutionImplBase; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; @@ -102,8 +101,8 @@ public void getInstance(GetInstanceRequest request, StreamObserver res } @Override - public void resetInstance( - ResetInstanceRequest request, StreamObserver responseObserver) { + public void updateInstance( + UpdateInstanceRequest request, StreamObserver responseObserver) { Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); @@ -115,7 +114,7 @@ public void resetInstance( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ResetInstance, expected %s or %s", + "Unrecognized response type %s for method UpdateInstance, expected %s or %s", response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); @@ -123,12 +122,12 @@ public void resetInstance( } @Override - public void listVolumes( - ListVolumesRequest request, StreamObserver responseObserver) { + public void resetInstance( + ResetInstanceRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof ListVolumesResponse) { + if (response instanceof Operation) { requests.add(request); - responseObserver.onNext(((ListVolumesResponse) response)); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -136,19 +135,20 @@ public void listVolumes( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ListVolumes, expected %s or %s", + "Unrecognized response type %s for method ResetInstance, expected %s or %s", response == null ? "null" : response.getClass().getName(), - ListVolumesResponse.class.getName(), + Operation.class.getName(), Exception.class.getName()))); } } @Override - public void getVolume(GetVolumeRequest request, StreamObserver responseObserver) { + public void startInstance( + StartInstanceRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Volume) { + if (response instanceof Operation) { requests.add(request); - responseObserver.onNext(((Volume) response)); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -156,16 +156,16 @@ public void getVolume(GetVolumeRequest request, StreamObserver responseO responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method GetVolume, expected %s or %s", + "Unrecognized response type %s for method StartInstance, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Volume.class.getName(), + Operation.class.getName(), Exception.class.getName()))); } } @Override - public void updateVolume( - UpdateVolumeRequest request, StreamObserver responseObserver) { + public void stopInstance( + StopInstanceRequest request, StreamObserver responseObserver) { Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); @@ -177,7 +177,7 @@ public void updateVolume( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method UpdateVolume, expected %s or %s", + "Unrecognized response type %s for method StopInstance, expected %s or %s", response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); @@ -185,12 +185,11 @@ public void updateVolume( } @Override - public void listNetworks( - ListNetworksRequest request, StreamObserver responseObserver) { + public void detachLun(DetachLunRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof ListNetworksResponse) { + if (response instanceof Operation) { requests.add(request); - responseObserver.onNext(((ListNetworksResponse) response)); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -198,19 +197,20 @@ public void listNetworks( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ListNetworks, expected %s or %s", + "Unrecognized response type %s for method DetachLun, expected %s or %s", response == null ? "null" : response.getClass().getName(), - ListNetworksResponse.class.getName(), + Operation.class.getName(), Exception.class.getName()))); } } @Override - public void getNetwork(GetNetworkRequest request, StreamObserver responseObserver) { + public void listVolumes( + ListVolumesRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Network) { + if (response instanceof ListVolumesResponse) { requests.add(request); - responseObserver.onNext(((Network) response)); + responseObserver.onNext(((ListVolumesResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -218,21 +218,19 @@ public void getNetwork(GetNetworkRequest request, StreamObserver respon responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method GetNetwork, expected %s or %s", + "Unrecognized response type %s for method ListVolumes, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Network.class.getName(), + ListVolumesResponse.class.getName(), Exception.class.getName()))); } } @Override - public void listSnapshotSchedulePolicies( - ListSnapshotSchedulePoliciesRequest request, - StreamObserver responseObserver) { + public void getVolume(GetVolumeRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof ListSnapshotSchedulePoliciesResponse) { + if (response instanceof Volume) { requests.add(request); - responseObserver.onNext(((ListSnapshotSchedulePoliciesResponse) response)); + responseObserver.onNext(((Volume) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -240,21 +238,20 @@ public void listSnapshotSchedulePolicies( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ListSnapshotSchedulePolicies, expected %s or %s", + "Unrecognized response type %s for method GetVolume, expected %s or %s", response == null ? "null" : response.getClass().getName(), - ListSnapshotSchedulePoliciesResponse.class.getName(), + Volume.class.getName(), Exception.class.getName()))); } } @Override - public void getSnapshotSchedulePolicy( - GetSnapshotSchedulePolicyRequest request, - StreamObserver responseObserver) { + public void updateVolume( + UpdateVolumeRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof SnapshotSchedulePolicy) { + if (response instanceof Operation) { requests.add(request); - responseObserver.onNext(((SnapshotSchedulePolicy) response)); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -262,21 +259,20 @@ public void getSnapshotSchedulePolicy( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method GetSnapshotSchedulePolicy, expected %s or %s", + "Unrecognized response type %s for method UpdateVolume, expected %s or %s", response == null ? "null" : response.getClass().getName(), - SnapshotSchedulePolicy.class.getName(), + Operation.class.getName(), Exception.class.getName()))); } } @Override - public void createSnapshotSchedulePolicy( - CreateSnapshotSchedulePolicyRequest request, - StreamObserver responseObserver) { + public void resizeVolume( + ResizeVolumeRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof SnapshotSchedulePolicy) { + if (response instanceof Operation) { requests.add(request); - responseObserver.onNext(((SnapshotSchedulePolicy) response)); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -284,21 +280,20 @@ public void createSnapshotSchedulePolicy( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method CreateSnapshotSchedulePolicy, expected %s or %s", + "Unrecognized response type %s for method ResizeVolume, expected %s or %s", response == null ? "null" : response.getClass().getName(), - SnapshotSchedulePolicy.class.getName(), + Operation.class.getName(), Exception.class.getName()))); } } @Override - public void updateSnapshotSchedulePolicy( - UpdateSnapshotSchedulePolicyRequest request, - StreamObserver responseObserver) { + public void listNetworks( + ListNetworksRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof SnapshotSchedulePolicy) { + if (response instanceof ListNetworksResponse) { requests.add(request); - responseObserver.onNext(((SnapshotSchedulePolicy) response)); + responseObserver.onNext(((ListNetworksResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -306,20 +301,20 @@ public void updateSnapshotSchedulePolicy( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method UpdateSnapshotSchedulePolicy, expected %s or %s", + "Unrecognized response type %s for method ListNetworks, expected %s or %s", response == null ? "null" : response.getClass().getName(), - SnapshotSchedulePolicy.class.getName(), + ListNetworksResponse.class.getName(), Exception.class.getName()))); } } @Override - public void deleteSnapshotSchedulePolicy( - DeleteSnapshotSchedulePolicyRequest request, StreamObserver responseObserver) { + public void listNetworkUsage( + ListNetworkUsageRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Empty) { + if (response instanceof ListNetworkUsageResponse) { requests.add(request); - responseObserver.onNext(((Empty) response)); + responseObserver.onNext(((ListNetworkUsageResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -327,20 +322,19 @@ public void deleteSnapshotSchedulePolicy( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method DeleteSnapshotSchedulePolicy, expected %s or %s", + "Unrecognized response type %s for method ListNetworkUsage, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), + ListNetworkUsageResponse.class.getName(), Exception.class.getName()))); } } @Override - public void createVolumeSnapshot( - CreateVolumeSnapshotRequest request, StreamObserver responseObserver) { + public void getNetwork(GetNetworkRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof VolumeSnapshot) { + if (response instanceof Network) { requests.add(request); - responseObserver.onNext(((VolumeSnapshot) response)); + responseObserver.onNext(((Network) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -348,16 +342,16 @@ public void createVolumeSnapshot( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method CreateVolumeSnapshot, expected %s or %s", + "Unrecognized response type %s for method GetNetwork, expected %s or %s", response == null ? "null" : response.getClass().getName(), - VolumeSnapshot.class.getName(), + Network.class.getName(), Exception.class.getName()))); } } @Override - public void restoreVolumeSnapshot( - RestoreVolumeSnapshotRequest request, StreamObserver responseObserver) { + public void updateNetwork( + UpdateNetworkRequest request, StreamObserver responseObserver) { Object response = responses.poll(); if (response instanceof Operation) { requests.add(request); @@ -369,7 +363,7 @@ public void restoreVolumeSnapshot( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method RestoreVolumeSnapshot, expected %s or %s", + "Unrecognized response type %s for method UpdateNetwork, expected %s or %s", response == null ? "null" : response.getClass().getName(), Operation.class.getName(), Exception.class.getName()))); @@ -377,12 +371,11 @@ public void restoreVolumeSnapshot( } @Override - public void deleteVolumeSnapshot( - DeleteVolumeSnapshotRequest request, StreamObserver responseObserver) { + public void getLun(GetLunRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Empty) { + if (response instanceof Lun) { requests.add(request); - responseObserver.onNext(((Empty) response)); + responseObserver.onNext(((Lun) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -390,20 +383,19 @@ public void deleteVolumeSnapshot( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method DeleteVolumeSnapshot, expected %s or %s", + "Unrecognized response type %s for method GetLun, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), + Lun.class.getName(), Exception.class.getName()))); } } @Override - public void getVolumeSnapshot( - GetVolumeSnapshotRequest request, StreamObserver responseObserver) { + public void listLuns(ListLunsRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof VolumeSnapshot) { + if (response instanceof ListLunsResponse) { requests.add(request); - responseObserver.onNext(((VolumeSnapshot) response)); + responseObserver.onNext(((ListLunsResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -411,21 +403,19 @@ public void getVolumeSnapshot( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method GetVolumeSnapshot, expected %s or %s", + "Unrecognized response type %s for method ListLuns, expected %s or %s", response == null ? "null" : response.getClass().getName(), - VolumeSnapshot.class.getName(), + ListLunsResponse.class.getName(), Exception.class.getName()))); } } @Override - public void listVolumeSnapshots( - ListVolumeSnapshotsRequest request, - StreamObserver responseObserver) { + public void getNfsShare(GetNfsShareRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof ListVolumeSnapshotsResponse) { + if (response instanceof NfsShare) { requests.add(request); - responseObserver.onNext(((ListVolumeSnapshotsResponse) response)); + responseObserver.onNext(((NfsShare) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -433,19 +423,20 @@ public void listVolumeSnapshots( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ListVolumeSnapshots, expected %s or %s", + "Unrecognized response type %s for method GetNfsShare, expected %s or %s", response == null ? "null" : response.getClass().getName(), - ListVolumeSnapshotsResponse.class.getName(), + NfsShare.class.getName(), Exception.class.getName()))); } } @Override - public void getLun(GetLunRequest request, StreamObserver responseObserver) { + public void listNfsShares( + ListNfsSharesRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Lun) { + if (response instanceof ListNfsSharesResponse) { requests.add(request); - responseObserver.onNext(((Lun) response)); + responseObserver.onNext(((ListNfsSharesResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -453,19 +444,20 @@ public void getLun(GetLunRequest request, StreamObserver responseObserver) responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method GetLun, expected %s or %s", + "Unrecognized response type %s for method ListNfsShares, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Lun.class.getName(), + ListNfsSharesResponse.class.getName(), Exception.class.getName()))); } } @Override - public void listLuns(ListLunsRequest request, StreamObserver responseObserver) { + public void updateNfsShare( + UpdateNfsShareRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof ListLunsResponse) { + if (response instanceof Operation) { requests.add(request); - responseObserver.onNext(((ListLunsResponse) response)); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -473,9 +465,9 @@ public void listLuns(ListLunsRequest request, StreamObserver r responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ListLuns, expected %s or %s", + "Unrecognized response type %s for method UpdateNfsShare, expected %s or %s", response == null ? "null" : response.getClass().getName(), - ListLunsResponse.class.getName(), + Operation.class.getName(), Exception.class.getName()))); } } diff --git a/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java new file mode 100644 index 0000000..d21be35 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java @@ -0,0 +1,1975 @@ +package com.google.cloud.baremetalsolution.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Performs management operations on Bare Metal Solution servers.
+ * The `baremetalsolution.googleapis.com` service provides management
+ * capabilities for Bare Metal Solution servers. To access the API methods, you
+ * must assign Bare Metal Solution IAM roles containing the desired permissions
+ * to your staff in your Google Cloud project. You must also enable the Bare
+ * Metal Solution API. Once enabled, the methods act
+ * upon specific servers in your Bare Metal Solution environment.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BareMetalSolutionGrpc { + + private BareMetalSolutionGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListInstancesMethod() { + io.grpc.MethodDescriptor getListInstancesMethod; + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + BareMetalSolutionGrpc.getListInstancesMethod = getListInstancesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetInstanceMethod() { + io.grpc.MethodDescriptor getGetInstanceMethod; + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + BareMetalSolutionGrpc.getGetInstanceMethod = getGetInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { + io.grpc.MethodDescriptor getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + BareMetalSolutionGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getResetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetInstance", + requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getResetInstanceMethod() { + io.grpc.MethodDescriptor getResetInstanceMethod; + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + BareMetalSolutionGrpc.getResetInstanceMethod = getResetInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) + .build(); + } + } + } + return getResetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartInstance", + requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartInstanceMethod() { + io.grpc.MethodDescriptor getStartInstanceMethod; + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + BareMetalSolutionGrpc.getStartInstanceMethod = getStartInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) + .build(); + } + } + } + return getStartInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopInstance", + requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopInstanceMethod() { + io.grpc.MethodDescriptor getStopInstanceMethod; + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + BareMetalSolutionGrpc.getStopInstanceMethod = getStopInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) + .build(); + } + } + } + return getStopInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getDetachLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetachLun", + requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDetachLunMethod() { + io.grpc.MethodDescriptor getDetachLunMethod; + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + BareMetalSolutionGrpc.getDetachLunMethod = getDetachLunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) + .build(); + } + } + } + return getDetachLunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListVolumesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVolumes", + requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListVolumesMethod() { + io.grpc.MethodDescriptor getListVolumesMethod; + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + BareMetalSolutionGrpc.getListVolumesMethod = getListVolumesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) + .build(); + } + } + } + return getListVolumesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVolume", + requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Volume.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetVolumeMethod() { + io.grpc.MethodDescriptor getGetVolumeMethod; + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + BareMetalSolutionGrpc.getGetVolumeMethod = getGetVolumeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) + .build(); + } + } + } + return getGetVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", + requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateVolumeMethod() { + io.grpc.MethodDescriptor getUpdateVolumeMethod; + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + BareMetalSolutionGrpc.getUpdateVolumeMethod = getUpdateVolumeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) + .build(); + } + } + } + return getUpdateVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor getResizeVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", + requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getResizeVolumeMethod() { + io.grpc.MethodDescriptor getResizeVolumeMethod; + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + BareMetalSolutionGrpc.getResizeVolumeMethod = getResizeVolumeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) + .build(); + } + } + } + return getResizeVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNetworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworks", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNetworksMethod() { + io.grpc.MethodDescriptor getListNetworksMethod; + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + BareMetalSolutionGrpc.getListNetworksMethod = getListNetworksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) + .build(); + } + } + } + return getListNetworksMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNetworkUsageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNetworkUsageMethod() { + io.grpc.MethodDescriptor getListNetworkUsageMethod; + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + BareMetalSolutionGrpc.getListNetworkUsageMethod = getListNetworkUsageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) + .build(); + } + } + } + return getListNetworkUsageMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNetwork", + requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Network.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNetworkMethod() { + io.grpc.MethodDescriptor getGetNetworkMethod; + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + BareMetalSolutionGrpc.getGetNetworkMethod = getGetNetworkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) + .build(); + } + } + } + return getGetNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateNetworkMethod() { + io.grpc.MethodDescriptor getUpdateNetworkMethod; + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + BareMetalSolutionGrpc.getUpdateNetworkMethod = getUpdateNetworkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) + .build(); + } + } + } + return getUpdateNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLun", + requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Lun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLunMethod() { + io.grpc.MethodDescriptor getGetLunMethod; + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + BareMetalSolutionGrpc.getGetLunMethod = getGetLunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) + .build(); + } + } + } + return getGetLunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListLunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLuns", + requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListLunsMethod() { + io.grpc.MethodDescriptor getListLunsMethod; + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + BareMetalSolutionGrpc.getListLunsMethod = getListLunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) + .build(); + } + } + } + return getListLunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNfsShareMethod() { + io.grpc.MethodDescriptor getGetNfsShareMethod; + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + BareMetalSolutionGrpc.getGetNfsShareMethod = getGetNfsShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) + .build(); + } + } + } + return getGetNfsShareMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNfsSharesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", + requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNfsSharesMethod() { + io.grpc.MethodDescriptor getListNfsSharesMethod; + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + BareMetalSolutionGrpc.getListNfsSharesMethod = getListNfsSharesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) + .build(); + } + } + } + return getListNfsSharesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateNfsShareMethod() { + io.grpc.MethodDescriptor getUpdateNfsShareMethod; + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + BareMetalSolutionGrpc.getUpdateNfsShareMethod = getUpdateNfsShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) + .build(); + } + } + } + return getUpdateNfsShareMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + }; + return BareMetalSolutionStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BareMetalSolutionBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + }; + return BareMetalSolutionBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static BareMetalSolutionFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + }; + return BareMetalSolutionFutureStub.newStub(factory, channel); + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static abstract class BareMetalSolutionImplBase implements io.grpc.BindableService { + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetInstanceMethod(), responseObserver); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartInstanceMethod(), responseObserver); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopInstanceMethod(), responseObserver); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVolumesMethod(), responseObserver); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateVolumeMethod(), responseObserver); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResizeVolumeMethod(), responseObserver); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworksMethod(), responseObserver); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworkUsageMethod(), responseObserver); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNetworkMethod(), responseObserver); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNfsShareMethod(), responseObserver); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNfsSharesMethod(), responseObserver); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNfsShareMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance>( + this, METHODID_GET_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getResetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_RESET_INSTANCE))) + .addMethod( + getStartInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_START_INSTANCE))) + .addMethod( + getStopInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_STOP_INSTANCE))) + .addMethod( + getDetachLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, + com.google.longrunning.Operation>( + this, METHODID_DETACH_LUN))) + .addMethod( + getListVolumesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( + this, METHODID_LIST_VOLUMES))) + .addMethod( + getGetVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume>( + this, METHODID_GET_VOLUME))) + .addMethod( + getUpdateVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_VOLUME))) + .addMethod( + getResizeVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation>( + this, METHODID_RESIZE_VOLUME))) + .addMethod( + getListNetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( + this, METHODID_LIST_NETWORKS))) + .addMethod( + getListNetworkUsageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( + this, METHODID_LIST_NETWORK_USAGE))) + .addMethod( + getGetNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network>( + this, METHODID_GET_NETWORK))) + .addMethod( + getUpdateNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_NETWORK))) + .addMethod( + getGetLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun>( + this, METHODID_GET_LUN))) + .addMethod( + getListLunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse>( + this, METHODID_LIST_LUNS))) + .addMethod( + getGetNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare>( + this, METHODID_GET_NFS_SHARE))) + .addMethod( + getListNfsSharesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( + this, METHODID_LIST_NFS_SHARES))) + .addMethod( + getUpdateNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_NFS_SHARE))) + .build(); + } + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionStub extends io.grpc.stub.AbstractAsyncStub { + private BareMetalSolutionStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BareMetalSolutionBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Instance getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.longrunning.Operation resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.longrunning.Operation startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public com.google.longrunning.Operation stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.longrunning.Operation detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetachLunMethod(), getCallOptions(), request); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVolumesMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Volume getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVolumeMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.longrunning.Operation updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.longrunning.Operation resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResizeVolumeMethod(), getCallOptions(), request); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworksMethod(), getCallOptions(), request); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Network getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNetworkMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.longrunning.Operation updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Lun getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLunMethod(), getCallOptions(), request); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNfsShareMethod(), getCallOptions(), request); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNfsSharesMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.longrunning.Operation updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionFutureStub extends io.grpc.stub.AbstractFutureStub { + private BareMetalSolutionFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_UPDATE_INSTANCE = 2; + private static final int METHODID_RESET_INSTANCE = 3; + private static final int METHODID_START_INSTANCE = 4; + private static final int METHODID_STOP_INSTANCE = 5; + private static final int METHODID_DETACH_LUN = 6; + private static final int METHODID_LIST_VOLUMES = 7; + private static final int METHODID_GET_VOLUME = 8; + private static final int METHODID_UPDATE_VOLUME = 9; + private static final int METHODID_RESIZE_VOLUME = 10; + private static final int METHODID_LIST_NETWORKS = 11; + private static final int METHODID_LIST_NETWORK_USAGE = 12; + private static final int METHODID_GET_NETWORK = 13; + private static final int METHODID_UPDATE_NETWORK = 14; + private static final int METHODID_GET_LUN = 15; + private static final int METHODID_LIST_LUNS = 16; + private static final int METHODID_GET_NFS_SHARE = 17; + private static final int METHODID_LIST_NFS_SHARES = 18; + private static final int METHODID_UPDATE_NFS_SHARE = 19; + + 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 BareMetalSolutionImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_INSTANCE: + serviceImpl.resetInstance((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_INSTANCE: + serviceImpl.startInstance((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_INSTANCE: + serviceImpl.stopInstance((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETACH_LUN: + serviceImpl.detachLun((com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOLUMES: + serviceImpl.listVolumes((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_VOLUME: + serviceImpl.getVolume((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_VOLUME: + serviceImpl.updateVolume((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESIZE_VOLUME: + serviceImpl.resizeVolume((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NETWORKS: + serviceImpl.listNetworks((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NETWORK_USAGE: + serviceImpl.listNetworkUsage((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NETWORK: + serviceImpl.getNetwork((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NETWORK: + serviceImpl.updateNetwork((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LUN: + serviceImpl.getLun((com.google.cloud.baremetalsolution.v2.GetLunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LUNS: + serviceImpl.listLuns((com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NFS_SHARE: + serviceImpl.getNfsShare((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NFS_SHARES: + serviceImpl.listNfsShares((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NFS_SHARE: + serviceImpl.updateNfsShare((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BareMetalSolutionBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BareMetalSolution"); + } + } + + private static final class BareMetalSolutionFileDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier { + BareMetalSolutionFileDescriptorSupplier() {} + } + + private static final class BareMetalSolutionMethodDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getResetInstanceMethod()) + .addMethod(getStartInstanceMethod()) + .addMethod(getStopInstanceMethod()) + .addMethod(getDetachLunMethod()) + .addMethod(getListVolumesMethod()) + .addMethod(getGetVolumeMethod()) + .addMethod(getUpdateVolumeMethod()) + .addMethod(getResizeVolumeMethod()) + .addMethod(getListNetworksMethod()) + .addMethod(getListNetworkUsageMethod()) + .addMethod(getGetNetworkMethod()) + .addMethod(getUpdateNetworkMethod()) + .addMethod(getGetLunMethod()) + .addMethod(getListLunsMethod()) + .addMethod(getGetNfsShareMethod()) + .addMethod(getListNfsSharesMethod()) + .addMethod(getUpdateNfsShareMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java new file mode 100644 index 0000000..2ce6b05 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java @@ -0,0 +1,218 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class BareMetalSolutionProto { + private BareMetalSolutionProto() {} + 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_baremetalsolution_v2_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/baremetalsolution/v2/bare" + + "metalsolution.proto\022!google.cloud.bareme" + + "talsolution.v2\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\0320google/cloud/bar" + + "emetalsolution/v2/instance.proto\032+google" + + "/cloud/baremetalsolution/v2/lun.proto\032/g" + + "oogle/cloud/baremetalsolution/v2/network" + + ".proto\0321google/cloud/baremetalsolution/v" + + "2/nfs_share.proto\032.google/cloud/baremeta" + + "lsolution/v2/volume.proto\032#google/longru" + + "nning/operations.proto\032\037google/protobuf/" + + "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" + + "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " + + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" + + "setInstanceResponse2\335 \n\021BareMetalSolutio" + + "n\022\302\001\n\rListInstances\0227.google.cloud.barem" + + "etalsolution.v2.ListInstancesRequest\0328.g" + + "oogle.cloud.baremetalsolution.v2.ListIns" + + "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" + + "ects/*/locations/*}/instances\332A\006parent\022\257" + + "\001\n\013GetInstance\0225.google.cloud.baremetals" + + "olution.v2.GetInstanceRequest\032+.google.c" + + "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" + + "\002/\022-/v2/{name=projects/*/locations/*/ins" + + "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" + + "ogle.cloud.baremetalsolution.v2.UpdateIn" + + "stanceRequest\032\035.google.longrunning.Opera" + + "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" + + "s/*/locations/*/instances/*}:\010instance\332A" + + "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" + + "ationMetadata\022\333\001\n\rResetInstance\0227.google" + + ".cloud.baremetalsolution.v2.ResetInstanc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" + + "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" + + "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" + + "StartInstance\0227.google.cloud.baremetalso" + + "lution.v2.StartInstanceRequest\032\035.google." + + "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" + + "=projects/*/locations/*/instances/*}:sta" + + "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" + + "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" + + "gle.cloud.baremetalsolution.v2.StopInsta" + + "nceRequest\032\035.google.longrunning.Operatio" + + "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" + + "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" + + "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" + + "DetachLun\0223.google.cloud.baremetalsoluti" + + "on.v2.DetachLunRequest\032\035.google.longrunn" + + "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" + + "jects/*/locations/*/instances/*}:detachL" + + "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" + + "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" + + "oud.baremetalsolution.v2.ListVolumesRequ" + + "est\0326.google.cloud.baremetalsolution.v2." + + "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" + + "=projects/*/locations/*}/volumes\332A\006paren" + + "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" + + "solution.v2.GetVolumeRequest\032).google.cl" + + "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" + + "+/v2/{name=projects/*/locations/*/volume" + + "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" + + "oud.baremetalsolution.v2.UpdateVolumeReq" + + "uest\032\035.google.longrunning.Operation\"u\202\323\344" + + "\223\002<22/v2/{volume.name=projects/*/locatio" + + "ns/*/volumes/*}:\006volume\332A\022volume,update_" + + "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" + + "esizeVolume\0226.google.cloud.baremetalsolu" + + "tion.v2.ResizeVolumeRequest\032\035.google.lon" + + "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" + + "projects/*/locations/*/volumes/*}:resize" + + ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" + + "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" + + "oud.baremetalsolution.v2.ListNetworksReq" + + "uest\0327.google.cloud.baremetalsolution.v2" + + ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" + + "nt=projects/*/locations/*}/networks\332A\006pa" + + "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" + + ".baremetalsolution.v2.ListNetworkUsageRe" + + "quest\032;.google.cloud.baremetalsolution.v" + + "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" + + "{location=projects/*/locations/*}/networ" + + "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" + + "twork\0224.google.cloud.baremetalsolution.v" + + "2.GetNetworkRequest\032*.google.cloud.barem" + + "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" + + "me=projects/*/locations/*/networks/*}\332A\004" + + "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" + + "remetalsolution.v2.UpdateNetworkRequest\032" + + "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" + + "/v2/{network.name=projects/*/locations/*" + + "/networks/*}:\007network\332A\023network,update_m" + + "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" + + "etLun\0220.google.cloud.baremetalsolution.v" + + "2.GetLunRequest\032&.google.cloud.baremetal" + + "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" + + "cts/*/locations/*/volumes/*/luns/*}\332A\004na" + + "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" + + "solution.v2.ListLunsRequest\0323.google.clo" + + "ud.baremetalsolution.v2.ListLunsResponse" + + "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" + + "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" + + "Share\0225.google.cloud.baremetalsolution.v" + + "2.GetNfsShareRequest\032+.google.cloud.bare" + + "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" + + "name=projects/*/locations/*/nfsShares/*}" + + "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" + + ".baremetalsolution.v2.ListNfsSharesReque" + + "st\0328.google.cloud.baremetalsolution.v2.L" + + "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" + + "t=projects/*/locations/*}/nfsShares\332A\006pa" + + "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" + + "aremetalsolution.v2.UpdateNfsShareReques" + + "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" + + "D27/v2/{nfs_share.name=projects/*/locati" + + "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" + + "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" + + "adata\032T\312A baremetalsolution.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\204\002\n%com.google.cloud.baremet" + + "alsolution.v2B\026BareMetalSolutionProtoP\001Z" + + "Rgoogle.golang.org/genproto/googleapis/c" + + "loud/baremetalsolution/v2;baremetalsolut" + + "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" + + "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" + + "ogle::Cloud::BareMetalSolution::V2b\006prot" + + "o3" + }; + 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java new file mode 100644 index 0000000..6074780 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java @@ -0,0 +1,761 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Message for detach specific LUN from an Instance.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} + */ +public final class DetachLunRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) + DetachLunRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DetachLunRequest.newBuilder() to construct. + private DetachLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DetachLunRequest() { + instance_ = ""; + lun_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DetachLunRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DetachLunRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + instance_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + lun_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + } + + public static final int INSTANCE_FIELD_NUMBER = 1; + private volatile java.lang.Object instance_; + /** + *
+   * Required. Name of the instance.
+   * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The instance. + */ + @java.lang.Override + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } + } + /** + *
+   * Required. Name of the instance.
+   * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for instance. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LUN_FIELD_NUMBER = 2; + private volatile java.lang.Object lun_; + /** + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The lun. + */ + @java.lang.Override + public java.lang.String getLun() { + java.lang.Object ref = lun_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lun_ = s; + return s; + } + } + /** + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for lun. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLunBytes() { + java.lang.Object ref = lun_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lun_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lun_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lun_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instance_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lun_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lun_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.DetachLunRequest)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.DetachLunRequest other = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; + + if (!getInstance() + .equals(other.getInstance())) return false; + if (!getLun() + .equals(other.getLun())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + hash = (37 * hash) + LUN_FIELD_NUMBER; + hash = (53 * hash) + getLun().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message for detach specific LUN from an Instance.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) + com.google.cloud.baremetalsolution.v2.DetachLunRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.DetachLunRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + instance_ = ""; + + lun_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.DetachLunRequest build() { + com.google.cloud.baremetalsolution.v2.DetachLunRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { + com.google.cloud.baremetalsolution.v2.DetachLunRequest result = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); + result.instance_ = instance_; + result.lun_ = lun_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.DetachLunRequest) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.DetachLunRequest other) { + if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + onChanged(); + } + if (!other.getLun().isEmpty()) { + lun_ = other.lun_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.DetachLunRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object instance_ = ""; + /** + *
+     * Required. Name of the instance.
+     * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The instance. + */ + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the instance.
+     * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for instance. + */ + public com.google.protobuf.ByteString + getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the instance.
+     * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The instance to set. + * @return This builder for chaining. + */ + public Builder setInstance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instance_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the instance.
+     * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearInstance() { + + instance_ = getDefaultInstance().getInstance(); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the instance.
+     * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for instance to set. + * @return This builder for chaining. + */ + public Builder setInstanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instance_ = value; + onChanged(); + return this; + } + + private java.lang.Object lun_ = ""; + /** + *
+     * Required. Name of the Lun to detach.
+     * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The lun. + */ + public java.lang.String getLun() { + java.lang.Object ref = lun_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lun_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the Lun to detach.
+     * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for lun. + */ + public com.google.protobuf.ByteString + getLunBytes() { + java.lang.Object ref = lun_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lun_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the Lun to detach.
+     * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The lun to set. + * @return This builder for chaining. + */ + public Builder setLun( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lun_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the Lun to detach.
+     * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearLun() { + + lun_ = getDefaultInstance().getLun(); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the Lun to detach.
+     * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for lun to set. + * @return This builder for chaining. + */ + public Builder setLunBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lun_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) + private static final com.google.cloud.baremetalsolution.v2.DetachLunRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(); + } + + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetachLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetachLunRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java new file mode 100644 index 0000000..5ac8a36 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface DetachLunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the instance.
+   * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The instance. + */ + java.lang.String getInstance(); + /** + *
+   * Required. Name of the instance.
+   * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for instance. + */ + com.google.protobuf.ByteString + getInstanceBytes(); + + /** + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The lun. + */ + java.lang.String getLun(); + /** + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for lun. + */ + com.google.protobuf.ByteString + getLunBytes(); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java similarity index 63% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java index a5a64a3..03dcb9d 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting server information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ -public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) GetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetInstanceRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private GetInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = - (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting server information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) com.google.cloud.baremetalsolution.v2.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetInstanceRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..e956437 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java similarity index 63% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java index 2a59fb4..32ab528 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting storage lun information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ -public final class GetLunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetLunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetLunRequest) GetLunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetLunRequest.newBuilder() to construct. private GetLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetLunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetLunRequest( 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,41 +73,34 @@ private GetLunRequest( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetLunRequest other = - (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; + com.google.cloud.baremetalsolution.v2.GetLunRequest other = (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting storage lun information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetLunRequest) com.google.cloud.baremetalsolution.v2.GetLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetLunRequest.newBuilder() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetLunRequest result = - new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); + com.google.cloud.baremetalsolution.v2.GetLunRequest result = new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest)other); } else { super.mergeFrom(other); return this; @@ -448,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -473,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -510,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -534,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -611,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetLunRequest) private static final com.google.cloud.baremetalsolution.v2.GetLunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetLunRequest(); } @@ -625,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java new file mode 100644 index 0000000..d320c48 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetLunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java similarity index 63% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java index 98acf8b..8b4f73a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting network information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ -public final class GetNetworkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNetworkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) GetNetworkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNetworkRequest.newBuilder() to construct. private GetNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNetworkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetNetworkRequest( 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,41 +73,34 @@ private GetNetworkRequest( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = - (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting network information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) com.google.cloud.baremetalsolution.v2.GetNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNetworkRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = - new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) private static final com.google.cloud.baremetalsolution.v2.GetNetworkRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNetworkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNetworkRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNetworkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNetworkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java new file mode 100644 index 0000000..59b3157 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNetworkRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java new file mode 100644 index 0000000..888e6a6 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Message for requesting NFS share information.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} + */ +public final class GetNfsShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) + GetNfsShareRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetNfsShareRequest.newBuilder() to construct. + private GetNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetNfsShareRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetNfsShareRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetNfsShareRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message for requesting NFS share information.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) + com.google.cloud.baremetalsolution.v2.GetNfsShareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest build() { + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other) { + if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * 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. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) + private static final com.google.cloud.baremetalsolution.v2.GetNfsShareRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(); + } + + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNfsShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNfsShareRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java new file mode 100644 index 0000000..f17088b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNfsShareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java similarity index 63% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java index d14bf53..01d7345 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting storage volume information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ -public final class GetVolumeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetVolumeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) GetVolumeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetVolumeRequest.newBuilder() to construct. private GetVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetVolumeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetVolumeRequest( 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,41 +73,34 @@ private GetVolumeRequest( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = - (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting storage volume information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) com.google.cloud.baremetalsolution.v2.GetVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetVolumeRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = - new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.GetVolumeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java new file mode 100644 index 0000000..ed4c7ee --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetVolumeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java new file mode 100644 index 0000000..293d61c --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java @@ -0,0 +1,4225 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * A server.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} + */ +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Instance) + InstanceOrBuilder { +private static final long serialVersionUID = 0L; + // Use Instance.newBuilder() to construct. + private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Instance() { + name_ = ""; + id_ = ""; + machineType_ = ""; + state_ = 0; + luns_ = java.util.Collections.emptyList(); + networks_ = java.util.Collections.emptyList(); + osImage_ = ""; + pod_ = ""; + networkTemplate_ = ""; + logicalInterfaces_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Instance(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Instance( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + machineType_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 48: { + + hyperthreadingEnabled_ = input.readBool(); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + luns_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + networks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + networks_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; + } + case 80: { + + interactiveSerialConsoleEnabled_ = input.readBool(); + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + osImage_ = s; + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + pod_ = s; + break; + } + case 114: { + java.lang.String s = input.readStringRequireUtf8(); + + networkTemplate_ = s; + break; + } + case 122: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + logicalInterfaces_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + logicalInterfaces_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + luns_ = java.util.Collections.unmodifiableList(luns_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + networks_ = java.util.Collections.unmodifiableList(networks_); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + logicalInterfaces_ = java.util.Collections.unmodifiableList(logicalInterfaces_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + } + + /** + *
+   * The possible states for this server.
+   * 
+ * + * Protobuf enum {@code google.cloud.baremetalsolution.v2.Instance.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * The server is in an unknown state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * The server is being provisioned.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + *
+     * The server is running.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + *
+     * The server has been deleted.
+     * 
+ * + * DELETED = 3; + */ + DELETED(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * The server is in an unknown state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * The server is being provisioned.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + *
+     * The server is running.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + *
+     * The server has been deleted.
+     * 
+ * + * DELETED = 3; + */ + public static final int DELETED_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return RUNNING; + case 3: return DELETED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.Instance.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Instance.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Output only. The resource name of this `Instance`.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * Format:
+   * `projects/{project}/locations/{location}/instances/{instance}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Output only. The resource name of this `Instance`.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * Format:
+   * `projects/{project}/locations/{location}/instances/{instance}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 11; + private volatile java.lang.Object id_; + /** + *
+   * An identifier for the `Instance`, generated by the backend.
+   * 
+ * + * string id = 11; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+   * An identifier for the `Instance`, generated by the backend.
+   * 
+ * + * string id = 11; + * @return The bytes for id. + */ + @java.lang.Override + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. Create a time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. Create a time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. Create a time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+   * Output only. Update a time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * Output only. Update a time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * Output only. Update a time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object machineType_; + /** + *
+   * The server type.
+   * [Available server
+   * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
+   * 
+ * + * string machine_type = 4; + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + /** + *
+   * The server type.
+   * [Available server
+   * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
+   * 
+ * + * string machine_type = 4; + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_; + /** + *
+   * The state of the server.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+   * The state of the server.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * @return The state. + */ + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; + } + + public static final int HYPERTHREADING_ENABLED_FIELD_NUMBER = 6; + private boolean hyperthreadingEnabled_; + /** + *
+   * True if you enable hyperthreading for the server, otherwise false.
+   * The default value is false.
+   * 
+ * + * bool hyperthreading_enabled = 6; + * @return The hyperthreadingEnabled. + */ + @java.lang.Override + public boolean getHyperthreadingEnabled() { + return hyperthreadingEnabled_; + } + + public static final int LABELS_FIELD_NUMBER = 7; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LUNS_FIELD_NUMBER = 8; + private java.util.List luns_; + /** + *
+   * List of LUNs associated with this server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + @java.lang.Override + public java.util.List getLunsList() { + return luns_; + } + /** + *
+   * List of LUNs associated with this server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + @java.lang.Override + public java.util.List + getLunsOrBuilderList() { + return luns_; + } + /** + *
+   * List of LUNs associated with this server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + @java.lang.Override + public int getLunsCount() { + return luns_.size(); + } + /** + *
+   * List of LUNs associated with this server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { + return luns_.get(index); + } + /** + *
+   * List of LUNs associated with this server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { + return luns_.get(index); + } + + public static final int NETWORKS_FIELD_NUMBER = 9; + private java.util.List networks_; + /** + *
+   * List of networks associated with this server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + @java.lang.Override + public java.util.List getNetworksList() { + return networks_; + } + /** + *
+   * List of networks associated with this server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + @java.lang.Override + public java.util.List + getNetworksOrBuilderList() { + return networks_; + } + /** + *
+   * List of networks associated with this server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + @java.lang.Override + public int getNetworksCount() { + return networks_.size(); + } + /** + *
+   * List of networks associated with this server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { + return networks_.get(index); + } + /** + *
+   * List of networks associated with this server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { + return networks_.get(index); + } + + public static final int INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER = 10; + private boolean interactiveSerialConsoleEnabled_; + /** + *
+   * True if the interactive serial console feature is enabled for the instance,
+   * false otherwise.
+   * The default value is false.
+   * 
+ * + * bool interactive_serial_console_enabled = 10; + * @return The interactiveSerialConsoleEnabled. + */ + @java.lang.Override + public boolean getInteractiveSerialConsoleEnabled() { + return interactiveSerialConsoleEnabled_; + } + + public static final int OS_IMAGE_FIELD_NUMBER = 12; + private volatile java.lang.Object osImage_; + /** + *
+   * The OS image currently installed on the server.
+   * 
+ * + * string os_image = 12; + * @return The osImage. + */ + @java.lang.Override + public java.lang.String getOsImage() { + java.lang.Object ref = osImage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + osImage_ = s; + return s; + } + } + /** + *
+   * The OS image currently installed on the server.
+   * 
+ * + * string os_image = 12; + * @return The bytes for osImage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOsImageBytes() { + java.lang.Object ref = osImage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + osImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POD_FIELD_NUMBER = 13; + private volatile java.lang.Object pod_; + /** + *
+   * Immutable. Pod name.
+   * Pod is an independent part of infrastructure.
+   * Instance can be connected to the assets (networks, volumes) allocated
+   * in the same pod only.
+   * 
+ * + * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The pod. + */ + @java.lang.Override + public java.lang.String getPod() { + java.lang.Object ref = pod_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pod_ = s; + return s; + } + } + /** + *
+   * Immutable. Pod name.
+   * Pod is an independent part of infrastructure.
+   * Instance can be connected to the assets (networks, volumes) allocated
+   * in the same pod only.
+   * 
+ * + * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for pod. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPodBytes() { + java.lang.Object ref = pod_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_TEMPLATE_FIELD_NUMBER = 14; + private volatile java.lang.Object networkTemplate_; + /** + *
+   * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
+   * Generally, the template name follows the syntax of
+   * "bond<bond_mode>" or "nic".
+   * 
+ * + * string network_template = 14 [(.google.api.resource_reference) = { ... } + * @return The networkTemplate. + */ + @java.lang.Override + public java.lang.String getNetworkTemplate() { + java.lang.Object ref = networkTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkTemplate_ = s; + return s; + } + } + /** + *
+   * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
+   * Generally, the template name follows the syntax of
+   * "bond<bond_mode>" or "nic".
+   * 
+ * + * string network_template = 14 [(.google.api.resource_reference) = { ... } + * @return The bytes for networkTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNetworkTemplateBytes() { + java.lang.Object ref = networkTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + networkTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 15; + private java.util.List logicalInterfaces_; + /** + *
+   * List of logical interfaces for the instance. The number of logical
+   * interfaces will be the same as number of hardware bond/nic on the chosen
+   * network template. For the non-multivlan configurations (for eg, existing
+   * servers) that use existing default network template (bondaa-bondaa), both
+   * the Instance.networks field and the Instance.logical_interfaces fields will
+   * be filled to ensure backward compatibility. For the others, only
+   * Instance.logical_interfaces will be filled.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + @java.lang.Override + public java.util.List getLogicalInterfacesList() { + return logicalInterfaces_; + } + /** + *
+   * List of logical interfaces for the instance. The number of logical
+   * interfaces will be the same as number of hardware bond/nic on the chosen
+   * network template. For the non-multivlan configurations (for eg, existing
+   * servers) that use existing default network template (bondaa-bondaa), both
+   * the Instance.networks field and the Instance.logical_interfaces fields will
+   * be filled to ensure backward compatibility. For the others, only
+   * Instance.logical_interfaces will be filled.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + @java.lang.Override + public java.util.List + getLogicalInterfacesOrBuilderList() { + return logicalInterfaces_; + } + /** + *
+   * List of logical interfaces for the instance. The number of logical
+   * interfaces will be the same as number of hardware bond/nic on the chosen
+   * network template. For the non-multivlan configurations (for eg, existing
+   * servers) that use existing default network template (bondaa-bondaa), both
+   * the Instance.networks field and the Instance.logical_interfaces fields will
+   * be filled to ensure backward compatibility. For the others, only
+   * Instance.logical_interfaces will be filled.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + @java.lang.Override + public int getLogicalInterfacesCount() { + return logicalInterfaces_.size(); + } + /** + *
+   * List of logical interfaces for the instance. The number of logical
+   * interfaces will be the same as number of hardware bond/nic on the chosen
+   * network template. For the non-multivlan configurations (for eg, existing
+   * servers) that use existing default network template (bondaa-bondaa), both
+   * the Instance.networks field and the Instance.logical_interfaces fields will
+   * be filled to ensure backward compatibility. For the others, only
+   * Instance.logical_interfaces will be filled.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { + return logicalInterfaces_.get(index); + } + /** + *
+   * List of logical interfaces for the instance. The number of logical
+   * interfaces will be the same as number of hardware bond/nic on the chosen
+   * network template. For the non-multivlan configurations (for eg, existing
+   * servers) that use existing default network template (bondaa-bondaa), both
+   * the Instance.networks field and the Instance.logical_interfaces fields will
+   * be filled to ensure backward compatibility. For the others, only
+   * Instance.logical_interfaces will be filled.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { + return logicalInterfaces_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineType_); + } + if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (hyperthreadingEnabled_ != false) { + output.writeBool(6, hyperthreadingEnabled_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 7); + for (int i = 0; i < luns_.size(); i++) { + output.writeMessage(8, luns_.get(i)); + } + for (int i = 0; i < networks_.size(); i++) { + output.writeMessage(9, networks_.get(i)); + } + if (interactiveSerialConsoleEnabled_ != false) { + output.writeBool(10, interactiveSerialConsoleEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osImage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, osImage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, pod_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkTemplate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, networkTemplate_); + } + for (int i = 0; i < logicalInterfaces_.size(); i++) { + output.writeMessage(15, logicalInterfaces_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineType_); + } + if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); + } + if (hyperthreadingEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, hyperthreadingEnabled_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, labels__); + } + for (int i = 0; i < luns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, luns_.get(i)); + } + for (int i = 0; i < networks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, networks_.get(i)); + } + if (interactiveSerialConsoleEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, interactiveSerialConsoleEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osImage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, osImage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, pod_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkTemplate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, networkTemplate_); + } + for (int i = 0; i < logicalInterfaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, logicalInterfaces_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Instance)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.Instance other = (com.google.cloud.baremetalsolution.v2.Instance) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getMachineType() + .equals(other.getMachineType())) return false; + if (state_ != other.state_) return false; + if (getHyperthreadingEnabled() + != other.getHyperthreadingEnabled()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getLunsList() + .equals(other.getLunsList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (getInteractiveSerialConsoleEnabled() + != other.getInteractiveSerialConsoleEnabled()) return false; + if (!getOsImage() + .equals(other.getOsImage())) return false; + if (!getPod() + .equals(other.getPod())) return false; + if (!getNetworkTemplate() + .equals(other.getNetworkTemplate())) return false; + if (!getLogicalInterfacesList() + .equals(other.getLogicalInterfacesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + HYPERTHREADING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHyperthreadingEnabled()); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (getLunsCount() > 0) { + hash = (37 * hash) + LUNS_FIELD_NUMBER; + hash = (53 * hash) + getLunsList().hashCode(); + } + if (getNetworksCount() > 0) { + hash = (37 * hash) + NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getNetworksList().hashCode(); + } + hash = (37 * hash) + INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInteractiveSerialConsoleEnabled()); + hash = (37 * hash) + OS_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getOsImage().hashCode(); + hash = (37 * hash) + POD_FIELD_NUMBER; + hash = (53 * hash) + getPod().hashCode(); + hash = (37 * hash) + NETWORK_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getNetworkTemplate().hashCode(); + if (getLogicalInterfacesCount() > 0) { + hash = (37 * hash) + LOGICAL_INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getLogicalInterfacesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Instance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A server.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Instance) + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 7: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.Instance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLunsFieldBuilder(); + getNetworksFieldBuilder(); + getLogicalInterfacesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + id_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + machineType_ = ""; + + state_ = 0; + + hyperthreadingEnabled_ = false; + + internalGetMutableLabels().clear(); + if (lunsBuilder_ == null) { + luns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + lunsBuilder_.clear(); + } + if (networksBuilder_ == null) { + networks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + networksBuilder_.clear(); + } + interactiveSerialConsoleEnabled_ = false; + + osImage_ = ""; + + pod_ = ""; + + networkTemplate_ = ""; + + if (logicalInterfacesBuilder_ == null) { + logicalInterfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + logicalInterfacesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Instance getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Instance build() { + com.google.cloud.baremetalsolution.v2.Instance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { + com.google.cloud.baremetalsolution.v2.Instance result = new com.google.cloud.baremetalsolution.v2.Instance(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.id_ = id_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.machineType_ = machineType_; + result.state_ = state_; + result.hyperthreadingEnabled_ = hyperthreadingEnabled_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (lunsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + luns_ = java.util.Collections.unmodifiableList(luns_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.luns_ = luns_; + } else { + result.luns_ = lunsBuilder_.build(); + } + if (networksBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + networks_ = java.util.Collections.unmodifiableList(networks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.networks_ = networks_; + } else { + result.networks_ = networksBuilder_.build(); + } + result.interactiveSerialConsoleEnabled_ = interactiveSerialConsoleEnabled_; + result.osImage_ = osImage_; + result.pod_ = pod_; + result.networkTemplate_ = networkTemplate_; + if (logicalInterfacesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + logicalInterfaces_ = java.util.Collections.unmodifiableList(logicalInterfaces_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.logicalInterfaces_ = logicalInterfaces_; + } else { + result.logicalInterfaces_ = logicalInterfacesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.Instance) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { + if (other == com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getHyperthreadingEnabled() != false) { + setHyperthreadingEnabled(other.getHyperthreadingEnabled()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (lunsBuilder_ == null) { + if (!other.luns_.isEmpty()) { + if (luns_.isEmpty()) { + luns_ = other.luns_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLunsIsMutable(); + luns_.addAll(other.luns_); + } + onChanged(); + } + } else { + if (!other.luns_.isEmpty()) { + if (lunsBuilder_.isEmpty()) { + lunsBuilder_.dispose(); + lunsBuilder_ = null; + luns_ = other.luns_; + bitField0_ = (bitField0_ & ~0x00000002); + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLunsFieldBuilder() : null; + } else { + lunsBuilder_.addAllMessages(other.luns_); + } + } + } + if (networksBuilder_ == null) { + if (!other.networks_.isEmpty()) { + if (networks_.isEmpty()) { + networks_ = other.networks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureNetworksIsMutable(); + networks_.addAll(other.networks_); + } + onChanged(); + } + } else { + if (!other.networks_.isEmpty()) { + if (networksBuilder_.isEmpty()) { + networksBuilder_.dispose(); + networksBuilder_ = null; + networks_ = other.networks_; + bitField0_ = (bitField0_ & ~0x00000004); + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; + } else { + networksBuilder_.addAllMessages(other.networks_); + } + } + } + if (other.getInteractiveSerialConsoleEnabled() != false) { + setInteractiveSerialConsoleEnabled(other.getInteractiveSerialConsoleEnabled()); + } + if (!other.getOsImage().isEmpty()) { + osImage_ = other.osImage_; + onChanged(); + } + if (!other.getPod().isEmpty()) { + pod_ = other.pod_; + onChanged(); + } + if (!other.getNetworkTemplate().isEmpty()) { + networkTemplate_ = other.networkTemplate_; + onChanged(); + } + if (logicalInterfacesBuilder_ == null) { + if (!other.logicalInterfaces_.isEmpty()) { + if (logicalInterfaces_.isEmpty()) { + logicalInterfaces_ = other.logicalInterfaces_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.addAll(other.logicalInterfaces_); + } + onChanged(); + } + } else { + if (!other.logicalInterfaces_.isEmpty()) { + if (logicalInterfacesBuilder_.isEmpty()) { + logicalInterfacesBuilder_.dispose(); + logicalInterfacesBuilder_ = null; + logicalInterfaces_ = other.logicalInterfaces_; + bitField0_ = (bitField0_ & ~0x00000008); + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogicalInterfacesFieldBuilder() : null; + } else { + logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.Instance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.Instance) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. The resource name of this `Instance`.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * Format:
+     * `projects/{project}/locations/{location}/instances/{instance}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The resource name of this `Instance`.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * Format:
+     * `projects/{project}/locations/{location}/instances/{instance}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The resource name of this `Instance`.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * Format:
+     * `projects/{project}/locations/{location}/instances/{instance}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name of this `Instance`.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * Format:
+     * `projects/{project}/locations/{location}/instances/{instance}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name of this `Instance`.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * Format:
+     * `projects/{project}/locations/{location}/instances/{instance}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + *
+     * An identifier for the `Instance`, generated by the backend.
+     * 
+ * + * string id = 11; + * @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; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * An identifier for the `Instance`, generated by the backend.
+     * 
+ * + * string id = 11; + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * An identifier for the `Instance`, generated by the backend.
+     * 
+ * + * string id = 11; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+     * An identifier for the `Instance`, generated by the backend.
+     * 
+ * + * string id = 11; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+     * An identifier for the `Instance`, generated by the backend.
+     * 
+ * + * string id = 11; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Output only. Create a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
+     * Output only. Create a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Create a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Create a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Create a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Create a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Create a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Create a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Output only. Create a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Output only. Update a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + *
+     * Output only. Update a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Update a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Update a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Update a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Update a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Update a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Update a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Output only. Update a time stamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object machineType_ = ""; + /** + *
+     * The server type.
+     * [Available server
+     * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
+     * 
+ * + * string machine_type = 4; + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The server type.
+     * [Available server
+     * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
+     * 
+ * + * string machine_type = 4; + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The server type.
+     * [Available server
+     * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
+     * 
+ * + * string machine_type = 4; + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + machineType_ = value; + onChanged(); + return this; + } + /** + *
+     * The server type.
+     * [Available server
+     * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
+     * 
+ * + * string machine_type = 4; + * @return This builder for chaining. + */ + public Builder clearMachineType() { + + machineType_ = getDefaultInstance().getMachineType(); + onChanged(); + return this; + } + /** + *
+     * The server type.
+     * [Available server
+     * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
+     * 
+ * + * string machine_type = 4; + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + machineType_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+     * The state of the server.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+     * The state of the server.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + *
+     * The state of the server.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * @return The state. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Instance.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; + } + /** + *
+     * The state of the server.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.baremetalsolution.v2.Instance.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The state of the server.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private boolean hyperthreadingEnabled_ ; + /** + *
+     * True if you enable hyperthreading for the server, otherwise false.
+     * The default value is false.
+     * 
+ * + * bool hyperthreading_enabled = 6; + * @return The hyperthreadingEnabled. + */ + @java.lang.Override + public boolean getHyperthreadingEnabled() { + return hyperthreadingEnabled_; + } + /** + *
+     * True if you enable hyperthreading for the server, otherwise false.
+     * The default value is false.
+     * 
+ * + * bool hyperthreading_enabled = 6; + * @param value The hyperthreadingEnabled to set. + * @return This builder for chaining. + */ + public Builder setHyperthreadingEnabled(boolean value) { + + hyperthreadingEnabled_ = value; + onChanged(); + return this; + } + /** + *
+     * True if you enable hyperthreading for the server, otherwise false.
+     * The default value is false.
+     * 
+ * + * bool hyperthreading_enabled = 6; + * @return This builder for chaining. + */ + public Builder clearHyperthreadingEnabled() { + + hyperthreadingEnabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private java.util.List luns_ = + java.util.Collections.emptyList(); + private void ensureLunsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + luns_ = new java.util.ArrayList(luns_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; + + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public java.util.List getLunsList() { + if (lunsBuilder_ == null) { + return java.util.Collections.unmodifiableList(luns_); + } else { + return lunsBuilder_.getMessageList(); + } + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public int getLunsCount() { + if (lunsBuilder_ == null) { + return luns_.size(); + } else { + return lunsBuilder_.getCount(); + } + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { + if (lunsBuilder_ == null) { + return luns_.get(index); + } else { + return lunsBuilder_.getMessage(index); + } + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public Builder setLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { + if (lunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLunsIsMutable(); + luns_.set(index, value); + onChanged(); + } else { + lunsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public Builder setLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + if (lunsBuilder_ == null) { + ensureLunsIsMutable(); + luns_.set(index, builderForValue.build()); + onChanged(); + } else { + lunsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { + if (lunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLunsIsMutable(); + luns_.add(value); + onChanged(); + } else { + lunsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public Builder addLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { + if (lunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLunsIsMutable(); + luns_.add(index, value); + onChanged(); + } else { + lunsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public Builder addLuns( + com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + if (lunsBuilder_ == null) { + ensureLunsIsMutable(); + luns_.add(builderForValue.build()); + onChanged(); + } else { + lunsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public Builder addLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + if (lunsBuilder_ == null) { + ensureLunsIsMutable(); + luns_.add(index, builderForValue.build()); + onChanged(); + } else { + lunsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public Builder addAllLuns( + java.lang.Iterable values) { + if (lunsBuilder_ == null) { + ensureLunsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, luns_); + onChanged(); + } else { + lunsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public Builder clearLuns() { + if (lunsBuilder_ == null) { + luns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + lunsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public Builder removeLuns(int index) { + if (lunsBuilder_ == null) { + ensureLunsIsMutable(); + luns_.remove(index); + onChanged(); + } else { + lunsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( + int index) { + return getLunsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { + if (lunsBuilder_ == null) { + return luns_.get(index); } else { + return lunsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public java.util.List + getLunsOrBuilderList() { + if (lunsBuilder_ != null) { + return lunsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(luns_); + } + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { + return getLunsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( + int index) { + return getLunsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + } + /** + *
+     * List of LUNs associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; + */ + public java.util.List + getLunsBuilderList() { + return getLunsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> + getLunsFieldBuilder() { + if (lunsBuilder_ == null) { + lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + luns_ = null; + } + return lunsBuilder_; + } + + private java.util.List networks_ = + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + networks_ = new java.util.ArrayList(networks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; + + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public java.util.List getNetworksList() { + if (networksBuilder_ == null) { + return java.util.Collections.unmodifiableList(networks_); + } else { + return networksBuilder_.getMessageList(); + } + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public int getNetworksCount() { + if (networksBuilder_ == null) { + return networks_.size(); + } else { + return networksBuilder_.getCount(); + } + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { + if (networksBuilder_ == null) { + return networks_.get(index); + } else { + return networksBuilder_.getMessage(index); + } + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public Builder setNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { + if (networksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworksIsMutable(); + networks_.set(index, value); + onChanged(); + } else { + networksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public Builder setNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.set(index, builderForValue.build()); + onChanged(); + } else { + networksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) { + if (networksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworksIsMutable(); + networks_.add(value); + onChanged(); + } else { + networksBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public Builder addNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { + if (networksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworksIsMutable(); + networks_.add(index, value); + onChanged(); + } else { + networksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public Builder addNetworks( + com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(builderForValue.build()); + onChanged(); + } else { + networksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public Builder addNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(index, builderForValue.build()); + onChanged(); + } else { + networksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public Builder addAllNetworks( + java.lang.Iterable values) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networks_); + onChanged(); + } else { + networksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public Builder clearNetworks() { + if (networksBuilder_ == null) { + networks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + networksBuilder_.clear(); + } + return this; + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public Builder removeNetworks(int index) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.remove(index); + onChanged(); + } else { + networksBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( + int index) { + return getNetworksFieldBuilder().getBuilder(index); + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { + if (networksBuilder_ == null) { + return networks_.get(index); } else { + return networksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public java.util.List + getNetworksOrBuilderList() { + if (networksBuilder_ != null) { + return networksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(networks_); + } + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { + return getNetworksFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( + int index) { + return getNetworksFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + } + /** + *
+     * List of networks associated with this server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; + */ + public java.util.List + getNetworksBuilderList() { + return getNetworksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + getNetworksFieldBuilder() { + if (networksBuilder_ == null) { + networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + networks_ = null; + } + return networksBuilder_; + } + + private boolean interactiveSerialConsoleEnabled_ ; + /** + *
+     * True if the interactive serial console feature is enabled for the instance,
+     * false otherwise.
+     * The default value is false.
+     * 
+ * + * bool interactive_serial_console_enabled = 10; + * @return The interactiveSerialConsoleEnabled. + */ + @java.lang.Override + public boolean getInteractiveSerialConsoleEnabled() { + return interactiveSerialConsoleEnabled_; + } + /** + *
+     * True if the interactive serial console feature is enabled for the instance,
+     * false otherwise.
+     * The default value is false.
+     * 
+ * + * bool interactive_serial_console_enabled = 10; + * @param value The interactiveSerialConsoleEnabled to set. + * @return This builder for chaining. + */ + public Builder setInteractiveSerialConsoleEnabled(boolean value) { + + interactiveSerialConsoleEnabled_ = value; + onChanged(); + return this; + } + /** + *
+     * True if the interactive serial console feature is enabled for the instance,
+     * false otherwise.
+     * The default value is false.
+     * 
+ * + * bool interactive_serial_console_enabled = 10; + * @return This builder for chaining. + */ + public Builder clearInteractiveSerialConsoleEnabled() { + + interactiveSerialConsoleEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object osImage_ = ""; + /** + *
+     * The OS image currently installed on the server.
+     * 
+ * + * string os_image = 12; + * @return The osImage. + */ + public java.lang.String getOsImage() { + java.lang.Object ref = osImage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + osImage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The OS image currently installed on the server.
+     * 
+ * + * string os_image = 12; + * @return The bytes for osImage. + */ + public com.google.protobuf.ByteString + getOsImageBytes() { + java.lang.Object ref = osImage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + osImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The OS image currently installed on the server.
+     * 
+ * + * string os_image = 12; + * @param value The osImage to set. + * @return This builder for chaining. + */ + public Builder setOsImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + osImage_ = value; + onChanged(); + return this; + } + /** + *
+     * The OS image currently installed on the server.
+     * 
+ * + * string os_image = 12; + * @return This builder for chaining. + */ + public Builder clearOsImage() { + + osImage_ = getDefaultInstance().getOsImage(); + onChanged(); + return this; + } + /** + *
+     * The OS image currently installed on the server.
+     * 
+ * + * string os_image = 12; + * @param value The bytes for osImage to set. + * @return This builder for chaining. + */ + public Builder setOsImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + osImage_ = value; + onChanged(); + return this; + } + + private java.lang.Object pod_ = ""; + /** + *
+     * Immutable. Pod name.
+     * Pod is an independent part of infrastructure.
+     * Instance can be connected to the assets (networks, volumes) allocated
+     * in the same pod only.
+     * 
+ * + * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The pod. + */ + public java.lang.String getPod() { + java.lang.Object ref = pod_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pod_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Immutable. Pod name.
+     * Pod is an independent part of infrastructure.
+     * Instance can be connected to the assets (networks, volumes) allocated
+     * in the same pod only.
+     * 
+ * + * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for pod. + */ + public com.google.protobuf.ByteString + getPodBytes() { + java.lang.Object ref = pod_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Immutable. Pod name.
+     * Pod is an independent part of infrastructure.
+     * Instance can be connected to the assets (networks, volumes) allocated
+     * in the same pod only.
+     * 
+ * + * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The pod to set. + * @return This builder for chaining. + */ + public Builder setPod( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pod_ = value; + onChanged(); + return this; + } + /** + *
+     * Immutable. Pod name.
+     * Pod is an independent part of infrastructure.
+     * Instance can be connected to the assets (networks, volumes) allocated
+     * in the same pod only.
+     * 
+ * + * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearPod() { + + pod_ = getDefaultInstance().getPod(); + onChanged(); + return this; + } + /** + *
+     * Immutable. Pod name.
+     * Pod is an independent part of infrastructure.
+     * Instance can be connected to the assets (networks, volumes) allocated
+     * in the same pod only.
+     * 
+ * + * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The bytes for pod to set. + * @return This builder for chaining. + */ + public Builder setPodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pod_ = value; + onChanged(); + return this; + } + + private java.lang.Object networkTemplate_ = ""; + /** + *
+     * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
+     * Generally, the template name follows the syntax of
+     * "bond<bond_mode>" or "nic".
+     * 
+ * + * string network_template = 14 [(.google.api.resource_reference) = { ... } + * @return The networkTemplate. + */ + public java.lang.String getNetworkTemplate() { + java.lang.Object ref = networkTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
+     * Generally, the template name follows the syntax of
+     * "bond<bond_mode>" or "nic".
+     * 
+ * + * string network_template = 14 [(.google.api.resource_reference) = { ... } + * @return The bytes for networkTemplate. + */ + public com.google.protobuf.ByteString + getNetworkTemplateBytes() { + java.lang.Object ref = networkTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + networkTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
+     * Generally, the template name follows the syntax of
+     * "bond<bond_mode>" or "nic".
+     * 
+ * + * string network_template = 14 [(.google.api.resource_reference) = { ... } + * @param value The networkTemplate to set. + * @return This builder for chaining. + */ + public Builder setNetworkTemplate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + networkTemplate_ = value; + onChanged(); + return this; + } + /** + *
+     * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
+     * Generally, the template name follows the syntax of
+     * "bond<bond_mode>" or "nic".
+     * 
+ * + * string network_template = 14 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearNetworkTemplate() { + + networkTemplate_ = getDefaultInstance().getNetworkTemplate(); + onChanged(); + return this; + } + /** + *
+     * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
+     * Generally, the template name follows the syntax of
+     * "bond<bond_mode>" or "nic".
+     * 
+ * + * string network_template = 14 [(.google.api.resource_reference) = { ... } + * @param value The bytes for networkTemplate to set. + * @return This builder for chaining. + */ + public Builder setNetworkTemplateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + networkTemplate_ = value; + onChanged(); + return this; + } + + private java.util.List logicalInterfaces_ = + java.util.Collections.emptyList(); + private void ensureLogicalInterfacesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; + + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public java.util.List getLogicalInterfacesList() { + if (logicalInterfacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(logicalInterfaces_); + } else { + return logicalInterfacesBuilder_.getMessageList(); + } + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public int getLogicalInterfacesCount() { + if (logicalInterfacesBuilder_ == null) { + return logicalInterfaces_.size(); + } else { + return logicalInterfacesBuilder_.getCount(); + } + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { + if (logicalInterfacesBuilder_ == null) { + return logicalInterfaces_.get(index); + } else { + return logicalInterfacesBuilder_.getMessage(index); + } + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public Builder setLogicalInterfaces( + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { + if (logicalInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.set(index, value); + onChanged(); + } else { + logicalInterfacesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public Builder setLogicalInterfaces( + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { + if (logicalInterfacesBuilder_ == null) { + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.set(index, builderForValue.build()); + onChanged(); + } else { + logicalInterfacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface value) { + if (logicalInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.add(value); + onChanged(); + } else { + logicalInterfacesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public Builder addLogicalInterfaces( + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { + if (logicalInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.add(index, value); + onChanged(); + } else { + logicalInterfacesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public Builder addLogicalInterfaces( + com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { + if (logicalInterfacesBuilder_ == null) { + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.add(builderForValue.build()); + onChanged(); + } else { + logicalInterfacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public Builder addLogicalInterfaces( + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { + if (logicalInterfacesBuilder_ == null) { + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.add(index, builderForValue.build()); + onChanged(); + } else { + logicalInterfacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public Builder addAllLogicalInterfaces( + java.lang.Iterable values) { + if (logicalInterfacesBuilder_ == null) { + ensureLogicalInterfacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalInterfaces_); + onChanged(); + } else { + logicalInterfacesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public Builder clearLogicalInterfaces() { + if (logicalInterfacesBuilder_ == null) { + logicalInterfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + logicalInterfacesBuilder_.clear(); + } + return this; + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public Builder removeLogicalInterfaces(int index) { + if (logicalInterfacesBuilder_ == null) { + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.remove(index); + onChanged(); + } else { + logicalInterfacesBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder getLogicalInterfacesBuilder( + int index) { + return getLogicalInterfacesFieldBuilder().getBuilder(index); + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { + if (logicalInterfacesBuilder_ == null) { + return logicalInterfaces_.get(index); } else { + return logicalInterfacesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public java.util.List + getLogicalInterfacesOrBuilderList() { + if (logicalInterfacesBuilder_ != null) { + return logicalInterfacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logicalInterfaces_); + } + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder( + int index) { + return getLogicalInterfacesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + } + /** + *
+     * List of logical interfaces for the instance. The number of logical
+     * interfaces will be the same as number of hardware bond/nic on the chosen
+     * network template. For the non-multivlan configurations (for eg, existing
+     * servers) that use existing default network template (bondaa-bondaa), both
+     * the Instance.networks field and the Instance.logical_interfaces fields will
+     * be filled to ensure backward compatibility. For the others, only
+     * Instance.logical_interfaces will be filled.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + public java.util.List + getLogicalInterfacesBuilderList() { + return getLogicalInterfacesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> + getLogicalInterfacesFieldBuilder() { + if (logicalInterfacesBuilder_ == null) { + logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( + logicalInterfaces_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + logicalInterfaces_ = null; + } + return logicalInterfacesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Instance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Instance) + private static final com.google.cloud.baremetalsolution.v2.Instance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Instance(); + } + + public static com.google.cloud.baremetalsolution.v2.Instance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Instance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java similarity index 50% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java index 7b0b96d..eccecfd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -35,13 +17,10 @@ public interface InstanceOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -51,90 +30,86 @@ public interface InstanceOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** + *
+   * An identifier for the `Instance`, generated by the backend.
+   * 
* + * string id = 11; + * @return The id. + */ + java.lang.String getId(); + /** + *
+   * An identifier for the `Instance`, generated by the backend.
+   * 
* + * string id = 11; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * The server type.
    * [Available server
@@ -142,13 +117,10 @@ public interface InstanceOrBuilder
    * 
* * string machine_type = 4; - * * @return The machineType. */ java.lang.String getMachineType(); /** - * - * *
    * The server type.
    * [Available server
@@ -156,53 +128,42 @@ public interface InstanceOrBuilder
    * 
* * string machine_type = 4; - * * @return The bytes for machineType. */ - com.google.protobuf.ByteString getMachineTypeBytes(); + com.google.protobuf.ByteString + getMachineTypeBytes(); /** - * - * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Instance.State getState(); /** - * - * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; - * * @return The hyperthreadingEnabled. */ boolean getHyperthreadingEnabled(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -211,31 +172,30 @@ public interface InstanceOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -244,34 +204,31 @@ public interface InstanceOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List getLunsList(); + java.util.List + getLunsList(); /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -280,8 +237,6 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -290,40 +245,34 @@ java.lang.String getLabelsOrDefault( */ int getLunsCount(); /** - * - * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** - * - * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index); /** - * - * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List getNetworksList(); + java.util.List + getNetworksList(); /** - * - * *
    * List of networks associated with this server.
    * 
@@ -332,8 +281,6 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** - * - * *
    * List of networks associated with this server.
    * 
@@ -342,30 +289,25 @@ java.lang.String getLabelsOrDefault( */ int getNetworksCount(); /** - * - * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** - * - * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index); /** - * - * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -373,8 +315,151 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool interactive_serial_console_enabled = 10; - * * @return The interactiveSerialConsoleEnabled. */ boolean getInteractiveSerialConsoleEnabled(); + + /** + *
+   * The OS image currently installed on the server.
+   * 
+ * + * string os_image = 12; + * @return The osImage. + */ + java.lang.String getOsImage(); + /** + *
+   * The OS image currently installed on the server.
+   * 
+ * + * string os_image = 12; + * @return The bytes for osImage. + */ + com.google.protobuf.ByteString + getOsImageBytes(); + + /** + *
+   * Immutable. Pod name.
+   * Pod is an independent part of infrastructure.
+   * Instance can be connected to the assets (networks, volumes) allocated
+   * in the same pod only.
+   * 
+ * + * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The pod. + */ + java.lang.String getPod(); + /** + *
+   * Immutable. Pod name.
+   * Pod is an independent part of infrastructure.
+   * Instance can be connected to the assets (networks, volumes) allocated
+   * in the same pod only.
+   * 
+ * + * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for pod. + */ + com.google.protobuf.ByteString + getPodBytes(); + + /** + *
+   * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
+   * Generally, the template name follows the syntax of
+   * "bond<bond_mode>" or "nic".
+   * 
+ * + * string network_template = 14 [(.google.api.resource_reference) = { ... } + * @return The networkTemplate. + */ + java.lang.String getNetworkTemplate(); + /** + *
+   * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
+   * Generally, the template name follows the syntax of
+   * "bond<bond_mode>" or "nic".
+   * 
+ * + * string network_template = 14 [(.google.api.resource_reference) = { ... } + * @return The bytes for networkTemplate. + */ + com.google.protobuf.ByteString + getNetworkTemplateBytes(); + + /** + *
+   * List of logical interfaces for the instance. The number of logical
+   * interfaces will be the same as number of hardware bond/nic on the chosen
+   * network template. For the non-multivlan configurations (for eg, existing
+   * servers) that use existing default network template (bondaa-bondaa), both
+   * the Instance.networks field and the Instance.logical_interfaces fields will
+   * be filled to ensure backward compatibility. For the others, only
+   * Instance.logical_interfaces will be filled.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + java.util.List + getLogicalInterfacesList(); + /** + *
+   * List of logical interfaces for the instance. The number of logical
+   * interfaces will be the same as number of hardware bond/nic on the chosen
+   * network template. For the non-multivlan configurations (for eg, existing
+   * servers) that use existing default network template (bondaa-bondaa), both
+   * the Instance.networks field and the Instance.logical_interfaces fields will
+   * be filled to ensure backward compatibility. For the others, only
+   * Instance.logical_interfaces will be filled.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index); + /** + *
+   * List of logical interfaces for the instance. The number of logical
+   * interfaces will be the same as number of hardware bond/nic on the chosen
+   * network template. For the non-multivlan configurations (for eg, existing
+   * servers) that use existing default network template (bondaa-bondaa), both
+   * the Instance.networks field and the Instance.logical_interfaces fields will
+   * be filled to ensure backward compatibility. For the others, only
+   * Instance.logical_interfaces will be filled.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + int getLogicalInterfacesCount(); + /** + *
+   * List of logical interfaces for the instance. The number of logical
+   * interfaces will be the same as number of hardware bond/nic on the chosen
+   * network template. For the non-multivlan configurations (for eg, existing
+   * servers) that use existing default network template (bondaa-bondaa), both
+   * the Instance.networks field and the Instance.logical_interfaces fields will
+   * be filled to ensure backward compatibility. For the others, only
+   * Instance.logical_interfaces will be filled.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + java.util.List + getLogicalInterfacesOrBuilderList(); + /** + *
+   * List of logical interfaces for the instance. The number of logical
+   * interfaces will be the same as number of hardware bond/nic on the chosen
+   * network template. For the non-multivlan configurations (for eg, existing
+   * servers) that use existing default network template (bondaa-bondaa), both
+   * the Instance.networks field and the Instance.logical_interfaces fields will
+   * be filled to ensure backward compatibility. For the others, only
+   * Instance.logical_interfaces will be filled.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + */ + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java new file mode 100644 index 0000000..1c4d7e3 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java @@ -0,0 +1,283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class InstanceProto { + private InstanceProto() {} + 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_baremetalsolution_v2_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/baremetalsolution/v2/inst" + + "ance.proto\022!google.cloud.baremetalsoluti" + + "on.v2\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032+google/cloud/" + + "baremetalsolution/v2/lun.proto\032/google/c" + + "loud/baremetalsolution/v2/network.proto\032" + + " google/protobuf/field_mask.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" + + "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" + + "solution.v2.Instance.State\022\036\n\026hyperthrea" + + "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" + + "gle.cloud.baremetalsolution.v2.Instance." + + "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" + + ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " + + "\003(\0132*.google.cloud.baremetalsolution.v2." + + "Network\022*\n\"interactive_serial_console_en" + + "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" + + "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" + + "baremetalsolution.googleapis.com/ServerN" + + "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" + + "(\01323.google.cloud.baremetalsolution.v2.L" + + "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" + + "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" + + "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" + + "+.google.cloud.baremetalsolution.v2.Inst" + + "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" + + "instance\030\001 \001(\0132+.google.cloud.baremetals" + + "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" + + "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")baremetalsolution.googleapis.com/Instan" + + "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" + + "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" + + "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" + + "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" + + "leapis.com/Instance\"\222\001\n\020DetachLunRequest" + + "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" + + "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" + + "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" + + ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" + + "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" + + "oogle.cloud.baremetalsolution.v2.ServerN" + + "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" + + "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" + + "2W.google.cloud.baremetalsolution.v2.Ser" + + "verNetworkTemplate.LogicalInterface.Inte" + + "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" + + "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" + + "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" + + "n.googleapis.com/ServerNetworkTemplate\022W" + + "projects/{project}/locations/{location}/" + + "serverNetworkTemplate/{server_network_te" + + "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" + + "InstanceResponseB\373\001\n%com.google.cloud.ba" + + "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/baremetalsolution/v2;baremetalsolution\252" + + "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" + + "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" + + "::Cloud::BareMetalSolution::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, + new java.lang.String[] { "Name", "Id", "CreateTime", "UpdateTime", "MachineType", "State", "HyperthreadingEnabled", "Labels", "Luns", "Networks", "InteractiveSerialConsoleEnabled", "OsImage", "Pod", "NetworkTemplate", "LogicalInterfaces", }); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "Instance", "UpdateMask", }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, + new java.lang.String[] { "Instance", "Lun", }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, + new java.lang.String[] { "Name", "ApplicableInstanceTypes", "LogicalInterfaces", }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, + new java.lang.String[] { "Name", "Type", "Required", }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, + new java.lang.String[] { }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java similarity index 60% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java index dde78ea..7c955f4 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java @@ -1,58 +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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ -public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) ListInstancesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; + filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstancesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +55,36 @@ private ListInstancesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,41 +92,34 @@ private ListInstancesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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 @@ -147,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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 { @@ -182,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -201,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -217,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -247,8 +220,53 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +278,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,6 +289,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } unknownFields.writeTo(output); } @@ -283,11 +305,15 @@ 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_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -296,17 +322,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.baremetalsolution.v2.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = - (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,133 +354,125 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.cloud.baremetalsolution.v2.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesRequest.newBuilder() @@ -458,15 +480,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(); @@ -476,13 +499,15 @@ public Builder clear() { pageToken_ = ""; + filter_ = ""; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override @@ -501,11 +526,11 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = - new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; + result.filter_ = filter_; onBuilt(); return result; } @@ -514,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -554,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -567,6 +590,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesRequ pageToken_ = other.pageToken_; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -586,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * - * string parent = 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; @@ -623,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * - * string parent = 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 { @@ -647,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * - * 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. Parent value for ListInstancesRequest.
      * 
* - * - * string 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. Parent value for ListInstancesRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -731,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -770,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -792,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -814,68 +808,157 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; } + private java.lang.Object filter_ = ""; + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -885,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) private static final com.google.cloud.baremetalsolution.v2.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(); } @@ -899,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java index 1cf8189..1d504fd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java @@ -1,93 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java index cb23ffe..9d37ccd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message for the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ -public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) ListInstancesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstancesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,37 @@ private ListInstancesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instances_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instances_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,7 +94,8 @@ private ListInstancesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -128,27 +107,22 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** - * - * *
    * The list of servers.
    * 
@@ -160,8 +134,6 @@ public java.util.List getInstanc return instances_; } /** - * - * *
    * The list of servers.
    * 
@@ -169,13 +141,11 @@ public java.util.List getInstanc * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public java.util.List + public java.util.List getInstancesOrBuilderList() { return instances_; } /** - * - * *
    * The list of servers.
    * 
@@ -187,8 +157,6 @@ public int getInstancesCount() { return instances_.size(); } /** - * - * *
    * The list of servers.
    * 
@@ -200,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { return instances_.get(index); } /** - * - * *
    * The list of servers.
    * 
@@ -209,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( + int index) { return instances_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -265,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -308,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = - (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.cloud.baremetalsolution.v2.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesResponse.newBuilder() @@ -543,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getInstancesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override @@ -592,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = - new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -678,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResp instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -720,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,29 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList(instances_); + instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> - instancesBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instancesBuilder_; /** - * - * *
      * The list of servers.
      * 
@@ -767,8 +701,6 @@ public java.util.List getInstanc } } /** - * - * *
      * The list of servers.
      * 
@@ -783,8 +715,6 @@ public int getInstancesCount() { } } /** - * - * *
      * The list of servers.
      * 
@@ -799,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { } } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder setInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder setInstances( + int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setInstances(int index, com.google.cloud.baremetalsolution.v2.Ins return this; } /** - * - * *
      * The list of servers.
      * 
@@ -841,8 +768,6 @@ public Builder setInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -863,15 +788,14 @@ public Builder addInstances(com.google.cloud.baremetalsolution.v2.Instance value return this; } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder addInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder addInstances( + int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,8 +809,6 @@ public Builder addInstances(int index, com.google.cloud.baremetalsolution.v2.Ins return this; } /** - * - * *
      * The list of servers.
      * 
@@ -905,8 +827,6 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -925,8 +845,6 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -937,7 +855,8 @@ public Builder addAllInstances( java.lang.Iterable values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); @@ -945,8 +864,6 @@ public Builder addAllInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -964,8 +881,6 @@ public Builder clearInstances() { return this; } /** - * - * *
      * The list of servers.
      * 
@@ -983,20 +898,17 @@ public Builder removeInstances(int index) { return this; } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder( + int index) { return getInstancesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of servers.
      * 
@@ -1006,22 +918,19 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilde public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( int index) { if (instancesBuilder_ == null) { - return instances_.get(index); - } else { + return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -1029,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui } } /** - * - * *
      * The list of servers.
      * 
@@ -1038,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + return getInstancesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder(int index) { - return getInstancesFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + instances_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); instances_ = null; } return instancesBuilder_; @@ -1087,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1109,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1131,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1244,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1337,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1370,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) private static final com.google.cloud.baremetalsolution.v2.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(); } @@ -1384,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1408,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java index 1d259d7..5523911 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List getInstancesList(); + java.util.List + getInstancesList(); /** - * - * *
    * The list of servers.
    * 
@@ -44,8 +25,6 @@ public interface ListInstancesResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Instance getInstances(int index); /** - * - * *
    * The list of servers.
    * 
@@ -54,100 +33,82 @@ public interface ListInstancesResponseOrBuilder */ int getInstancesCount(); /** - * - * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** - * - * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java similarity index 67% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java index 52e9a74..78bf806 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ -public final class ListLunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) ListLunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLunsRequest.newBuilder() to construct. private ListLunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLunsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListLunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListLunsRequest( 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,41 +85,34 @@ private ListLunsRequest( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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 @@ -147,31 +121,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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 { @@ -182,15 +154,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -201,14 +170,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -217,29 +183,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -248,7 +214,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +225,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_); } @@ -283,7 +249,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_); @@ -296,17 +263,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.baremetalsolution.v2.ListLunsRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsRequest other = - (com.google.cloud.baremetalsolution.v2.ListLunsRequest) obj; + com.google.cloud.baremetalsolution.v2.ListLunsRequest other = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) 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; } @@ -330,127 +299,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.cloud.baremetalsolution.v2.ListLunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsRequest.newBuilder() @@ -458,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override @@ -501,8 +461,7 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsRequest result = - new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); + com.google.cloud.baremetalsolution.v2.ListLunsRequest result = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -514,39 +473,38 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest)other); } else { super.mergeFrom(other); return this; @@ -554,8 +512,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -586,8 +543,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,22 +555,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * - * string parent = 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; @@ -623,23 +575,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * - * string parent = 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 { @@ -647,83 +596,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * - * 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. Parent value for ListLunsRequest.
      * 
* - * - * string 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. Parent value for ListLunsRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -731,38 +664,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -770,20 +697,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -792,21 +717,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -814,68 +738,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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); } @@ -885,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) private static final com.google.cloud.baremetalsolution.v2.ListLunsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(); } @@ -899,16 +816,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java index 65d1f6d..633ab6f 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java @@ -1,93 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsRequestOrBuilder - extends +public interface ListLunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java index f245642..46512a7 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ -public final class ListLunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) ListLunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLunsResponse.newBuilder() to construct. private ListLunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLunsResponse() { luns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListLunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListLunsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - luns_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + luns_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListLunsResponse( } 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)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -127,27 +107,22 @@ private ListLunsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } public static final int LUNS_FIELD_NUMBER = 1; private java.util.List luns_; /** - * - * *
    * The list of luns.
    * 
@@ -159,8 +134,6 @@ public java.util.List getLunsList() { return luns_; } /** - * - * *
    * The list of luns.
    * 
@@ -168,13 +141,11 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** - * - * *
    * The list of luns.
    * 
@@ -186,8 +157,6 @@ public int getLunsCount() { return luns_.size(); } /** - * - * *
    * The list of luns.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** - * - * *
    * The list of luns.
    * 
@@ -208,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { return luns_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -264,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -307,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < luns_.size(); i++) { output.writeMessage(1, luns_.get(i)); } @@ -355,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, luns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -376,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsResponse other = - (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; + com.google.cloud.baremetalsolution.v2.ListLunsResponse other = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; - if (!getLunsList().equals(other.getLunsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getLunsList() + .equals(other.getLunsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.cloud.baremetalsolution.v2.ListLunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsResponse.newBuilder() @@ -542,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override @@ -591,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsResponse result = - new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); + com.google.cloud.baremetalsolution.v2.ListLunsResponse result = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); int from_bitField0_ = bitField0_; if (lunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -617,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse)other); } else { super.mergeFrom(other); return this; @@ -657,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) return this; if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -677,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000001); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLunsFieldBuilder() - : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLunsFieldBuilder() : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -719,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -729,28 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List luns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> - lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; /** - * - * *
      * The list of luns.
      * 
@@ -765,8 +701,6 @@ public java.util.List getLunsList() { } } /** - * - * *
      * The list of luns.
      * 
@@ -781,8 +715,6 @@ public int getLunsCount() { } } /** - * - * *
      * The list of luns.
      * 
@@ -797,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,8 +750,6 @@ public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun valu return this; } /** - * - * *
      * The list of luns.
      * 
@@ -839,8 +768,6 @@ public Builder setLuns( return this; } /** - * - * *
      * The list of luns.
      * 
@@ -861,15 +788,14 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -883,15 +809,14 @@ public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun valu return this; } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns( + com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -902,8 +827,6 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builder return this; } /** - * - * *
      * The list of luns.
      * 
@@ -922,8 +845,6 @@ public Builder addLuns( return this; } /** - * - * *
      * The list of luns.
      * 
@@ -934,7 +855,8 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -942,8 +864,6 @@ public Builder addAllLuns( return this; } /** - * - * *
      * The list of luns.
      * 
@@ -961,8 +881,6 @@ public Builder clearLuns() { return this; } /** - * - * *
      * The list of luns.
      * 
@@ -980,44 +898,39 @@ public Builder removeLuns(int index) { return this; } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( + int index) { return getLunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { if (lunsBuilder_ == null) { - return luns_.get(index); - } else { + return luns_.get(index); } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -1025,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int i } } /** - * - * *
      * The list of luns.
      * 
@@ -1034,47 +945,42 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int i * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { - return getLunsFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( + int index) { + return getLunsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List getLunsBuilderList() { + public java.util.List + getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); luns_ = null; } return lunsBuilder_; @@ -1082,20 +988,18 @@ public java.util.List getLuns private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1104,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1126,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1239,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1332,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1365,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) private static final com.google.cloud.baremetalsolution.v2.ListLunsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(); } @@ -1379,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1403,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java index d593951..23a95a3 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsResponseOrBuilder - extends +public interface ListLunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List getLunsList(); + java.util.List + getLunsList(); /** - * - * *
    * The list of luns.
    * 
@@ -44,8 +25,6 @@ public interface ListLunsResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** - * - * *
    * The list of luns.
    * 
@@ -54,100 +33,82 @@ public interface ListLunsResponseOrBuilder */ int getLunsCount(); /** - * - * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** - * - * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java new file mode 100644 index 0000000..4c7201a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Request to get networks with IPs.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} + */ +public final class ListNetworkUsageRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + ListNetworkUsageRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListNetworkUsageRequest.newBuilder() to construct. + private ListNetworkUsageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListNetworkUsageRequest() { + location_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListNetworkUsageRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListNetworkUsageRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + private volatile java.lang.Object location_; + /** + *
+   * Required. Parent value (project and location).
+   * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + *
+   * Required. Parent value (project and location).
+   * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; + + if (!getLocation() + .equals(other.getLocation())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request to get networks with IPs.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + location_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest build() { + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartial() { + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); + result.location_ = location_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other) { + if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object location_ = ""; + /** + *
+     * Required. Parent value (project and location).
+     * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Parent value (project and location).
+     * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for location. + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Parent value (project and location).
+     * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Parent value (project and location).
+     * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + *
+     * Required. Parent value (project and location).
+     * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(); + } + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java new file mode 100644 index 0000000..e4cb363 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ListNetworkUsageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent value (project and location).
+   * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The location. + */ + java.lang.String getLocation(); + /** + *
+   * Required. Parent value (project and location).
+   * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for location. + */ + com.google.protobuf.ByteString + getLocationBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java new file mode 100644 index 0000000..470b090 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java @@ -0,0 +1,872 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Response with Networks with IPs
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} + */ +public final class ListNetworkUsageResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) + ListNetworkUsageResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListNetworkUsageResponse.newBuilder() to construct. + private ListNetworkUsageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListNetworkUsageResponse() { + networks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListNetworkUsageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListNetworkUsageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + networks_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkUsage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = java.util.Collections.unmodifiableList(networks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + } + + public static final int NETWORKS_FIELD_NUMBER = 1; + private java.util.List networks_; + /** + *
+   * Networks with IPs.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + @java.lang.Override + public java.util.List getNetworksList() { + return networks_; + } + /** + *
+   * Networks with IPs.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + @java.lang.Override + public java.util.List + getNetworksOrBuilderList() { + return networks_; + } + /** + *
+   * Networks with IPs.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + @java.lang.Override + public int getNetworksCount() { + return networks_.size(); + } + /** + *
+   * Networks with IPs.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) { + return networks_.get(index); + } + /** + *
+   * Networks with IPs.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( + int index) { + return networks_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < networks_.size(); i++) { + output.writeMessage(1, networks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < networks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, networks_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; + + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNetworksCount() > 0) { + hash = (37 * hash) + NETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getNetworksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response with Networks with IPs
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNetworksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (networksBuilder_ == null) { + networks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + networksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse build() { + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildPartial() { + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); + int from_bitField0_ = bitField0_; + if (networksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + networks_ = java.util.Collections.unmodifiableList(networks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.networks_ = networks_; + } else { + result.networks_ = networksBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other) { + if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) return this; + if (networksBuilder_ == null) { + if (!other.networks_.isEmpty()) { + if (networks_.isEmpty()) { + networks_ = other.networks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNetworksIsMutable(); + networks_.addAll(other.networks_); + } + onChanged(); + } + } else { + if (!other.networks_.isEmpty()) { + if (networksBuilder_.isEmpty()) { + networksBuilder_.dispose(); + networksBuilder_ = null; + networks_ = other.networks_; + bitField0_ = (bitField0_ & ~0x00000001); + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; + } else { + networksBuilder_.addAllMessages(other.networks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List networks_ = + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + networks_ = new java.util.ArrayList(networks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> networksBuilder_; + + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public java.util.List getNetworksList() { + if (networksBuilder_ == null) { + return java.util.Collections.unmodifiableList(networks_); + } else { + return networksBuilder_.getMessageList(); + } + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public int getNetworksCount() { + if (networksBuilder_ == null) { + return networks_.size(); + } else { + return networksBuilder_.getCount(); + } + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) { + if (networksBuilder_ == null) { + return networks_.get(index); + } else { + return networksBuilder_.getMessage(index); + } + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public Builder setNetworks( + int index, com.google.cloud.baremetalsolution.v2.NetworkUsage value) { + if (networksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworksIsMutable(); + networks_.set(index, value); + onChanged(); + } else { + networksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public Builder setNetworks( + int index, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder builderForValue) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.set(index, builderForValue.build()); + onChanged(); + } else { + networksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public Builder addNetworks(com.google.cloud.baremetalsolution.v2.NetworkUsage value) { + if (networksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworksIsMutable(); + networks_.add(value); + onChanged(); + } else { + networksBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public Builder addNetworks( + int index, com.google.cloud.baremetalsolution.v2.NetworkUsage value) { + if (networksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworksIsMutable(); + networks_.add(index, value); + onChanged(); + } else { + networksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public Builder addNetworks( + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder builderForValue) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(builderForValue.build()); + onChanged(); + } else { + networksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public Builder addNetworks( + int index, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder builderForValue) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.add(index, builderForValue.build()); + onChanged(); + } else { + networksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public Builder addAllNetworks( + java.lang.Iterable values) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networks_); + onChanged(); + } else { + networksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public Builder clearNetworks() { + if (networksBuilder_ == null) { + networks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + networksBuilder_.clear(); + } + return this; + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public Builder removeNetworks(int index) { + if (networksBuilder_ == null) { + ensureNetworksIsMutable(); + networks_.remove(index); + onChanged(); + } else { + networksBuilder_.remove(index); + } + return this; + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBuilder( + int index) { + return getNetworksFieldBuilder().getBuilder(index); + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( + int index) { + if (networksBuilder_ == null) { + return networks_.get(index); } else { + return networksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public java.util.List + getNetworksOrBuilderList() { + if (networksBuilder_ != null) { + return networksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(networks_); + } + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder() { + return getNetworksFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder( + int index) { + return getNetworksFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + } + /** + *
+     * Networks with IPs.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + public java.util.List + getNetworksBuilderList() { + return getNetworksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> + getNetworksFieldBuilder() { + if (networksBuilder_ == null) { + networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( + networks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + networks_ = null; + } + return networksBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(); + } + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java new file mode 100644 index 0000000..6d55ac6 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ListNetworkUsageResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Networks with IPs.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + java.util.List + getNetworksList(); + /** + *
+   * Networks with IPs.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index); + /** + *
+   * Networks with IPs.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + int getNetworksCount(); + /** + *
+   * Networks with IPs.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + java.util.List + getNetworksOrBuilderList(); + /** + *
+   * Networks with IPs.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; + */ + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( + int index); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java similarity index 60% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java index aee4e27..02b44ee 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java @@ -1,58 +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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ -public final class ListNetworksRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNetworksRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) ListNetworksRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNetworksRequest.newBuilder() to construct. private ListNetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNetworksRequest() { parent_ = ""; pageToken_ = ""; + filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNetworksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNetworksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +55,36 @@ private ListNetworksRequest( 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; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,41 +92,34 @@ private ListNetworksRequest( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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 @@ -147,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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 { @@ -182,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -201,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -217,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -247,8 +220,53 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +278,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,6 +289,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } unknownFields.writeTo(output); } @@ -283,11 +305,15 @@ 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_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -296,17 +322,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.baremetalsolution.v2.ListNetworksRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = - (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) 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 (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,133 +354,125 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.cloud.baremetalsolution.v2.ListNetworksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksRequest.newBuilder() @@ -458,15 +480,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(); @@ -476,13 +499,15 @@ public Builder clear() { pageToken_ = ""; + filter_ = ""; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override @@ -501,11 +526,11 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = - new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; + result.filter_ = filter_; onBuilt(); return result; } @@ -514,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest)other); } else { super.mergeFrom(other); return this; @@ -554,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -567,6 +590,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksReque pageToken_ = other.pageToken_; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -586,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * - * string parent = 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; @@ -623,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * - * string parent = 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 { @@ -647,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * - * 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. Parent value for ListNetworksRequest.
      * 
* - * - * string 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. Parent value for ListNetworksRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -731,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -770,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -792,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -814,68 +808,157 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; } + private java.lang.Object filter_ = ""; + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -885,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) private static final com.google.cloud.baremetalsolution.v2.ListNetworksRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(); } @@ -899,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java index 7e88f84..4c26a87 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java @@ -1,93 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksRequestOrBuilder - extends +public interface ListNetworksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java index 81a6952..f98c159 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ -public final class ListNetworksResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNetworksResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) ListNetworksResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNetworksResponse.newBuilder() to construct. private ListNetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNetworksResponse() { networks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListNetworksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNetworksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNetworksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,37 @@ private ListNetworksResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - networks_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + networks_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,7 +94,8 @@ private ListNetworksResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -128,27 +107,22 @@ private ListNetworksResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** - * - * *
    * The list of networks.
    * 
@@ -160,8 +134,6 @@ public java.util.List getNetworks return networks_; } /** - * - * *
    * The list of networks.
    * 
@@ -169,13 +141,11 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** - * - * *
    * The list of networks.
    * 
@@ -187,8 +157,6 @@ public int getNetworksCount() { return networks_.size(); } /** - * - * *
    * The list of networks.
    * 
@@ -200,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** - * - * *
    * The list of networks.
    * 
@@ -209,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { return networks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -265,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -308,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworksResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = - (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; - if (!getNetworksList().equals(other.getNetworksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.cloud.baremetalsolution.v2.ListNetworksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksResponse.newBuilder() @@ -543,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getNetworksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override @@ -592,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = - new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -678,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRespo networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -720,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,29 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = - new java.util.ArrayList(networks_); + networks_ = new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; /** - * - * *
      * The list of networks.
      * 
@@ -767,8 +701,6 @@ public java.util.List getNetworks } } /** - * - * *
      * The list of networks.
      * 
@@ -783,8 +715,6 @@ public int getNetworksCount() { } } /** - * - * *
      * The list of networks.
      * 
@@ -799,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Netw return this; } /** - * - * *
      * The list of networks.
      * 
@@ -841,8 +768,6 @@ public Builder setNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -863,15 +788,14 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,8 +809,6 @@ public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Netw return this; } /** - * - * *
      * The list of networks.
      * 
@@ -905,8 +827,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -925,8 +845,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -937,7 +855,8 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -945,8 +864,6 @@ public Builder addAllNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -964,8 +881,6 @@ public Builder clearNetworks() { return this; } /** - * - * *
      * The list of networks.
      * 
@@ -983,44 +898,39 @@ public Builder removeNetworks(int index) { return this; } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( + int index) { return getNetworksFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { if (networksBuilder_ == null) { - return networks_.get(index); - } else { + return networks_.get(index); } else { return networksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -1028,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** - * - * *
      * The list of networks.
      * 
@@ -1037,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { - return getNetworksFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( + int index) { + return getNetworksFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); networks_ = null; } return networksBuilder_; @@ -1086,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1108,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1130,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1243,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1336,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1369,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) private static final com.google.cloud.baremetalsolution.v2.ListNetworksResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(); } @@ -1383,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1407,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java index 0d11c45..8b09c36 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksResponseOrBuilder - extends +public interface ListNetworksResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List getNetworksList(); + java.util.List + getNetworksList(); /** - * - * *
    * The list of networks.
    * 
@@ -44,8 +25,6 @@ public interface ListNetworksResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** - * - * *
    * The list of networks.
    * 
@@ -54,100 +33,82 @@ public interface ListNetworksResponseOrBuilder */ int getNetworksCount(); /** - * - * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** - * - * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java new file mode 100644 index 0000000..27cd94f --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java @@ -0,0 +1,1011 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Message for requesting a list of NFS shares.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} + */ +public final class ListNfsSharesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) + ListNfsSharesRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListNfsSharesRequest.newBuilder() to construct. + private ListNfsSharesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListNfsSharesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListNfsSharesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListNfsSharesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. Parent value for ListNfsSharesRequest.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. Parent value for ListNfsSharesRequest.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * Requested page size. The server might return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * A token identifying a page of results from the server.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * A token identifying a page of results from the server.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message for requesting a list of NFS shares.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest build() { + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() { + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other) { + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Parent value for ListNfsSharesRequest.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Parent value for ListNfsSharesRequest.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Parent value for ListNfsSharesRequest.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Parent value for ListNfsSharesRequest.
+     * 
+ * + * 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. Parent value for ListNfsSharesRequest.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Requested page size. The server might return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Requested page size. The server might return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * 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; + } + /** + *
+     * Requested page size. The server might return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * A token identifying a page of results from the server.
+     * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token identifying a page of results from the server.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token identifying a page of results from the server.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results from the server.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results from the server.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) + private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(); + } + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java new file mode 100644 index 0000000..c1029fe --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ListNfsSharesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent value for ListNfsSharesRequest.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Parent value for ListNfsSharesRequest.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Requested page size. The server might return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * A token identifying a page of results from the server.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * A token identifying a page of results from the server.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java new file mode 100644 index 0000000..95fe371 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java @@ -0,0 +1,1282 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Response message containing the list of NFS shares.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} + */ +public final class ListNfsSharesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) + ListNfsSharesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListNfsSharesResponse.newBuilder() to construct. + private ListNfsSharesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListNfsSharesResponse() { + nfsShares_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListNfsSharesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListNfsSharesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nfsShares_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nfsShares_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + nfsShares_ = java.util.Collections.unmodifiableList(nfsShares_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + } + + public static final int NFS_SHARES_FIELD_NUMBER = 1; + private java.util.List nfsShares_; + /** + *
+   * The list of NFS shares.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + @java.lang.Override + public java.util.List getNfsSharesList() { + return nfsShares_; + } + /** + *
+   * The list of NFS shares.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + @java.lang.Override + public java.util.List + getNfsSharesOrBuilderList() { + return nfsShares_; + } + /** + *
+   * The list of NFS shares.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + @java.lang.Override + public int getNfsSharesCount() { + return nfsShares_.size(); + } + /** + *
+   * The list of NFS shares.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { + return nfsShares_.get(index); + } + /** + *
+   * The list of NFS shares.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( + int index) { + return nfsShares_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * A token identifying a page of results from the server.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token identifying a page of results from the server.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_; + } + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < nfsShares_.size(); i++) { + output.writeMessage(1, nfsShares_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nfsShares_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nfsShares_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; + + if (!getNfsSharesList() + .equals(other.getNfsSharesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNfsSharesCount() > 0) { + hash = (37 * hash) + NFS_SHARES_FIELD_NUMBER; + hash = (53 * hash) + getNfsSharesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message containing the list of NFS shares.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNfsSharesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nfsSharesBuilder_ == null) { + nfsShares_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nfsSharesBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse build() { + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial() { + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); + int from_bitField0_ = bitField0_; + if (nfsSharesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nfsShares_ = java.util.Collections.unmodifiableList(nfsShares_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nfsShares_ = nfsShares_; + } else { + result.nfsShares_ = nfsSharesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other) { + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) return this; + if (nfsSharesBuilder_ == null) { + if (!other.nfsShares_.isEmpty()) { + if (nfsShares_.isEmpty()) { + nfsShares_ = other.nfsShares_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNfsSharesIsMutable(); + nfsShares_.addAll(other.nfsShares_); + } + onChanged(); + } + } else { + if (!other.nfsShares_.isEmpty()) { + if (nfsSharesBuilder_.isEmpty()) { + nfsSharesBuilder_.dispose(); + nfsSharesBuilder_ = null; + nfsShares_ = other.nfsShares_; + bitField0_ = (bitField0_ & ~0x00000001); + nfsSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNfsSharesFieldBuilder() : null; + } else { + nfsSharesBuilder_.addAllMessages(other.nfsShares_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nfsShares_ = + java.util.Collections.emptyList(); + private void ensureNfsSharesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nfsShares_ = new java.util.ArrayList(nfsShares_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsSharesBuilder_; + + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public java.util.List getNfsSharesList() { + if (nfsSharesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nfsShares_); + } else { + return nfsSharesBuilder_.getMessageList(); + } + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public int getNfsSharesCount() { + if (nfsSharesBuilder_ == null) { + return nfsShares_.size(); + } else { + return nfsSharesBuilder_.getCount(); + } + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { + if (nfsSharesBuilder_ == null) { + return nfsShares_.get(index); + } else { + return nfsSharesBuilder_.getMessage(index); + } + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public Builder setNfsShares( + int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + if (nfsSharesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsSharesIsMutable(); + nfsShares_.set(index, value); + onChanged(); + } else { + nfsSharesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public Builder setNfsShares( + int index, com.google.cloud.baremetalsolution.v2.NfsShare.Builder builderForValue) { + if (nfsSharesBuilder_ == null) { + ensureNfsSharesIsMutable(); + nfsShares_.set(index, builderForValue.build()); + onChanged(); + } else { + nfsSharesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public Builder addNfsShares(com.google.cloud.baremetalsolution.v2.NfsShare value) { + if (nfsSharesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsSharesIsMutable(); + nfsShares_.add(value); + onChanged(); + } else { + nfsSharesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public Builder addNfsShares( + int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + if (nfsSharesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNfsSharesIsMutable(); + nfsShares_.add(index, value); + onChanged(); + } else { + nfsSharesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public Builder addNfsShares( + com.google.cloud.baremetalsolution.v2.NfsShare.Builder builderForValue) { + if (nfsSharesBuilder_ == null) { + ensureNfsSharesIsMutable(); + nfsShares_.add(builderForValue.build()); + onChanged(); + } else { + nfsSharesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public Builder addNfsShares( + int index, com.google.cloud.baremetalsolution.v2.NfsShare.Builder builderForValue) { + if (nfsSharesBuilder_ == null) { + ensureNfsSharesIsMutable(); + nfsShares_.add(index, builderForValue.build()); + onChanged(); + } else { + nfsSharesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public Builder addAllNfsShares( + java.lang.Iterable values) { + if (nfsSharesBuilder_ == null) { + ensureNfsSharesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nfsShares_); + onChanged(); + } else { + nfsSharesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public Builder clearNfsShares() { + if (nfsSharesBuilder_ == null) { + nfsShares_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nfsSharesBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public Builder removeNfsShares(int index) { + if (nfsSharesBuilder_ == null) { + ensureNfsSharesIsMutable(); + nfsShares_.remove(index); + onChanged(); + } else { + nfsSharesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder( + int index) { + return getNfsSharesFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( + int index) { + if (nfsSharesBuilder_ == null) { + return nfsShares_.get(index); } else { + return nfsSharesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public java.util.List + getNfsSharesOrBuilderList() { + if (nfsSharesBuilder_ != null) { + return nfsSharesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nfsShares_); + } + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder() { + return getNfsSharesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder( + int index) { + return getNfsSharesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + } + /** + *
+     * The list of NFS shares.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + public java.util.List + getNfsSharesBuilderList() { + return getNfsSharesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + getNfsSharesFieldBuilder() { + if (nfsSharesBuilder_ == null) { + nfsSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + nfsShares_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nfsShares_ = null; + } + return nfsSharesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token identifying a page of results from the server.
+     * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token identifying a page of results from the server.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token identifying a page of results from the server.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results from the server.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * A token identifying a page of results from the server.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable( + java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) + private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(); + } + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java new file mode 100644 index 0000000..4e3cedd --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java @@ -0,0 +1,114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ListNfsSharesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of NFS shares.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + java.util.List + getNfsSharesList(); + /** + *
+   * The list of NFS shares.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index); + /** + *
+   * The list of NFS shares.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + int getNfsSharesCount(); + /** + *
+   * The list of NFS shares.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + java.util.List + getNfsSharesOrBuilderList(); + /** + *
+   * The list of NFS shares.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; + */ + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( + int index); + + /** + *
+   * A token identifying a page of results from the server.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token identifying a page of results from the server.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + java.util.List + getUnreachableList(); + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString + getUnreachableBytes(int index); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java similarity index 60% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java index 886ac9c..3fb2e23 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java @@ -1,58 +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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ -public final class ListVolumesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVolumesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) ListVolumesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVolumesRequest.newBuilder() to construct. private ListVolumesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVolumesRequest() { parent_ = ""; pageToken_ = ""; + filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVolumesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVolumesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +55,36 @@ private ListVolumesRequest( 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; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,41 +92,34 @@ private ListVolumesRequest( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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 @@ -147,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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 { @@ -182,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -201,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -217,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -247,8 +220,53 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +278,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,6 +289,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } unknownFields.writeTo(output); } @@ -283,11 +305,15 @@ 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_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -296,17 +322,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.baremetalsolution.v2.ListVolumesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = - (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) 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 (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,133 +354,125 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.cloud.baremetalsolution.v2.ListVolumesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesRequest.newBuilder() @@ -458,15 +480,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(); @@ -476,13 +499,15 @@ public Builder clear() { pageToken_ = ""; + filter_ = ""; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override @@ -501,11 +526,11 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = - new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; + result.filter_ = filter_; onBuilt(); return result; } @@ -514,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest)other); } else { super.mergeFrom(other); return this; @@ -554,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -567,6 +590,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesReques pageToken_ = other.pageToken_; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -586,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * - * string parent = 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; @@ -623,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * - * string parent = 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 { @@ -647,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * - * 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. Parent value for ListVolumesRequest.
      * 
* - * - * string 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. Parent value for ListVolumesRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -731,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -770,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -792,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -814,68 +808,157 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; } + private java.lang.Object filter_ = ""; + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
+     * List filter.
+     * 
+ * + * string filter = 4; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -885,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) private static final com.google.cloud.baremetalsolution.v2.ListVolumesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(); } @@ -899,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java index 10a64db..4b30dd3 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java @@ -1,93 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesRequestOrBuilder - extends +public interface ListVolumesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * List filter.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java index 0180abc..0af4bba 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ -public final class ListVolumesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVolumesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) ListVolumesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVolumesResponse.newBuilder() to construct. private ListVolumesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVolumesResponse() { volumes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListVolumesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVolumesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVolumesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListVolumesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - volumes_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + volumes_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListVolumesResponse( } 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)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); @@ -127,27 +107,22 @@ private ListVolumesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } public static final int VOLUMES_FIELD_NUMBER = 1; private java.util.List volumes_; /** - * - * *
    * The list of storage volumes.
    * 
@@ -159,8 +134,6 @@ public java.util.List getVolumesLi return volumes_; } /** - * - * *
    * The list of storage volumes.
    * 
@@ -168,13 +141,11 @@ public java.util.List getVolumesLi * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** - * - * *
    * The list of storage volumes.
    * 
@@ -186,8 +157,6 @@ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
    * The list of storage volumes.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** - * - * *
    * The list of storage volumes.
    * 
@@ -208,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { return volumes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -264,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -307,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(1, volumes_.get(i)); } @@ -355,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, volumes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -376,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = - (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; - if (!getVolumesList().equals(other.getVolumesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.cloud.baremetalsolution.v2.ListVolumesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesResponse.newBuilder() @@ -542,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getVolumesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override @@ -591,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = - new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); int from_bitField0_ = bitField0_; if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -617,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse)other); } else { super.mergeFrom(other); return this; @@ -657,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) return this; if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { @@ -677,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRespon volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); - volumesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVolumesFieldBuilder() - : null; + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVolumesFieldBuilder() : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } @@ -719,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -729,28 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List volumes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> - volumesBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumesBuilder_; /** - * - * *
      * The list of storage volumes.
      * 
@@ -765,8 +701,6 @@ public java.util.List getVolumesLi } } /** - * - * *
      * The list of storage volumes.
      * 
@@ -781,8 +715,6 @@ public int getVolumesCount() { } } /** - * - * *
      * The list of storage volumes.
      * 
@@ -797,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { } } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder setVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder setVolumes( + int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,8 +750,6 @@ public Builder setVolumes(int index, com.google.cloud.baremetalsolution.v2.Volum return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -839,8 +768,6 @@ public Builder setVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -861,15 +788,14 @@ public Builder addVolumes(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder addVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder addVolumes( + int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -883,8 +809,6 @@ public Builder addVolumes(int index, com.google.cloud.baremetalsolution.v2.Volum return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -903,8 +827,6 @@ public Builder addVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -923,8 +845,6 @@ public Builder addVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -935,7 +855,8 @@ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); @@ -943,8 +864,6 @@ public Builder addAllVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -962,8 +881,6 @@ public Builder clearVolumes() { return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -981,44 +898,39 @@ public Builder removeVolumes(int index) { return this; } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder( + int index) { return getVolumesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { if (volumesBuilder_ == null) { - return volumes_.get(index); - } else { + return volumes_.get(index); } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -1026,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder } } /** - * - * *
      * The list of storage volumes.
      * 
@@ -1035,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder(int index) { - return getVolumesFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder( + int index) { + return getVolumesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesBuilderList() { + public java.util.List + getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - volumes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + volumes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); volumes_ = null; } return volumesBuilder_; @@ -1084,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1106,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1128,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1241,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1334,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1367,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) private static final com.google.cloud.baremetalsolution.v2.ListVolumesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(); } @@ -1381,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1405,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java index 62887de..52657e8 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesResponseOrBuilder - extends +public interface ListVolumesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List getVolumesList(); + java.util.List + getVolumesList(); /** - * - * *
    * The list of storage volumes.
    * 
@@ -44,8 +25,6 @@ public interface ListVolumesResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index); /** - * - * *
    * The list of storage volumes.
    * 
@@ -54,100 +33,82 @@ public interface ListVolumesResponseOrBuilder */ int getVolumesCount(); /** - * - * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List + java.util.List getVolumesOrBuilderList(); /** - * - * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java new file mode 100644 index 0000000..e418612 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java @@ -0,0 +1,2360 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Each logical interface represents a logical abstraction of the underlying
+ * physical interface (for eg. bond, nic) of the instance. Each logical
+ * interface can effectively map to multiple network-IP pairs and still be
+ * mapped to one underlying physical interface.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface} + */ +public final class LogicalInterface extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface) + LogicalInterfaceOrBuilder { +private static final long serialVersionUID = 0L; + // Use LogicalInterface.newBuilder() to construct. + private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogicalInterface() { + logicalNetworkInterfaces_ = java.util.Collections.emptyList(); + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogicalInterface(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogicalInterface( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + logicalNetworkInterfaces_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + logicalNetworkInterfaces_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + + interfaceIndex_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class); + } + + public interface LogicalNetworkInterfaceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the network
+     * 
+ * + * string network = 1; + * @return The network. + */ + java.lang.String getNetwork(); + /** + *
+     * Name of the network
+     * 
+ * + * string network = 1; + * @return The bytes for network. + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+     * IP address in the network
+     * 
+ * + * string ip_address = 2; + * @return The ipAddress. + */ + java.lang.String getIpAddress(); + /** + *
+     * IP address in the network
+     * 
+ * + * string ip_address = 2; + * @return The bytes for ipAddress. + */ + com.google.protobuf.ByteString + getIpAddressBytes(); + + /** + *
+     * Whether this interface is the default gateway for the instance. Only
+     * one interface can be the default gateway for the instance.
+     * 
+ * + * bool default_gateway = 3; + * @return The defaultGateway. + */ + boolean getDefaultGateway(); + + /** + *
+     * Type of network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * @return The enum numeric value on the wire for networkType. + */ + int getNetworkTypeValue(); + /** + *
+     * Type of network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * @return The networkType. + */ + com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType(); + + /** + *
+     * An identifier for the `Network`, generated by the backend.
+     * 
+ * + * string id = 5; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * An identifier for the `Network`, generated by the backend.
+     * 
+ * + * string id = 5; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + } + /** + *
+   * Each logical network interface is effectively a network and IP pair.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + */ + public static final class LogicalNetworkInterface extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + LogicalNetworkInterfaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogicalNetworkInterface.newBuilder() to construct. + private LogicalNetworkInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogicalNetworkInterface() { + network_ = ""; + ipAddress_ = ""; + networkType_ = 0; + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogicalNetworkInterface(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogicalNetworkInterface( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + ipAddress_ = s; + break; + } + case 24: { + + defaultGateway_ = input.readBool(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + networkType_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object network_; + /** + *
+     * Name of the network
+     * 
+ * + * string network = 1; + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + *
+     * Name of the network
+     * 
+ * + * string network = 1; + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 2; + private volatile java.lang.Object ipAddress_; + /** + *
+     * IP address in the network
+     * 
+ * + * string ip_address = 2; + * @return The ipAddress. + */ + @java.lang.Override + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } + } + /** + *
+     * IP address in the network
+     * 
+ * + * string ip_address = 2; + * @return The bytes for ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_GATEWAY_FIELD_NUMBER = 3; + private boolean defaultGateway_; + /** + *
+     * Whether this interface is the default gateway for the instance. Only
+     * one interface can be the default gateway for the instance.
+     * 
+ * + * bool default_gateway = 3; + * @return The defaultGateway. + */ + @java.lang.Override + public boolean getDefaultGateway() { + return defaultGateway_; + } + + public static final int NETWORK_TYPE_FIELD_NUMBER = 4; + private int networkType_; + /** + *
+     * Type of network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * @return The enum numeric value on the wire for networkType. + */ + @java.lang.Override public int getNetworkTypeValue() { + return networkType_; + } + /** + *
+     * Type of network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * @return The networkType. + */ + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 5; + private volatile java.lang.Object id_; + /** + *
+     * An identifier for the `Network`, generated by the backend.
+     * 
+ * + * string id = 5; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * An identifier for the `Network`, generated by the backend.
+     * 
+ * + * string id = 5; + * @return The bytes for id. + */ + @java.lang.Override + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipAddress_); + } + if (defaultGateway_ != false) { + output.writeBool(3, defaultGateway_); + } + if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, networkType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, id_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_); + } + if (defaultGateway_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, defaultGateway_); + } + if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, networkType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, id_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; + + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (getDefaultGateway() + != other.getDefaultGateway()) return false; + if (networkType_ != other.networkType_) return false; + if (!getId() + .equals(other.getId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + DEFAULT_GATEWAY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDefaultGateway()); + hash = (37 * hash) + NETWORK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + networkType_; + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Each logical network interface is effectively a network and IP pair.
+     * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + network_ = ""; + + ipAddress_ = ""; + + defaultGateway_ = false; + + networkType_ = 0; + + id_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface build() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface buildPartial() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(this); + result.network_ = network_; + result.ipAddress_ = ipAddress_; + result.defaultGateway_ = defaultGateway_; + result.networkType_ = networkType_; + result.id_ = id_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { + if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; + onChanged(); + } + if (other.getDefaultGateway() != false) { + setDefaultGateway(other.getDefaultGateway()); + } + if (other.networkType_ != 0) { + setNetworkTypeValue(other.getNetworkTypeValue()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+       * Name of the network
+       * 
+ * + * string network = 1; + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the network
+       * 
+ * + * string network = 1; + * @return The bytes for network. + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the network
+       * 
+ * + * string network = 1; + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the network
+       * 
+ * + * string network = 1; + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + *
+       * Name of the network
+       * 
+ * + * string network = 1; + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipAddress_ = ""; + /** + *
+       * IP address in the network
+       * 
+ * + * string ip_address = 2; + * @return The ipAddress. + */ + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * IP address in the network
+       * 
+ * + * string ip_address = 2; + * @return The bytes for ipAddress. + */ + public com.google.protobuf.ByteString + getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * IP address in the network
+       * 
+ * + * string ip_address = 2; + * @param value The ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipAddress_ = value; + onChanged(); + return this; + } + /** + *
+       * IP address in the network
+       * 
+ * + * string ip_address = 2; + * @return This builder for chaining. + */ + public Builder clearIpAddress() { + + ipAddress_ = getDefaultInstance().getIpAddress(); + onChanged(); + return this; + } + /** + *
+       * IP address in the network
+       * 
+ * + * string ip_address = 2; + * @param value The bytes for ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipAddress_ = value; + onChanged(); + return this; + } + + private boolean defaultGateway_ ; + /** + *
+       * Whether this interface is the default gateway for the instance. Only
+       * one interface can be the default gateway for the instance.
+       * 
+ * + * bool default_gateway = 3; + * @return The defaultGateway. + */ + @java.lang.Override + public boolean getDefaultGateway() { + return defaultGateway_; + } + /** + *
+       * Whether this interface is the default gateway for the instance. Only
+       * one interface can be the default gateway for the instance.
+       * 
+ * + * bool default_gateway = 3; + * @param value The defaultGateway to set. + * @return This builder for chaining. + */ + public Builder setDefaultGateway(boolean value) { + + defaultGateway_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether this interface is the default gateway for the instance. Only
+       * one interface can be the default gateway for the instance.
+       * 
+ * + * bool default_gateway = 3; + * @return This builder for chaining. + */ + public Builder clearDefaultGateway() { + + defaultGateway_ = false; + onChanged(); + return this; + } + + private int networkType_ = 0; + /** + *
+       * Type of network.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * @return The enum numeric value on the wire for networkType. + */ + @java.lang.Override public int getNetworkTypeValue() { + return networkType_; + } + /** + *
+       * Type of network.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * @param value The enum numeric value on the wire for networkType to set. + * @return This builder for chaining. + */ + public Builder setNetworkTypeValue(int value) { + + networkType_ = value; + onChanged(); + return this; + } + /** + *
+       * Type of network.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * @return The networkType. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + } + /** + *
+       * Type of network.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * @param value The networkType to set. + * @return This builder for chaining. + */ + public Builder setNetworkType(com.google.cloud.baremetalsolution.v2.Network.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + networkType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Type of network.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * @return This builder for chaining. + */ + public Builder clearNetworkType() { + + networkType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + *
+       * An identifier for the `Network`, generated by the backend.
+       * 
+ * + * string id = 5; + * @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; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * An identifier for the `Network`, generated by the backend.
+       * 
+ * + * string id = 5; + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * An identifier for the `Network`, generated by the backend.
+       * 
+ * + * string id = 5; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * An identifier for the `Network`, generated by the backend.
+       * 
+ * + * string id = 5; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * An identifier for the `Network`, generated by the backend.
+       * 
+ * + * string id = 5; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + private static final com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); + } + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalNetworkInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalNetworkInterface(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int LOGICAL_NETWORK_INTERFACES_FIELD_NUMBER = 1; + private java.util.List logicalNetworkInterfaces_; + /** + *
+   * List of logical network interfaces within a logical interface.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + @java.lang.Override + public java.util.List getLogicalNetworkInterfacesList() { + return logicalNetworkInterfaces_; + } + /** + *
+   * List of logical network interfaces within a logical interface.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + @java.lang.Override + public java.util.List + getLogicalNetworkInterfacesOrBuilderList() { + return logicalNetworkInterfaces_; + } + /** + *
+   * List of logical network interfaces within a logical interface.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + @java.lang.Override + public int getLogicalNetworkInterfacesCount() { + return logicalNetworkInterfaces_.size(); + } + /** + *
+   * List of logical network interfaces within a logical interface.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { + return logicalNetworkInterfaces_.get(index); + } + /** + *
+   * List of logical network interfaces within a logical interface.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( + int index) { + return logicalNetworkInterfaces_.get(index); + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+   * Interface name. This is of syntax <bond><bond_mode> or <nic> and
+   * forms part of the network template name.
+   * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Interface name. This is of syntax <bond><bond_mode> or <nic> and
+   * forms part of the network template name.
+   * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERFACE_INDEX_FIELD_NUMBER = 3; + private int interfaceIndex_; + /** + *
+   * The index of the logical interface mapping to the index of the hardware
+   * bond or nic on the chosen network template.
+   * 
+ * + * int32 interface_index = 3; + * @return The interfaceIndex. + */ + @java.lang.Override + public int getInterfaceIndex() { + return interfaceIndex_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < logicalNetworkInterfaces_.size(); i++) { + output.writeMessage(1, logicalNetworkInterfaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (interfaceIndex_ != 0) { + output.writeInt32(3, interfaceIndex_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < logicalNetworkInterfaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, logicalNetworkInterfaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (interfaceIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, interfaceIndex_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; + + if (!getLogicalNetworkInterfacesList() + .equals(other.getLogicalNetworkInterfacesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getInterfaceIndex() + != other.getInterfaceIndex()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLogicalNetworkInterfacesCount() > 0) { + hash = (37 * hash) + LOGICAL_NETWORK_INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getLogicalNetworkInterfacesList().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + INTERFACE_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getInterfaceIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Each logical interface represents a logical abstraction of the underlying
+   * physical interface (for eg. bond, nic) of the instance. Each logical
+   * interface can effectively map to multiple network-IP pairs and still be
+   * mapped to one underlying physical interface.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface) + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogicalNetworkInterfacesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (logicalNetworkInterfacesBuilder_ == null) { + logicalNetworkInterfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + logicalNetworkInterfacesBuilder_.clear(); + } + name_ = ""; + + interfaceIndex_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface build() { + com.google.cloud.baremetalsolution.v2.LogicalInterface result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() { + com.google.cloud.baremetalsolution.v2.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface(this); + int from_bitField0_ = bitField0_; + if (logicalNetworkInterfacesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.logicalNetworkInterfaces_ = logicalNetworkInterfaces_; + } else { + result.logicalNetworkInterfaces_ = logicalNetworkInterfacesBuilder_.build(); + } + result.name_ = name_; + result.interfaceIndex_ = interfaceIndex_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface other) { + if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()) return this; + if (logicalNetworkInterfacesBuilder_ == null) { + if (!other.logicalNetworkInterfaces_.isEmpty()) { + if (logicalNetworkInterfaces_.isEmpty()) { + logicalNetworkInterfaces_ = other.logicalNetworkInterfaces_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLogicalNetworkInterfacesIsMutable(); + logicalNetworkInterfaces_.addAll(other.logicalNetworkInterfaces_); + } + onChanged(); + } + } else { + if (!other.logicalNetworkInterfaces_.isEmpty()) { + if (logicalNetworkInterfacesBuilder_.isEmpty()) { + logicalNetworkInterfacesBuilder_.dispose(); + logicalNetworkInterfacesBuilder_ = null; + logicalNetworkInterfaces_ = other.logicalNetworkInterfaces_; + bitField0_ = (bitField0_ & ~0x00000001); + logicalNetworkInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogicalNetworkInterfacesFieldBuilder() : null; + } else { + logicalNetworkInterfacesBuilder_.addAllMessages(other.logicalNetworkInterfaces_); + } + } + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getInterfaceIndex() != 0) { + setInterfaceIndex(other.getInterfaceIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.LogicalInterface parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List logicalNetworkInterfaces_ = + java.util.Collections.emptyList(); + private void ensureLogicalNetworkInterfacesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + logicalNetworkInterfaces_ = new java.util.ArrayList(logicalNetworkInterfaces_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> logicalNetworkInterfacesBuilder_; + + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public java.util.List getLogicalNetworkInterfacesList() { + if (logicalNetworkInterfacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(logicalNetworkInterfaces_); + } else { + return logicalNetworkInterfacesBuilder_.getMessageList(); + } + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public int getLogicalNetworkInterfacesCount() { + if (logicalNetworkInterfacesBuilder_ == null) { + return logicalNetworkInterfaces_.size(); + } else { + return logicalNetworkInterfacesBuilder_.getCount(); + } + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { + if (logicalNetworkInterfacesBuilder_ == null) { + return logicalNetworkInterfaces_.get(index); + } else { + return logicalNetworkInterfacesBuilder_.getMessage(index); + } + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public Builder setLogicalNetworkInterfaces( + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + if (logicalNetworkInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalNetworkInterfacesIsMutable(); + logicalNetworkInterfaces_.set(index, value); + onChanged(); + } else { + logicalNetworkInterfacesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public Builder setLogicalNetworkInterfaces( + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + if (logicalNetworkInterfacesBuilder_ == null) { + ensureLogicalNetworkInterfacesIsMutable(); + logicalNetworkInterfaces_.set(index, builderForValue.build()); + onChanged(); + } else { + logicalNetworkInterfacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public Builder addLogicalNetworkInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + if (logicalNetworkInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalNetworkInterfacesIsMutable(); + logicalNetworkInterfaces_.add(value); + onChanged(); + } else { + logicalNetworkInterfacesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public Builder addLogicalNetworkInterfaces( + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + if (logicalNetworkInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalNetworkInterfacesIsMutable(); + logicalNetworkInterfaces_.add(index, value); + onChanged(); + } else { + logicalNetworkInterfacesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public Builder addLogicalNetworkInterfaces( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + if (logicalNetworkInterfacesBuilder_ == null) { + ensureLogicalNetworkInterfacesIsMutable(); + logicalNetworkInterfaces_.add(builderForValue.build()); + onChanged(); + } else { + logicalNetworkInterfacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public Builder addLogicalNetworkInterfaces( + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + if (logicalNetworkInterfacesBuilder_ == null) { + ensureLogicalNetworkInterfacesIsMutable(); + logicalNetworkInterfaces_.add(index, builderForValue.build()); + onChanged(); + } else { + logicalNetworkInterfacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public Builder addAllLogicalNetworkInterfaces( + java.lang.Iterable values) { + if (logicalNetworkInterfacesBuilder_ == null) { + ensureLogicalNetworkInterfacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalNetworkInterfaces_); + onChanged(); + } else { + logicalNetworkInterfacesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public Builder clearLogicalNetworkInterfaces() { + if (logicalNetworkInterfacesBuilder_ == null) { + logicalNetworkInterfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + logicalNetworkInterfacesBuilder_.clear(); + } + return this; + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public Builder removeLogicalNetworkInterfaces(int index) { + if (logicalNetworkInterfacesBuilder_ == null) { + ensureLogicalNetworkInterfacesIsMutable(); + logicalNetworkInterfaces_.remove(index); + onChanged(); + } else { + logicalNetworkInterfacesBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder getLogicalNetworkInterfacesBuilder( + int index) { + return getLogicalNetworkInterfacesFieldBuilder().getBuilder(index); + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( + int index) { + if (logicalNetworkInterfacesBuilder_ == null) { + return logicalNetworkInterfaces_.get(index); } else { + return logicalNetworkInterfacesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public java.util.List + getLogicalNetworkInterfacesOrBuilderList() { + if (logicalNetworkInterfacesBuilder_ != null) { + return logicalNetworkInterfacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logicalNetworkInterfaces_); + } + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder() { + return getLogicalNetworkInterfacesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder( + int index) { + return getLogicalNetworkInterfacesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); + } + /** + *
+     * List of logical network interfaces within a logical interface.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + public java.util.List + getLogicalNetworkInterfacesBuilderList() { + return getLogicalNetworkInterfacesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> + getLogicalNetworkInterfacesFieldBuilder() { + if (logicalNetworkInterfacesBuilder_ == null) { + logicalNetworkInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>( + logicalNetworkInterfaces_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + logicalNetworkInterfaces_ = null; + } + return logicalNetworkInterfacesBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Interface name. This is of syntax <bond><bond_mode> or <nic> and
+     * forms part of the network template name.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Interface name. This is of syntax <bond><bond_mode> or <nic> and
+     * forms part of the network template name.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Interface name. This is of syntax <bond><bond_mode> or <nic> and
+     * forms part of the network template name.
+     * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Interface name. This is of syntax <bond><bond_mode> or <nic> and
+     * forms part of the network template name.
+     * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Interface name. This is of syntax <bond><bond_mode> or <nic> and
+     * forms part of the network template name.
+     * 
+ * + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int interfaceIndex_ ; + /** + *
+     * The index of the logical interface mapping to the index of the hardware
+     * bond or nic on the chosen network template.
+     * 
+ * + * int32 interface_index = 3; + * @return The interfaceIndex. + */ + @java.lang.Override + public int getInterfaceIndex() { + return interfaceIndex_; + } + /** + *
+     * The index of the logical interface mapping to the index of the hardware
+     * bond or nic on the chosen network template.
+     * 
+ * + * int32 interface_index = 3; + * @param value The interfaceIndex to set. + * @return This builder for chaining. + */ + public Builder setInterfaceIndex(int value) { + + interfaceIndex_ = value; + onChanged(); + return this; + } + /** + *
+     * The index of the logical interface mapping to the index of the hardware
+     * bond or nic on the chosen network template.
+     * 
+ * + * int32 interface_index = 3; + * @return This builder for chaining. + */ + public Builder clearInterfaceIndex() { + + interfaceIndex_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface) + private static final com.google.cloud.baremetalsolution.v2.LogicalInterface DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface(); + } + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java new file mode 100644 index 0000000..da8ff8e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface LogicalInterfaceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of logical network interfaces within a logical interface.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + java.util.List + getLogicalNetworkInterfacesList(); + /** + *
+   * List of logical network interfaces within a logical interface.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index); + /** + *
+   * List of logical network interfaces within a logical interface.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + int getLogicalNetworkInterfacesCount(); + /** + *
+   * List of logical network interfaces within a logical interface.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + java.util.List + getLogicalNetworkInterfacesOrBuilderList(); + /** + *
+   * List of logical network interfaces within a logical interface.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + */ + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( + int index); + + /** + *
+   * Interface name. This is of syntax <bond><bond_mode> or <nic> and
+   * forms part of the network template name.
+   * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Interface name. This is of syntax <bond><bond_mode> or <nic> and
+   * forms part of the network template name.
+   * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The index of the logical interface mapping to the index of the hardware
+   * bond or nic on the chosen network template.
+   * 
+ * + * int32 interface_index = 3; + * @return The interfaceIndex. + */ + int getInterfaceIndex(); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java index bdaad8b..d586da5 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java @@ -1,44 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A storage volume logical unit number (LUN).
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ -public final class Lun extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Lun extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Lun) LunOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Lun.newBuilder() to construct. private Lun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Lun() { name_ = ""; + id_ = ""; state_ = 0; multiprotocolType_ = 0; storageVolume_ = ""; @@ -48,15 +31,16 @@ private Lun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Lun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Lun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,70 +59,70 @@ private Lun( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 24: - { - sizeGb_ = input.readInt64(); - break; - } - case 32: - { - int rawValue = input.readEnum(); + state_ = rawValue; + break; + } + case 24: { - multiprotocolType_ = rawValue; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + sizeGb_ = input.readInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); - storageVolume_ = s; - break; - } - case 48: - { - shareable_ = input.readBool(); - break; - } - case 56: - { - bootLun_ = input.readBool(); - break; - } - case 64: - { - int rawValue = input.readEnum(); + multiprotocolType_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - storageType_ = rawValue; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); + storageVolume_ = s; + break; + } + case 48: { - wwid_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + shareable_ = input.readBool(); + break; + } + case 56: { + + bootLun_ = input.readBool(); + break; + } + case 64: { + int rawValue = input.readEnum(); + + storageType_ = rawValue; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + wwid_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -146,41 +130,36 @@ private Lun( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, - com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } /** - * - * *
    * The possible states for the LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The LUN is in an unknown state.
      * 
@@ -189,8 +168,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The LUN is being created.
      * 
@@ -199,8 +176,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The LUN is being updated.
      * 
@@ -209,8 +184,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(2), /** - * - * *
      * The LUN is ready for use.
      * 
@@ -219,8 +192,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * The LUN has been requested to be deleted.
      * 
@@ -232,8 +203,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The LUN is in an unknown state.
      * 
@@ -242,8 +211,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The LUN is being created.
      * 
@@ -252,8 +219,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The LUN is being updated.
      * 
@@ -262,8 +227,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 2; /** - * - * *
      * The LUN is ready for use.
      * 
@@ -272,8 +235,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * The LUN has been requested to be deleted.
      * 
@@ -282,6 +243,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -306,53 +268,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return UPDATING; - case 3: - return READY; - case 4: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return UPDATING; + case 3: return READY; + case 4: return DELETING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -370,18 +330,15 @@ private State(int value) { } /** - * - * *
    * Display the operating systems present for the LUN multiprotocol type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.MultiprotocolType} */ - public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum { + public enum MultiprotocolType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Server has no OS specified.
      * 
@@ -390,8 +347,6 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum */ MULTIPROTOCOL_TYPE_UNSPECIFIED(0), /** - * - * *
      * Server with Linux OS.
      * 
@@ -403,8 +358,6 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Server has no OS specified.
      * 
@@ -413,8 +366,6 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum */ public static final int MULTIPROTOCOL_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Server with Linux OS.
      * 
@@ -423,6 +374,7 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum */ public static final int LINUX_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -447,12 +399,9 @@ public static MultiprotocolType valueOf(int value) { */ public static MultiprotocolType forNumber(int value) { switch (value) { - case 0: - return MULTIPROTOCOL_TYPE_UNSPECIFIED; - case 1: - return LINUX; - default: - return null; + case 0: return MULTIPROTOCOL_TYPE_UNSPECIFIED; + case 1: return LINUX; + default: return null; } } @@ -460,28 +409,28 @@ public static MultiprotocolType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + MultiprotocolType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MultiprotocolType findValueByNumber(int number) { + return MultiprotocolType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MultiprotocolType findValueByNumber(int number) { - return MultiprotocolType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(1); } @@ -490,7 +439,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static MultiprotocolType 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; @@ -508,18 +458,15 @@ private MultiprotocolType(int value) { } /** - * - * *
    * The storage types for a LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.StorageType} */ - public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The storage type for this LUN is unknown.
      * 
@@ -528,8 +475,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ STORAGE_TYPE_UNSPECIFIED(0), /** - * - * *
      * This storage type for this LUN is SSD.
      * 
@@ -538,8 +483,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ SSD(1), /** - * - * *
      * This storage type for this LUN is HDD.
      * 
@@ -551,8 +494,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The storage type for this LUN is unknown.
      * 
@@ -561,8 +502,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * This storage type for this LUN is SSD.
      * 
@@ -571,8 +510,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SSD_VALUE = 1; /** - * - * *
      * This storage type for this LUN is HDD.
      * 
@@ -581,6 +518,7 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HDD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -605,49 +543,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: - return STORAGE_TYPE_UNSPECIFIED; - case 1: - return SSD; - case 2: - return HDD; - default: - return null; + case 0: return STORAGE_TYPE_UNSPECIFIED; + case 1: return SSD; + case 2: return HDD; + 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< + StorageType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageType findValueByNumber(int number) { + return StorageType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(2); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -667,14 +605,11 @@ private StorageType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -683,29 +618,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -713,53 +648,87 @@ public com.google.protobuf.ByteString getNameBytes() { } } - public static final int STATE_FIELD_NUMBER = 2; - private int state_; + public static final int ID_FIELD_NUMBER = 10; + private volatile java.lang.Object id_; /** + *
+   * An identifier for the LUN, generated by the backend.
+   * 
* + * string id = 10; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+   * An identifier for the LUN, generated by the backend.
+   * 
* + * string id = 10; + * @return The bytes for id. + */ + @java.lang.Override + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Lun.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = - com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } public static final int SIZE_GB_FIELD_NUMBER = 3; private long sizeGb_; /** - * - * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; - * * @return The sizeGb. */ @java.lang.Override @@ -770,54 +739,40 @@ public long getSizeGb() { public static final int MULTIPROTOCOL_TYPE_FIELD_NUMBER = 4; private int multiprotocolType_; /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override - public int getMultiprotocolTypeValue() { + @java.lang.Override public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The multiprotocolType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; } public static final int STORAGE_VOLUME_FIELD_NUMBER = 5; private volatile java.lang.Object storageVolume_; /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The storageVolume. */ @java.lang.Override @@ -826,29 +781,29 @@ public java.lang.String getStorageVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; } } /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for storageVolume. */ @java.lang.Override - public com.google.protobuf.ByteString getStorageVolumeBytes() { + public com.google.protobuf.ByteString + getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -859,14 +814,11 @@ public com.google.protobuf.ByteString getStorageVolumeBytes() { public static final int SHAREABLE_FIELD_NUMBER = 6; private boolean shareable_; /** - * - * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; - * * @return The shareable. */ @java.lang.Override @@ -877,14 +829,11 @@ public boolean getShareable() { public static final int BOOT_LUN_FIELD_NUMBER = 7; private boolean bootLun_; /** - * - * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; - * * @return The bootLun. */ @java.lang.Override @@ -895,52 +844,38 @@ public boolean getBootLun() { public static final int STORAGE_TYPE_FIELD_NUMBER = 8; private int storageType_; /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The storageType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = - com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; } public static final int WWID_FIELD_NUMBER = 9; private volatile java.lang.Object wwid_; /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The wwid. */ @java.lang.Override @@ -949,29 +884,29 @@ public java.lang.String getWwid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; } } /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The bytes for wwid. */ @java.lang.Override - public com.google.protobuf.ByteString getWwidBytes() { + public com.google.protobuf.ByteString + getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); wwid_ = b; return b; } else { @@ -980,7 +915,6 @@ public com.google.protobuf.ByteString getWwidBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -992,7 +926,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_); } @@ -1002,10 +937,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sizeGb_ != 0L) { output.writeInt64(3, sizeGb_); } - if (multiprotocolType_ - != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType - .MULTIPROTOCOL_TYPE_UNSPECIFIED - .getNumber()) { + if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { @@ -1017,14 +949,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (bootLun_ != false) { output.writeBool(7, bootLun_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { + if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, wwid_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, id_); + } unknownFields.writeTo(output); } @@ -1038,34 +971,38 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.Lun.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (sizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, sizeGb_); } - if (multiprotocolType_ - != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType - .MULTIPROTOCOL_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, multiprotocolType_); + if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageVolume_); } if (shareable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, shareable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, shareable_); } if (bootLun_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, bootLun_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, bootLun_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, storageType_); + if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, wwid_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, id_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1074,23 +1011,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Lun)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Lun other = - (com.google.cloud.baremetalsolution.v2.Lun) obj; + com.google.cloud.baremetalsolution.v2.Lun other = (com.google.cloud.baremetalsolution.v2.Lun) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; if (state_ != other.state_) return false; - if (getSizeGb() != other.getSizeGb()) return false; + if (getSizeGb() + != other.getSizeGb()) return false; if (multiprotocolType_ != other.multiprotocolType_) return false; - if (!getStorageVolume().equals(other.getStorageVolume())) return false; - if (getShareable() != other.getShareable()) return false; - if (getBootLun() != other.getBootLun()) return false; + if (!getStorageVolume() + .equals(other.getStorageVolume())) return false; + if (getShareable() + != other.getShareable()) return false; + if (getBootLun() + != other.getBootLun()) return false; if (storageType_ != other.storageType_) return false; - if (!getWwid().equals(other.getWwid())) return false; + if (!getWwid() + .equals(other.getWwid())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1104,18 +1048,23 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeGb()); hash = (37 * hash) + MULTIPROTOCOL_TYPE_FIELD_NUMBER; hash = (53 * hash) + multiprotocolType_; hash = (37 * hash) + STORAGE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getStorageVolume().hashCode(); hash = (37 * hash) + SHAREABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShareable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShareable()); hash = (37 * hash) + BOOT_LUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBootLun()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBootLun()); hash = (37 * hash) + STORAGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + storageType_; hash = (37 * hash) + WWID_FIELD_NUMBER; @@ -1125,127 +1074,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun 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.baremetalsolution.v2.Lun parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Lun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume logical unit number (LUN).
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Lun) com.google.cloud.baremetalsolution.v2.LunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, - com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Lun.newBuilder() @@ -1253,20 +1193,23 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; + id_ = ""; + state_ = 0; sizeGb_ = 0L; @@ -1287,9 +1230,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override @@ -1308,9 +1251,9 @@ public com.google.cloud.baremetalsolution.v2.Lun build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { - com.google.cloud.baremetalsolution.v2.Lun result = - new com.google.cloud.baremetalsolution.v2.Lun(this); + com.google.cloud.baremetalsolution.v2.Lun result = new com.google.cloud.baremetalsolution.v2.Lun(this); result.name_ = name_; + result.id_ = id_; result.state_ = state_; result.sizeGb_ = sizeGb_; result.multiprotocolType_ = multiprotocolType_; @@ -1327,39 +1270,38 @@ public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Lun) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun)other); } else { super.mergeFrom(other); return this; @@ -1372,6 +1314,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Lun other) { name_ = other.name_; onChanged(); } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1429,20 +1375,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1451,21 +1395,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1473,127 +1416,202 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int state_ = 0; + private java.lang.Object id_ = ""; /** + *
+     * An identifier for the LUN, generated by the backend.
+     * 
* + * string id = 10; + * @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; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * An identifier for the LUN, generated by the backend.
+     * 
* + * string id = 10; + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * An identifier for the LUN, generated by the backend.
+     * 
+ * + * string id = 10; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+     * An identifier for the LUN, generated by the backend.
+     * 
+ * + * string id = 10; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+     * An identifier for the LUN, generated by the backend.
+     * 
+ * + * string id = 10; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = - com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1601,39 +1619,33 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Lun.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long sizeGb_; + private long sizeGb_ ; /** - * - * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; - * * @return The sizeGb. */ @java.lang.Override @@ -1641,36 +1653,30 @@ public long getSizeGb() { return sizeGb_; } /** - * - * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; - * * @param value The sizeGb to set. * @return This builder for chaining. */ public Builder setSizeGb(long value) { - + sizeGb_ = value; onChanged(); return this; } /** - * - * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; - * * @return This builder for chaining. */ public Builder clearSizeGb() { - + sizeGb_ = 0L; onChanged(); return this; @@ -1678,98 +1684,78 @@ public Builder clearSizeGb() { private int multiprotocolType_ = 0; /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override - public int getMultiprotocolTypeValue() { + @java.lang.Override public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @param value The enum numeric value on the wire for multiprotocolType to set. * @return This builder for chaining. */ public Builder setMultiprotocolTypeValue(int value) { - + multiprotocolType_ = value; onChanged(); return this; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The multiprotocolType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @param value The multiprotocolType to set. * @return This builder for chaining. */ - public Builder setMultiprotocolType( - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { + public Builder setMultiprotocolType(com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { if (value == null) { throw new NullPointerException(); } - + multiprotocolType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return This builder for chaining. */ public Builder clearMultiprotocolType() { - + multiprotocolType_ = 0; onChanged(); return this; @@ -1777,20 +1763,18 @@ public Builder clearMultiprotocolType() { private java.lang.Object storageVolume_ = ""; /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The storageVolume. */ public java.lang.String getStorageVolume() { java.lang.Object ref = storageVolume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; @@ -1799,21 +1783,20 @@ public java.lang.String getStorageVolume() { } } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for storageVolume. */ - public com.google.protobuf.ByteString getStorageVolumeBytes() { + public com.google.protobuf.ByteString + getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -1821,76 +1804,66 @@ public com.google.protobuf.ByteString getStorageVolumeBytes() { } } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @param value The storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolume(java.lang.String value) { + public Builder setStorageVolume( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + storageVolume_ = value; onChanged(); return this; } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearStorageVolume() { - + storageVolume_ = getDefaultInstance().getStorageVolume(); onChanged(); return this; } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolumeBytes(com.google.protobuf.ByteString value) { + public Builder setStorageVolumeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageVolume_ = value; onChanged(); return this; } - private boolean shareable_; + private boolean shareable_ ; /** - * - * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; - * * @return The shareable. */ @java.lang.Override @@ -1898,51 +1871,42 @@ public boolean getShareable() { return shareable_; } /** - * - * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; - * * @param value The shareable to set. * @return This builder for chaining. */ public Builder setShareable(boolean value) { - + shareable_ = value; onChanged(); return this; } /** - * - * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; - * * @return This builder for chaining. */ public Builder clearShareable() { - + shareable_ = false; onChanged(); return this; } - private boolean bootLun_; + private boolean bootLun_ ; /** - * - * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; - * * @return The bootLun. */ @java.lang.Override @@ -1950,36 +1914,30 @@ public boolean getBootLun() { return bootLun_; } /** - * - * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; - * * @param value The bootLun to set. * @return This builder for chaining. */ public Builder setBootLun(boolean value) { - + bootLun_ = value; onChanged(); return this; } /** - * - * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; - * * @return This builder for chaining. */ public Builder clearBootLun() { - + bootLun_ = false; onChanged(); return this; @@ -1987,67 +1945,51 @@ public Builder clearBootLun() { private int storageType_ = 0; /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = - com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @param value The storageType to set. * @return This builder for chaining. */ @@ -2055,24 +1997,21 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Lun.StorageT if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -2080,20 +2019,18 @@ public Builder clearStorageType() { private java.lang.Object wwid_ = ""; /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @return The wwid. */ public java.lang.String getWwid() { java.lang.Object ref = wwid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; @@ -2102,21 +2039,20 @@ public java.lang.String getWwid() { } } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @return The bytes for wwid. */ - public com.google.protobuf.ByteString getWwidBytes() { + public com.google.protobuf.ByteString + getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); wwid_ = b; return b; } else { @@ -2124,68 +2060,61 @@ public com.google.protobuf.ByteString getWwidBytes() { } } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @param value The wwid to set. * @return This builder for chaining. */ - public Builder setWwid(java.lang.String value) { + public Builder setWwid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + wwid_ = value; onChanged(); return this; } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @return This builder for chaining. */ public Builder clearWwid() { - + wwid_ = getDefaultInstance().getWwid(); onChanged(); return this; } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @param value The bytes for wwid to set. * @return This builder for chaining. */ - public Builder setWwidBytes(com.google.protobuf.ByteString value) { + public Builder setWwidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + wwid_ = 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); } @@ -2195,12 +2124,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Lun) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Lun) private static final com.google.cloud.baremetalsolution.v2.Lun DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Lun(); } @@ -2209,16 +2138,16 @@ public static com.google.cloud.baremetalsolution.v2.Lun getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Lun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Lun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Lun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Lun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2233,4 +2162,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Lun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java similarity index 77% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java index e4d596c..eae3681 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java @@ -1,216 +1,178 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface LunOrBuilder - extends +public interface LunOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Lun) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** + *
+   * An identifier for the LUN, generated by the backend.
+   * 
* + * string id = 10; + * @return The id. + */ + java.lang.String getId(); + /** + *
+   * An identifier for the LUN, generated by the backend.
+   * 
* + * string id = 10; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Lun.State getState(); /** - * - * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; - * * @return The sizeGb. */ long getSizeGb(); /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The enum numeric value on the wire for multiprotocolType. */ int getMultiprotocolTypeValue(); /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The multiprotocolType. */ com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType(); /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The storageVolume. */ java.lang.String getStorageVolume(); /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for storageVolume. */ - com.google.protobuf.ByteString getStorageVolumeBytes(); + com.google.protobuf.ByteString + getStorageVolumeBytes(); /** - * - * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; - * * @return The shareable. */ boolean getShareable(); /** - * - * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; - * * @return The bootLun. */ boolean getBootLun(); /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType(); /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The wwid. */ java.lang.String getWwid(); /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The bytes for wwid. */ - com.google.protobuf.ByteString getWwidBytes(); + com.google.protobuf.ByteString + getWwidBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java new file mode 100644 index 0000000..88b187e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class LunProto { + private LunProto() {} + 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_baremetalsolution_v2_Lun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." + + "proto\022!google.cloud.baremetalsolution.v2" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" + + "gle.cloud.baremetalsolution.v2.Lun.State" + + "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" + + "\004 \001(\01628.google.cloud.baremetalsolution.v" + + "2.Lun.MultiprotocolType\022D\n\016storage_volum" + + "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" + + "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" + + "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" + + "e.cloud.baremetalsolution.v2.Lun.Storage" + + "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" + + "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" + + "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" + + "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" + + "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" + + "$baremetalsolution.googleapis.com/Lun\022Cp" + + "rojects/{project}/locations/{location}/v" + + "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" + + "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" + + "tion.googleapis.com/Lun\"y\n\017ListLunsReque" + + "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" + + "ution.googleapis.com/Volume\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" + + "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" + + "metalsolution.v2.Lun\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" + + "e.cloud.baremetalsolution.v2B\010LunProtoP\001" + + "ZRgoogle.golang.org/genproto/googleapis/" + + "cloud/baremetalsolution/v2;baremetalsolu" + + "tion\252\002!Google.Cloud.BareMetalSolution.V2" + + "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" + + "oogle::Cloud::BareMetalSolution::V2b\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, + new java.lang.String[] { "Name", "Id", "State", "SizeGb", "MultiprotocolType", "StorageVolume", "Shareable", "BootLun", "StorageType", "Wwid", }); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, + new java.lang.String[] { "Luns", "NextPageToken", "Unreachable", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicyName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java similarity index 56% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicyName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java index a55cbe2..fc54dd8 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicyName.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java @@ -28,26 +28,26 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. @Generated("by gapic-generator-java") -public class SnapshotSchedulePolicyName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_SNAPSHOT_SCHEDULE_POLICY = +public class NFSShareName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_NFS_SHARE = PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/snapshotSchedulePolicies/{snapshot_schedule_policy}"); + "projects/{project}/locations/{location}/nfsShares/{nfs_share}"); private volatile Map fieldValuesMap; private final String project; private final String location; - private final String snapshotSchedulePolicy; + private final String nfsShare; @Deprecated - protected SnapshotSchedulePolicyName() { + protected NFSShareName() { project = null; location = null; - snapshotSchedulePolicy = null; + nfsShare = null; } - private SnapshotSchedulePolicyName(Builder builder) { + private NFSShareName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); location = Preconditions.checkNotNull(builder.getLocation()); - snapshotSchedulePolicy = Preconditions.checkNotNull(builder.getSnapshotSchedulePolicy()); + nfsShare = Preconditions.checkNotNull(builder.getNfsShare()); } public String getProject() { @@ -58,8 +58,8 @@ public String getLocation() { return location; } - public String getSnapshotSchedulePolicy() { - return snapshotSchedulePolicy; + public String getNfsShare() { + return nfsShare; } public static Builder newBuilder() { @@ -70,49 +70,40 @@ public Builder toBuilder() { return new Builder(this); } - public static SnapshotSchedulePolicyName of( - String project, String location, String snapshotSchedulePolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setSnapshotSchedulePolicy(snapshotSchedulePolicy) - .build(); + public static NFSShareName of(String project, String location, String nfsShare) { + return newBuilder().setProject(project).setLocation(location).setNfsShare(nfsShare).build(); } - public static String format(String project, String location, String snapshotSchedulePolicy) { + public static String format(String project, String location, String nfsShare) { return newBuilder() .setProject(project) .setLocation(location) - .setSnapshotSchedulePolicy(snapshotSchedulePolicy) + .setNfsShare(nfsShare) .build() .toString(); } - public static SnapshotSchedulePolicyName parse(String formattedString) { + public static NFSShareName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } Map matchMap = - PROJECT_LOCATION_SNAPSHOT_SCHEDULE_POLICY.validatedMatch( - formattedString, - "SnapshotSchedulePolicyName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("snapshot_schedule_policy")); + PROJECT_LOCATION_NFS_SHARE.validatedMatch( + formattedString, "NFSShareName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("nfs_share")); } - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); for (String formattedString : formattedStrings) { list.add(parse(formattedString)); } return list; } - public static List toStringList(List values) { + public static List toStringList(List values) { List list = new ArrayList<>(values.size()); - for (SnapshotSchedulePolicyName value : values) { + for (NFSShareName value : values) { if (value == null) { list.add(""); } else { @@ -123,7 +114,7 @@ public static List toStringList(List values) } public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_SNAPSHOT_SCHEDULE_POLICY.matches(formattedString); + return PROJECT_LOCATION_NFS_SHARE.matches(formattedString); } @Override @@ -138,8 +129,8 @@ public Map getFieldValuesMap() { if (location != null) { fieldMapBuilder.put("location", location); } - if (snapshotSchedulePolicy != null) { - fieldMapBuilder.put("snapshot_schedule_policy", snapshotSchedulePolicy); + if (nfsShare != null) { + fieldMapBuilder.put("nfs_share", nfsShare); } fieldValuesMap = fieldMapBuilder.build(); } @@ -154,13 +145,8 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROJECT_LOCATION_SNAPSHOT_SCHEDULE_POLICY.instantiate( - "project", - project, - "location", - location, - "snapshot_schedule_policy", - snapshotSchedulePolicy); + return PROJECT_LOCATION_NFS_SHARE.instantiate( + "project", project, "location", location, "nfs_share", nfsShare); } @Override @@ -169,10 +155,10 @@ public boolean equals(Object o) { return true; } if (o != null || getClass() == o.getClass()) { - SnapshotSchedulePolicyName that = ((SnapshotSchedulePolicyName) o); + NFSShareName that = ((NFSShareName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.location, that.location) - && Objects.equals(this.snapshotSchedulePolicy, that.snapshotSchedulePolicy); + && Objects.equals(this.nfsShare, that.nfsShare); } return false; } @@ -185,18 +171,15 @@ public int hashCode() { h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; - h ^= Objects.hashCode(snapshotSchedulePolicy); + h ^= Objects.hashCode(nfsShare); return h; } - /** - * Builder for - * projects/{project}/locations/{location}/snapshotSchedulePolicies/{snapshot_schedule_policy}. - */ + /** Builder for projects/{project}/locations/{location}/nfsShares/{nfs_share}. */ public static class Builder { private String project; private String location; - private String snapshotSchedulePolicy; + private String nfsShare; protected Builder() {} @@ -208,8 +191,8 @@ public String getLocation() { return location; } - public String getSnapshotSchedulePolicy() { - return snapshotSchedulePolicy; + public String getNfsShare() { + return nfsShare; } public Builder setProject(String project) { @@ -222,19 +205,19 @@ public Builder setLocation(String location) { return this; } - public Builder setSnapshotSchedulePolicy(String snapshotSchedulePolicy) { - this.snapshotSchedulePolicy = snapshotSchedulePolicy; + public Builder setNfsShare(String nfsShare) { + this.nfsShare = nfsShare; return this; } - private Builder(SnapshotSchedulePolicyName snapshotSchedulePolicyName) { - this.project = snapshotSchedulePolicyName.project; - this.location = snapshotSchedulePolicyName.location; - this.snapshotSchedulePolicy = snapshotSchedulePolicyName.snapshotSchedulePolicy; + private Builder(NFSShareName nFSShareName) { + this.project = nFSShareName.project; + this.location = nFSShareName.location; + this.nfsShare = nFSShareName.nfsShare; } - public SnapshotSchedulePolicyName build() { - return new SnapshotSchedulePolicyName(this); + public NFSShareName build() { + return new NFSShareName(this); } } } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java new file mode 100644 index 0000000..26b360f --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java @@ -0,0 +1,3290 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * A Network.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} + */ +public final class Network extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Network) + NetworkOrBuilder { +private static final long serialVersionUID = 0L; + // Use Network.newBuilder() to construct. + private Network(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Network() { + name_ = ""; + id_ = ""; + type_ = 0; + ipAddress_ = ""; + macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + state_ = 0; + vlanId_ = ""; + cidr_ = ""; + servicesCidr_ = ""; + reservations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Network(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Network( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + ipAddress_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + macAddress_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + macAddress_.add(s); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + vlanId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + cidr_ = s; + break; + } + case 74: { + com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; + if (vrf_ != null) { + subBuilder = vrf_.toBuilder(); + } + vrf_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(vrf_); + vrf_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesCidr_ = s; + break; + } + case 106: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + reservations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + reservations_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + macAddress_ = macAddress_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + reservations_ = java.util.Collections.unmodifiableList(reservations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 11: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); + } + + /** + *
+   * Network type.
+   * 
+ * + * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Unspecified value.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + *
+     * Client network, a network peered to a Google Cloud VPC.
+     * 
+ * + * CLIENT = 1; + */ + CLIENT(1), + /** + *
+     * Private network, a network local to the Bare Metal Solution environment.
+     * 
+ * + * PRIVATE = 2; + */ + PRIVATE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unspecified value.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Client network, a network peered to a Google Cloud VPC.
+     * 
+ * + * CLIENT = 1; + */ + public static final int CLIENT_VALUE = 1; + /** + *
+     * Private network, a network local to the Bare Metal Solution environment.
+     * 
+ * + * PRIVATE = 2; + */ + public static final int PRIVATE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: return TYPE_UNSPECIFIED; + case 1: return CLIENT; + case 2: return PRIVATE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Network.Type) + } + + /** + *
+   * The possible states for this Network.
+   * 
+ * + * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * The Network is in an unknown state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * The Network is provisioning.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + *
+     * The Network has been provisioned.
+     * 
+ * + * PROVISIONED = 2; + */ + PROVISIONED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * The Network is in an unknown state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * The Network is provisioning.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + *
+     * The Network has been provisioned.
+     * 
+ * + * PROVISIONED = 2; + */ + public static final int PROVISIONED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return PROVISIONED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(1); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Network.State) + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + *
+   * Output only. The resource name of this `Network`.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * Format:
+   * `projects/{project}/locations/{location}/networks/{network}`
+   * 
+ * + * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Output only. The resource name of this `Network`.
+   * Resource names are schemeless URIs that follow the conventions in
+   * https://cloud.google.com/apis/design/resource_names.
+   * Format:
+   * `projects/{project}/locations/{location}/networks/{network}`
+   * 
+ * + * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 10; + private volatile java.lang.Object id_; + /** + *
+   * An identifier for the `Network`, generated by the backend.
+   * 
+ * + * string id = 10; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+   * An identifier for the `Network`, generated by the backend.
+   * 
+ * + * string id = 10; + * @return The bytes for id. + */ + @java.lang.Override + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + *
+   * The type of this network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+   * The type of this network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * @return The type. + */ + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 3; + private volatile java.lang.Object ipAddress_; + /** + *
+   * IP address configured.
+   * 
+ * + * string ip_address = 3; + * @return The ipAddress. + */ + @java.lang.Override + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } + } + /** + *
+   * IP address configured.
+   * 
+ * + * string ip_address = 3; + * @return The bytes for ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAC_ADDRESS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList macAddress_; + /** + *
+   * List of physical interfaces.
+   * 
+ * + * repeated string mac_address = 4; + * @return A list containing the macAddress. + */ + public com.google.protobuf.ProtocolStringList + getMacAddressList() { + return macAddress_; + } + /** + *
+   * List of physical interfaces.
+   * 
+ * + * repeated string mac_address = 4; + * @return The count of macAddress. + */ + public int getMacAddressCount() { + return macAddress_.size(); + } + /** + *
+   * List of physical interfaces.
+   * 
+ * + * repeated string mac_address = 4; + * @param index The index of the element to return. + * @return The macAddress at the given index. + */ + public java.lang.String getMacAddress(int index) { + return macAddress_.get(index); + } + /** + *
+   * List of physical interfaces.
+   * 
+ * + * repeated string mac_address = 4; + * @param index The index of the value to return. + * @return The bytes of the macAddress at the given index. + */ + public com.google.protobuf.ByteString + getMacAddressBytes(int index) { + return macAddress_.getByteString(index); + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_; + /** + *
+   * The Network state.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+   * The Network state.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * @return The state. + */ + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; + } + + public static final int VLAN_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object vlanId_; + /** + *
+   * The vlan id of the Network.
+   * 
+ * + * string vlan_id = 7; + * @return The vlanId. + */ + @java.lang.Override + public java.lang.String getVlanId() { + java.lang.Object ref = vlanId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vlanId_ = s; + return s; + } + } + /** + *
+   * The vlan id of the Network.
+   * 
+ * + * string vlan_id = 7; + * @return The bytes for vlanId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVlanIdBytes() { + java.lang.Object ref = vlanId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vlanId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CIDR_FIELD_NUMBER = 8; + private volatile java.lang.Object cidr_; + /** + *
+   * The cidr of the Network.
+   * 
+ * + * string cidr = 8; + * @return The cidr. + */ + @java.lang.Override + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidr_ = s; + return s; + } + } + /** + *
+   * The cidr of the Network.
+   * 
+ * + * string cidr = 8; + * @return The bytes for cidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VRF_FIELD_NUMBER = 9; + private com.google.cloud.baremetalsolution.v2.VRF vrf_; + /** + *
+   * The vrf for the Network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * @return Whether the vrf field is set. + */ + @java.lang.Override + public boolean hasVrf() { + return vrf_ != null; + } + /** + *
+   * The vrf for the Network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * @return The vrf. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.VRF getVrf() { + return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; + } + /** + *
+   * The vrf for the Network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { + return getVrf(); + } + + public static final int LABELS_FIELD_NUMBER = 11; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 11; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SERVICES_CIDR_FIELD_NUMBER = 12; + private volatile java.lang.Object servicesCidr_; + /** + *
+   * IP range for reserved for services (e.g. NFS).
+   * 
+ * + * string services_cidr = 12; + * @return The servicesCidr. + */ + @java.lang.Override + public java.lang.String getServicesCidr() { + java.lang.Object ref = servicesCidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesCidr_ = s; + return s; + } + } + /** + *
+   * IP range for reserved for services (e.g. NFS).
+   * 
+ * + * string services_cidr = 12; + * @return The bytes for servicesCidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServicesCidrBytes() { + java.lang.Object ref = servicesCidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESERVATIONS_FIELD_NUMBER = 13; + private java.util.List reservations_; + /** + *
+   * List of IP address reservations in this network.
+   * When updating this field, an error will be generated if a reservation
+   * conflicts with an IP address already allocated to a physical server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + @java.lang.Override + public java.util.List getReservationsList() { + return reservations_; + } + /** + *
+   * List of IP address reservations in this network.
+   * When updating this field, an error will be generated if a reservation
+   * conflicts with an IP address already allocated to a physical server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + @java.lang.Override + public java.util.List + getReservationsOrBuilderList() { + return reservations_; + } + /** + *
+   * List of IP address reservations in this network.
+   * When updating this field, an error will be generated if a reservation
+   * conflicts with an IP address already allocated to a physical server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + @java.lang.Override + public int getReservationsCount() { + return reservations_.size(); + } + /** + *
+   * List of IP address reservations in this network.
+   * When updating this field, an error will be generated if a reservation
+   * conflicts with an IP address already allocated to a physical server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { + return reservations_.get(index); + } + /** + *
+   * List of IP address reservations in this network.
+   * When updating this field, an error will be generated if a reservation
+   * conflicts with an IP address already allocated to a physical server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( + int index) { + return reservations_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipAddress_); + } + for (int i = 0; i < macAddress_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, macAddress_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, vlanId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cidr_); + } + if (vrf_ != null) { + output.writeMessage(9, getVrf()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, id_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 11); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, servicesCidr_); + } + for (int i = 0; i < reservations_.size(); i++) { + output.writeMessage(13, reservations_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); + } + { + int dataSize = 0; + for (int i = 0; i < macAddress_.size(); i++) { + dataSize += computeStringSizeNoTag(macAddress_.getRaw(i)); + } + size += dataSize; + size += 1 * getMacAddressList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vlanId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cidr_); + } + if (vrf_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getVrf()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, id_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, servicesCidr_); + } + for (int i = 0; i < reservations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, reservations_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Network)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.Network other = (com.google.cloud.baremetalsolution.v2.Network) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; + if (type_ != other.type_) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (!getMacAddressList() + .equals(other.getMacAddressList())) return false; + if (state_ != other.state_) return false; + if (!getVlanId() + .equals(other.getVlanId())) return false; + if (!getCidr() + .equals(other.getCidr())) return false; + if (hasVrf() != other.hasVrf()) return false; + if (hasVrf()) { + if (!getVrf() + .equals(other.getVrf())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getServicesCidr() + .equals(other.getServicesCidr())) return false; + if (!getReservationsList() + .equals(other.getReservationsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + if (getMacAddressCount() > 0) { + hash = (37 * hash) + MAC_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMacAddressList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + VLAN_ID_FIELD_NUMBER; + hash = (53 * hash) + getVlanId().hashCode(); + hash = (37 * hash) + CIDR_FIELD_NUMBER; + hash = (53 * hash) + getCidr().hashCode(); + if (hasVrf()) { + hash = (37 * hash) + VRF_FIELD_NUMBER; + hash = (53 * hash) + getVrf().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + SERVICES_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getServicesCidr().hashCode(); + if (getReservationsCount() > 0) { + hash = (37 * hash) + RESERVATIONS_FIELD_NUMBER; + hash = (53 * hash) + getReservationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Network prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A Network.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Network) + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 11: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 11: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.Network.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getReservationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + id_ = ""; + + type_ = 0; + + ipAddress_ = ""; + + macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + + vlanId_ = ""; + + cidr_ = ""; + + if (vrfBuilder_ == null) { + vrf_ = null; + } else { + vrf_ = null; + vrfBuilder_ = null; + } + internalGetMutableLabels().clear(); + servicesCidr_ = ""; + + if (reservationsBuilder_ == null) { + reservations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + reservationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network build() { + com.google.cloud.baremetalsolution.v2.Network result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network buildPartial() { + com.google.cloud.baremetalsolution.v2.Network result = new com.google.cloud.baremetalsolution.v2.Network(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.id_ = id_; + result.type_ = type_; + result.ipAddress_ = ipAddress_; + if (((bitField0_ & 0x00000001) != 0)) { + macAddress_ = macAddress_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.macAddress_ = macAddress_; + result.state_ = state_; + result.vlanId_ = vlanId_; + result.cidr_ = cidr_; + if (vrfBuilder_ == null) { + result.vrf_ = vrf_; + } else { + result.vrf_ = vrfBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.servicesCidr_ = servicesCidr_; + if (reservationsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + reservations_ = java.util.Collections.unmodifiableList(reservations_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.reservations_ = reservations_; + } else { + result.reservations_ = reservationsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.Network) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.Network)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { + if (other == com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; + onChanged(); + } + if (!other.macAddress_.isEmpty()) { + if (macAddress_.isEmpty()) { + macAddress_ = other.macAddress_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMacAddressIsMutable(); + macAddress_.addAll(other.macAddress_); + } + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getVlanId().isEmpty()) { + vlanId_ = other.vlanId_; + onChanged(); + } + if (!other.getCidr().isEmpty()) { + cidr_ = other.cidr_; + onChanged(); + } + if (other.hasVrf()) { + mergeVrf(other.getVrf()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (!other.getServicesCidr().isEmpty()) { + servicesCidr_ = other.servicesCidr_; + onChanged(); + } + if (reservationsBuilder_ == null) { + if (!other.reservations_.isEmpty()) { + if (reservations_.isEmpty()) { + reservations_ = other.reservations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureReservationsIsMutable(); + reservations_.addAll(other.reservations_); + } + onChanged(); + } + } else { + if (!other.reservations_.isEmpty()) { + if (reservationsBuilder_.isEmpty()) { + reservationsBuilder_.dispose(); + reservationsBuilder_ = null; + reservations_ = other.reservations_; + bitField0_ = (bitField0_ & ~0x00000004); + reservationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReservationsFieldBuilder() : null; + } else { + reservationsBuilder_.addAllMessages(other.reservations_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.Network parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.Network) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. The resource name of this `Network`.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * Format:
+     * `projects/{project}/locations/{location}/networks/{network}`
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The resource name of this `Network`.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * Format:
+     * `projects/{project}/locations/{location}/networks/{network}`
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The resource name of this `Network`.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * Format:
+     * `projects/{project}/locations/{location}/networks/{network}`
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name of this `Network`.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * Format:
+     * `projects/{project}/locations/{location}/networks/{network}`
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name of this `Network`.
+     * Resource names are schemeless URIs that follow the conventions in
+     * https://cloud.google.com/apis/design/resource_names.
+     * Format:
+     * `projects/{project}/locations/{location}/networks/{network}`
+     * 
+ * + * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + *
+     * An identifier for the `Network`, generated by the backend.
+     * 
+ * + * string id = 10; + * @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; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * An identifier for the `Network`, generated by the backend.
+     * 
+ * + * string id = 10; + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * An identifier for the `Network`, generated by the backend.
+     * 
+ * + * string id = 10; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+     * An identifier for the `Network`, generated by the backend.
+     * 
+ * + * string id = 10; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+     * An identifier for the `Network`, generated by the backend.
+     * 
+ * + * string id = 10; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + *
+     * The type of this network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * The type of this network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + *
+     * The type of this network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * @return The type. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.Type getType() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + } + /** + *
+     * The type of this network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.baremetalsolution.v2.Network.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The type of this network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object ipAddress_ = ""; + /** + *
+     * IP address configured.
+     * 
+ * + * string ip_address = 3; + * @return The ipAddress. + */ + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * IP address configured.
+     * 
+ * + * string ip_address = 3; + * @return The bytes for ipAddress. + */ + public com.google.protobuf.ByteString + getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * IP address configured.
+     * 
+ * + * string ip_address = 3; + * @param value The ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipAddress_ = value; + onChanged(); + return this; + } + /** + *
+     * IP address configured.
+     * 
+ * + * string ip_address = 3; + * @return This builder for chaining. + */ + public Builder clearIpAddress() { + + ipAddress_ = getDefaultInstance().getIpAddress(); + onChanged(); + return this; + } + /** + *
+     * IP address configured.
+     * 
+ * + * string ip_address = 3; + * @param value The bytes for ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipAddress_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMacAddressIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + macAddress_ = new com.google.protobuf.LazyStringArrayList(macAddress_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * List of physical interfaces.
+     * 
+ * + * repeated string mac_address = 4; + * @return A list containing the macAddress. + */ + public com.google.protobuf.ProtocolStringList + getMacAddressList() { + return macAddress_.getUnmodifiableView(); + } + /** + *
+     * List of physical interfaces.
+     * 
+ * + * repeated string mac_address = 4; + * @return The count of macAddress. + */ + public int getMacAddressCount() { + return macAddress_.size(); + } + /** + *
+     * List of physical interfaces.
+     * 
+ * + * repeated string mac_address = 4; + * @param index The index of the element to return. + * @return The macAddress at the given index. + */ + public java.lang.String getMacAddress(int index) { + return macAddress_.get(index); + } + /** + *
+     * List of physical interfaces.
+     * 
+ * + * repeated string mac_address = 4; + * @param index The index of the value to return. + * @return The bytes of the macAddress at the given index. + */ + public com.google.protobuf.ByteString + getMacAddressBytes(int index) { + return macAddress_.getByteString(index); + } + /** + *
+     * List of physical interfaces.
+     * 
+ * + * repeated string mac_address = 4; + * @param index The index to set the value at. + * @param value The macAddress to set. + * @return This builder for chaining. + */ + public Builder setMacAddress( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); + macAddress_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of physical interfaces.
+     * 
+ * + * repeated string mac_address = 4; + * @param value The macAddress to add. + * @return This builder for chaining. + */ + public Builder addMacAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); + macAddress_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of physical interfaces.
+     * 
+ * + * repeated string mac_address = 4; + * @param values The macAddress to add. + * @return This builder for chaining. + */ + public Builder addAllMacAddress( + java.lang.Iterable values) { + ensureMacAddressIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, macAddress_); + onChanged(); + return this; + } + /** + *
+     * List of physical interfaces.
+     * 
+ * + * repeated string mac_address = 4; + * @return This builder for chaining. + */ + public Builder clearMacAddress() { + macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * List of physical interfaces.
+     * 
+ * + * repeated string mac_address = 4; + * @param value The bytes of the macAddress to add. + * @return This builder for chaining. + */ + public Builder addMacAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMacAddressIsMutable(); + macAddress_.add(value); + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+     * The Network state.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+     * The Network state.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + *
+     * The Network state.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * @return The state. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; + } + /** + *
+     * The Network state.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.baremetalsolution.v2.Network.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The Network state.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object vlanId_ = ""; + /** + *
+     * The vlan id of the Network.
+     * 
+ * + * string vlan_id = 7; + * @return The vlanId. + */ + public java.lang.String getVlanId() { + java.lang.Object ref = vlanId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vlanId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The vlan id of the Network.
+     * 
+ * + * string vlan_id = 7; + * @return The bytes for vlanId. + */ + public com.google.protobuf.ByteString + getVlanIdBytes() { + java.lang.Object ref = vlanId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vlanId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The vlan id of the Network.
+     * 
+ * + * string vlan_id = 7; + * @param value The vlanId to set. + * @return This builder for chaining. + */ + public Builder setVlanId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vlanId_ = value; + onChanged(); + return this; + } + /** + *
+     * The vlan id of the Network.
+     * 
+ * + * string vlan_id = 7; + * @return This builder for chaining. + */ + public Builder clearVlanId() { + + vlanId_ = getDefaultInstance().getVlanId(); + onChanged(); + return this; + } + /** + *
+     * The vlan id of the Network.
+     * 
+ * + * string vlan_id = 7; + * @param value The bytes for vlanId to set. + * @return This builder for chaining. + */ + public Builder setVlanIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vlanId_ = value; + onChanged(); + return this; + } + + private java.lang.Object cidr_ = ""; + /** + *
+     * The cidr of the Network.
+     * 
+ * + * string cidr = 8; + * @return The cidr. + */ + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The cidr of the Network.
+     * 
+ * + * string cidr = 8; + * @return The bytes for cidr. + */ + public com.google.protobuf.ByteString + getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The cidr of the Network.
+     * 
+ * + * string cidr = 8; + * @param value The cidr to set. + * @return This builder for chaining. + */ + public Builder setCidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cidr_ = value; + onChanged(); + return this; + } + /** + *
+     * The cidr of the Network.
+     * 
+ * + * string cidr = 8; + * @return This builder for chaining. + */ + public Builder clearCidr() { + + cidr_ = getDefaultInstance().getCidr(); + onChanged(); + return this; + } + /** + *
+     * The cidr of the Network.
+     * 
+ * + * string cidr = 8; + * @param value The bytes for cidr to set. + * @return This builder for chaining. + */ + public Builder setCidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cidr_ = value; + onChanged(); + return this; + } + + private com.google.cloud.baremetalsolution.v2.VRF vrf_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> vrfBuilder_; + /** + *
+     * The vrf for the Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * @return Whether the vrf field is set. + */ + public boolean hasVrf() { + return vrfBuilder_ != null || vrf_ != null; + } + /** + *
+     * The vrf for the Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * @return The vrf. + */ + public com.google.cloud.baremetalsolution.v2.VRF getVrf() { + if (vrfBuilder_ == null) { + return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; + } else { + return vrfBuilder_.getMessage(); + } + } + /** + *
+     * The vrf for the Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + */ + public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF value) { + if (vrfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vrf_ = value; + onChanged(); + } else { + vrfBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The vrf for the Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + */ + public Builder setVrf( + com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { + if (vrfBuilder_ == null) { + vrf_ = builderForValue.build(); + onChanged(); + } else { + vrfBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The vrf for the Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + */ + public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { + if (vrfBuilder_ == null) { + if (vrf_ != null) { + vrf_ = + com.google.cloud.baremetalsolution.v2.VRF.newBuilder(vrf_).mergeFrom(value).buildPartial(); + } else { + vrf_ = value; + } + onChanged(); + } else { + vrfBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The vrf for the Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + */ + public Builder clearVrf() { + if (vrfBuilder_ == null) { + vrf_ = null; + onChanged(); + } else { + vrf_ = null; + vrfBuilder_ = null; + } + + return this; + } + /** + *
+     * The vrf for the Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + */ + public com.google.cloud.baremetalsolution.v2.VRF.Builder getVrfBuilder() { + + onChanged(); + return getVrfFieldBuilder().getBuilder(); + } + /** + *
+     * The vrf for the Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + */ + public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { + if (vrfBuilder_ != null) { + return vrfBuilder_.getMessageOrBuilder(); + } else { + return vrf_ == null ? + com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; + } + } + /** + *
+     * The vrf for the Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> + getVrfFieldBuilder() { + if (vrfBuilder_ == null) { + vrfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( + getVrf(), + getParentForChildren(), + isClean()); + vrf_ = null; + } + return vrfBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 11; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 11; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 11; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 11; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object servicesCidr_ = ""; + /** + *
+     * IP range for reserved for services (e.g. NFS).
+     * 
+ * + * string services_cidr = 12; + * @return The servicesCidr. + */ + public java.lang.String getServicesCidr() { + java.lang.Object ref = servicesCidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesCidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * IP range for reserved for services (e.g. NFS).
+     * 
+ * + * string services_cidr = 12; + * @return The bytes for servicesCidr. + */ + public com.google.protobuf.ByteString + getServicesCidrBytes() { + java.lang.Object ref = servicesCidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * IP range for reserved for services (e.g. NFS).
+     * 
+ * + * string services_cidr = 12; + * @param value The servicesCidr to set. + * @return This builder for chaining. + */ + public Builder setServicesCidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesCidr_ = value; + onChanged(); + return this; + } + /** + *
+     * IP range for reserved for services (e.g. NFS).
+     * 
+ * + * string services_cidr = 12; + * @return This builder for chaining. + */ + public Builder clearServicesCidr() { + + servicesCidr_ = getDefaultInstance().getServicesCidr(); + onChanged(); + return this; + } + /** + *
+     * IP range for reserved for services (e.g. NFS).
+     * 
+ * + * string services_cidr = 12; + * @param value The bytes for servicesCidr to set. + * @return This builder for chaining. + */ + public Builder setServicesCidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesCidr_ = value; + onChanged(); + return this; + } + + private java.util.List reservations_ = + java.util.Collections.emptyList(); + private void ensureReservationsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + reservations_ = new java.util.ArrayList(reservations_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> reservationsBuilder_; + + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public java.util.List getReservationsList() { + if (reservationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(reservations_); + } else { + return reservationsBuilder_.getMessageList(); + } + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public int getReservationsCount() { + if (reservationsBuilder_ == null) { + return reservations_.size(); + } else { + return reservationsBuilder_.getCount(); + } + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { + if (reservationsBuilder_ == null) { + return reservations_.get(index); + } else { + return reservationsBuilder_.getMessage(index); + } + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public Builder setReservations( + int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { + if (reservationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservationsIsMutable(); + reservations_.set(index, value); + onChanged(); + } else { + reservationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public Builder setReservations( + int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.set(index, builderForValue.build()); + onChanged(); + } else { + reservationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public Builder addReservations(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { + if (reservationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservationsIsMutable(); + reservations_.add(value); + onChanged(); + } else { + reservationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public Builder addReservations( + int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { + if (reservationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservationsIsMutable(); + reservations_.add(index, value); + onChanged(); + } else { + reservationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public Builder addReservations( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.add(builderForValue.build()); + onChanged(); + } else { + reservationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public Builder addReservations( + int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.add(index, builderForValue.build()); + onChanged(); + } else { + reservationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public Builder addAllReservations( + java.lang.Iterable values) { + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, reservations_); + onChanged(); + } else { + reservationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public Builder clearReservations() { + if (reservationsBuilder_ == null) { + reservations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + reservationsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public Builder removeReservations(int index) { + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.remove(index); + onChanged(); + } else { + reservationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder getReservationsBuilder( + int index) { + return getReservationsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( + int index) { + if (reservationsBuilder_ == null) { + return reservations_.get(index); } else { + return reservationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public java.util.List + getReservationsOrBuilderList() { + if (reservationsBuilder_ != null) { + return reservationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reservations_); + } + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder() { + return getReservationsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder( + int index) { + return getReservationsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + } + /** + *
+     * List of IP address reservations in this network.
+     * When updating this field, an error will be generated if a reservation
+     * conflicts with an IP address already allocated to a physical server.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + public java.util.List + getReservationsBuilderList() { + return getReservationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + getReservationsFieldBuilder() { + if (reservationsBuilder_ == null) { + reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( + reservations_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + reservations_ = null; + } + return reservationsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Network) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Network) + private static final com.google.cloud.baremetalsolution.v2.Network DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Network(); + } + + public static com.google.cloud.baremetalsolution.v2.Network getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Network parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Network(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java new file mode 100644 index 0000000..30e66f8 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java @@ -0,0 +1,955 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * A reservation of one or more addresses in a network.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} + */ +public final class NetworkAddressReservation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) + NetworkAddressReservationOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkAddressReservation.newBuilder() to construct. + private NetworkAddressReservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkAddressReservation() { + startAddress_ = ""; + endAddress_ = ""; + note_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NetworkAddressReservation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NetworkAddressReservation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + startAddress_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + endAddress_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + note_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + } + + public static final int START_ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object startAddress_; + /** + *
+   * The first address of this reservation block.
+   * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+   * 
+ * + * string start_address = 1; + * @return The startAddress. + */ + @java.lang.Override + public java.lang.String getStartAddress() { + java.lang.Object ref = startAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startAddress_ = s; + return s; + } + } + /** + *
+   * The first address of this reservation block.
+   * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+   * 
+ * + * string start_address = 1; + * @return The bytes for startAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStartAddressBytes() { + java.lang.Object ref = startAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int END_ADDRESS_FIELD_NUMBER = 2; + private volatile java.lang.Object endAddress_; + /** + *
+   * The last address of this reservation block, inclusive. I.e., for cases when
+   * reservations are only single addresses, end_address and start_address will
+   * be the same.
+   * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+   * 
+ * + * string end_address = 2; + * @return The endAddress. + */ + @java.lang.Override + public java.lang.String getEndAddress() { + java.lang.Object ref = endAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endAddress_ = s; + return s; + } + } + /** + *
+   * The last address of this reservation block, inclusive. I.e., for cases when
+   * reservations are only single addresses, end_address and start_address will
+   * be the same.
+   * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+   * 
+ * + * string end_address = 2; + * @return The bytes for endAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEndAddressBytes() { + java.lang.Object ref = endAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NOTE_FIELD_NUMBER = 3; + private volatile java.lang.Object note_; + /** + *
+   * A note about this reservation, intended for human consumption.
+   * 
+ * + * string note = 3; + * @return The note. + */ + @java.lang.Override + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } + } + /** + *
+   * A note about this reservation, intended for human consumption.
+   * 
+ * + * string note = 3; + * @return The bytes for note. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(note_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, note_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(note_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, note_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.NetworkAddressReservation)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; + + if (!getStartAddress() + .equals(other.getStartAddress())) return false; + if (!getEndAddress() + .equals(other.getEndAddress())) return false; + if (!getNote() + .equals(other.getNote())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getStartAddress().hashCode(); + hash = (37 * hash) + END_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEndAddress().hashCode(); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A reservation of one or more addresses in a network.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + startAddress_ = ""; + + endAddress_ = ""; + + note_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation build() { + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPartial() { + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); + result.startAddress_ = startAddress_; + result.endAddress_ = endAddress_; + result.note_ = note_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { + if (other == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) return this; + if (!other.getStartAddress().isEmpty()) { + startAddress_ = other.startAddress_; + onChanged(); + } + if (!other.getEndAddress().isEmpty()) { + endAddress_ = other.endAddress_; + onChanged(); + } + if (!other.getNote().isEmpty()) { + note_ = other.note_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object startAddress_ = ""; + /** + *
+     * The first address of this reservation block.
+     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+     * 
+ * + * string start_address = 1; + * @return The startAddress. + */ + public java.lang.String getStartAddress() { + java.lang.Object ref = startAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The first address of this reservation block.
+     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+     * 
+ * + * string start_address = 1; + * @return The bytes for startAddress. + */ + public com.google.protobuf.ByteString + getStartAddressBytes() { + java.lang.Object ref = startAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + startAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The first address of this reservation block.
+     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+     * 
+ * + * string start_address = 1; + * @param value The startAddress to set. + * @return This builder for chaining. + */ + public Builder setStartAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startAddress_ = value; + onChanged(); + return this; + } + /** + *
+     * The first address of this reservation block.
+     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+     * 
+ * + * string start_address = 1; + * @return This builder for chaining. + */ + public Builder clearStartAddress() { + + startAddress_ = getDefaultInstance().getStartAddress(); + onChanged(); + return this; + } + /** + *
+     * The first address of this reservation block.
+     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+     * 
+ * + * string start_address = 1; + * @param value The bytes for startAddress to set. + * @return This builder for chaining. + */ + public Builder setStartAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startAddress_ = value; + onChanged(); + return this; + } + + private java.lang.Object endAddress_ = ""; + /** + *
+     * The last address of this reservation block, inclusive. I.e., for cases when
+     * reservations are only single addresses, end_address and start_address will
+     * be the same.
+     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+     * 
+ * + * string end_address = 2; + * @return The endAddress. + */ + public java.lang.String getEndAddress() { + java.lang.Object ref = endAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The last address of this reservation block, inclusive. I.e., for cases when
+     * reservations are only single addresses, end_address and start_address will
+     * be the same.
+     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+     * 
+ * + * string end_address = 2; + * @return The bytes for endAddress. + */ + public com.google.protobuf.ByteString + getEndAddressBytes() { + java.lang.Object ref = endAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The last address of this reservation block, inclusive. I.e., for cases when
+     * reservations are only single addresses, end_address and start_address will
+     * be the same.
+     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+     * 
+ * + * string end_address = 2; + * @param value The endAddress to set. + * @return This builder for chaining. + */ + public Builder setEndAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endAddress_ = value; + onChanged(); + return this; + } + /** + *
+     * The last address of this reservation block, inclusive. I.e., for cases when
+     * reservations are only single addresses, end_address and start_address will
+     * be the same.
+     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+     * 
+ * + * string end_address = 2; + * @return This builder for chaining. + */ + public Builder clearEndAddress() { + + endAddress_ = getDefaultInstance().getEndAddress(); + onChanged(); + return this; + } + /** + *
+     * The last address of this reservation block, inclusive. I.e., for cases when
+     * reservations are only single addresses, end_address and start_address will
+     * be the same.
+     * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+     * 
+ * + * string end_address = 2; + * @param value The bytes for endAddress to set. + * @return This builder for chaining. + */ + public Builder setEndAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endAddress_ = value; + onChanged(); + return this; + } + + private java.lang.Object note_ = ""; + /** + *
+     * A note about this reservation, intended for human consumption.
+     * 
+ * + * string note = 3; + * @return The note. + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A note about this reservation, intended for human consumption.
+     * 
+ * + * string note = 3; + * @return The bytes for note. + */ + public com.google.protobuf.ByteString + getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A note about this reservation, intended for human consumption.
+     * 
+ * + * string note = 3; + * @param value The note to set. + * @return This builder for chaining. + */ + public Builder setNote( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + note_ = value; + onChanged(); + return this; + } + /** + *
+     * A note about this reservation, intended for human consumption.
+     * 
+ * + * string note = 3; + * @return This builder for chaining. + */ + public Builder clearNote() { + + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } + /** + *
+     * A note about this reservation, intended for human consumption.
+     * 
+ * + * string note = 3; + * @param value The bytes for note to set. + * @return This builder for chaining. + */ + public Builder setNoteBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + note_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) + private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(); + } + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkAddressReservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkAddressReservation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java new file mode 100644 index 0000000..9f27f17 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface NetworkAddressReservationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkAddressReservation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The first address of this reservation block.
+   * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+   * 
+ * + * string start_address = 1; + * @return The startAddress. + */ + java.lang.String getStartAddress(); + /** + *
+   * The first address of this reservation block.
+   * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+   * 
+ * + * string start_address = 1; + * @return The bytes for startAddress. + */ + com.google.protobuf.ByteString + getStartAddressBytes(); + + /** + *
+   * The last address of this reservation block, inclusive. I.e., for cases when
+   * reservations are only single addresses, end_address and start_address will
+   * be the same.
+   * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+   * 
+ * + * string end_address = 2; + * @return The endAddress. + */ + java.lang.String getEndAddress(); + /** + *
+   * The last address of this reservation block, inclusive. I.e., for cases when
+   * reservations are only single addresses, end_address and start_address will
+   * be the same.
+   * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
+   * 
+ * + * string end_address = 2; + * @return The bytes for endAddress. + */ + com.google.protobuf.ByteString + getEndAddressBytes(); + + /** + *
+   * A note about this reservation, intended for human consumption.
+   * 
+ * + * string note = 3; + * @return The note. + */ + java.lang.String getNote(); + /** + *
+   * A note about this reservation, intended for human consumption.
+   * 
+ * + * string note = 3; + * @return The bytes for note. + */ + com.google.protobuf.ByteString + getNoteBytes(); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java similarity index 50% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java index ebc5188..a9ee27f 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java @@ -1,295 +1,218 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkOrBuilder - extends +public interface NetworkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Network) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
    * https://cloud.google.com/apis/design/resource_names.
    * Format:
    * `projects/{project}/locations/{location}/networks/{network}`
-   * This field will contain the same value as field "network", which will soon
-   * be deprecated. Please use this field to reference the name of the network
-   * resource.
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
    * https://cloud.google.com/apis/design/resource_names.
    * Format:
    * `projects/{project}/locations/{location}/networks/{network}`
-   * This field will contain the same value as field "network", which will soon
-   * be deprecated. Please use this field to reference the name of the network
-   * resource.
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
-   * Name of the network.
+   * An identifier for the `Network`, generated by the backend.
    * 
* - * string network = 1; - * - * @return The network. + * string id = 10; + * @return The id. */ - java.lang.String getNetwork(); + java.lang.String getId(); /** - * - * *
-   * Name of the network.
+   * An identifier for the `Network`, generated by the backend.
    * 
* - * string network = 1; - * - * @return The bytes for network. + * string id = 10; + * @return The bytes for id. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The type. */ com.google.cloud.baremetalsolution.v2.Network.Type getType(); /** - * - * *
    * IP address configured.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
    * IP address configured.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @return A list containing the macAddress. */ - java.util.List getMacAddressList(); + java.util.List + getMacAddressList(); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @return The count of macAddress. */ int getMacAddressCount(); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @param index The index of the element to return. * @return The macAddress at the given index. */ java.lang.String getMacAddress(int index); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - com.google.protobuf.ByteString getMacAddressBytes(int index); + com.google.protobuf.ByteString + getMacAddressBytes(int index); /** - * - * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Network.State getState(); /** - * - * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; - * * @return The vlanId. */ java.lang.String getVlanId(); /** - * - * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; - * * @return The bytes for vlanId. */ - com.google.protobuf.ByteString getVlanIdBytes(); + com.google.protobuf.ByteString + getVlanIdBytes(); /** - * - * *
    * The cidr of the Network.
    * 
* * string cidr = 8; - * * @return The cidr. */ java.lang.String getCidr(); /** - * - * *
    * The cidr of the Network.
    * 
* * string cidr = 8; - * * @return The bytes for cidr. */ - com.google.protobuf.ByteString getCidrBytes(); + com.google.protobuf.ByteString + getCidrBytes(); /** - * - * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return Whether the vrf field is set. */ boolean hasVrf(); /** - * - * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return The vrf. */ com.google.cloud.baremetalsolution.v2.VRF getVrf(); /** - * - * *
    * The vrf for the Network.
    * 
@@ -297,4 +220,134 @@ public interface NetworkOrBuilder * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder(); + + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 11; + */ + int getLabelsCount(); + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 11; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 11; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 11; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 11; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * IP range for reserved for services (e.g. NFS).
+   * 
+ * + * string services_cidr = 12; + * @return The servicesCidr. + */ + java.lang.String getServicesCidr(); + /** + *
+   * IP range for reserved for services (e.g. NFS).
+   * 
+ * + * string services_cidr = 12; + * @return The bytes for servicesCidr. + */ + com.google.protobuf.ByteString + getServicesCidrBytes(); + + /** + *
+   * List of IP address reservations in this network.
+   * When updating this field, an error will be generated if a reservation
+   * conflicts with an IP address already allocated to a physical server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + java.util.List + getReservationsList(); + /** + *
+   * List of IP address reservations in this network.
+   * When updating this field, an error will be generated if a reservation
+   * conflicts with an IP address already allocated to a physical server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index); + /** + *
+   * List of IP address reservations in this network.
+   * When updating this field, an error will be generated if a reservation
+   * conflicts with an IP address already allocated to a physical server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + int getReservationsCount(); + /** + *
+   * List of IP address reservations in this network.
+   * When updating this field, an error will be generated if a reservation
+   * conflicts with an IP address already allocated to a physical server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + java.util.List + getReservationsOrBuilderList(); + /** + *
+   * List of IP address reservations in this network.
+   * When updating this field, an error will be generated if a reservation
+   * conflicts with an IP address already allocated to a physical server.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + */ + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( + int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java new file mode 100644 index 0000000..e830e19 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java @@ -0,0 +1,283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NetworkProto { + private NetworkProto() {} + 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_baremetalsolution_v2_Network_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" + + "ork.proto\022!google.cloud.baremetalsolutio" + + "n.v2\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032 google/protobu" + + "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" + + " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" + + "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" + + "metalsolution.v2.Network.State\022\017\n\007vlan_i" + + "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" + + "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" + + "bels\030\013 \003(\01326.google.cloud.baremetalsolut" + + "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" + + "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" + + ".cloud.baremetalsolution.v2.NetworkAddre" + + "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" + + "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" + + "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" + + "lution.googleapis.com/Network\022:projects/" + + "{project}/locations/{location}/networks/" + + "{network}\"U\n\031NetworkAddressReservation\022\025" + + "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" + + "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" + + "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" + + "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" + + "0.google.cloud.baremetalsolution.v2.VRF." + + "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" + + "ogle.cloud.baremetalsolution.v2.VRF.Vlan" + + "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" + + "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" + + "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " + + "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" + + "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" + + "alInterface\022o\n\032logical_network_interface" + + "s\030\001 \003(\0132K.google.cloud.baremetalsolution" + + ".v2.LogicalInterface.LogicalNetworkInter" + + "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " + + "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" + + "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" + + "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" + + "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" + + "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" + + "(\0132*.google.cloud.baremetalsolution.v2.N" + + "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" + + "\007network\030\001 \001(\0132*.google.cloud.baremetals" + + "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" + + "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" + + ".baremetalsolution.v2.Network\022\020\n\010used_ip" + + "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" + + "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\"]\n\030ListNetworkUsageRespo" + + "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" + + "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" + + "oogle.cloud.baremetalsolution.v2B\014Networ" + + "kProtoP\001ZRgoogle.golang.org/genproto/goo" + + "gleapis/cloud/baremetalsolution/v2;barem" + + "etalsolution\252\002!Google.Cloud.BareMetalSol" + + "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" + + "n\\V2\352\002$Google::Cloud::BareMetalSolution:" + + ":V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, + new java.lang.String[] { "Name", "Id", "Type", "IpAddress", "MacAddress", "State", "VlanId", "Cidr", "Vrf", "Labels", "ServicesCidr", "Reservations", }); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, + new java.lang.String[] { "StartAddress", "EndAddress", "Note", }); + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, + new java.lang.String[] { "Name", "State", "QosPolicy", "VlanAttachments", }); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, + new java.lang.String[] { "BandwidthGbps", }); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, + new java.lang.String[] { "PeerVlanId", "PeerIp", "RouterIp", }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, + new java.lang.String[] { "LogicalNetworkInterfaces", "Name", "InterfaceIndex", }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, + new java.lang.String[] { "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", }); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, + new java.lang.String[] { "Networks", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, + new java.lang.String[] { "Network", "UpdateMask", }); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, + new java.lang.String[] { "Network", "UsedIps", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, + new java.lang.String[] { "Location", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, + new java.lang.String[] { "Networks", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java new file mode 100644 index 0000000..3ffd7b9 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java @@ -0,0 +1,912 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Network with all used IP addresses.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} + */ +public final class NetworkUsage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkUsage) + NetworkUsageOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkUsage.newBuilder() to construct. + private NetworkUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkUsage() { + usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NetworkUsage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NetworkUsage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + usedIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + usedIps_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + usedIps_ = usedIps_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + private com.google.cloud.baremetalsolution.v2.Network network_; + /** + *
+   * Network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + * @return Whether the network field is set. + */ + @java.lang.Override + public boolean hasNetwork() { + return network_ != null; + } + /** + *
+   * Network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + * @return The network. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network getNetwork() { + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + } + /** + *
+   * Network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { + return getNetwork(); + } + + public static final int USED_IPS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList usedIps_; + /** + *
+   * All used IP addresses in this network.
+   * 
+ * + * repeated string used_ips = 2; + * @return A list containing the usedIps. + */ + public com.google.protobuf.ProtocolStringList + getUsedIpsList() { + return usedIps_; + } + /** + *
+   * All used IP addresses in this network.
+   * 
+ * + * repeated string used_ips = 2; + * @return The count of usedIps. + */ + public int getUsedIpsCount() { + return usedIps_.size(); + } + /** + *
+   * All used IP addresses in this network.
+   * 
+ * + * repeated string used_ips = 2; + * @param index The index of the element to return. + * @return The usedIps at the given index. + */ + public java.lang.String getUsedIps(int index) { + return usedIps_.get(index); + } + /** + *
+   * All used IP addresses in this network.
+   * 
+ * + * repeated string used_ips = 2; + * @param index The index of the value to return. + * @return The bytes of the usedIps at the given index. + */ + public com.google.protobuf.ByteString + getUsedIpsBytes(int index) { + return usedIps_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (network_ != null) { + output.writeMessage(1, getNetwork()); + } + for (int i = 0; i < usedIps_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, usedIps_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (network_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNetwork()); + } + { + int dataSize = 0; + for (int i = 0; i < usedIps_.size(); i++) { + dataSize += computeStringSizeNoTag(usedIps_.getRaw(i)); + } + size += dataSize; + size += 1 * getUsedIpsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.NetworkUsage)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.NetworkUsage other = (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; + + if (hasNetwork() != other.hasNetwork()) return false; + if (hasNetwork()) { + if (!getNetwork() + .equals(other.getNetwork())) return false; + } + if (!getUsedIpsList() + .equals(other.getUsedIpsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNetwork()) { + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + } + if (getUsedIpsCount() > 0) { + hash = (37 * hash) + USED_IPS_FIELD_NUMBER; + hash = (53 * hash) + getUsedIpsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Network with all used IP addresses.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkUsage) + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.NetworkUsage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (networkBuilder_ == null) { + network_ = null; + } else { + network_ = null; + networkBuilder_ = null; + } + usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkUsage build() { + com.google.cloud.baremetalsolution.v2.NetworkUsage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { + com.google.cloud.baremetalsolution.v2.NetworkUsage result = new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); + int from_bitField0_ = bitField0_; + if (networkBuilder_ == null) { + result.network_ = network_; + } else { + result.network_ = networkBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + usedIps_ = usedIps_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.usedIps_ = usedIps_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkUsage) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkUsage other) { + if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) return this; + if (other.hasNetwork()) { + mergeNetwork(other.getNetwork()); + } + if (!other.usedIps_.isEmpty()) { + if (usedIps_.isEmpty()) { + usedIps_ = other.usedIps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUsedIpsIsMutable(); + usedIps_.addAll(other.usedIps_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.NetworkUsage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.cloud.baremetalsolution.v2.Network network_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; + /** + *
+     * Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + * @return Whether the network field is set. + */ + public boolean hasNetwork() { + return networkBuilder_ != null || network_ != null; + } + /** + *
+     * Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + * @return The network. + */ + public com.google.cloud.baremetalsolution.v2.Network getNetwork() { + if (networkBuilder_ == null) { + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + } else { + return networkBuilder_.getMessage(); + } + } + /** + *
+     * Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + */ + public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { + if (networkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + onChanged(); + } else { + networkBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + */ + public Builder setNetwork( + com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { + if (networkBuilder_ == null) { + network_ = builderForValue.build(); + onChanged(); + } else { + networkBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + */ + public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) { + if (networkBuilder_ == null) { + if (network_ != null) { + network_ = + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); + } else { + network_ = value; + } + onChanged(); + } else { + networkBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + */ + public Builder clearNetwork() { + if (networkBuilder_ == null) { + network_ = null; + onChanged(); + } else { + network_ = null; + networkBuilder_ = null; + } + + return this; + } + /** + *
+     * Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + */ + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { + + onChanged(); + return getNetworkFieldBuilder().getBuilder(); + } + /** + *
+     * Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + */ + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { + if (networkBuilder_ != null) { + return networkBuilder_.getMessageOrBuilder(); + } else { + return network_ == null ? + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + } + } + /** + *
+     * Network.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + getNetworkFieldBuilder() { + if (networkBuilder_ == null) { + networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), + getParentForChildren(), + isClean()); + network_ = null; + } + return networkBuilder_; + } + + private com.google.protobuf.LazyStringList usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUsedIpsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + usedIps_ = new com.google.protobuf.LazyStringArrayList(usedIps_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * All used IP addresses in this network.
+     * 
+ * + * repeated string used_ips = 2; + * @return A list containing the usedIps. + */ + public com.google.protobuf.ProtocolStringList + getUsedIpsList() { + return usedIps_.getUnmodifiableView(); + } + /** + *
+     * All used IP addresses in this network.
+     * 
+ * + * repeated string used_ips = 2; + * @return The count of usedIps. + */ + public int getUsedIpsCount() { + return usedIps_.size(); + } + /** + *
+     * All used IP addresses in this network.
+     * 
+ * + * repeated string used_ips = 2; + * @param index The index of the element to return. + * @return The usedIps at the given index. + */ + public java.lang.String getUsedIps(int index) { + return usedIps_.get(index); + } + /** + *
+     * All used IP addresses in this network.
+     * 
+ * + * repeated string used_ips = 2; + * @param index The index of the value to return. + * @return The bytes of the usedIps at the given index. + */ + public com.google.protobuf.ByteString + getUsedIpsBytes(int index) { + return usedIps_.getByteString(index); + } + /** + *
+     * All used IP addresses in this network.
+     * 
+ * + * repeated string used_ips = 2; + * @param index The index to set the value at. + * @param value The usedIps to set. + * @return This builder for chaining. + */ + public Builder setUsedIps( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); + usedIps_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * All used IP addresses in this network.
+     * 
+ * + * repeated string used_ips = 2; + * @param value The usedIps to add. + * @return This builder for chaining. + */ + public Builder addUsedIps( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); + usedIps_.add(value); + onChanged(); + return this; + } + /** + *
+     * All used IP addresses in this network.
+     * 
+ * + * repeated string used_ips = 2; + * @param values The usedIps to add. + * @return This builder for chaining. + */ + public Builder addAllUsedIps( + java.lang.Iterable values) { + ensureUsedIpsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, usedIps_); + onChanged(); + return this; + } + /** + *
+     * All used IP addresses in this network.
+     * 
+ * + * repeated string used_ips = 2; + * @return This builder for chaining. + */ + public Builder clearUsedIps() { + usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * All used IP addresses in this network.
+     * 
+ * + * repeated string used_ips = 2; + * @param value The bytes of the usedIps to add. + * @return This builder for chaining. + */ + public Builder addUsedIpsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUsedIpsIsMutable(); + usedIps_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkUsage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkUsage) + private static final com.google.cloud.baremetalsolution.v2.NetworkUsage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkUsage(); + } + + public static com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkUsage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java new file mode 100644 index 0000000..ea45772 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface NetworkUsageOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkUsage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + * @return Whether the network field is set. + */ + boolean hasNetwork(); + /** + *
+   * Network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + * @return The network. + */ + com.google.cloud.baremetalsolution.v2.Network getNetwork(); + /** + *
+   * Network.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1; + */ + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); + + /** + *
+   * All used IP addresses in this network.
+   * 
+ * + * repeated string used_ips = 2; + * @return A list containing the usedIps. + */ + java.util.List + getUsedIpsList(); + /** + *
+   * All used IP addresses in this network.
+   * 
+ * + * repeated string used_ips = 2; + * @return The count of usedIps. + */ + int getUsedIpsCount(); + /** + *
+   * All used IP addresses in this network.
+   * 
+ * + * repeated string used_ips = 2; + * @param index The index of the element to return. + * @return The usedIps at the given index. + */ + java.lang.String getUsedIps(int index); + /** + *
+   * All used IP addresses in this network.
+   * 
+ * + * repeated string used_ips = 2; + * @param index The index of the value to return. + * @return The bytes of the usedIps at the given index. + */ + com.google.protobuf.ByteString + getUsedIpsBytes(int index); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java new file mode 100644 index 0000000..7be4d09 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java @@ -0,0 +1,3509 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * An NFS share.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} + */ +public final class NfsShare extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare) + NfsShareOrBuilder { +private static final long serialVersionUID = 0L; + // Use NfsShare.newBuilder() to construct. + private NfsShare(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NfsShare() { + name_ = ""; + nfsShareId_ = ""; + state_ = 0; + volume_ = ""; + allowedClients_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NfsShare(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NfsShare( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nfsShareId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + volume_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedClients_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + allowedClients_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + allowedClients_ = java.util.Collections.unmodifiableList(allowedClients_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + } + + /** + *
+   * The possible states for this NFS share.
+   * 
+ * + * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * The share is in an unknown state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * The share has been provisioned.
+     * 
+ * + * PROVISIONED = 1; + */ + PROVISIONED(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * The share is in an unknown state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * The share has been provisioned.
+     * 
+ * + * PROVISIONED = 1; + */ + public static final int PROVISIONED_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.NfsShare.State) + } + + /** + *
+   * The possible mount permissions.
+   * 
+ * + * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.MountPermissions} + */ + public enum MountPermissions + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Permissions were not specified.
+     * 
+ * + * MOUNT_PERMISSIONS_UNSPECIFIED = 0; + */ + MOUNT_PERMISSIONS_UNSPECIFIED(0), + /** + *
+     * NFS share can be mount with read-only permissions.
+     * 
+ * + * READ = 1; + */ + READ(1), + /** + *
+     * NFS share can be mount with read-write permissions.
+     * 
+ * + * READ_WRITE = 2; + */ + READ_WRITE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Permissions were not specified.
+     * 
+ * + * MOUNT_PERMISSIONS_UNSPECIFIED = 0; + */ + public static final int MOUNT_PERMISSIONS_UNSPECIFIED_VALUE = 0; + /** + *
+     * NFS share can be mount with read-only permissions.
+     * 
+ * + * READ = 1; + */ + public static final int READ_VALUE = 1; + /** + *
+     * NFS share can be mount with read-write permissions.
+     * 
+ * + * READ_WRITE = 2; + */ + public static final int READ_WRITE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MountPermissions valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MountPermissions forNumber(int value) { + switch (value) { + case 0: return MOUNT_PERMISSIONS_UNSPECIFIED; + case 1: return READ; + case 2: return READ_WRITE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MountPermissions> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MountPermissions findValueByNumber(int number) { + return MountPermissions.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(1); + } + + private static final MountPermissions[] VALUES = values(); + + public static MountPermissions valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MountPermissions(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.NfsShare.MountPermissions) + } + + public interface AllowedClientOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The network the access point sits on.
+     * 
+ * + * string network = 1 [(.google.api.resource_reference) = { ... } + * @return The network. + */ + java.lang.String getNetwork(); + /** + *
+     * The network the access point sits on.
+     * 
+ * + * string network = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for network. + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+     * The IP address of the share on this network.
+     * 
+ * + * string share_ip = 2; + * @return The shareIp. + */ + java.lang.String getShareIp(); + /** + *
+     * The IP address of the share on this network.
+     * 
+ * + * string share_ip = 2; + * @return The bytes for shareIp. + */ + com.google.protobuf.ByteString + getShareIpBytes(); + + /** + *
+     * The subnet of IP addresses permitted to access the share.
+     * 
+ * + * string allowed_clients_cidr = 3; + * @return The allowedClientsCidr. + */ + java.lang.String getAllowedClientsCidr(); + /** + *
+     * The subnet of IP addresses permitted to access the share.
+     * 
+ * + * string allowed_clients_cidr = 3; + * @return The bytes for allowedClientsCidr. + */ + com.google.protobuf.ByteString + getAllowedClientsCidrBytes(); + + /** + *
+     * Mount permissions.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * @return The enum numeric value on the wire for mountPermissions. + */ + int getMountPermissionsValue(); + /** + *
+     * Mount permissions.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * @return The mountPermissions. + */ + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions(); + + /** + *
+     * Allow dev flag.  Which controls whether to allow creation of devices.
+     * 
+ * + * bool allow_dev = 5; + * @return The allowDev. + */ + boolean getAllowDev(); + + /** + *
+     * Allow the setuid flag.
+     * 
+ * + * bool allow_suid = 6; + * @return The allowSuid. + */ + boolean getAllowSuid(); + + /** + *
+     * Disable root squashing, which is a feature of NFS.
+     * Root squash is a special mapping of the remote superuser (root) identity
+     * when using identity authentication.
+     * 
+ * + * bool no_root_squash = 7; + * @return The noRootSquash. + */ + boolean getNoRootSquash(); + } + /** + *
+   * Represents an 'access point' for the share.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} + */ + public static final class AllowedClient extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) + AllowedClientOrBuilder { + private static final long serialVersionUID = 0L; + // Use AllowedClient.newBuilder() to construct. + private AllowedClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AllowedClient() { + network_ = ""; + shareIp_ = ""; + allowedClientsCidr_ = ""; + mountPermissions_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AllowedClient(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AllowedClient( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + shareIp_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + allowedClientsCidr_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + mountPermissions_ = rawValue; + break; + } + case 40: { + + allowDev_ = input.readBool(); + break; + } + case 48: { + + allowSuid_ = input.readBool(); + break; + } + case 56: { + + noRootSquash_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object network_; + /** + *
+     * The network the access point sits on.
+     * 
+ * + * string network = 1 [(.google.api.resource_reference) = { ... } + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + *
+     * The network the access point sits on.
+     * 
+ * + * string network = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARE_IP_FIELD_NUMBER = 2; + private volatile java.lang.Object shareIp_; + /** + *
+     * The IP address of the share on this network.
+     * 
+ * + * string share_ip = 2; + * @return The shareIp. + */ + @java.lang.Override + public java.lang.String getShareIp() { + java.lang.Object ref = shareIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shareIp_ = s; + return s; + } + } + /** + *
+     * The IP address of the share on this network.
+     * 
+ * + * string share_ip = 2; + * @return The bytes for shareIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getShareIpBytes() { + java.lang.Object ref = shareIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shareIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_CLIENTS_CIDR_FIELD_NUMBER = 3; + private volatile java.lang.Object allowedClientsCidr_; + /** + *
+     * The subnet of IP addresses permitted to access the share.
+     * 
+ * + * string allowed_clients_cidr = 3; + * @return The allowedClientsCidr. + */ + @java.lang.Override + public java.lang.String getAllowedClientsCidr() { + java.lang.Object ref = allowedClientsCidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowedClientsCidr_ = s; + return s; + } + } + /** + *
+     * The subnet of IP addresses permitted to access the share.
+     * 
+ * + * string allowed_clients_cidr = 3; + * @return The bytes for allowedClientsCidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAllowedClientsCidrBytes() { + java.lang.Object ref = allowedClientsCidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allowedClientsCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MOUNT_PERMISSIONS_FIELD_NUMBER = 4; + private int mountPermissions_; + /** + *
+     * Mount permissions.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * @return The enum numeric value on the wire for mountPermissions. + */ + @java.lang.Override public int getMountPermissionsValue() { + return mountPermissions_; + } + /** + *
+     * Mount permissions.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * @return The mountPermissions. + */ + @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; + } + + public static final int ALLOW_DEV_FIELD_NUMBER = 5; + private boolean allowDev_; + /** + *
+     * Allow dev flag.  Which controls whether to allow creation of devices.
+     * 
+ * + * bool allow_dev = 5; + * @return The allowDev. + */ + @java.lang.Override + public boolean getAllowDev() { + return allowDev_; + } + + public static final int ALLOW_SUID_FIELD_NUMBER = 6; + private boolean allowSuid_; + /** + *
+     * Allow the setuid flag.
+     * 
+ * + * bool allow_suid = 6; + * @return The allowSuid. + */ + @java.lang.Override + public boolean getAllowSuid() { + return allowSuid_; + } + + public static final int NO_ROOT_SQUASH_FIELD_NUMBER = 7; + private boolean noRootSquash_; + /** + *
+     * Disable root squashing, which is a feature of NFS.
+     * Root squash is a special mapping of the remote superuser (root) identity
+     * when using identity authentication.
+     * 
+ * + * bool no_root_squash = 7; + * @return The noRootSquash. + */ + @java.lang.Override + public boolean getNoRootSquash() { + return noRootSquash_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shareIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shareIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allowedClientsCidr_); + } + if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { + output.writeEnum(4, mountPermissions_); + } + if (allowDev_ != false) { + output.writeBool(5, allowDev_); + } + if (allowSuid_ != false) { + output.writeBool(6, allowSuid_); + } + if (noRootSquash_ != false) { + output.writeBool(7, noRootSquash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shareIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shareIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, allowedClientsCidr_); + } + if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, mountPermissions_); + } + if (allowDev_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, allowDev_); + } + if (allowSuid_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, allowSuid_); + } + if (noRootSquash_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, noRootSquash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; + + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getShareIp() + .equals(other.getShareIp())) return false; + if (!getAllowedClientsCidr() + .equals(other.getAllowedClientsCidr())) return false; + if (mountPermissions_ != other.mountPermissions_) return false; + if (getAllowDev() + != other.getAllowDev()) return false; + if (getAllowSuid() + != other.getAllowSuid()) return false; + if (getNoRootSquash() + != other.getNoRootSquash()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SHARE_IP_FIELD_NUMBER; + hash = (53 * hash) + getShareIp().hashCode(); + hash = (37 * hash) + ALLOWED_CLIENTS_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getAllowedClientsCidr().hashCode(); + hash = (37 * hash) + MOUNT_PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + mountPermissions_; + hash = (37 * hash) + ALLOW_DEV_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowDev()); + hash = (37 * hash) + ALLOW_SUID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowSuid()); + hash = (37 * hash) + NO_ROOT_SQUASH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNoRootSquash()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents an 'access point' for the share.
+     * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + network_ = ""; + + shareIp_ = ""; + + allowedClientsCidr_ = ""; + + mountPermissions_ = 0; + + allowDev_ = false; + + allowSuid_ = false; + + noRootSquash_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient build() { + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial() { + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); + result.network_ = network_; + result.shareIp_ = shareIp_; + result.allowedClientsCidr_ = allowedClientsCidr_; + result.mountPermissions_ = mountPermissions_; + result.allowDev_ = allowDev_; + result.allowSuid_ = allowSuid_; + result.noRootSquash_ = noRootSquash_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other) { + if (other == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getShareIp().isEmpty()) { + shareIp_ = other.shareIp_; + onChanged(); + } + if (!other.getAllowedClientsCidr().isEmpty()) { + allowedClientsCidr_ = other.allowedClientsCidr_; + onChanged(); + } + if (other.mountPermissions_ != 0) { + setMountPermissionsValue(other.getMountPermissionsValue()); + } + if (other.getAllowDev() != false) { + setAllowDev(other.getAllowDev()); + } + if (other.getAllowSuid() != false) { + setAllowSuid(other.getAllowSuid()); + } + if (other.getNoRootSquash() != false) { + setNoRootSquash(other.getNoRootSquash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+       * The network the access point sits on.
+       * 
+ * + * string network = 1 [(.google.api.resource_reference) = { ... } + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The network the access point sits on.
+       * 
+ * + * string network = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for network. + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The network the access point sits on.
+       * 
+ * + * string network = 1 [(.google.api.resource_reference) = { ... } + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + *
+       * The network the access point sits on.
+       * 
+ * + * string network = 1 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + *
+       * The network the access point sits on.
+       * 
+ * + * string network = 1 [(.google.api.resource_reference) = { ... } + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object shareIp_ = ""; + /** + *
+       * The IP address of the share on this network.
+       * 
+ * + * string share_ip = 2; + * @return The shareIp. + */ + public java.lang.String getShareIp() { + java.lang.Object ref = shareIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shareIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The IP address of the share on this network.
+       * 
+ * + * string share_ip = 2; + * @return The bytes for shareIp. + */ + public com.google.protobuf.ByteString + getShareIpBytes() { + java.lang.Object ref = shareIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shareIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The IP address of the share on this network.
+       * 
+ * + * string share_ip = 2; + * @param value The shareIp to set. + * @return This builder for chaining. + */ + public Builder setShareIp( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + shareIp_ = value; + onChanged(); + return this; + } + /** + *
+       * The IP address of the share on this network.
+       * 
+ * + * string share_ip = 2; + * @return This builder for chaining. + */ + public Builder clearShareIp() { + + shareIp_ = getDefaultInstance().getShareIp(); + onChanged(); + return this; + } + /** + *
+       * The IP address of the share on this network.
+       * 
+ * + * string share_ip = 2; + * @param value The bytes for shareIp to set. + * @return This builder for chaining. + */ + public Builder setShareIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + shareIp_ = value; + onChanged(); + return this; + } + + private java.lang.Object allowedClientsCidr_ = ""; + /** + *
+       * The subnet of IP addresses permitted to access the share.
+       * 
+ * + * string allowed_clients_cidr = 3; + * @return The allowedClientsCidr. + */ + public java.lang.String getAllowedClientsCidr() { + java.lang.Object ref = allowedClientsCidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allowedClientsCidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The subnet of IP addresses permitted to access the share.
+       * 
+ * + * string allowed_clients_cidr = 3; + * @return The bytes for allowedClientsCidr. + */ + public com.google.protobuf.ByteString + getAllowedClientsCidrBytes() { + java.lang.Object ref = allowedClientsCidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allowedClientsCidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The subnet of IP addresses permitted to access the share.
+       * 
+ * + * string allowed_clients_cidr = 3; + * @param value The allowedClientsCidr to set. + * @return This builder for chaining. + */ + public Builder setAllowedClientsCidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + allowedClientsCidr_ = value; + onChanged(); + return this; + } + /** + *
+       * The subnet of IP addresses permitted to access the share.
+       * 
+ * + * string allowed_clients_cidr = 3; + * @return This builder for chaining. + */ + public Builder clearAllowedClientsCidr() { + + allowedClientsCidr_ = getDefaultInstance().getAllowedClientsCidr(); + onChanged(); + return this; + } + /** + *
+       * The subnet of IP addresses permitted to access the share.
+       * 
+ * + * string allowed_clients_cidr = 3; + * @param value The bytes for allowedClientsCidr to set. + * @return This builder for chaining. + */ + public Builder setAllowedClientsCidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + allowedClientsCidr_ = value; + onChanged(); + return this; + } + + private int mountPermissions_ = 0; + /** + *
+       * Mount permissions.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * @return The enum numeric value on the wire for mountPermissions. + */ + @java.lang.Override public int getMountPermissionsValue() { + return mountPermissions_; + } + /** + *
+       * Mount permissions.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * @param value The enum numeric value on the wire for mountPermissions to set. + * @return This builder for chaining. + */ + public Builder setMountPermissionsValue(int value) { + + mountPermissions_ = value; + onChanged(); + return this; + } + /** + *
+       * Mount permissions.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * @return The mountPermissions. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; + } + /** + *
+       * Mount permissions.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * @param value The mountPermissions to set. + * @return This builder for chaining. + */ + public Builder setMountPermissions(com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { + if (value == null) { + throw new NullPointerException(); + } + + mountPermissions_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Mount permissions.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * @return This builder for chaining. + */ + public Builder clearMountPermissions() { + + mountPermissions_ = 0; + onChanged(); + return this; + } + + private boolean allowDev_ ; + /** + *
+       * Allow dev flag.  Which controls whether to allow creation of devices.
+       * 
+ * + * bool allow_dev = 5; + * @return The allowDev. + */ + @java.lang.Override + public boolean getAllowDev() { + return allowDev_; + } + /** + *
+       * Allow dev flag.  Which controls whether to allow creation of devices.
+       * 
+ * + * bool allow_dev = 5; + * @param value The allowDev to set. + * @return This builder for chaining. + */ + public Builder setAllowDev(boolean value) { + + allowDev_ = value; + onChanged(); + return this; + } + /** + *
+       * Allow dev flag.  Which controls whether to allow creation of devices.
+       * 
+ * + * bool allow_dev = 5; + * @return This builder for chaining. + */ + public Builder clearAllowDev() { + + allowDev_ = false; + onChanged(); + return this; + } + + private boolean allowSuid_ ; + /** + *
+       * Allow the setuid flag.
+       * 
+ * + * bool allow_suid = 6; + * @return The allowSuid. + */ + @java.lang.Override + public boolean getAllowSuid() { + return allowSuid_; + } + /** + *
+       * Allow the setuid flag.
+       * 
+ * + * bool allow_suid = 6; + * @param value The allowSuid to set. + * @return This builder for chaining. + */ + public Builder setAllowSuid(boolean value) { + + allowSuid_ = value; + onChanged(); + return this; + } + /** + *
+       * Allow the setuid flag.
+       * 
+ * + * bool allow_suid = 6; + * @return This builder for chaining. + */ + public Builder clearAllowSuid() { + + allowSuid_ = false; + onChanged(); + return this; + } + + private boolean noRootSquash_ ; + /** + *
+       * Disable root squashing, which is a feature of NFS.
+       * Root squash is a special mapping of the remote superuser (root) identity
+       * when using identity authentication.
+       * 
+ * + * bool no_root_squash = 7; + * @return The noRootSquash. + */ + @java.lang.Override + public boolean getNoRootSquash() { + return noRootSquash_; + } + /** + *
+       * Disable root squashing, which is a feature of NFS.
+       * Root squash is a special mapping of the remote superuser (root) identity
+       * when using identity authentication.
+       * 
+ * + * bool no_root_squash = 7; + * @param value The noRootSquash to set. + * @return This builder for chaining. + */ + public Builder setNoRootSquash(boolean value) { + + noRootSquash_ = value; + onChanged(); + return this; + } + /** + *
+       * Disable root squashing, which is a feature of NFS.
+       * Root squash is a special mapping of the remote superuser (root) identity
+       * when using identity authentication.
+       * 
+ * + * bool no_root_squash = 7; + * @return This builder for chaining. + */ + public Builder clearNoRootSquash() { + + noRootSquash_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) + private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(); + } + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedClient parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedClient(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Output only. The name of the NFS share.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Output only. The name of the NFS share.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NFS_SHARE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object nfsShareId_; + /** + *
+   * Output only. An identifier for the NFS share, generated by the backend.
+   * 
+ * + * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The nfsShareId. + */ + @java.lang.Override + public java.lang.String getNfsShareId() { + java.lang.Object ref = nfsShareId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nfsShareId_ = s; + return s; + } + } + /** + *
+   * Output only. An identifier for the NFS share, generated by the backend.
+   * 
+ * + * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for nfsShareId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNfsShareIdBytes() { + java.lang.Object ref = nfsShareId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nfsShareId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_; + /** + *
+   * The state of the NFS share.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+   * The state of the NFS share.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * @return The state. + */ + @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; + } + + public static final int VOLUME_FIELD_NUMBER = 4; + private volatile java.lang.Object volume_; + /** + *
+   * The volume containing the share.
+   * 
+ * + * string volume = 4 [(.google.api.resource_reference) = { ... } + * @return The volume. + */ + @java.lang.Override + public java.lang.String getVolume() { + java.lang.Object ref = volume_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volume_ = s; + return s; + } + } + /** + *
+   * The volume containing the share.
+   * 
+ * + * string volume = 4 [(.google.api.resource_reference) = { ... } + * @return The bytes for volume. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVolumeBytes() { + java.lang.Object ref = volume_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_CLIENTS_FIELD_NUMBER = 5; + private java.util.List allowedClients_; + /** + *
+   * List of allowed access points.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + @java.lang.Override + public java.util.List getAllowedClientsList() { + return allowedClients_; + } + /** + *
+   * List of allowed access points.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + @java.lang.Override + public java.util.List + getAllowedClientsOrBuilderList() { + return allowedClients_; + } + /** + *
+   * List of allowed access points.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + @java.lang.Override + public int getAllowedClientsCount() { + return allowedClients_.size(); + } + /** + *
+   * List of allowed access points.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { + return allowedClients_.get(index); + } + /** + *
+   * List of allowed access points.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( + int index) { + return allowedClients_.get(index); + } + + public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 6; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nfsShareId_); + } + if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, volume_); + } + for (int i = 0; i < allowedClients_.size(); i++) { + output.writeMessage(5, allowedClients_.get(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nfsShareId_); + } + if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volume_); + } + for (int i = 0; i < allowedClients_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, allowedClients_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.NfsShare)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.NfsShare other = (com.google.cloud.baremetalsolution.v2.NfsShare) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getNfsShareId() + .equals(other.getNfsShareId())) return false; + if (state_ != other.state_) return false; + if (!getVolume() + .equals(other.getVolume())) return false; + if (!getAllowedClientsList() + .equals(other.getAllowedClientsList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + NFS_SHARE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNfsShareId().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + getVolume().hashCode(); + if (getAllowedClientsCount() > 0) { + hash = (37 * hash) + ALLOWED_CLIENTS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedClientsList().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * An NFS share.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare) + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 6: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAllowedClientsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + nfsShareId_ = ""; + + state_ = 0; + + volume_ = ""; + + if (allowedClientsBuilder_ == null) { + allowedClients_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + allowedClientsBuilder_.clear(); + } + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare build() { + com.google.cloud.baremetalsolution.v2.NfsShare result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { + com.google.cloud.baremetalsolution.v2.NfsShare result = new com.google.cloud.baremetalsolution.v2.NfsShare(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.nfsShareId_ = nfsShareId_; + result.state_ = state_; + result.volume_ = volume_; + if (allowedClientsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + allowedClients_ = java.util.Collections.unmodifiableList(allowedClients_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.allowedClients_ = allowedClients_; + } else { + result.allowedClients_ = allowedClientsBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare other) { + if (other == com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getNfsShareId().isEmpty()) { + nfsShareId_ = other.nfsShareId_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getVolume().isEmpty()) { + volume_ = other.volume_; + onChanged(); + } + if (allowedClientsBuilder_ == null) { + if (!other.allowedClients_.isEmpty()) { + if (allowedClients_.isEmpty()) { + allowedClients_ = other.allowedClients_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAllowedClientsIsMutable(); + allowedClients_.addAll(other.allowedClients_); + } + onChanged(); + } + } else { + if (!other.allowedClients_.isEmpty()) { + if (allowedClientsBuilder_.isEmpty()) { + allowedClientsBuilder_.dispose(); + allowedClientsBuilder_ = null; + allowedClients_ = other.allowedClients_; + bitField0_ = (bitField0_ & ~0x00000001); + allowedClientsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAllowedClientsFieldBuilder() : null; + } else { + allowedClientsBuilder_.addAllMessages(other.allowedClients_); + } + } + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.NfsShare parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.NfsShare) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. The name of the NFS share.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The name of the NFS share.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The name of the NFS share.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The name of the NFS share.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Output only. The name of the NFS share.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object nfsShareId_ = ""; + /** + *
+     * Output only. An identifier for the NFS share, generated by the backend.
+     * 
+ * + * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The nfsShareId. + */ + public java.lang.String getNfsShareId() { + java.lang.Object ref = nfsShareId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nfsShareId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. An identifier for the NFS share, generated by the backend.
+     * 
+ * + * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for nfsShareId. + */ + public com.google.protobuf.ByteString + getNfsShareIdBytes() { + java.lang.Object ref = nfsShareId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nfsShareId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. An identifier for the NFS share, generated by the backend.
+     * 
+ * + * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The nfsShareId to set. + * @return This builder for chaining. + */ + public Builder setNfsShareId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nfsShareId_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. An identifier for the NFS share, generated by the backend.
+     * 
+ * + * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearNfsShareId() { + + nfsShareId_ = getDefaultInstance().getNfsShareId(); + onChanged(); + return this; + } + /** + *
+     * Output only. An identifier for the NFS share, generated by the backend.
+     * 
+ * + * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for nfsShareId to set. + * @return This builder for chaining. + */ + public Builder setNfsShareIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nfsShareId_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+     * The state of the NFS share.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+     * The state of the NFS share.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + *
+     * The state of the NFS share.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * @return The state. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; + } + /** + *
+     * The state of the NFS share.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.baremetalsolution.v2.NfsShare.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The state of the NFS share.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object volume_ = ""; + /** + *
+     * The volume containing the share.
+     * 
+ * + * string volume = 4 [(.google.api.resource_reference) = { ... } + * @return The volume. + */ + public java.lang.String getVolume() { + java.lang.Object ref = volume_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volume_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The volume containing the share.
+     * 
+ * + * string volume = 4 [(.google.api.resource_reference) = { ... } + * @return The bytes for volume. + */ + public com.google.protobuf.ByteString + getVolumeBytes() { + java.lang.Object ref = volume_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The volume containing the share.
+     * 
+ * + * string volume = 4 [(.google.api.resource_reference) = { ... } + * @param value The volume to set. + * @return This builder for chaining. + */ + public Builder setVolume( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + volume_ = value; + onChanged(); + return this; + } + /** + *
+     * The volume containing the share.
+     * 
+ * + * string volume = 4 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearVolume() { + + volume_ = getDefaultInstance().getVolume(); + onChanged(); + return this; + } + /** + *
+     * The volume containing the share.
+     * 
+ * + * string volume = 4 [(.google.api.resource_reference) = { ... } + * @param value The bytes for volume to set. + * @return This builder for chaining. + */ + public Builder setVolumeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + volume_ = value; + onChanged(); + return this; + } + + private java.util.List allowedClients_ = + java.util.Collections.emptyList(); + private void ensureAllowedClientsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + allowedClients_ = new java.util.ArrayList(allowedClients_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> allowedClientsBuilder_; + + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public java.util.List getAllowedClientsList() { + if (allowedClientsBuilder_ == null) { + return java.util.Collections.unmodifiableList(allowedClients_); + } else { + return allowedClientsBuilder_.getMessageList(); + } + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public int getAllowedClientsCount() { + if (allowedClientsBuilder_ == null) { + return allowedClients_.size(); + } else { + return allowedClientsBuilder_.getCount(); + } + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { + if (allowedClientsBuilder_ == null) { + return allowedClients_.get(index); + } else { + return allowedClientsBuilder_.getMessage(index); + } + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public Builder setAllowedClients( + int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { + if (allowedClientsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedClientsIsMutable(); + allowedClients_.set(index, value); + onChanged(); + } else { + allowedClientsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public Builder setAllowedClients( + int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + if (allowedClientsBuilder_ == null) { + ensureAllowedClientsIsMutable(); + allowedClients_.set(index, builderForValue.build()); + onChanged(); + } else { + allowedClientsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public Builder addAllowedClients(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { + if (allowedClientsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedClientsIsMutable(); + allowedClients_.add(value); + onChanged(); + } else { + allowedClientsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public Builder addAllowedClients( + int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { + if (allowedClientsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedClientsIsMutable(); + allowedClients_.add(index, value); + onChanged(); + } else { + allowedClientsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public Builder addAllowedClients( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + if (allowedClientsBuilder_ == null) { + ensureAllowedClientsIsMutable(); + allowedClients_.add(builderForValue.build()); + onChanged(); + } else { + allowedClientsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public Builder addAllowedClients( + int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + if (allowedClientsBuilder_ == null) { + ensureAllowedClientsIsMutable(); + allowedClients_.add(index, builderForValue.build()); + onChanged(); + } else { + allowedClientsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public Builder addAllAllowedClients( + java.lang.Iterable values) { + if (allowedClientsBuilder_ == null) { + ensureAllowedClientsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedClients_); + onChanged(); + } else { + allowedClientsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public Builder clearAllowedClients() { + if (allowedClientsBuilder_ == null) { + allowedClients_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + allowedClientsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public Builder removeAllowedClients(int index) { + if (allowedClientsBuilder_ == null) { + ensureAllowedClientsIsMutable(); + allowedClients_.remove(index); + onChanged(); + } else { + allowedClientsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder getAllowedClientsBuilder( + int index) { + return getAllowedClientsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( + int index) { + if (allowedClientsBuilder_ == null) { + return allowedClients_.get(index); } else { + return allowedClientsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public java.util.List + getAllowedClientsOrBuilderList() { + if (allowedClientsBuilder_ != null) { + return allowedClientsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(allowedClients_); + } + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder() { + return getAllowedClientsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder( + int index) { + return getAllowedClientsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + } + /** + *
+     * List of allowed access points.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + public java.util.List + getAllowedClientsBuilderList() { + return getAllowedClientsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + getAllowedClientsFieldBuilder() { + if (allowedClientsBuilder_ == null) { + allowedClientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( + allowedClients_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + allowedClients_ = null; + } + return allowedClientsBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 6; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 6; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 6; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 6; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare) + private static final com.google.cloud.baremetalsolution.v2.NfsShare DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare(); + } + + public static com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsShare parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NfsShare(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java new file mode 100644 index 0000000..b7ebe95 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java @@ -0,0 +1,188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface NfsShareOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The name of the NFS share.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Output only. The name of the NFS share.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Output only. An identifier for the NFS share, generated by the backend.
+   * 
+ * + * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The nfsShareId. + */ + java.lang.String getNfsShareId(); + /** + *
+   * Output only. An identifier for the NFS share, generated by the backend.
+   * 
+ * + * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for nfsShareId. + */ + com.google.protobuf.ByteString + getNfsShareIdBytes(); + + /** + *
+   * The state of the NFS share.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + *
+   * The state of the NFS share.
+   * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * @return The state. + */ + com.google.cloud.baremetalsolution.v2.NfsShare.State getState(); + + /** + *
+   * The volume containing the share.
+   * 
+ * + * string volume = 4 [(.google.api.resource_reference) = { ... } + * @return The volume. + */ + java.lang.String getVolume(); + /** + *
+   * The volume containing the share.
+   * 
+ * + * string volume = 4 [(.google.api.resource_reference) = { ... } + * @return The bytes for volume. + */ + com.google.protobuf.ByteString + getVolumeBytes(); + + /** + *
+   * List of allowed access points.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + java.util.List + getAllowedClientsList(); + /** + *
+   * List of allowed access points.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index); + /** + *
+   * List of allowed access points.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + int getAllowedClientsCount(); + /** + *
+   * List of allowed access points.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + java.util.List + getAllowedClientsOrBuilderList(); + /** + *
+   * List of allowed access points.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + */ + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( + int index); + + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 6; + */ + int getLabelsCount(); + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 6; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 6; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 6; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 6; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java new file mode 100644 index 0000000..ba39d39 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NfsShareProto { + private NfsShareProto() {} + 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_baremetalsolution_v2_NfsShare_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/baremetalsolution/v2/nfs_" + + "share.proto\022!google.cloud.baremetalsolut" + + "ion.v2\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032 google/proto" + + "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" + + "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" + + "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" + + "\tB,\372A)\n\'baremetalsolution.googleapis.com" + + "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" + + "e.cloud.baremetalsolution.v2.NfsShare.Al" + + "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" + + "ud.baremetalsolution.v2.NfsShare.LabelsE" + + "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" + + "-\372A*\n(baremetalsolution.googleapis.com/N" + + "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" + + "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" + + "\0162<.google.cloud.baremetalsolution.v2.Nf" + + "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" + + "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" + + "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" + + "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" + + "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" + + "olution.googleapis.com/NFSShare\022=project" + + "s/{project}/locations/{location}/nfsShar" + + "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" + + "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" + + "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" + + "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" + + "\030\001 \003(\0132+.google.cloud.baremetalsolution." + + "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" + + "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" + + "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\373\001\n%com.google.cloud.baremetalsolution" + + ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" + + "genproto/googleapis/cloud/baremetalsolut" + + "ion/v2;baremetalsolution\252\002!Google.Cloud." + + "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" + + "MetalSolution\\V2\352\002$Google::Cloud::BareMe" + + "talSolution::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, + new java.lang.String[] { "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, + new java.lang.String[] { "Network", "ShareIp", "AllowedClientsCidr", "MountPermissions", "AllowDev", "AllowSuid", "NoRootSquash", }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, + new java.lang.String[] { "NfsShares", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, + new java.lang.String[] { "NfsShare", "UpdateMask", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java index 4218d24..ce84b7e 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Represents the metadata from a long-running operation.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,40 +125,34 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, - com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -207,14 +172,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -224,15 +186,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -256,14 +210,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -289,29 +237,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -338,29 +283,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -387,29 +329,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -420,8 +362,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -430,7 +370,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -441,14 +380,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -457,29 +393,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -488,7 +424,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -532,10 +468,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -547,7 +485,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -560,27 +499,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.OperationMetadata other = - (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; + com.google.cloud.baremetalsolution.v2.OperationMetadata other = (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -607,7 +552,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -616,127 +562,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata from a long-running operation.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.cloud.baremetalsolution.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, - com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.OperationMetadata.newBuilder() @@ -744,15 +680,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -782,9 +719,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -803,8 +740,7 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { - com.google.cloud.baremetalsolution.v2.OperationMetadata result = - new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); + com.google.cloud.baremetalsolution.v2.OperationMetadata result = new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -828,39 +764,38 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -868,8 +803,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.OperationMetadata other) { - if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -914,8 +848,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -927,58 +860,39 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -994,17 +908,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1015,21 +926,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1041,15 +948,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1063,64 +966,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1128,35 +1015,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1167,14 +1043,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1190,16 +1063,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1210,20 +1081,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1235,14 +1103,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1256,59 +1121,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1316,20 +1170,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1338,21 +1190,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1360,61 +1211,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1422,20 +1266,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1444,21 +1286,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1466,61 +1307,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1528,20 +1362,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1550,21 +1382,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1572,70 +1403,61 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1644,7 +1466,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1652,8 +1473,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1662,19 +1481,16 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1683,11 +1499,10 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1695,20 +1510,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1717,21 +1530,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1739,68 +1551,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1810,12 +1615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.OperationMetadata) private static final com.google.cloud.baremetalsolution.v2.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.OperationMetadata(); } @@ -1824,16 +1629,16 @@ public static com.google.cloud.baremetalsolution.v2.OperationMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1848,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java index 5d598a7..28fd6c5 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java similarity index 63% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java index 09ca711..f4cba4a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message requesting to reset a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ -public final class ResetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) ResetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResetInstanceRequest.newBuilder() to construct. private ResetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ResetInstanceRequest( 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,41 +73,34 @@ private ResetInstanceRequest( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = - (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message requesting to reset a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) com.google.cloud.baremetalsolution.v2.ResetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..6068d11 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java index c8c57e7..4fc6068 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.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/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message from resetting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ -public final class ResetInstanceResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResetInstanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) ResetInstanceResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResetInstanceResponse.newBuilder() to construct. private ResetInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ResetInstanceResponse() {} + private ResetInstanceResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResetInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResetInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private ResetInstanceResponse( 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 ResetInstanceResponse( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.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.baremetalsolution.v2.ResetInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = - (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,127 +141,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message from resetting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) com.google.cloud.baremetalsolution.v2.ResetInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.newBuilder() @@ -288,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(); @@ -304,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override @@ -325,8 +297,7 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = - new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); onBuilt(); return result; } @@ -335,39 +306,38 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse)other); } else { super.mergeFrom(other); return this; @@ -375,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -406,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); } @@ -418,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(); } @@ -432,16 +400,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -456,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java new file mode 100644 index 0000000..f9e4cd0 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java new file mode 100644 index 0000000..c6bff70 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java @@ -0,0 +1,676 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Request for emergency resize Volume.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} + */ +public final class ResizeVolumeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) + ResizeVolumeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResizeVolumeRequest.newBuilder() to construct. + private ResizeVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResizeVolumeRequest() { + volume_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResizeVolumeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResizeVolumeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + volume_ = s; + break; + } + case 16: { + + sizeGib_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + } + + public static final int VOLUME_FIELD_NUMBER = 1; + private volatile java.lang.Object volume_; + /** + *
+   * Required. Volume to resize.
+   * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The volume. + */ + @java.lang.Override + public java.lang.String getVolume() { + java.lang.Object ref = volume_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volume_ = s; + return s; + } + } + /** + *
+   * Required. Volume to resize.
+   * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for volume. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVolumeBytes() { + java.lang.Object ref = volume_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIZE_GIB_FIELD_NUMBER = 2; + private long sizeGib_; + /** + *
+   * New Volume size, in GiB.
+   * 
+ * + * int64 size_gib = 2; + * @return The sizeGib. + */ + @java.lang.Override + public long getSizeGib() { + return sizeGib_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volume_); + } + if (sizeGib_ != 0L) { + output.writeInt64(2, sizeGib_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volume_); + } + if (sizeGib_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, sizeGib_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; + + if (!getVolume() + .equals(other.getVolume())) return false; + if (getSizeGib() + != other.getSizeGib()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + getVolume().hashCode(); + hash = (37 * hash) + SIZE_GIB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeGib()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for emergency resize Volume.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + volume_ = ""; + + sizeGib_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest build() { + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() { + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); + result.volume_ = volume_; + result.sizeGib_ = sizeGib_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other) { + if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) return this; + if (!other.getVolume().isEmpty()) { + volume_ = other.volume_; + onChanged(); + } + if (other.getSizeGib() != 0L) { + setSizeGib(other.getSizeGib()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object volume_ = ""; + /** + *
+     * Required. Volume to resize.
+     * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The volume. + */ + public java.lang.String getVolume() { + java.lang.Object ref = volume_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volume_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Volume to resize.
+     * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for volume. + */ + public com.google.protobuf.ByteString + getVolumeBytes() { + java.lang.Object ref = volume_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Volume to resize.
+     * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The volume to set. + * @return This builder for chaining. + */ + public Builder setVolume( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + volume_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Volume to resize.
+     * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearVolume() { + + volume_ = getDefaultInstance().getVolume(); + onChanged(); + return this; + } + /** + *
+     * Required. Volume to resize.
+     * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for volume to set. + * @return This builder for chaining. + */ + public Builder setVolumeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + volume_ = value; + onChanged(); + return this; + } + + private long sizeGib_ ; + /** + *
+     * New Volume size, in GiB.
+     * 
+ * + * int64 size_gib = 2; + * @return The sizeGib. + */ + @java.lang.Override + public long getSizeGib() { + return sizeGib_; + } + /** + *
+     * New Volume size, in GiB.
+     * 
+ * + * int64 size_gib = 2; + * @param value The sizeGib to set. + * @return This builder for chaining. + */ + public Builder setSizeGib(long value) { + + sizeGib_ = value; + onChanged(); + return this; + } + /** + *
+     * New Volume size, in GiB.
+     * 
+ * + * int64 size_gib = 2; + * @return This builder for chaining. + */ + public Builder clearSizeGib() { + + sizeGib_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) + private static final com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(); + } + + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResizeVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResizeVolumeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java new file mode 100644 index 0000000..2fc28ec --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResizeVolumeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Volume to resize.
+   * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The volume. + */ + java.lang.String getVolume(); + /** + *
+   * Required. Volume to resize.
+   * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for volume. + */ + com.google.protobuf.ByteString + getVolumeBytes(); + + /** + *
+   * New Volume size, in GiB.
+   * 
+ * + * int64 size_gib = 2; + * @return The sizeGib. + */ + long getSizeGib(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java new file mode 100644 index 0000000..694ee3d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java @@ -0,0 +1,2332 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Network template.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} + */ +public final class ServerNetworkTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) + ServerNetworkTemplateOrBuilder { +private static final long serialVersionUID = 0L; + // Use ServerNetworkTemplate.newBuilder() to construct. + private ServerNetworkTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ServerNetworkTemplate() { + name_ = ""; + applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + logicalInterfaces_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ServerNetworkTemplate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ServerNetworkTemplate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + applicableInstanceTypes_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + logicalInterfaces_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + logicalInterfaces_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + applicableInstanceTypes_ = applicableInstanceTypes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + logicalInterfaces_ = java.util.Collections.unmodifiableList(logicalInterfaces_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + } + + public interface LogicalInterfaceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Interface name.
+     * This is not a globally unique identifier.
+     * Name is unique only inside the ServerNetworkTemplate. This is of syntax
+     * <bond><interface_type_index><bond_mode> or <nic><interface_type_index>
+     * and forms part of the network template name.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Interface name.
+     * This is not a globally unique identifier.
+     * Name is unique only inside the ServerNetworkTemplate. This is of syntax
+     * <bond><interface_type_index><bond_mode> or <nic><interface_type_index>
+     * and forms part of the network template name.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Interface type.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+     * Interface type.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * @return The type. + */ + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType(); + + /** + *
+     * If true, interface must have network connected.
+     * 
+ * + * bool required = 3; + * @return The required. + */ + boolean getRequired(); + } + /** + *
+   * Logical interface.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} + */ + public static final class LogicalInterface extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) + LogicalInterfaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogicalInterface.newBuilder() to construct. + private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogicalInterface() { + name_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogicalInterface(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogicalInterface( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 24: { + + required_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); + } + + /** + *
+     * Interface type.
+     * 
+ * + * Protobuf enum {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} + */ + public enum InterfaceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Unspecified value.
+       * 
+ * + * INTERFACE_TYPE_UNSPECIFIED = 0; + */ + INTERFACE_TYPE_UNSPECIFIED(0), + /** + *
+       * Bond interface type.
+       * 
+ * + * BOND = 1; + */ + BOND(1), + /** + *
+       * NIC interface type.
+       * 
+ * + * NIC = 2; + */ + NIC(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Unspecified value.
+       * 
+ * + * INTERFACE_TYPE_UNSPECIFIED = 0; + */ + public static final int INTERFACE_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+       * Bond interface type.
+       * 
+ * + * BOND = 1; + */ + public static final int BOND_VALUE = 1; + /** + *
+       * NIC interface type.
+       * 
+ * + * NIC = 2; + */ + public static final int NIC_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InterfaceType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static InterfaceType forNumber(int value) { + switch (value) { + case 0: return INTERFACE_TYPE_UNSPECIFIED; + case 1: return BOND; + case 2: return NIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InterfaceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InterfaceType findValueByNumber(int number) { + return InterfaceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDescriptor().getEnumTypes().get(0); + } + + private static final InterfaceType[] VALUES = values(); + + public static InterfaceType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private InterfaceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Interface name.
+     * This is not a globally unique identifier.
+     * Name is unique only inside the ServerNetworkTemplate. This is of syntax
+     * <bond><interface_type_index><bond_mode> or <nic><interface_type_index>
+     * and forms part of the network template name.
+     * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * Interface name.
+     * This is not a globally unique identifier.
+     * Name is unique only inside the ServerNetworkTemplate. This is of syntax
+     * <bond><interface_type_index><bond_mode> or <nic><interface_type_index>
+     * and forms part of the network template name.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + *
+     * Interface type.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * Interface type.
+     * 
+ * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * @return The type. + */ + @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; + } + + public static final int REQUIRED_FIELD_NUMBER = 3; + private boolean required_; + /** + *
+     * If true, interface must have network connected.
+     * 
+ * + * bool required = 3; + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (required_ != false) { + output.writeBool(3, required_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + if (required_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, required_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; + + if (!getName() + .equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (getRequired() + != other.getRequired()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequired()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Logical interface.
+     * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + type_ = 0; + + required_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface build() { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface buildPartial() { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); + result.name_ = name_; + result.type_ = type_; + result.required_ = required_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { + if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getRequired() != false) { + setRequired(other.getRequired()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Interface name.
+       * This is not a globally unique identifier.
+       * Name is unique only inside the ServerNetworkTemplate. This is of syntax
+       * <bond><interface_type_index><bond_mode> or <nic><interface_type_index>
+       * and forms part of the network template name.
+       * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Interface name.
+       * This is not a globally unique identifier.
+       * Name is unique only inside the ServerNetworkTemplate. This is of syntax
+       * <bond><interface_type_index><bond_mode> or <nic><interface_type_index>
+       * and forms part of the network template name.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Interface name.
+       * This is not a globally unique identifier.
+       * Name is unique only inside the ServerNetworkTemplate. This is of syntax
+       * <bond><interface_type_index><bond_mode> or <nic><interface_type_index>
+       * and forms part of the network template name.
+       * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Interface name.
+       * This is not a globally unique identifier.
+       * Name is unique only inside the ServerNetworkTemplate. This is of syntax
+       * <bond><interface_type_index><bond_mode> or <nic><interface_type_index>
+       * and forms part of the network template name.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Interface name.
+       * This is not a globally unique identifier.
+       * Name is unique only inside the ServerNetworkTemplate. This is of syntax
+       * <bond><interface_type_index><bond_mode> or <nic><interface_type_index>
+       * and forms part of the network template name.
+       * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + *
+       * Interface type.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+       * Interface type.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + *
+       * Interface type.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * @return The type. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; + } + /** + *
+       * Interface type.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Interface type.
+       * 
+ * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private boolean required_ ; + /** + *
+       * If true, interface must have network connected.
+       * 
+ * + * bool required = 3; + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + /** + *
+       * If true, interface must have network connected.
+       * 
+ * + * bool required = 3; + * @param value The required to set. + * @return This builder for chaining. + */ + public Builder setRequired(boolean value) { + + required_ = value; + onChanged(); + return this; + } + /** + *
+       * If true, interface must have network connected.
+       * 
+ * + * bool required = 3; + * @return This builder for chaining. + */ + public Builder clearRequired() { + + required_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) + private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); + } + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Output only. Template's unique name. The full resource name follows the pattern:
+   * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
+   * Generally, the {server_network_template} follows the syntax of
+   * "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Output only. Template's unique name. The full resource name follows the pattern:
+   * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
+   * Generally, the {server_network_template} follows the syntax of
+   * "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLICABLE_INSTANCE_TYPES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList applicableInstanceTypes_; + /** + *
+   * Instance types this template is applicable to.
+   * 
+ * + * repeated string applicable_instance_types = 2; + * @return A list containing the applicableInstanceTypes. + */ + public com.google.protobuf.ProtocolStringList + getApplicableInstanceTypesList() { + return applicableInstanceTypes_; + } + /** + *
+   * Instance types this template is applicable to.
+   * 
+ * + * repeated string applicable_instance_types = 2; + * @return The count of applicableInstanceTypes. + */ + public int getApplicableInstanceTypesCount() { + return applicableInstanceTypes_.size(); + } + /** + *
+   * Instance types this template is applicable to.
+   * 
+ * + * repeated string applicable_instance_types = 2; + * @param index The index of the element to return. + * @return The applicableInstanceTypes at the given index. + */ + public java.lang.String getApplicableInstanceTypes(int index) { + return applicableInstanceTypes_.get(index); + } + /** + *
+   * Instance types this template is applicable to.
+   * 
+ * + * repeated string applicable_instance_types = 2; + * @param index The index of the value to return. + * @return The bytes of the applicableInstanceTypes at the given index. + */ + public com.google.protobuf.ByteString + getApplicableInstanceTypesBytes(int index) { + return applicableInstanceTypes_.getByteString(index); + } + + public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 3; + private java.util.List logicalInterfaces_; + /** + *
+   * Logical interfaces.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + @java.lang.Override + public java.util.List getLogicalInterfacesList() { + return logicalInterfaces_; + } + /** + *
+   * Logical interfaces.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + @java.lang.Override + public java.util.List + getLogicalInterfacesOrBuilderList() { + return logicalInterfaces_; + } + /** + *
+   * Logical interfaces.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + @java.lang.Override + public int getLogicalInterfacesCount() { + return logicalInterfaces_.size(); + } + /** + *
+   * Logical interfaces.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { + return logicalInterfaces_.get(index); + } + /** + *
+   * Logical interfaces.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { + return logicalInterfaces_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < applicableInstanceTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicableInstanceTypes_.getRaw(i)); + } + for (int i = 0; i < logicalInterfaces_.size(); i++) { + output.writeMessage(3, logicalInterfaces_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < applicableInstanceTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(applicableInstanceTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getApplicableInstanceTypesList().size(); + } + for (int i = 0; i < logicalInterfaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, logicalInterfaces_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getApplicableInstanceTypesList() + .equals(other.getApplicableInstanceTypesList())) return false; + if (!getLogicalInterfacesList() + .equals(other.getLogicalInterfacesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getApplicableInstanceTypesCount() > 0) { + hash = (37 * hash) + APPLICABLE_INSTANCE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getApplicableInstanceTypesList().hashCode(); + } + if (getLogicalInterfacesCount() > 0) { + hash = (37 * hash) + LOGICAL_INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getLogicalInterfacesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Network template.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogicalInterfacesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (logicalInterfacesBuilder_ == null) { + logicalInterfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + logicalInterfacesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate build() { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial() { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + applicableInstanceTypes_ = applicableInstanceTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.applicableInstanceTypes_ = applicableInstanceTypes_; + if (logicalInterfacesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + logicalInterfaces_ = java.util.Collections.unmodifiableList(logicalInterfaces_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.logicalInterfaces_ = logicalInterfaces_; + } else { + result.logicalInterfaces_ = logicalInterfacesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other) { + if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.applicableInstanceTypes_.isEmpty()) { + if (applicableInstanceTypes_.isEmpty()) { + applicableInstanceTypes_ = other.applicableInstanceTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureApplicableInstanceTypesIsMutable(); + applicableInstanceTypes_.addAll(other.applicableInstanceTypes_); + } + onChanged(); + } + if (logicalInterfacesBuilder_ == null) { + if (!other.logicalInterfaces_.isEmpty()) { + if (logicalInterfaces_.isEmpty()) { + logicalInterfaces_ = other.logicalInterfaces_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.addAll(other.logicalInterfaces_); + } + onChanged(); + } + } else { + if (!other.logicalInterfaces_.isEmpty()) { + if (logicalInterfacesBuilder_.isEmpty()) { + logicalInterfacesBuilder_.dispose(); + logicalInterfacesBuilder_ = null; + logicalInterfaces_ = other.logicalInterfaces_; + bitField0_ = (bitField0_ & ~0x00000002); + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogicalInterfacesFieldBuilder() : null; + } else { + logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. Template's unique name. The full resource name follows the pattern:
+     * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
+     * Generally, the {server_network_template} follows the syntax of
+     * "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Template's unique name. The full resource name follows the pattern:
+     * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
+     * Generally, the {server_network_template} follows the syntax of
+     * "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Template's unique name. The full resource name follows the pattern:
+     * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
+     * Generally, the {server_network_template} follows the syntax of
+     * "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Template's unique name. The full resource name follows the pattern:
+     * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
+     * Generally, the {server_network_template} follows the syntax of
+     * "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Output only. Template's unique name. The full resource name follows the pattern:
+     * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
+     * Generally, the {server_network_template} follows the syntax of
+     * "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureApplicableInstanceTypesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Instance types this template is applicable to.
+     * 
+ * + * repeated string applicable_instance_types = 2; + * @return A list containing the applicableInstanceTypes. + */ + public com.google.protobuf.ProtocolStringList + getApplicableInstanceTypesList() { + return applicableInstanceTypes_.getUnmodifiableView(); + } + /** + *
+     * Instance types this template is applicable to.
+     * 
+ * + * repeated string applicable_instance_types = 2; + * @return The count of applicableInstanceTypes. + */ + public int getApplicableInstanceTypesCount() { + return applicableInstanceTypes_.size(); + } + /** + *
+     * Instance types this template is applicable to.
+     * 
+ * + * repeated string applicable_instance_types = 2; + * @param index The index of the element to return. + * @return The applicableInstanceTypes at the given index. + */ + public java.lang.String getApplicableInstanceTypes(int index) { + return applicableInstanceTypes_.get(index); + } + /** + *
+     * Instance types this template is applicable to.
+     * 
+ * + * repeated string applicable_instance_types = 2; + * @param index The index of the value to return. + * @return The bytes of the applicableInstanceTypes at the given index. + */ + public com.google.protobuf.ByteString + getApplicableInstanceTypesBytes(int index) { + return applicableInstanceTypes_.getByteString(index); + } + /** + *
+     * Instance types this template is applicable to.
+     * 
+ * + * repeated string applicable_instance_types = 2; + * @param index The index to set the value at. + * @param value The applicableInstanceTypes to set. + * @return This builder for chaining. + */ + public Builder setApplicableInstanceTypes( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); + applicableInstanceTypes_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Instance types this template is applicable to.
+     * 
+ * + * repeated string applicable_instance_types = 2; + * @param value The applicableInstanceTypes to add. + * @return This builder for chaining. + */ + public Builder addApplicableInstanceTypes( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); + applicableInstanceTypes_.add(value); + onChanged(); + return this; + } + /** + *
+     * Instance types this template is applicable to.
+     * 
+ * + * repeated string applicable_instance_types = 2; + * @param values The applicableInstanceTypes to add. + * @return This builder for chaining. + */ + public Builder addAllApplicableInstanceTypes( + java.lang.Iterable values) { + ensureApplicableInstanceTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicableInstanceTypes_); + onChanged(); + return this; + } + /** + *
+     * Instance types this template is applicable to.
+     * 
+ * + * repeated string applicable_instance_types = 2; + * @return This builder for chaining. + */ + public Builder clearApplicableInstanceTypes() { + applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Instance types this template is applicable to.
+     * 
+ * + * repeated string applicable_instance_types = 2; + * @param value The bytes of the applicableInstanceTypes to add. + * @return This builder for chaining. + */ + public Builder addApplicableInstanceTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureApplicableInstanceTypesIsMutable(); + applicableInstanceTypes_.add(value); + onChanged(); + return this; + } + + private java.util.List logicalInterfaces_ = + java.util.Collections.emptyList(); + private void ensureLogicalInterfacesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; + + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public java.util.List getLogicalInterfacesList() { + if (logicalInterfacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(logicalInterfaces_); + } else { + return logicalInterfacesBuilder_.getMessageList(); + } + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public int getLogicalInterfacesCount() { + if (logicalInterfacesBuilder_ == null) { + return logicalInterfaces_.size(); + } else { + return logicalInterfacesBuilder_.getCount(); + } + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { + if (logicalInterfacesBuilder_ == null) { + return logicalInterfaces_.get(index); + } else { + return logicalInterfacesBuilder_.getMessage(index); + } + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public Builder setLogicalInterfaces( + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + if (logicalInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.set(index, value); + onChanged(); + } else { + logicalInterfacesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public Builder setLogicalInterfaces( + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + if (logicalInterfacesBuilder_ == null) { + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.set(index, builderForValue.build()); + onChanged(); + } else { + logicalInterfacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + if (logicalInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.add(value); + onChanged(); + } else { + logicalInterfacesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public Builder addLogicalInterfaces( + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + if (logicalInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.add(index, value); + onChanged(); + } else { + logicalInterfacesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public Builder addLogicalInterfaces( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + if (logicalInterfacesBuilder_ == null) { + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.add(builderForValue.build()); + onChanged(); + } else { + logicalInterfacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public Builder addLogicalInterfaces( + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + if (logicalInterfacesBuilder_ == null) { + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.add(index, builderForValue.build()); + onChanged(); + } else { + logicalInterfacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public Builder addAllLogicalInterfaces( + java.lang.Iterable values) { + if (logicalInterfacesBuilder_ == null) { + ensureLogicalInterfacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalInterfaces_); + onChanged(); + } else { + logicalInterfacesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public Builder clearLogicalInterfaces() { + if (logicalInterfacesBuilder_ == null) { + logicalInterfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + logicalInterfacesBuilder_.clear(); + } + return this; + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public Builder removeLogicalInterfaces(int index) { + if (logicalInterfacesBuilder_ == null) { + ensureLogicalInterfacesIsMutable(); + logicalInterfaces_.remove(index); + onChanged(); + } else { + logicalInterfacesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder getLogicalInterfacesBuilder( + int index) { + return getLogicalInterfacesFieldBuilder().getBuilder(index); + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { + if (logicalInterfacesBuilder_ == null) { + return logicalInterfaces_.get(index); } else { + return logicalInterfacesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public java.util.List + getLogicalInterfacesOrBuilderList() { + if (logicalInterfacesBuilder_ != null) { + return logicalInterfacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logicalInterfaces_); + } + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder( + int index) { + return getLogicalInterfacesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); + } + /** + *
+     * Logical interfaces.
+     * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + public java.util.List + getLogicalInterfacesBuilderList() { + return getLogicalInterfacesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + getLogicalInterfacesFieldBuilder() { + if (logicalInterfacesBuilder_ == null) { + logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder>( + logicalInterfaces_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + logicalInterfaces_ = null; + } + return logicalInterfacesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) + private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(); + } + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerNetworkTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerNetworkTemplate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java new file mode 100644 index 0000000..7c1339a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ServerNetworkTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. Template's unique name. The full resource name follows the pattern:
+   * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
+   * Generally, the {server_network_template} follows the syntax of
+   * "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Output only. Template's unique name. The full resource name follows the pattern:
+   * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
+   * Generally, the {server_network_template} follows the syntax of
+   * "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Instance types this template is applicable to.
+   * 
+ * + * repeated string applicable_instance_types = 2; + * @return A list containing the applicableInstanceTypes. + */ + java.util.List + getApplicableInstanceTypesList(); + /** + *
+   * Instance types this template is applicable to.
+   * 
+ * + * repeated string applicable_instance_types = 2; + * @return The count of applicableInstanceTypes. + */ + int getApplicableInstanceTypesCount(); + /** + *
+   * Instance types this template is applicable to.
+   * 
+ * + * repeated string applicable_instance_types = 2; + * @param index The index of the element to return. + * @return The applicableInstanceTypes at the given index. + */ + java.lang.String getApplicableInstanceTypes(int index); + /** + *
+   * Instance types this template is applicable to.
+   * 
+ * + * repeated string applicable_instance_types = 2; + * @param index The index of the value to return. + * @return The bytes of the applicableInstanceTypes at the given index. + */ + com.google.protobuf.ByteString + getApplicableInstanceTypesBytes(int index); + + /** + *
+   * Logical interfaces.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + java.util.List + getLogicalInterfacesList(); + /** + *
+   * Logical interfaces.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index); + /** + *
+   * Logical interfaces.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + int getLogicalInterfacesCount(); + /** + *
+   * Logical interfaces.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + java.util.List + getLogicalInterfacesOrBuilderList(); + /** + *
+   * Logical interfaces.
+   * 
+ * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + */ + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java new file mode 100644 index 0000000..693c5f0 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Message requesting to start a server.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} + */ +public final class StartInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) + StartInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use StartInstanceRequest.newBuilder() to construct. + private StartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StartInstanceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StartInstanceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StartInstanceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message requesting to start a server.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) + com.google.cloud.baremetalsolution.v2.StartInstanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StartInstanceRequest build() { + com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() { + com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceRequest other) { + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.StartInstanceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * 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. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) + private static final com.google.cloud.baremetalsolution.v2.StartInstanceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(); + } + + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java new file mode 100644 index 0000000..51f49d0 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java new file mode 100644 index 0000000..5c0a6d8 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java @@ -0,0 +1,429 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Response message from starting a server.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} + */ +public final class StartInstanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) + StartInstanceResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use StartInstanceResponse.newBuilder() to construct. + private StartInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StartInstanceResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StartInstanceResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StartInstanceResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StartInstanceResponse)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message from starting a server.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) + com.google.cloud.baremetalsolution.v2.StartInstanceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StartInstanceResponse build() { + com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial() { + com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceResponse) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceResponse other) { + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.StartInstanceResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) + private static final com.google.cloud.baremetalsolution.v2.StartInstanceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(); + } + + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java new file mode 100644 index 0000000..d1a3887 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java new file mode 100644 index 0000000..664e09a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Message requesting to stop a server.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} + */ +public final class StopInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) + StopInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use StopInstanceRequest.newBuilder() to construct. + private StopInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StopInstanceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StopInstanceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StopInstanceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message requesting to stop a server.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) + com.google.cloud.baremetalsolution.v2.StopInstanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StopInstanceRequest build() { + com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() { + com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceRequest other) { + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.StopInstanceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the resource.
+     * 
+ * + * 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. Name of the resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) + private static final com.google.cloud.baremetalsolution.v2.StopInstanceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(); + } + + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java new file mode 100644 index 0000000..ba9234c --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java new file mode 100644 index 0000000..ef520a4 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java @@ -0,0 +1,429 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Response message from stopping a server.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} + */ +public final class StopInstanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) + StopInstanceResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use StopInstanceResponse.newBuilder() to construct. + private StopInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StopInstanceResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StopInstanceResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StopInstanceResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StopInstanceResponse)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message from stopping a server.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) + com.google.cloud.baremetalsolution.v2.StopInstanceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StopInstanceResponse build() { + com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() { + com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceResponse) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceResponse other) { + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.StopInstanceResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) + private static final com.google.cloud.baremetalsolution.v2.StopInstanceResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(); + } + + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java new file mode 100644 index 0000000..cc35d1f --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java new file mode 100644 index 0000000..19dde2e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java @@ -0,0 +1,973 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Message requesting to updating a server.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} + */ +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) + UpdateInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateInstanceRequest.newBuilder() to construct. + private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateInstanceRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateInstanceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateInstanceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + } + + public static final int INSTANCE_FIELD_NUMBER = 1; + private com.google.cloud.baremetalsolution.v2.Instance instance_; + /** + *
+   * Required. The server to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the instance field is set. + */ + @java.lang.Override + public boolean hasInstance() { + return instance_ != null; + } + /** + *
+   * Required. The server to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The instance. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Instance getInstance() { + return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + } + /** + *
+   * Required. The server to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { + return getInstance(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * The list of fields to update.
+   * The currently supported fields are:
+   *   `labels`
+   *   `hyperthreading_enabled`
+   *   `os_image`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * The list of fields to update.
+   * The currently supported fields are:
+   *   `labels`
+   *   `hyperthreading_enabled`
+   *   `os_image`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * The list of fields to update.
+   * The currently supported fields are:
+   *   `labels`
+   *   `hyperthreading_enabled`
+   *   `os_image`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (instance_ != null) { + output.writeMessage(1, getInstance()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (instance_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInstance()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj; + + if (hasInstance() != other.hasInstance()) return false; + if (hasInstance()) { + if (!getInstance() + .equals(other.getInstance())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInstance()) { + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message requesting to updating a server.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (instanceBuilder_ == null) { + instance_ = null; + } else { + instance_ = null; + instanceBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest build() { + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial() { + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); + if (instanceBuilder_ == null) { + result.instance_ = instance_; + } else { + result.instance_ = instanceBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other) { + if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other.hasInstance()) { + mergeInstance(other.getInstance()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.baremetalsolution.v2.Instance instance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instanceBuilder_; + /** + *
+     * Required. The server to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the instance field is set. + */ + public boolean hasInstance() { + return instanceBuilder_ != null || instance_ != null; + } + /** + *
+     * Required. The server to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The instance. + */ + public com.google.cloud.baremetalsolution.v2.Instance getInstance() { + if (instanceBuilder_ == null) { + return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + } else { + return instanceBuilder_.getMessage(); + } + } + /** + *
+     * Required. The server to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) { + if (instanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + onChanged(); + } else { + instanceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The server to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setInstance( + com.google.cloud.baremetalsolution.v2.Instance.Builder builderForValue) { + if (instanceBuilder_ == null) { + instance_ = builderForValue.build(); + onChanged(); + } else { + instanceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The server to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance value) { + if (instanceBuilder_ == null) { + if (instance_ != null) { + instance_ = + com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + } else { + instance_ = value; + } + onChanged(); + } else { + instanceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The server to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearInstance() { + if (instanceBuilder_ == null) { + instance_ = null; + onChanged(); + } else { + instance_ = null; + instanceBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The server to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstanceBuilder() { + + onChanged(); + return getInstanceFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The server to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { + if (instanceBuilder_ != null) { + return instanceBuilder_.getMessageOrBuilder(); + } else { + return instance_ == null ? + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + } + } + /** + *
+     * Required. The server to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/instances/{instance}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + getInstanceFieldBuilder() { + if (instanceBuilder_ == null) { + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); + instance_ = null; + } + return instanceBuilder_; + } + + 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_; + /** + *
+     * The list of fields to update.
+     * The currently supported fields are:
+     *   `labels`
+     *   `hyperthreading_enabled`
+     *   `os_image`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * The list of fields to update.
+     * The currently supported fields are:
+     *   `labels`
+     *   `hyperthreading_enabled`
+     *   `os_image`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * The list of fields to update.
+     * The currently supported fields are:
+     *   `labels`
+     *   `hyperthreading_enabled`
+     *   `os_image`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The currently supported fields are:
+     *   `labels`
+     *   `hyperthreading_enabled`
+     *   `os_image`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The currently supported fields are:
+     *   `labels`
+     *   `hyperthreading_enabled`
+     *   `os_image`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The currently supported fields are:
+     *   `labels`
+     *   `hyperthreading_enabled`
+     *   `os_image`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The currently supported fields are:
+     *   `labels`
+     *   `hyperthreading_enabled`
+     *   `os_image`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * The list of fields to update.
+     * The currently supported fields are:
+     *   `labels`
+     *   `hyperthreading_enabled`
+     *   `os_image`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * The list of fields to update.
+     * The currently supported fields are:
+     *   `labels`
+     *   `hyperthreading_enabled`
+     *   `os_image`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) + private static final com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(); + } + + public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateInstanceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java new file mode 100644 index 0000000..61fb3c1 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface UpdateInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The server to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the instance field is set. + */ + boolean hasInstance(); + /** + *
+   * Required. The server to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The instance. + */ + com.google.cloud.baremetalsolution.v2.Instance getInstance(); + /** + *
+   * Required. The server to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/instances/{instance}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder(); + + /** + *
+   * The list of fields to update.
+   * The currently supported fields are:
+   *   `labels`
+   *   `hyperthreading_enabled`
+   *   `os_image`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * The list of fields to update.
+   * The currently supported fields are:
+   *   `labels`
+   *   `hyperthreading_enabled`
+   *   `os_image`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * The list of fields to update.
+   * The currently supported fields are:
+   *   `labels`
+   *   `hyperthreading_enabled`
+   *   `os_image`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java new file mode 100644 index 0000000..448e185 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java @@ -0,0 +1,949 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Message requesting to updating a network.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} + */ +public final class UpdateNetworkRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) + UpdateNetworkRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateNetworkRequest.newBuilder() to construct. + private UpdateNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateNetworkRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateNetworkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateNetworkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + private com.google.cloud.baremetalsolution.v2.Network network_; + /** + *
+   * Required. The network to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/networks/{network}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the network field is set. + */ + @java.lang.Override + public boolean hasNetwork() { + return network_ != null; + } + /** + *
+   * Required. The network to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/networks/{network}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The network. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network getNetwork() { + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + } + /** + *
+   * Required. The network to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/networks/{network}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { + return getNetwork(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`, `reservations`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`, `reservations`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`, `reservations`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (network_ != null) { + output.writeMessage(1, getNetwork()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (network_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNetwork()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj; + + if (hasNetwork() != other.hasNetwork()) return false; + if (hasNetwork()) { + if (!getNetwork() + .equals(other.getNetwork())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNetwork()) { + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message requesting to updating a network.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (networkBuilder_ == null) { + network_ = null; + } else { + network_ = null; + networkBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest build() { + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() { + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); + if (networkBuilder_ == null) { + result.network_ = network_; + } else { + result.network_ = networkBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other) { + if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) return this; + if (other.hasNetwork()) { + mergeNetwork(other.getNetwork()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.baremetalsolution.v2.Network network_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; + /** + *
+     * Required. The network to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/networks/{network}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the network field is set. + */ + public boolean hasNetwork() { + return networkBuilder_ != null || network_ != null; + } + /** + *
+     * Required. The network to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/networks/{network}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The network. + */ + public com.google.cloud.baremetalsolution.v2.Network getNetwork() { + if (networkBuilder_ == null) { + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + } else { + return networkBuilder_.getMessage(); + } + } + /** + *
+     * Required. The network to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/networks/{network}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { + if (networkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + onChanged(); + } else { + networkBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The network to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/networks/{network}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNetwork( + com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { + if (networkBuilder_ == null) { + network_ = builderForValue.build(); + onChanged(); + } else { + networkBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The network to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/networks/{network}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) { + if (networkBuilder_ == null) { + if (network_ != null) { + network_ = + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); + } else { + network_ = value; + } + onChanged(); + } else { + networkBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The network to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/networks/{network}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearNetwork() { + if (networkBuilder_ == null) { + network_ = null; + onChanged(); + } else { + network_ = null; + networkBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The network to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/networks/{network}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { + + onChanged(); + return getNetworkFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The network to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/networks/{network}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { + if (networkBuilder_ != null) { + return networkBuilder_.getMessageOrBuilder(); + } else { + return network_ == null ? + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + } + } + /** + *
+     * Required. The network to update.
+     * The `name` field is used to identify the instance to update.
+     * Format: projects/{project}/locations/{location}/networks/{network}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + getNetworkFieldBuilder() { + if (networkBuilder_ == null) { + networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), + getParentForChildren(), + isClean()); + network_ = null; + } + return networkBuilder_; + } + + 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_; + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`, `reservations`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`, `reservations`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`, `reservations`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`, `reservations`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`, `reservations`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`, `reservations`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`, `reservations`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`, `reservations`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`, `reservations`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) + private static final com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(); + } + + public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNetworkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateNetworkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java new file mode 100644 index 0000000..c43d1e2 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface UpdateNetworkRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The network to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/networks/{network}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the network field is set. + */ + boolean hasNetwork(); + /** + *
+   * Required. The network to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/networks/{network}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The network. + */ + com.google.cloud.baremetalsolution.v2.Network getNetwork(); + /** + *
+   * Required. The network to update.
+   * The `name` field is used to identify the instance to update.
+   * Format: projects/{project}/locations/{location}/networks/{network}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); + + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`, `reservations`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`, `reservations`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`, `reservations`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java new file mode 100644 index 0000000..81f29d7 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java @@ -0,0 +1,949 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +/** + *
+ * Message requesting to updating a NFS share.
+ * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} + */ +public final class UpdateNfsShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) + UpdateNfsShareRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateNfsShareRequest.newBuilder() to construct. + private UpdateNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateNfsShareRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateNfsShareRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateNfsShareRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; + if (nfsShare_ != null) { + subBuilder = nfsShare_.toBuilder(); + } + nfsShare_ = input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nfsShare_); + nfsShare_ = 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } 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); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + } + + public static final int NFS_SHARE_FIELD_NUMBER = 1; + private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; + /** + *
+   * Required. The NFS share to update.
+   * The `name` field is used to identify the NFS share to update.
+   * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nfsShare field is set. + */ + @java.lang.Override + public boolean hasNfsShare() { + return nfsShare_ != null; + } + /** + *
+   * Required. The NFS share to update.
+   * The `name` field is used to identify the NFS share to update.
+   * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The nfsShare. + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { + return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + } + /** + *
+   * Required. The NFS share to update.
+   * The `name` field is used to identify the NFS share to update.
+   * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { + return getNfsShare(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nfsShare_ != null) { + output.writeMessage(1, getNfsShare()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nfsShare_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNfsShare()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)) { + return super.equals(obj); + } + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj; + + if (hasNfsShare() != other.hasNfsShare()) return false; + if (hasNfsShare()) { + if (!getNfsShare() + .equals(other.getNfsShare())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNfsShare()) { + hash = (37 * hash) + NFS_SHARE_FIELD_NUMBER; + hash = (53 * hash) + getNfsShare().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message requesting to updating a NFS share.
+   * 
+ * + * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + } + + // Construct using com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nfsShareBuilder_ == null) { + nfsShare_ = null; + } else { + nfsShare_ = null; + nfsShareBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest build() { + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial() { + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); + if (nfsShareBuilder_ == null) { + result.nfsShare_ = nfsShare_; + } else { + result.nfsShare_ = nfsShareBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other) { + if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) return this; + if (other.hasNfsShare()) { + mergeNfsShare(other.getNfsShare()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsShareBuilder_; + /** + *
+     * Required. The NFS share to update.
+     * The `name` field is used to identify the NFS share to update.
+     * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nfsShare field is set. + */ + public boolean hasNfsShare() { + return nfsShareBuilder_ != null || nfsShare_ != null; + } + /** + *
+     * Required. The NFS share to update.
+     * The `name` field is used to identify the NFS share to update.
+     * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The nfsShare. + */ + public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { + if (nfsShareBuilder_ == null) { + return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + } else { + return nfsShareBuilder_.getMessage(); + } + } + /** + *
+     * Required. The NFS share to update.
+     * The `name` field is used to identify the NFS share to update.
+     * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { + if (nfsShareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nfsShare_ = value; + onChanged(); + } else { + nfsShareBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The NFS share to update.
+     * The `name` field is used to identify the NFS share to update.
+     * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNfsShare( + com.google.cloud.baremetalsolution.v2.NfsShare.Builder builderForValue) { + if (nfsShareBuilder_ == null) { + nfsShare_ = builderForValue.build(); + onChanged(); + } else { + nfsShareBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The NFS share to update.
+     * The `name` field is used to identify the NFS share to update.
+     * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { + if (nfsShareBuilder_ == null) { + if (nfsShare_ != null) { + nfsShare_ = + com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_).mergeFrom(value).buildPartial(); + } else { + nfsShare_ = value; + } + onChanged(); + } else { + nfsShareBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The NFS share to update.
+     * The `name` field is used to identify the NFS share to update.
+     * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearNfsShare() { + if (nfsShareBuilder_ == null) { + nfsShare_ = null; + onChanged(); + } else { + nfsShare_ = null; + nfsShareBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The NFS share to update.
+     * The `name` field is used to identify the NFS share to update.
+     * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsShareBuilder() { + + onChanged(); + return getNfsShareFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The NFS share to update.
+     * The `name` field is used to identify the NFS share to update.
+     * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { + if (nfsShareBuilder_ != null) { + return nfsShareBuilder_.getMessageOrBuilder(); + } else { + return nfsShare_ == null ? + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + } + } + /** + *
+     * Required. The NFS share to update.
+     * The `name` field is used to identify the NFS share to update.
+     * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+     * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + getNfsShareFieldBuilder() { + if (nfsShareBuilder_ == null) { + nfsShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + getNfsShare(), + getParentForChildren(), + isClean()); + nfsShare_ = null; + } + return nfsShareBuilder_; + } + + 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_; + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * The list of fields to update.
+     * The only currently supported fields are:
+     *   `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) + private static final com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(); + } + + public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNfsShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateNfsShareRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java new file mode 100644 index 0000000..76b8f82 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface UpdateNfsShareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The NFS share to update.
+   * The `name` field is used to identify the NFS share to update.
+   * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nfsShare field is set. + */ + boolean hasNfsShare(); + /** + *
+   * Required. The NFS share to update.
+   * The `name` field is used to identify the NFS share to update.
+   * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The nfsShare. + */ + com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(); + /** + *
+   * Required. The NFS share to update.
+   * The `name` field is used to identify the NFS share to update.
+   * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
+   * 
+ * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder(); + + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * The list of fields to update.
+   * The only currently supported fields are:
+   *   `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java similarity index 67% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java index e51a7f6..53ee6b0 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for updating a volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ -public final class UpdateVolumeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateVolumeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) UpdateVolumeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateVolumeRequest.newBuilder() to construct. private UpdateVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateVolumeRequest() {} + private UpdateVolumeRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateVolumeRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; - if (volume_ != null) { - subBuilder = volume_.toBuilder(); - } - volume_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(volume_); - volume_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; + if (volume_ != null) { + subBuilder = volume_.toBuilder(); + } + volume_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(volume_); + volume_ = 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 UpdateVolumeRequest( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Volume volume_; /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the volume field is set. */ @java.lang.Override @@ -157,38 +129,27 @@ public boolean hasVolume() { return volume_ != null; } /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The volume. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume getVolume() { - return volume_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() - : volume_; + return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; } /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { @@ -198,17 +159,17 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
    *   `snapshot_auto_delete_behavior`
    *   `snapshot_schedule_policy_name`
+   *   'labels'
+   *   'snapshot_enabled'
+   *   'snapshot_reservation_detail.reserved_space_percent'
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -216,17 +177,17 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
    *   `snapshot_auto_delete_behavior`
    *   `snapshot_schedule_policy_name`
+   *   'labels'
+   *   'snapshot_enabled'
+   *   'snapshot_reservation_detail.reserved_space_percent'
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -234,13 +195,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
    *   `snapshot_auto_delete_behavior`
    *   `snapshot_schedule_policy_name`
+   *   'labels'
+   *   'snapshot_enabled'
+   *   'snapshot_reservation_detail.reserved_space_percent'
    * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -251,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (volume_ != null) { output.writeMessage(1, getVolume()); } @@ -280,10 +242,12 @@ public int getSerializedSize() { size = 0; if (volume_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVolume()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVolume()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -293,21 +257,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other = - (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj; if (hasVolume() != other.hasVolume()) return false; if (hasVolume()) { - if (!getVolume().equals(other.getVolume())) return false; + if (!getVolume() + .equals(other.getVolume())) 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; @@ -334,127 +299,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for updating a volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) com.google.cloud.baremetalsolution.v2.UpdateVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.newBuilder() @@ -462,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override @@ -511,8 +467,7 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = - new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); if (volumeBuilder_ == null) { result.volume_ = volume_; } else { @@ -531,39 +486,38 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest)other); } else { super.mergeFrom(other); return this; @@ -571,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) return this; if (other.hasVolume()) { mergeVolume(other.getVolume()); } @@ -598,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,64 +563,45 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Volume volume_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> - volumeBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumeBuilder_; /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the volume field is set. */ public boolean hasVolume() { return volumeBuilder_ != null || volume_ != null; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The volume. */ public com.google.cloud.baremetalsolution.v2.Volume getVolume() { if (volumeBuilder_ == null) { - return volume_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() - : volume_; + return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; } else { return volumeBuilder_.getMessage(); } } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { @@ -684,19 +617,16 @@ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { + public Builder setVolume( + com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { if (volumeBuilder_ == null) { volume_ = builderForValue.build(); onChanged(); @@ -707,25 +637,19 @@ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume.Builder bu return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { if (volume_ != null) { volume_ = - com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_).mergeFrom(value).buildPartial(); } else { volume_ = value; } @@ -737,17 +661,13 @@ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearVolume() { if (volumeBuilder_ == null) { @@ -761,70 +681,54 @@ public Builder clearVolume() { return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumeBuilder() { - + onChanged(); return getVolumeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { if (volumeBuilder_ != null) { return volumeBuilder_.getMessageOrBuilder(); } else { - return volume_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() - : volume_; + return volume_ == null ? + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; } } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumeFieldBuilder() { if (volumeBuilder_ == null) { - volumeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - getVolume(), getParentForChildren(), isClean()); + volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + getVolume(), + getParentForChildren(), + isClean()); volume_ = null; } return volumeBuilder_; @@ -832,58 +736,54 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( 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_; /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
      *   `snapshot_auto_delete_behavior`
      *   `snapshot_schedule_policy_name`
+     *   'labels'
+     *   'snapshot_enabled'
+     *   'snapshot_reservation_detail.reserved_space_percent'
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
      *   `snapshot_auto_delete_behavior`
      *   `snapshot_schedule_policy_name`
+     *   'labels'
+     *   'snapshot_enabled'
+     *   'snapshot_reservation_detail.reserved_space_percent'
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
      *   `snapshot_auto_delete_behavior`
      *   `snapshot_schedule_policy_name`
+     *   'labels'
+     *   'snapshot_enabled'
+     *   'snapshot_reservation_detail.reserved_space_percent'
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -902,18 +802,20 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
      *   `snapshot_auto_delete_behavior`
      *   `snapshot_schedule_policy_name`
+     *   'labels'
+     *   'snapshot_enabled'
+     *   'snapshot_reservation_detail.reserved_space_percent'
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - 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(); @@ -924,13 +826,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
      *   `snapshot_auto_delete_behavior`
      *   `snapshot_schedule_policy_name`
+     *   'labels'
+     *   'snapshot_enabled'
+     *   'snapshot_reservation_detail.reserved_space_percent'
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -939,7 +842,7 @@ 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; } @@ -951,13 +854,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
      *   `snapshot_auto_delete_behavior`
      *   `snapshot_schedule_policy_name`
+     *   'labels'
+     *   'snapshot_enabled'
+     *   'snapshot_reservation_detail.reserved_space_percent'
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -974,30 +878,32 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
      *   `snapshot_auto_delete_behavior`
      *   `snapshot_schedule_policy_name`
+     *   'labels'
+     *   'snapshot_enabled'
+     *   'snapshot_reservation_detail.reserved_space_percent'
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
      *   `snapshot_auto_delete_behavior`
      *   `snapshot_schedule_policy_name`
+     *   'labels'
+     *   'snapshot_enabled'
+     *   'snapshot_reservation_detail.reserved_space_percent'
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -1006,42 +912,39 @@ 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_; } } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
      *   `snapshot_auto_delete_behavior`
      *   `snapshot_schedule_policy_name`
+     *   'labels'
+     *   'snapshot_enabled'
+     *   'snapshot_reservation_detail.reserved_space_percent'
      * 
* * .google.protobuf.FieldMask update_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> 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); } @@ -1051,12 +954,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(); } @@ -1065,16 +968,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1089,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java index 0b47392..345ca45 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java @@ -1,113 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface UpdateVolumeRequestOrBuilder - extends +public interface UpdateVolumeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the volume field is set. */ boolean hasVolume(); /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The volume. */ com.google.cloud.baremetalsolution.v2.Volume getVolume(); /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
    *   `snapshot_auto_delete_behavior`
    *   `snapshot_schedule_policy_name`
+   *   'labels'
+   *   'snapshot_enabled'
+   *   'snapshot_reservation_detail.reserved_space_percent'
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
    *   `snapshot_auto_delete_behavior`
    *   `snapshot_schedule_policy_name`
+   *   'labels'
+   *   'snapshot_enabled'
+   *   'snapshot_reservation_detail.reserved_space_percent'
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
    *   `snapshot_auto_delete_behavior`
    *   `snapshot_schedule_policy_name`
+   *   'labels'
+   *   'snapshot_enabled'
+   *   'snapshot_reservation_detail.reserved_space_percent'
    * 
* * .google.protobuf.FieldMask update_mask = 2; diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java similarity index 72% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java index edd19f7..4209331 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A network VRF.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ -public final class VRF extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VRF extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF) VRFOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VRF.newBuilder() to construct. private VRF(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VRF() { name_ = ""; state_ = 0; @@ -45,15 +27,16 @@ private VRF() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VRF(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VRF( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,58 +56,47 @@ private VRF( 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 40: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 50: { + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; + if (qosPolicy_ != null) { + subBuilder = qosPolicy_.toBuilder(); } - case 50: - { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; - if (qosPolicy_ != null) { - subBuilder = qosPolicy_.toBuilder(); - } - qosPolicy_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qosPolicy_); - qosPolicy_ = subBuilder.buildPartial(); - } - - break; + qosPolicy_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qosPolicy_); + qosPolicy_ = subBuilder.buildPartial(); } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment>(); - mutable_bitField0_ |= 0x00000001; - } - vlanAttachments_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), - extensionRegistry)); - break; + + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vlanAttachments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + vlanAttachments_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -132,7 +104,8 @@ private VRF( } 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)) { vlanAttachments_ = java.util.Collections.unmodifiableList(vlanAttachments_); @@ -141,35 +114,29 @@ private VRF( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, - com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } /** - * - * *
    * The possible states for this VRF.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.VRF.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The unspecified state.
      * 
@@ -178,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The vrf is provisioning.
      * 
@@ -188,8 +153,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROVISIONING(1), /** - * - * *
      * The vrf is provisioned.
      * 
@@ -201,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The unspecified state.
      * 
@@ -211,8 +172,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The vrf is provisioning.
      * 
@@ -221,8 +180,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONING_VALUE = 1; /** - * - * *
      * The vrf is provisioned.
      * 
@@ -231,6 +188,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -255,49 +213,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return PROVISIONED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return PROVISIONED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.VRF.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -314,56 +272,51 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.VRF.State) } - public interface QosPolicyOrBuilder - extends + public interface QosPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; - * * @return The bandwidthGbps. */ double getBandwidthGbps(); } /** - * - * *
    * QOS policy parameters.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class QosPolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class QosPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) QosPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QosPolicy.newBuilder() to construct. private QosPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private QosPolicy() {} + private QosPolicy() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QosPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private QosPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -382,18 +335,18 @@ private QosPolicy( case 0: done = true; break; - case 9: - { - bandwidthGbps_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 9: { + + bandwidthGbps_ = input.readDouble(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -401,39 +354,34 @@ private QosPolicy( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } public static final int BANDWIDTH_GBPS_FIELD_NUMBER = 1; private double bandwidthGbps_; /** - * - * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; - * * @return The bandwidthGbps. */ @java.lang.Override @@ -442,7 +390,6 @@ public double getBandwidthGbps() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -454,7 +401,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 (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { output.writeDouble(1, bandwidthGbps_); } @@ -468,7 +416,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, bandwidthGbps_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, bandwidthGbps_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -478,16 +427,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.baremetalsolution.v2.VRF.QosPolicy)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = - (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; if (java.lang.Double.doubleToLongBits(getBandwidthGbps()) - != java.lang.Double.doubleToLongBits(other.getBandwidthGbps())) return false; + != java.lang.Double.doubleToLongBits( + other.getBandwidthGbps())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -500,104 +449,95 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BANDWIDTH_GBPS_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBandwidthGbps())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBandwidthGbps())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -607,32 +547,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * QOS policy parameters.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder() @@ -640,15 +575,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(); @@ -658,9 +594,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override @@ -679,8 +615,7 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = - new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); result.bandwidthGbps_ = bandwidthGbps_; onBuilt(); return result; @@ -690,41 +625,38 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy)other); } else { super.mergeFrom(other); return this; @@ -732,8 +664,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) return this; if (other.getBandwidthGbps() != 0D) { setBandwidthGbps(other.getBandwidthGbps()); } @@ -756,8 +687,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -767,16 +697,13 @@ public Builder mergeFrom( return this; } - private double bandwidthGbps_; + private double bandwidthGbps_ ; /** - * - * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; - * * @return The bandwidthGbps. */ @java.lang.Override @@ -784,41 +711,34 @@ public double getBandwidthGbps() { return bandwidthGbps_; } /** - * - * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; - * * @param value The bandwidthGbps to set. * @return This builder for chaining. */ public Builder setBandwidthGbps(double value) { - + bandwidthGbps_ = value; onChanged(); return this; } /** - * - * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; - * * @return This builder for chaining. */ public Builder clearBandwidthGbps() { - + bandwidthGbps_ = 0D; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -831,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) private static final com.google.cloud.baremetalsolution.v2.VRF.QosPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(); } @@ -845,16 +765,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QosPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QosPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QosPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QosPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,95 +789,79 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface VlanAttachmentOrBuilder - extends + public interface VlanAttachmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; - * * @return The peerVlanId. */ long getPeerVlanId(); /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The peerIp. */ java.lang.String getPeerIp(); /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The bytes for peerIp. */ - com.google.protobuf.ByteString getPeerIpBytes(); + com.google.protobuf.ByteString + getPeerIpBytes(); /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The routerIp. */ java.lang.String getRouterIp(); /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The bytes for routerIp. */ - com.google.protobuf.ByteString getRouterIpBytes(); + com.google.protobuf.ByteString + getRouterIpBytes(); } /** - * - * *
    * VLAN attachment details.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class VlanAttachment extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class VlanAttachment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) VlanAttachmentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VlanAttachment.newBuilder() to construct. private VlanAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VlanAttachment() { peerIp_ = ""; routerIp_ = ""; @@ -965,15 +869,16 @@ private VlanAttachment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VlanAttachment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VlanAttachment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -992,32 +897,30 @@ private VlanAttachment( case 0: done = true; break; - case 8: - { - peerVlanId_ = input.readInt64(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { - peerIp_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + peerVlanId_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - routerIp_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + peerIp_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + routerIp_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1025,39 +928,34 @@ private VlanAttachment( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } public static final int PEER_VLAN_ID_FIELD_NUMBER = 1; private long peerVlanId_; /** - * - * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; - * * @return The peerVlanId. */ @java.lang.Override @@ -1068,14 +966,11 @@ public long getPeerVlanId() { public static final int PEER_IP_FIELD_NUMBER = 2; private volatile java.lang.Object peerIp_; /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The peerIp. */ @java.lang.Override @@ -1084,29 +979,29 @@ public java.lang.String getPeerIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; } } /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The bytes for peerIp. */ @java.lang.Override - public com.google.protobuf.ByteString getPeerIpBytes() { + public com.google.protobuf.ByteString + getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1117,14 +1012,11 @@ public com.google.protobuf.ByteString getPeerIpBytes() { public static final int ROUTER_IP_FIELD_NUMBER = 3; private volatile java.lang.Object routerIp_; /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The routerIp. */ @java.lang.Override @@ -1133,29 +1025,29 @@ public java.lang.String getRouterIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; } } /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The bytes for routerIp. */ @java.lang.Override - public com.google.protobuf.ByteString getRouterIpBytes() { + public com.google.protobuf.ByteString + getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1164,7 +1056,6 @@ public com.google.protobuf.ByteString getRouterIpBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1176,7 +1067,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 (peerVlanId_ != 0L) { output.writeInt64(1, peerVlanId_); } @@ -1196,7 +1088,8 @@ public int getSerializedSize() { size = 0; if (peerVlanId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, peerVlanId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, peerVlanId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerIp_); @@ -1212,17 +1105,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.baremetalsolution.v2.VRF.VlanAttachment)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = - (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; - if (getPeerVlanId() != other.getPeerVlanId()) return false; - if (!getPeerIp().equals(other.getPeerIp())) return false; - if (!getRouterIp().equals(other.getRouterIp())) return false; + if (getPeerVlanId() + != other.getPeerVlanId()) return false; + if (!getPeerIp() + .equals(other.getPeerIp())) return false; + if (!getRouterIp() + .equals(other.getRouterIp())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1235,7 +1130,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PEER_VLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPeerVlanId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPeerVlanId()); hash = (37 * hash) + PEER_IP_FIELD_NUMBER; hash = (53 * hash) + getPeerIp().hashCode(); hash = (37 * hash) + ROUTER_IP_FIELD_NUMBER; @@ -1246,94 +1142,87 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1343,32 +1232,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * VLAN attachment details.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.newBuilder() @@ -1376,15 +1260,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(); @@ -1398,9 +1283,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override @@ -1419,8 +1304,7 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = - new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); result.peerVlanId_ = peerVlanId_; result.peerIp_ = peerIp_; result.routerIp_ = routerIp_; @@ -1432,41 +1316,38 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment)other); } else { super.mergeFrom(other); return this; @@ -1474,8 +1355,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) return this; if (other.getPeerVlanId() != 0L) { setPeerVlanId(other.getPeerVlanId()); } @@ -1506,8 +1386,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1517,16 +1396,13 @@ public Builder mergeFrom( return this; } - private long peerVlanId_; + private long peerVlanId_ ; /** - * - * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; - * * @return The peerVlanId. */ @java.lang.Override @@ -1534,36 +1410,30 @@ public long getPeerVlanId() { return peerVlanId_; } /** - * - * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; - * * @param value The peerVlanId to set. * @return This builder for chaining. */ public Builder setPeerVlanId(long value) { - + peerVlanId_ = value; onChanged(); return this; } /** - * - * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; - * * @return This builder for chaining. */ public Builder clearPeerVlanId() { - + peerVlanId_ = 0L; onChanged(); return this; @@ -1571,20 +1441,18 @@ public Builder clearPeerVlanId() { private java.lang.Object peerIp_ = ""; /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @return The peerIp. */ public java.lang.String getPeerIp() { java.lang.Object ref = peerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; @@ -1593,21 +1461,20 @@ public java.lang.String getPeerIp() { } } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @return The bytes for peerIp. */ - public com.google.protobuf.ByteString getPeerIpBytes() { + public com.google.protobuf.ByteString + getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1615,61 +1482,54 @@ public com.google.protobuf.ByteString getPeerIpBytes() { } } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @param value The peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIp(java.lang.String value) { + public Builder setPeerIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + peerIp_ = value; onChanged(); return this; } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @return This builder for chaining. */ public Builder clearPeerIp() { - + peerIp_ = getDefaultInstance().getPeerIp(); onChanged(); return this; } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @param value The bytes for peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIpBytes(com.google.protobuf.ByteString value) { + public Builder setPeerIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerIp_ = value; onChanged(); return this; @@ -1677,20 +1537,18 @@ public Builder setPeerIpBytes(com.google.protobuf.ByteString value) { private java.lang.Object routerIp_ = ""; /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @return The routerIp. */ public java.lang.String getRouterIp() { java.lang.Object ref = routerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; @@ -1699,21 +1557,20 @@ public java.lang.String getRouterIp() { } } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @return The bytes for routerIp. */ - public com.google.protobuf.ByteString getRouterIpBytes() { + public com.google.protobuf.ByteString + getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1721,66 +1578,58 @@ public com.google.protobuf.ByteString getRouterIpBytes() { } } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @param value The routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIp(java.lang.String value) { + public Builder setRouterIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + routerIp_ = value; onChanged(); return this; } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @return This builder for chaining. */ public Builder clearRouterIp() { - + routerIp_ = getDefaultInstance().getRouterIp(); onChanged(); return this; } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @param value The bytes for routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIpBytes(com.google.protobuf.ByteString value) { + public Builder setRouterIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routerIp_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1793,12 +1642,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) private static final com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(); } @@ -1807,16 +1656,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VlanAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VlanAttachment(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VlanAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VlanAttachment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1831,19 +1680,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1852,29 +1699,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @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 { @@ -1885,50 +1732,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRF.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = - com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } public static final int QOS_POLICY_FIELD_NUMBER = 6; private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return Whether the qosPolicy field is set. */ @java.lang.Override @@ -1936,25 +1771,18 @@ public boolean hasQosPolicy() { return qosPolicy_ != null; } /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return The qosPolicy. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { - return qosPolicy_ == null - ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() - : qosPolicy_; + return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; } /** - * - * *
    * The QOS policy applied to this VRF.
    * 
@@ -1969,81 +1797,64 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy public static final int VLAN_ATTACHMENTS_FIELD_NUMBER = 7; private java.util.List vlanAttachments_; /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override - public java.util.List - getVlanAttachmentsList() { + public java.util.List getVlanAttachmentsList() { return vlanAttachments_; } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override - public java.util.List + public java.util.List getVlanAttachmentsOrBuilderList() { return vlanAttachments_; } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override public int getVlanAttachmentsCount() { return vlanAttachments_.size(); } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { return vlanAttachments_.get(index); } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder - getVlanAttachmentsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( + int index) { return vlanAttachments_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2055,7 +1866,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_); } @@ -2081,13 +1893,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.VRF.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (qosPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getQosPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getQosPolicy()); } for (int i = 0; i < vlanAttachments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, vlanAttachments_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, vlanAttachments_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2097,21 +1912,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.baremetalsolution.v2.VRF)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF other = - (com.google.cloud.baremetalsolution.v2.VRF) obj; + com.google.cloud.baremetalsolution.v2.VRF other = (com.google.cloud.baremetalsolution.v2.VRF) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasQosPolicy() != other.hasQosPolicy()) return false; if (hasQosPolicy()) { - if (!getQosPolicy().equals(other.getQosPolicy())) return false; + if (!getQosPolicy() + .equals(other.getQosPolicy())) return false; } - if (!getVlanAttachmentsList().equals(other.getVlanAttachmentsList())) return false; + if (!getVlanAttachmentsList() + .equals(other.getVlanAttachmentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2140,127 +1957,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF 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.baremetalsolution.v2.VRF parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 network VRF.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF) com.google.cloud.baremetalsolution.v2.VRFOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, - com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.newBuilder() @@ -2268,17 +2076,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) { getVlanAttachmentsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2302,9 +2110,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override @@ -2323,8 +2131,7 @@ public com.google.cloud.baremetalsolution.v2.VRF build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF result = - new com.google.cloud.baremetalsolution.v2.VRF(this); + com.google.cloud.baremetalsolution.v2.VRF result = new com.google.cloud.baremetalsolution.v2.VRF(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.state_ = state_; @@ -2350,39 +2157,38 @@ public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF)other); } else { super.mergeFrom(other); return this; @@ -2419,10 +2225,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF other) { vlanAttachmentsBuilder_ = null; vlanAttachments_ = other.vlanAttachments_; bitField0_ = (bitField0_ & ~0x00000001); - vlanAttachmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVlanAttachmentsFieldBuilder() - : null; + vlanAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVlanAttachmentsFieldBuilder() : null; } else { vlanAttachmentsBuilder_.addAllMessages(other.vlanAttachments_); } @@ -2456,25 +2261,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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; @@ -2483,21 +2285,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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 { @@ -2505,61 +2306,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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 name of the VRF.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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; @@ -2567,65 +2361,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = - com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2633,24 +2413,21 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.VRF.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2658,47 +2435,34 @@ public Builder clearState() { private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> - qosPolicyBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> qosPolicyBuilder_; /** - * - * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return Whether the qosPolicy field is set. */ public boolean hasQosPolicy() { return qosPolicyBuilder_ != null || qosPolicy_ != null; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return The qosPolicy. */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { if (qosPolicyBuilder_ == null) { - return qosPolicy_ == null - ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() - : qosPolicy_; + return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; } else { return qosPolicyBuilder_.getMessage(); } } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2719,8 +2483,6 @@ public Builder setQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2739,8 +2501,6 @@ public Builder setQosPolicy( return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2751,9 +2511,7 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic if (qosPolicyBuilder_ == null) { if (qosPolicy_ != null) { qosPolicy_ = - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_).mergeFrom(value).buildPartial(); } else { qosPolicy_ = value; } @@ -2765,8 +2523,6 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2785,8 +2541,6 @@ public Builder clearQosPolicy() { return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2794,13 +2548,11 @@ public Builder clearQosPolicy() { * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder getQosPolicyBuilder() { - + onChanged(); return getQosPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2811,14 +2563,11 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy if (qosPolicyBuilder_ != null) { return qosPolicyBuilder_.getMessageOrBuilder(); } else { - return qosPolicy_ == null - ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() - : qosPolicy_; + return qosPolicy_ == null ? + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; } } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2826,52 +2575,39 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> getQosPolicyFieldBuilder() { if (qosPolicyBuilder_ == null) { - qosPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( - getQosPolicy(), getParentForChildren(), isClean()); + qosPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( + getQosPolicy(), + getParentForChildren(), + isClean()); qosPolicy_ = null; } return qosPolicyBuilder_; } - private java.util.List - vlanAttachments_ = java.util.Collections.emptyList(); - + private java.util.List vlanAttachments_ = + java.util.Collections.emptyList(); private void ensureVlanAttachmentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = - new java.util.ArrayList( - vlanAttachments_); + vlanAttachments_ = new java.util.ArrayList(vlanAttachments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> - vlanAttachmentsBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> vlanAttachmentsBuilder_; /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public java.util.List - getVlanAttachmentsList() { + public java.util.List getVlanAttachmentsList() { if (vlanAttachmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(vlanAttachments_); } else { @@ -2879,14 +2615,11 @@ private void ensureVlanAttachmentsIsMutable() { } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public int getVlanAttachmentsCount() { if (vlanAttachmentsBuilder_ == null) { @@ -2896,14 +2629,11 @@ public int getVlanAttachmentsCount() { } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -2913,14 +2643,11 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachmen } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder setVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -2937,18 +2664,14 @@ public Builder setVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder setVlanAttachments( - int index, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.set(index, builderForValue.build()); @@ -2959,17 +2682,13 @@ public Builder setVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public Builder addVlanAttachments( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { + public Builder addVlanAttachments(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { if (vlanAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2983,14 +2702,11 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -3007,14 +2723,11 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addVlanAttachments( com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { @@ -3028,18 +2741,14 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addVlanAttachments( - int index, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(index, builderForValue.build()); @@ -3050,21 +2759,18 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addAllVlanAttachments( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vlanAttachments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vlanAttachments_); onChanged(); } else { vlanAttachmentsBuilder_.addAllMessages(values); @@ -3072,14 +2778,11 @@ public Builder addAllVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder clearVlanAttachments() { if (vlanAttachmentsBuilder_ == null) { @@ -3092,14 +2795,11 @@ public Builder clearVlanAttachments() { return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder removeVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -3112,50 +2812,39 @@ public Builder removeVlanAttachments(int index) { return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder - getVlanAttachmentsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder getVlanAttachmentsBuilder( + int index) { return getVlanAttachmentsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder - getVlanAttachmentsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( + int index) { if (vlanAttachmentsBuilder_ == null) { - return vlanAttachments_.get(index); - } else { + return vlanAttachments_.get(index); } else { return vlanAttachmentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> - getVlanAttachmentsOrBuilderList() { + public java.util.List + getVlanAttachmentsOrBuilderList() { if (vlanAttachmentsBuilder_ != null) { return vlanAttachmentsBuilder_.getMessageOrBuilderList(); } else { @@ -3163,63 +2852,45 @@ public Builder removeVlanAttachments(int index) { } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder - addVlanAttachmentsBuilder() { - return getVlanAttachmentsFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder() { + return getVlanAttachmentsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder - addVlanAttachmentsBuilder(int index) { - return getVlanAttachmentsFieldBuilder() - .addBuilder( - index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder( + int index) { + return getVlanAttachmentsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public java.util.List - getVlanAttachmentsBuilderList() { + public java.util.List + getVlanAttachmentsBuilderList() { return getVlanAttachmentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> getVlanAttachmentsFieldBuilder() { if (vlanAttachmentsBuilder_ == null) { - vlanAttachmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( + vlanAttachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( vlanAttachments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3228,9 +2899,9 @@ public Builder removeVlanAttachments(int index) { } return vlanAttachmentsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3240,12 +2911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF) private static final com.google.cloud.baremetalsolution.v2.VRF DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF(); } @@ -3254,16 +2925,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VRF parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VRF(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VRF parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VRF(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3278,4 +2949,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java index f8770b7..deba571 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface VRFOrBuilder - extends +public interface VRFOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.VRF.State getState(); /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return Whether the qosPolicy field is set. */ boolean hasQosPolicy(); /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return The qosPolicy. */ com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy(); /** - * - * *
    * The QOS policy applied to this VRF.
    * 
@@ -109,59 +74,45 @@ public interface VRFOrBuilder com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicyOrBuilder(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - java.util.List getVlanAttachmentsList(); + java.util.List + getVlanAttachmentsList(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ int getVlanAttachmentsCount(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - java.util.List + java.util.List getVlanAttachmentsOrBuilderList(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( int index); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java similarity index 58% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java index caf32b5..926e0a1 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java @@ -1,61 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A storage volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ -public final class Volume extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Volume extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume) VolumeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Volume() { name_ = ""; + id_ = ""; storageType_ = 0; state_ = 0; snapshotAutoDeleteBehavior_ = 0; - snapshotSchedulePolicy_ = ""; + pod_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Volume(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Volume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -64,6 +48,7 @@ private Volume( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -74,87 +59,105 @@ private Volume( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - storageType_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + storageType_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 32: - { - requestedSizeGib_ = input.readInt64(); - break; - } - case 40: - { - currentSizeGib_ = input.readInt64(); - break; - } - case 48: - { - autoGrownSizeGib_ = input.readInt64(); - break; + state_ = rawValue; + break; + } + case 32: { + + requestedSizeGib_ = input.readInt64(); + break; + } + case 40: { + + currentSizeGib_ = input.readInt64(); + break; + } + case 48: { + + autoGrownSizeGib_ = input.readInt64(); + break; + } + case 56: { + + remainingSpaceGib_ = input.readInt64(); + break; + } + case 66: { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder subBuilder = null; + if (snapshotReservationDetail_ != null) { + subBuilder = snapshotReservationDetail_.toBuilder(); } - case 56: - { - remainingSpaceGib_ = input.readInt64(); - break; + snapshotReservationDetail_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshotReservationDetail_); + snapshotReservationDetail_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - subBuilder = null; - if (snapshotReservationDetail_ != null) { - subBuilder = snapshotReservationDetail_.toBuilder(); - } - snapshotReservationDetail_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshotReservationDetail_); - snapshotReservationDetail_ = subBuilder.buildPartial(); - } - break; - } - case 72: - { - int rawValue = input.readEnum(); + break; + } + case 72: { + int rawValue = input.readEnum(); - snapshotAutoDeleteBehavior_ = rawValue; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + snapshotAutoDeleteBehavior_ = rawValue; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); - snapshotSchedulePolicy_ = s; - break; + id_ = s; + break; + } + case 98: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 104: { + + snapshotEnabled_ = input.readBool(); + break; + } + case 112: { + + emergencySizeGib_ = input.readInt64(); + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + + pod_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -162,41 +165,48 @@ private Volume( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 12: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, - com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } /** - * - * *
    * The storage type for a volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.StorageType} */ - public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The storage type for this volume is unknown.
      * 
@@ -205,8 +215,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ STORAGE_TYPE_UNSPECIFIED(0), /** - * - * *
      * The storage type for this volume is SSD.
      * 
@@ -215,8 +223,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ SSD(1), /** - * - * *
      * This storage type for this volume is HDD.
      * 
@@ -228,8 +234,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The storage type for this volume is unknown.
      * 
@@ -238,8 +242,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The storage type for this volume is SSD.
      * 
@@ -248,8 +250,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SSD_VALUE = 1; /** - * - * *
      * This storage type for this volume is HDD.
      * 
@@ -258,6 +258,7 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HDD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -282,49 +283,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: - return STORAGE_TYPE_UNSPECIFIED; - case 1: - return SSD; - case 2: - return HDD; - default: - return null; + case 0: return STORAGE_TYPE_UNSPECIFIED; + case 1: return SSD; + case 2: return HDD; + 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< + StorageType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageType findValueByNumber(int number) { + return StorageType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(0); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -342,18 +343,15 @@ private StorageType(int value) { } /** - * - * *
    * The possible states for a storage volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The storage volume is in an unknown state.
      * 
@@ -362,8 +360,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The storage volume is being created.
      * 
@@ -372,8 +368,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The storage volume is ready for use.
      * 
@@ -382,8 +376,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * The storage volume has been requested to be deleted.
      * 
@@ -395,8 +387,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The storage volume is in an unknown state.
      * 
@@ -405,8 +395,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The storage volume is being created.
      * 
@@ -415,8 +403,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The storage volume is ready for use.
      * 
@@ -425,8 +411,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * The storage volume has been requested to be deleted.
      * 
@@ -435,6 +419,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -459,51 +444,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - case 3: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return DELETING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -521,8 +505,6 @@ private State(int value) { } /** - * - * *
    * The kinds of auto delete behavior to use when snapshot reserved space is
    * full.
@@ -530,10 +512,9 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior}
    */
-  public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SnapshotAutoDeleteBehavior
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * The unspecified behavior.
      * 
@@ -542,8 +523,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED(0), /** - * - * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -553,8 +532,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe
      */
     DISABLED(1),
     /**
-     *
-     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -563,8 +540,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ OLDEST_FIRST(2), /** - * - * *
      * Delete the newest snapshots first.
      * 
@@ -576,8 +551,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe ; /** - * - * *
      * The unspecified behavior.
      * 
@@ -586,8 +559,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -597,8 +568,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe
      */
     public static final int DISABLED_VALUE = 1;
     /**
-     *
-     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -607,8 +576,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ public static final int OLDEST_FIRST_VALUE = 2; /** - * - * *
      * Delete the newest snapshots first.
      * 
@@ -617,6 +584,7 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ public static final int NEWEST_FIRST_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -641,16 +609,11 @@ public static SnapshotAutoDeleteBehavior valueOf(int value) { */ public static SnapshotAutoDeleteBehavior forNumber(int value) { switch (value) { - case 0: - return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; - case 1: - return DISABLED; - case 2: - return OLDEST_FIRST; - case 3: - return NEWEST_FIRST; - default: - return null; + case 0: return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; + case 1: return DISABLED; + case 2: return OLDEST_FIRST; + case 3: return NEWEST_FIRST; + default: return null; } } @@ -658,28 +621,28 @@ public static SnapshotAutoDeleteBehavior forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SnapshotAutoDeleteBehavior> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SnapshotAutoDeleteBehavior findValueByNumber(int number) { + return SnapshotAutoDeleteBehavior.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SnapshotAutoDeleteBehavior findValueByNumber(int number) { - return SnapshotAutoDeleteBehavior.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(2); } @@ -688,7 +651,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static SnapshotAutoDeleteBehavior valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -705,27 +669,21 @@ private SnapshotAutoDeleteBehavior(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior) } - public interface SnapshotReservationDetailOrBuilder - extends + public interface SnapshotReservationDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; - * * @return The reservedSpaceGib. */ long getReservedSpaceGib(); /** - * - * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -734,57 +692,66 @@ public interface SnapshotReservationDetailOrBuilder
      * 
* * int32 reserved_space_used_percent = 2; - * * @return The reservedSpaceUsedPercent. */ int getReservedSpaceUsedPercent(); /** - * - * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; - * * @return The reservedSpaceRemainingGib. */ long getReservedSpaceRemainingGib(); + + /** + *
+     * Percent of the total Volume size reserved for snapshot copies.
+     * Enabling snapshots requires reserving 20% or more of
+     * the storage volume space for snapshots. Maximum reserved space for
+     * snapshots is 40%.
+     * Setting this field will effectively set snapshot_enabled to true.
+     * 
+ * + * int32 reserved_space_percent = 4; + * @return The reservedSpacePercent. + */ + int getReservedSpacePercent(); } /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class SnapshotReservationDetail extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SnapshotReservationDetail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) SnapshotReservationDetailOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SnapshotReservationDetail.newBuilder() to construct. private SnapshotReservationDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SnapshotReservationDetail() {} + private SnapshotReservationDetail() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SnapshotReservationDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SnapshotReservationDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -803,28 +770,33 @@ private SnapshotReservationDetail( case 0: done = true; break; - case 8: - { - reservedSpaceGib_ = input.readInt64(); - break; - } - case 16: - { - reservedSpaceUsedPercent_ = input.readInt32(); - break; - } - case 24: - { - reservedSpaceRemainingGib_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + reservedSpaceGib_ = input.readInt64(); + break; + } + case 16: { + + reservedSpaceUsedPercent_ = input.readInt32(); + break; + } + case 24: { + + reservedSpaceRemainingGib_ = input.readInt64(); + break; + } + case 32: { + + reservedSpacePercent_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -832,39 +804,34 @@ private SnapshotReservationDetail( } 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.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); } public static final int RESERVED_SPACE_GIB_FIELD_NUMBER = 1; private long reservedSpaceGib_; /** - * - * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; - * * @return The reservedSpaceGib. */ @java.lang.Override @@ -875,8 +842,6 @@ public long getReservedSpaceGib() { public static final int RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER = 2; private int reservedSpaceUsedPercent_; /** - * - * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -885,7 +850,6 @@ public long getReservedSpaceGib() {
      * 
* * int32 reserved_space_used_percent = 2; - * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -896,15 +860,12 @@ public int getReservedSpaceUsedPercent() { public static final int RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER = 3; private long reservedSpaceRemainingGib_; /** - * - * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; - * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -912,8 +873,26 @@ public long getReservedSpaceRemainingGib() { return reservedSpaceRemainingGib_; } - private byte memoizedIsInitialized = -1; + public static final int RESERVED_SPACE_PERCENT_FIELD_NUMBER = 4; + private int reservedSpacePercent_; + /** + *
+     * Percent of the total Volume size reserved for snapshot copies.
+     * Enabling snapshots requires reserving 20% or more of
+     * the storage volume space for snapshots. Maximum reserved space for
+     * snapshots is 40%.
+     * Setting this field will effectively set snapshot_enabled to true.
+     * 
+ * + * int32 reserved_space_percent = 4; + * @return The reservedSpacePercent. + */ + @java.lang.Override + public int getReservedSpacePercent() { + return reservedSpacePercent_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -925,7 +904,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 (reservedSpaceGib_ != 0L) { output.writeInt64(1, reservedSpaceGib_); } @@ -935,6 +915,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reservedSpaceRemainingGib_ != 0L) { output.writeInt64(3, reservedSpaceRemainingGib_); } + if (reservedSpacePercent_ != 0) { + output.writeInt32(4, reservedSpacePercent_); + } unknownFields.writeTo(output); } @@ -945,15 +928,20 @@ public int getSerializedSize() { size = 0; if (reservedSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, reservedSpaceGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, reservedSpaceGib_); } if (reservedSpaceUsedPercent_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(2, reservedSpaceUsedPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, reservedSpaceUsedPercent_); } if (reservedSpaceRemainingGib_ != 0L) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size(3, reservedSpaceRemainingGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, reservedSpaceRemainingGib_); + } + if (reservedSpacePercent_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, reservedSpacePercent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -963,18 +951,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.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = - (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; - if (getReservedSpaceGib() != other.getReservedSpaceGib()) return false; - if (getReservedSpaceUsedPercent() != other.getReservedSpaceUsedPercent()) return false; - if (getReservedSpaceRemainingGib() != other.getReservedSpaceRemainingGib()) return false; + if (getReservedSpaceGib() + != other.getReservedSpaceGib()) return false; + if (getReservedSpaceUsedPercent() + != other.getReservedSpaceUsedPercent()) return false; + if (getReservedSpaceRemainingGib() + != other.getReservedSpaceRemainingGib()) return false; + if (getReservedSpacePercent() + != other.getReservedSpacePercent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -987,106 +978,102 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESERVED_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReservedSpaceGib()); hash = (37 * hash) + RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpaceUsedPercent(); hash = (37 * hash) + RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceRemainingGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReservedSpaceRemainingGib()); + hash = (37 * hash) + RESERVED_SPACE_PERCENT_FIELD_NUMBER; + hash = (53 * hash) + getReservedSpacePercent(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1096,50 +1083,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - .class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); } - // Construct using - // com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() + // Construct using com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1149,26 +1130,25 @@ public Builder clear() { reservedSpaceRemainingGib_ = 0L; + reservedSpacePercent_ = 0; + return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail build() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = - buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1177,11 +1157,11 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = - new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); result.reservedSpaceGib_ = reservedSpaceGib_; result.reservedSpaceUsedPercent_ = reservedSpaceUsedPercent_; result.reservedSpaceRemainingGib_ = reservedSpaceRemainingGib_; + result.reservedSpacePercent_ = reservedSpacePercent_; onBuilt(); return result; } @@ -1190,54 +1170,46 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) other); + if (other instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { - if (other - == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { + if (other == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance()) return this; if (other.getReservedSpaceGib() != 0L) { setReservedSpaceGib(other.getReservedSpaceGib()); } @@ -1247,6 +1219,9 @@ public Builder mergeFrom( if (other.getReservedSpaceRemainingGib() != 0L) { setReservedSpaceRemainingGib(other.getReservedSpaceRemainingGib()); } + if (other.getReservedSpacePercent() != 0) { + setReservedSpacePercent(other.getReservedSpacePercent()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1266,9 +1241,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1278,16 +1251,13 @@ public Builder mergeFrom( return this; } - private long reservedSpaceGib_; + private long reservedSpaceGib_ ; /** - * - * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; - * * @return The reservedSpaceGib. */ @java.lang.Override @@ -1295,45 +1265,37 @@ public long getReservedSpaceGib() { return reservedSpaceGib_; } /** - * - * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; - * * @param value The reservedSpaceGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceGib(long value) { - + reservedSpaceGib_ = value; onChanged(); return this; } /** - * - * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; - * * @return This builder for chaining. */ public Builder clearReservedSpaceGib() { - + reservedSpaceGib_ = 0L; onChanged(); return this; } - private int reservedSpaceUsedPercent_; + private int reservedSpaceUsedPercent_ ; /** - * - * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1342,7 +1304,6 @@ public Builder clearReservedSpaceGib() {
        * 
* * int32 reserved_space_used_percent = 2; - * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -1350,8 +1311,6 @@ public int getReservedSpaceUsedPercent() { return reservedSpaceUsedPercent_; } /** - * - * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1360,19 +1319,16 @@ public int getReservedSpaceUsedPercent() {
        * 
* * int32 reserved_space_used_percent = 2; - * * @param value The reservedSpaceUsedPercent to set. * @return This builder for chaining. */ public Builder setReservedSpaceUsedPercent(int value) { - + reservedSpaceUsedPercent_ = value; onChanged(); return this; } /** - * - * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1381,27 +1337,23 @@ public Builder setReservedSpaceUsedPercent(int value) {
        * 
* * int32 reserved_space_used_percent = 2; - * * @return This builder for chaining. */ public Builder clearReservedSpaceUsedPercent() { - + reservedSpaceUsedPercent_ = 0; onChanged(); return this; } - private long reservedSpaceRemainingGib_; + private long reservedSpaceRemainingGib_ ; /** - * - * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; - * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -1409,43 +1361,91 @@ public long getReservedSpaceRemainingGib() { return reservedSpaceRemainingGib_; } /** - * - * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; - * * @param value The reservedSpaceRemainingGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceRemainingGib(long value) { - + reservedSpaceRemainingGib_ = value; onChanged(); return this; } /** - * - * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; - * * @return This builder for chaining. */ public Builder clearReservedSpaceRemainingGib() { - + reservedSpaceRemainingGib_ = 0L; onChanged(); return this; } + private int reservedSpacePercent_ ; + /** + *
+       * Percent of the total Volume size reserved for snapshot copies.
+       * Enabling snapshots requires reserving 20% or more of
+       * the storage volume space for snapshots. Maximum reserved space for
+       * snapshots is 40%.
+       * Setting this field will effectively set snapshot_enabled to true.
+       * 
+ * + * int32 reserved_space_percent = 4; + * @return The reservedSpacePercent. + */ + @java.lang.Override + public int getReservedSpacePercent() { + return reservedSpacePercent_; + } + /** + *
+       * Percent of the total Volume size reserved for snapshot copies.
+       * Enabling snapshots requires reserving 20% or more of
+       * the storage volume space for snapshots. Maximum reserved space for
+       * snapshots is 40%.
+       * Setting this field will effectively set snapshot_enabled to true.
+       * 
+ * + * int32 reserved_space_percent = 4; + * @param value The reservedSpacePercent to set. + * @return This builder for chaining. + */ + public Builder setReservedSpacePercent(int value) { + + reservedSpacePercent_ = value; + onChanged(); + return this; + } + /** + *
+       * Percent of the total Volume size reserved for snapshot copies.
+       * Enabling snapshots requires reserving 20% or more of
+       * the storage volume space for snapshots. Maximum reserved space for
+       * snapshots is 40%.
+       * Setting this field will effectively set snapshot_enabled to true.
+       * 
+ * + * int32 reserved_space_percent = 4; + * @return This builder for chaining. + */ + public Builder clearReservedSpacePercent() { + + reservedSpacePercent_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1458,33 +1458,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) - private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotReservationDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotReservationDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotReservationDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotReservationDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1496,17 +1493,15 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1516,7 +1511,6 @@ public com.google.protobuf.Parser getParserForType()
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1525,15 +1519,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; } } /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1543,15 +1536,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1559,93 +1553,114 @@ public com.google.protobuf.ByteString getNameBytes() { } } - public static final int STORAGE_TYPE_FIELD_NUMBER = 2; - private int storageType_; + public static final int ID_FIELD_NUMBER = 11; + private volatile java.lang.Object id_; /** + *
+   * An identifier for the `Volume`, generated by the backend.
+   * 
* + * string id = 11; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+   * An identifier for the `Volume`, generated by the backend.
+   * 
* + * string id = 11; + * @return The bytes for id. + */ + @java.lang.Override + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_TYPE_FIELD_NUMBER = 2; + private int storageType_; + /** *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The storageType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = - com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; } public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = - com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; } public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER = 4; private long requestedSizeGib_; /** - * - * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; - * * @return The requestedSizeGib. */ @java.lang.Override @@ -1656,8 +1671,6 @@ public long getRequestedSizeGib() { public static final int CURRENT_SIZE_GIB_FIELD_NUMBER = 5; private long currentSizeGib_; /** - * - * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -1665,7 +1678,6 @@ public long getRequestedSizeGib() {
    * 
* * int64 current_size_gib = 5; - * * @return The currentSizeGib. */ @java.lang.Override @@ -1673,18 +1685,31 @@ public long getCurrentSizeGib() { return currentSizeGib_; } + public static final int EMERGENCY_SIZE_GIB_FIELD_NUMBER = 14; + private long emergencySizeGib_; + /** + *
+   * Additional emergency size that was requested for this Volume, in GiB.
+   * current_size_gib includes this value.
+   * 
+ * + * int64 emergency_size_gib = 14; + * @return The emergencySizeGib. + */ + @java.lang.Override + public long getEmergencySizeGib() { + return emergencySizeGib_; + } + public static final int AUTO_GROWN_SIZE_GIB_FIELD_NUMBER = 6; private long autoGrownSizeGib_; /** - * - * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; - * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -1695,15 +1720,12 @@ public long getAutoGrownSizeGib() { public static final int REMAINING_SPACE_GIB_FIELD_NUMBER = 7; private long remainingSpaceGib_; /** - * - * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; - * * @return The remainingSpaceGib. */ @java.lang.Override @@ -1712,19 +1734,13 @@ public long getRemainingSpaceGib() { } public static final int SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER = 8; - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return Whether the snapshotReservationDetail field is set. */ @java.lang.Override @@ -1732,130 +1748,208 @@ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetail_ != null; } /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return The snapshotReservationDetail. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getSnapshotReservationDetail() { - return snapshotReservationDetail_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance() - : snapshotReservationDetail_; + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { + return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; } /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder - getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { return getSnapshotReservationDetail(); } public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER = 9; private int snapshotAutoDeleteBehavior_; /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override - public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The snapshotAutoDeleteBehavior. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - getSnapshotAutoDeleteBehavior() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( - snapshotAutoDeleteBehavior_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; + } + + public static final int LABELS_FIELD_NUMBER = 12; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 12; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } + /** + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 12; + */ + @java.lang.Override - public static final int SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER = 10; - private volatile java.lang.Object snapshotSchedulePolicy_; + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } /** + *
+   * Labels as key value pairs.
+   * 
* + * map<string, string> labels = 12; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Labels as key value pairs.
+   * 
* + * map<string, string> labels = 12; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SNAPSHOT_ENABLED_FIELD_NUMBER = 13; + private boolean snapshotEnabled_; + /** *
-   * The name of the snapshot schedule policy in use for this volume, if any.
+   * Whether snapshots are enabled.
    * 
* - * string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... } + * bool snapshot_enabled = 13; + * @return The snapshotEnabled. + */ + @java.lang.Override + public boolean getSnapshotEnabled() { + return snapshotEnabled_; + } + + public static final int POD_FIELD_NUMBER = 15; + private volatile java.lang.Object pod_; + /** + *
+   * Immutable. Pod name.
+   * 
* - * @return The snapshotSchedulePolicy. + * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The pod. */ @java.lang.Override - public java.lang.String getSnapshotSchedulePolicy() { - java.lang.Object ref = snapshotSchedulePolicy_; + public java.lang.String getPod() { + java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - snapshotSchedulePolicy_ = s; + pod_ = s; return s; } } /** - * - * *
-   * The name of the snapshot schedule policy in use for this volume, if any.
+   * Immutable. Pod name.
    * 
* - * string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for snapshotSchedulePolicy. + * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString getSnapshotSchedulePolicyBytes() { - java.lang.Object ref = snapshotSchedulePolicy_; + public com.google.protobuf.ByteString + getPodBytes() { + java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - snapshotSchedulePolicy_ = b; + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pod_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1863,7 +1957,6 @@ public com.google.protobuf.ByteString getSnapshotSchedulePolicyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1875,17 +1968,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { + if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, storageType_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (requestedSizeGib_ != 0L) { @@ -1903,14 +1994,26 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (snapshotReservationDetail_ != null) { output.writeMessage(8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ - != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED - .getNumber()) { + if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { output.writeEnum(9, snapshotAutoDeleteBehavior_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotSchedulePolicy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, snapshotSchedulePolicy_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, id_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 12); + if (snapshotEnabled_ != false) { + output.writeBool(13, snapshotEnabled_); + } + if (emergencySizeGib_ != 0L) { + output.writeInt64(14, emergencySizeGib_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, pod_); } unknownFields.writeTo(output); } @@ -1924,40 +2027,61 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, storageType_); + if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, storageType_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (requestedSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, requestedSizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, requestedSizeGib_); } if (currentSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, currentSizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, currentSizeGib_); } if (autoGrownSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, autoGrownSizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, autoGrownSizeGib_); } if (remainingSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, remainingSpaceGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, remainingSpaceGib_); } if (snapshotReservationDetail_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getSnapshotReservationDetail()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSnapshotReservationDetail()); + } + if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, snapshotAutoDeleteBehavior_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); } - if (snapshotAutoDeleteBehavior_ - != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, snapshotAutoDeleteBehavior_); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, labels__); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotSchedulePolicy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, snapshotSchedulePolicy_); + if (snapshotEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, snapshotEnabled_); + } + if (emergencySizeGib_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(14, emergencySizeGib_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, pod_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1967,28 +2091,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Volume)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume other = - (com.google.cloud.baremetalsolution.v2.Volume) obj; + com.google.cloud.baremetalsolution.v2.Volume other = (com.google.cloud.baremetalsolution.v2.Volume) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; if (storageType_ != other.storageType_) return false; if (state_ != other.state_) return false; - if (getRequestedSizeGib() != other.getRequestedSizeGib()) return false; - if (getCurrentSizeGib() != other.getCurrentSizeGib()) return false; - if (getAutoGrownSizeGib() != other.getAutoGrownSizeGib()) return false; - if (getRemainingSpaceGib() != other.getRemainingSpaceGib()) return false; + if (getRequestedSizeGib() + != other.getRequestedSizeGib()) return false; + if (getCurrentSizeGib() + != other.getCurrentSizeGib()) return false; + if (getEmergencySizeGib() + != other.getEmergencySizeGib()) return false; + if (getAutoGrownSizeGib() + != other.getAutoGrownSizeGib()) return false; + if (getRemainingSpaceGib() + != other.getRemainingSpaceGib()) return false; if (hasSnapshotReservationDetail() != other.hasSnapshotReservationDetail()) return false; if (hasSnapshotReservationDetail()) { - if (!getSnapshotReservationDetail().equals(other.getSnapshotReservationDetail())) - return false; + if (!getSnapshotReservationDetail() + .equals(other.getSnapshotReservationDetail())) return false; } if (snapshotAutoDeleteBehavior_ != other.snapshotAutoDeleteBehavior_) return false; - if (!getSnapshotSchedulePolicy().equals(other.getSnapshotSchedulePolicy())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getSnapshotEnabled() + != other.getSnapshotEnabled()) return false; + if (!getPod() + .equals(other.getPod())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2002,152 +2139,181 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + STORAGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + storageType_; hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + REQUESTED_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestedSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestedSizeGib()); hash = (37 * hash) + CURRENT_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurrentSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCurrentSizeGib()); + hash = (37 * hash) + EMERGENCY_SIZE_GIB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEmergencySizeGib()); hash = (37 * hash) + AUTO_GROWN_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAutoGrownSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAutoGrownSizeGib()); hash = (37 * hash) + REMAINING_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRemainingSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRemainingSpaceGib()); if (hasSnapshotReservationDetail()) { hash = (37 * hash) + SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getSnapshotReservationDetail().hashCode(); } hash = (37 * hash) + SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER; hash = (53 * hash) + snapshotAutoDeleteBehavior_; - hash = (37 * hash) + SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getSnapshotSchedulePolicy().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + SNAPSHOT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSnapshotEnabled()); + hash = (37 * hash) + POD_FIELD_NUMBER; + hash = (53 * hash) + getPod().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume 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.baremetalsolution.v2.Volume parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume) com.google.cloud.baremetalsolution.v2.VolumeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 12: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 12: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, - com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Volume.newBuilder() @@ -2155,20 +2321,23 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; + id_ = ""; + storageType_ = 0; state_ = 0; @@ -2177,6 +2346,8 @@ public Builder clear() { currentSizeGib_ = 0L; + emergencySizeGib_ = 0L; + autoGrownSizeGib_ = 0L; remainingSpaceGib_ = 0L; @@ -2189,15 +2360,18 @@ public Builder clear() { } snapshotAutoDeleteBehavior_ = 0; - snapshotSchedulePolicy_ = ""; + internalGetMutableLabels().clear(); + snapshotEnabled_ = false; + + pod_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @java.lang.Override @@ -2216,13 +2390,15 @@ public com.google.cloud.baremetalsolution.v2.Volume build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume result = - new com.google.cloud.baremetalsolution.v2.Volume(this); + com.google.cloud.baremetalsolution.v2.Volume result = new com.google.cloud.baremetalsolution.v2.Volume(this); + int from_bitField0_ = bitField0_; result.name_ = name_; + result.id_ = id_; result.storageType_ = storageType_; result.state_ = state_; result.requestedSizeGib_ = requestedSizeGib_; result.currentSizeGib_ = currentSizeGib_; + result.emergencySizeGib_ = emergencySizeGib_; result.autoGrownSizeGib_ = autoGrownSizeGib_; result.remainingSpaceGib_ = remainingSpaceGib_; if (snapshotReservationDetailBuilder_ == null) { @@ -2231,7 +2407,10 @@ public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { result.snapshotReservationDetail_ = snapshotReservationDetailBuilder_.build(); } result.snapshotAutoDeleteBehavior_ = snapshotAutoDeleteBehavior_; - result.snapshotSchedulePolicy_ = snapshotSchedulePolicy_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.snapshotEnabled_ = snapshotEnabled_; + result.pod_ = pod_; onBuilt(); return result; } @@ -2240,39 +2419,38 @@ public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Volume) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume)other); } else { super.mergeFrom(other); return this; @@ -2285,7 +2463,11 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume other) { name_ = other.name_; onChanged(); } - if (other.storageType_ != 0) { + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.storageType_ != 0) { setStorageTypeValue(other.getStorageTypeValue()); } if (other.state_ != 0) { @@ -2297,6 +2479,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume other) { if (other.getCurrentSizeGib() != 0L) { setCurrentSizeGib(other.getCurrentSizeGib()); } + if (other.getEmergencySizeGib() != 0L) { + setEmergencySizeGib(other.getEmergencySizeGib()); + } if (other.getAutoGrownSizeGib() != 0L) { setAutoGrownSizeGib(other.getAutoGrownSizeGib()); } @@ -2309,8 +2494,13 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume other) { if (other.snapshotAutoDeleteBehavior_ != 0) { setSnapshotAutoDeleteBehaviorValue(other.getSnapshotAutoDeleteBehaviorValue()); } - if (!other.getSnapshotSchedulePolicy().isEmpty()) { - snapshotSchedulePolicy_ = other.snapshotSchedulePolicy_; + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (other.getSnapshotEnabled() != false) { + setSnapshotEnabled(other.getSnapshotEnabled()); + } + if (!other.getPod().isEmpty()) { + pod_ = other.pod_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -2341,11 +2531,10 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2355,13 +2544,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2370,8 +2559,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2381,14 +2568,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2396,8 +2584,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2407,22 +2593,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2432,18 +2616,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2453,84 +2634,164 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int storageType_ = 0; + private java.lang.Object id_ = ""; /** + *
+     * An identifier for the `Volume`, generated by the backend.
+     * 
* + * string id = 11; + * @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; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * An identifier for the `Volume`, generated by the backend.
+     * 
* + * string id = 11; + * @return The bytes for id. + */ + 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); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * An identifier for the `Volume`, generated by the backend.
+     * 
+ * + * string id = 11; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+     * An identifier for the `Volume`, generated by the backend.
+     * 
+ * + * string id = 11; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+     * An identifier for the `Volume`, generated by the backend.
+     * 
+ * + * string id = 11; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private int storageType_ = 0; + /** *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = - com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @param value The storageType to set. * @return This builder for chaining. */ @@ -2538,24 +2799,21 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Volume.Stora if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -2563,67 +2821,51 @@ public Builder clearStorageType() { private int state_ = 0; /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = - com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2631,39 +2873,33 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Volume.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long requestedSizeGib_; + private long requestedSizeGib_ ; /** - * - * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; - * * @return The requestedSizeGib. */ @java.lang.Override @@ -2671,45 +2907,37 @@ public long getRequestedSizeGib() { return requestedSizeGib_; } /** - * - * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; - * * @param value The requestedSizeGib to set. * @return This builder for chaining. */ public Builder setRequestedSizeGib(long value) { - + requestedSizeGib_ = value; onChanged(); return this; } /** - * - * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; - * * @return This builder for chaining. */ public Builder clearRequestedSizeGib() { - + requestedSizeGib_ = 0L; onChanged(); return this; } - private long currentSizeGib_; + private long currentSizeGib_ ; /** - * - * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2717,7 +2945,6 @@ public Builder clearRequestedSizeGib() {
      * 
* * int64 current_size_gib = 5; - * * @return The currentSizeGib. */ @java.lang.Override @@ -2725,8 +2952,6 @@ public long getCurrentSizeGib() { return currentSizeGib_; } /** - * - * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2734,19 +2959,16 @@ public long getCurrentSizeGib() {
      * 
* * int64 current_size_gib = 5; - * * @param value The currentSizeGib to set. * @return This builder for chaining. */ public Builder setCurrentSizeGib(long value) { - + currentSizeGib_ = value; onChanged(); return this; } /** - * - * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2754,27 +2976,69 @@ public Builder setCurrentSizeGib(long value) {
      * 
* * int64 current_size_gib = 5; - * * @return This builder for chaining. */ public Builder clearCurrentSizeGib() { - + currentSizeGib_ = 0L; onChanged(); return this; } - private long autoGrownSizeGib_; + private long emergencySizeGib_ ; /** + *
+     * Additional emergency size that was requested for this Volume, in GiB.
+     * current_size_gib includes this value.
+     * 
* + * int64 emergency_size_gib = 14; + * @return The emergencySizeGib. + */ + @java.lang.Override + public long getEmergencySizeGib() { + return emergencySizeGib_; + } + /** + *
+     * Additional emergency size that was requested for this Volume, in GiB.
+     * current_size_gib includes this value.
+     * 
* + * int64 emergency_size_gib = 14; + * @param value The emergencySizeGib to set. + * @return This builder for chaining. + */ + public Builder setEmergencySizeGib(long value) { + + emergencySizeGib_ = value; + onChanged(); + return this; + } + /** + *
+     * Additional emergency size that was requested for this Volume, in GiB.
+     * current_size_gib includes this value.
+     * 
+ * + * int64 emergency_size_gib = 14; + * @return This builder for chaining. + */ + public Builder clearEmergencySizeGib() { + + emergencySizeGib_ = 0L; + onChanged(); + return this; + } + + private long autoGrownSizeGib_ ; + /** *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; - * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -2782,54 +3046,45 @@ public long getAutoGrownSizeGib() { return autoGrownSizeGib_; } /** - * - * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; - * * @param value The autoGrownSizeGib to set. * @return This builder for chaining. */ public Builder setAutoGrownSizeGib(long value) { - + autoGrownSizeGib_ = value; onChanged(); return this; } /** - * - * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; - * * @return This builder for chaining. */ public Builder clearAutoGrownSizeGib() { - + autoGrownSizeGib_ = 0L; onChanged(); return this; } - private long remainingSpaceGib_; + private long remainingSpaceGib_ ; /** - * - * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; - * * @return The remainingSpaceGib. */ @java.lang.Override @@ -2837,103 +3092,74 @@ public long getRemainingSpaceGib() { return remainingSpaceGib_; } /** - * - * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; - * * @param value The remainingSpaceGib to set. * @return This builder for chaining. */ public Builder setRemainingSpaceGib(long value) { - + remainingSpaceGib_ = value; onChanged(); return this; } /** - * - * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; - * * @return This builder for chaining. */ public Builder clearRemainingSpaceGib() { - + remainingSpaceGib_ = 0L; onChanged(); return this; } - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> - snapshotReservationDetailBuilder_; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> snapshotReservationDetailBuilder_; /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return Whether the snapshotReservationDetail field is set. */ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetailBuilder_ != null || snapshotReservationDetail_ != null; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return The snapshotReservationDetail. */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getSnapshotReservationDetail() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { - return snapshotReservationDetail_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance() - : snapshotReservationDetail_; + return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; } else { return snapshotReservationDetailBuilder_.getMessage(); } } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public Builder setSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder setSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2947,19 +3173,14 @@ public Builder setSnapshotReservationDetail( return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ public Builder setSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - builderForValue) { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder builderForValue) { if (snapshotReservationDetailBuilder_ == null) { snapshotReservationDetail_ = builderForValue.build(); onChanged(); @@ -2970,25 +3191,17 @@ public Builder setSnapshotReservationDetail( return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public Builder mergeSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder mergeSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (snapshotReservationDetail_ != null) { snapshotReservationDetail_ = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder( - snapshotReservationDetail_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder(snapshotReservationDetail_).mergeFrom(value).buildPartial(); } else { snapshotReservationDetail_ = value; } @@ -3000,15 +3213,11 @@ public Builder mergeSnapshotReservationDetail( return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ public Builder clearSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { @@ -3022,67 +3231,48 @@ public Builder clearSnapshotReservationDetail() { return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - getSnapshotReservationDetailBuilder() { - + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder getSnapshotReservationDetailBuilder() { + onChanged(); return getSnapshotReservationDetailFieldBuilder().getBuilder(); } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder - getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { if (snapshotReservationDetailBuilder_ != null) { return snapshotReservationDetailBuilder_.getMessageOrBuilder(); } else { - return snapshotReservationDetail_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance() - : snapshotReservationDetail_; + return snapshotReservationDetail_ == null ? + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; } } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> getSnapshotReservationDetailFieldBuilder() { if (snapshotReservationDetailBuilder_ == null) { - snapshotReservationDetailBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( - getSnapshotReservationDetail(), getParentForChildren(), isClean()); + snapshotReservationDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( + getSnapshotReservationDetail(), + getParentForChildren(), + isClean()); snapshotReservationDetail_ = null; } return snapshotReservationDetailBuilder_; @@ -3090,218 +3280,378 @@ public Builder clearSnapshotReservationDetail() { private int snapshotAutoDeleteBehavior_ = 0; /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override - public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @param value The enum numeric value on the wire for snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ public Builder setSnapshotAutoDeleteBehaviorValue(int value) { - + snapshotAutoDeleteBehavior_ = value; onChanged(); return this; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The snapshotAutoDeleteBehavior. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - getSnapshotAutoDeleteBehavior() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( - snapshotAutoDeleteBehavior_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @param value The snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ - public Builder setSnapshotAutoDeleteBehavior( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { + public Builder setSnapshotAutoDeleteBehavior(com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { if (value == null) { throw new NullPointerException(); } - + snapshotAutoDeleteBehavior_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return This builder for chaining. */ public Builder clearSnapshotAutoDeleteBehavior() { - + snapshotAutoDeleteBehavior_ = 0; onChanged(); return this; } - private java.lang.Object snapshotSchedulePolicy_ = ""; + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } /** + *
+     * Labels as key value pairs.
+     * 
* + * map<string, string> labels = 12; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
* + * map<string, string> labels = 12; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 12; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** *
-     * The name of the snapshot schedule policy in use for this volume, if any.
+     * Labels as key value pairs.
      * 
* - * string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... } + * map<string, string> labels = 12; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Labels as key value pairs.
+     * 
* - * @return The snapshotSchedulePolicy. + * map<string, string> labels = 12; */ - public java.lang.String getSnapshotSchedulePolicy() { - java.lang.Object ref = snapshotSchedulePolicy_; + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 12; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 12; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private boolean snapshotEnabled_ ; + /** + *
+     * Whether snapshots are enabled.
+     * 
+ * + * bool snapshot_enabled = 13; + * @return The snapshotEnabled. + */ + @java.lang.Override + public boolean getSnapshotEnabled() { + return snapshotEnabled_; + } + /** + *
+     * Whether snapshots are enabled.
+     * 
+ * + * bool snapshot_enabled = 13; + * @param value The snapshotEnabled to set. + * @return This builder for chaining. + */ + public Builder setSnapshotEnabled(boolean value) { + + snapshotEnabled_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether snapshots are enabled.
+     * 
+ * + * bool snapshot_enabled = 13; + * @return This builder for chaining. + */ + public Builder clearSnapshotEnabled() { + + snapshotEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object pod_ = ""; + /** + *
+     * Immutable. Pod name.
+     * 
+ * + * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The pod. + */ + public java.lang.String getPod() { + java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - snapshotSchedulePolicy_ = s; + pod_ = s; return s; } else { return (java.lang.String) ref; } } /** - * - * *
-     * The name of the snapshot schedule policy in use for this volume, if any.
+     * Immutable. Pod name.
      * 
* - * string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for snapshotSchedulePolicy. + * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for pod. */ - public com.google.protobuf.ByteString getSnapshotSchedulePolicyBytes() { - java.lang.Object ref = snapshotSchedulePolicy_; + public com.google.protobuf.ByteString + getPodBytes() { + java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - snapshotSchedulePolicy_ = b; + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pod_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * - * *
-     * The name of the snapshot schedule policy in use for this volume, if any.
+     * Immutable. Pod name.
      * 
* - * string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... } - * - * @param value The snapshotSchedulePolicy to set. + * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The pod to set. * @return This builder for chaining. */ - public Builder setSnapshotSchedulePolicy(java.lang.String value) { + public Builder setPod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - - snapshotSchedulePolicy_ = value; + throw new NullPointerException(); + } + + pod_ = value; onChanged(); return this; } /** - * - * *
-     * The name of the snapshot schedule policy in use for this volume, if any.
+     * Immutable. Pod name.
      * 
* - * string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... } - * + * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ - public Builder clearSnapshotSchedulePolicy() { - - snapshotSchedulePolicy_ = getDefaultInstance().getSnapshotSchedulePolicy(); + public Builder clearPod() { + + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** - * - * *
-     * The name of the snapshot schedule policy in use for this volume, if any.
+     * Immutable. Pod name.
      * 
* - * string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... } - * - * @param value The bytes for snapshotSchedulePolicy to set. + * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setSnapshotSchedulePolicyBytes(com.google.protobuf.ByteString value) { + public Builder setPodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - snapshotSchedulePolicy_ = value; + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pod_ = 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); } @@ -3311,12 +3661,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume) private static final com.google.cloud.baremetalsolution.v2.Volume DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume(); } @@ -3325,16 +3675,16 @@ public static com.google.cloud.baremetalsolution.v2.Volume getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Volume parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Volume(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Volume parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Volume(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3349,4 +3699,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Volume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java similarity index 58% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java index 0e8079e..a2d3039 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto +// source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface VolumeOrBuilder - extends +public interface VolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -35,13 +17,10 @@ public interface VolumeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -51,77 +30,80 @@ public interface VolumeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** + *
+   * An identifier for the `Volume`, generated by the backend.
+   * 
* + * string id = 11; + * @return The id. + */ + java.lang.String getId(); + /** + *
+   * An identifier for the `Volume`, generated by the backend.
+   * 
* + * string id = 11; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** - * - * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Volume.State getState(); /** - * - * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; - * * @return The requestedSizeGib. */ long getRequestedSizeGib(); /** - * - * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -129,134 +111,172 @@ public interface VolumeOrBuilder
    * 
* * int64 current_size_gib = 5; - * * @return The currentSizeGib. */ long getCurrentSizeGib(); /** + *
+   * Additional emergency size that was requested for this Volume, in GiB.
+   * current_size_gib includes this value.
+   * 
* - * + * int64 emergency_size_gib = 14; + * @return The emergencySizeGib. + */ + long getEmergencySizeGib(); + + /** *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; - * * @return The autoGrownSizeGib. */ long getAutoGrownSizeGib(); /** - * - * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; - * * @return The remainingSpaceGib. */ long getRemainingSpaceGib(); /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return Whether the snapshotReservationDetail field is set. */ boolean hasSnapshotReservationDetail(); /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return The snapshotReservationDetail. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getSnapshotReservationDetail(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail(); /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder - getSnapshotReservationDetailOrBuilder(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder(); /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ int getSnapshotAutoDeleteBehaviorValue(); /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The snapshotAutoDeleteBehavior. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - getSnapshotAutoDeleteBehavior(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior(); /** + *
+   * Labels as key value pairs.
+   * 
* + * map<string, string> labels = 12; + */ + int getLabelsCount(); + /** + *
+   * Labels as key value pairs.
+   * 
* + * map<string, string> labels = 12; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** *
-   * The name of the snapshot schedule policy in use for this volume, if any.
+   * Labels as key value pairs.
    * 
* - * string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... } + * map<string, string> labels = 12; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Labels as key value pairs.
+   * 
* - * @return The snapshotSchedulePolicy. + * map<string, string> labels = 12; */ - java.lang.String getSnapshotSchedulePolicy(); + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); /** + *
+   * Labels as key value pairs.
+   * 
* + * map<string, string> labels = 12; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * Whether snapshots are enabled.
+   * 
* + * bool snapshot_enabled = 13; + * @return The snapshotEnabled. + */ + boolean getSnapshotEnabled(); + + /** *
-   * The name of the snapshot schedule policy in use for this volume, if any.
+   * Immutable. Pod name.
    * 
* - * string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... } + * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The pod. + */ + java.lang.String getPod(); + /** + *
+   * Immutable. Pod name.
+   * 
* - * @return The bytes for snapshotSchedulePolicy. + * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for pod. */ - com.google.protobuf.ByteString getSnapshotSchedulePolicyBytes(); + com.google.protobuf.ByteString + getPodBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java new file mode 100644 index 0000000..417c220 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java @@ -0,0 +1,192 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class VolumeProto { + private VolumeProto() {} + 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_baremetalsolution_v2_Volume_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" + + "me.proto\022!google.cloud.baremetalsolution" + + ".v2\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032 google/protobuf" + + "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" + + "\01625.google.cloud.baremetalsolution.v2.Vo" + + "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" + + ".cloud.baremetalsolution.v2.Volume.State" + + "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" + + "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" + + "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" + + "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" + + "tion_detail\030\010 \001(\0132C.google.cloud.baremet" + + "alsolution.v2.Volume.SnapshotReservation" + + "Detail\022k\n\035snapshot_auto_delete_behavior\030" + + "\t \001(\0162D.google.cloud.baremetalsolution.v" + + "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" + + "abels\030\014 \003(\01325.google.cloud.baremetalsolu" + + "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" + + "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" + + "hotReservationDetail\022\032\n\022reserved_space_g" + + "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" + + "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " + + "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" + + "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" + + "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" + + "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" + + "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" + + "olution.googleapis.com/Volume\0228projects/" + + "{project}/locations/{location}/volumes/{" + + "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" + + "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." + + "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" + + "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" + + "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" + + "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" + + "oogle.cloud.baremetalsolution.v2.VolumeB" + + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" + + "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." + + "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" + + "\371\001\n%com.google.cloud.baremetalsolution.v" + + "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" + + "roto/googleapis/cloud/baremetalsolution/" + + "v2;baremetalsolution\252\002!Google.Cloud.Bare" + + "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" + + "lSolution\\V2\352\002$Google::Cloud::BareMetalS" + + "olution::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, + new java.lang.String[] { "Name", "Id", "StorageType", "State", "RequestedSizeGib", "CurrentSizeGib", "EmergencySizeGib", "AutoGrownSizeGib", "RemainingSpaceGib", "SnapshotReservationDetail", "SnapshotAutoDeleteBehavior", "Labels", "SnapshotEnabled", "Pod", }); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, + new java.lang.String[] { "ReservedSpaceGib", "ReservedSpaceUsedPercent", "ReservedSpaceRemainingGib", "ReservedSpacePercent", }); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, + new java.lang.String[] { "Volumes", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, + new java.lang.String[] { "Volume", "UpdateMask", }); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, + new java.lang.String[] { "Volume", "SizeGib", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto new file mode 100644 index 0000000..87e0f8d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto @@ -0,0 +1,290 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.baremetalsolution.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/cloud/baremetalsolution/v2/instance.proto"; +import "google/cloud/baremetalsolution/v2/lun.proto"; +import "google/cloud/baremetalsolution/v2/network.proto"; +import "google/cloud/baremetalsolution/v2/nfs_share.proto"; +import "google/cloud/baremetalsolution/v2/volume.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option java_multiple_files = true; +option java_outer_classname = "BareMetalSolutionProto"; +option java_package = "com.google.cloud.baremetalsolution.v2"; +option php_namespace = "Google\\Cloud\\BareMetalSolution\\V2"; +option ruby_package = "Google::Cloud::BareMetalSolution::V2"; + +// Performs management operations on Bare Metal Solution servers. +// +// The `baremetalsolution.googleapis.com` service provides management +// capabilities for Bare Metal Solution servers. To access the API methods, you +// must assign Bare Metal Solution IAM roles containing the desired permissions +// to your staff in your Google Cloud project. You must also enable the Bare +// Metal Solution API. Once enabled, the methods act +// upon specific servers in your Bare Metal Solution environment. +service BareMetalSolution { + option (google.api.default_host) = "baremetalsolution.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // List servers in a given project and location. + rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/instances" + }; + option (google.api.method_signature) = "parent"; + } + + // Get details about a single server. + rpc GetInstance(GetInstanceRequest) returns (Instance) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/instances/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Update details of a single server. + rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{instance.name=projects/*/locations/*/instances/*}" + body: "instance" + }; + option (google.api.method_signature) = "instance,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Instance" + metadata_type: "OperationMetadata" + }; + } + + // Perform an ungraceful, hard reset on a server. Equivalent to shutting the + // power off and then turning it back on. + rpc ResetInstance(ResetInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/instances/*}:reset" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "ResetInstanceResponse" + metadata_type: "OperationMetadata" + }; + } + + // Starts a server that was shutdown. + rpc StartInstance(StartInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/instances/*}:start" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "StartInstanceResponse" + metadata_type: "OperationMetadata" + }; + } + + // Stop a running server. + rpc StopInstance(StopInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/instances/*}:stop" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "StopInstanceResponse" + metadata_type: "OperationMetadata" + }; + } + + // Detach LUN from Instance. + rpc DetachLun(DetachLunRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{instance=projects/*/locations/*/instances/*}:detachLun" + body: "*" + }; + option (google.api.method_signature) = "instance,lun"; + option (google.longrunning.operation_info) = { + response_type: "Instance" + metadata_type: "OperationMetadata" + }; + } + + // List storage volumes in a given project and location. + rpc ListVolumes(ListVolumesRequest) returns (ListVolumesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/volumes" + }; + option (google.api.method_signature) = "parent"; + } + + // Get details of a single storage volume. + rpc GetVolume(GetVolumeRequest) returns (Volume) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/volumes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Update details of a single storage volume. + rpc UpdateVolume(UpdateVolumeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{volume.name=projects/*/locations/*/volumes/*}" + body: "volume" + }; + option (google.api.method_signature) = "volume,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Volume" + metadata_type: "OperationMetadata" + }; + } + + // Emergency Volume resize. + rpc ResizeVolume(ResizeVolumeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{volume=projects/*/locations/*/volumes/*}:resize" + body: "*" + }; + option (google.api.method_signature) = "volume,size_gib"; + option (google.longrunning.operation_info) = { + response_type: "Volume" + metadata_type: "OperationMetadata" + }; + } + + // List network in a given project and location. + rpc ListNetworks(ListNetworksRequest) returns (ListNetworksResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/networks" + }; + option (google.api.method_signature) = "parent"; + } + + // List all Networks (and used IPs for each Network) in the vendor account + // associated with the specified project. + rpc ListNetworkUsage(ListNetworkUsageRequest) returns (ListNetworkUsageResponse) { + option (google.api.http) = { + get: "/v2/{location=projects/*/locations/*}/networks:listNetworkUsage" + }; + option (google.api.method_signature) = "location"; + } + + // Get details of a single network. + rpc GetNetwork(GetNetworkRequest) returns (Network) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/networks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Update details of a single network. + rpc UpdateNetwork(UpdateNetworkRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{network.name=projects/*/locations/*/networks/*}" + body: "network" + }; + option (google.api.method_signature) = "network,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Network" + metadata_type: "OperationMetadata" + }; + } + + // Get details of a single storage logical unit number(LUN). + rpc GetLun(GetLunRequest) returns (Lun) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/volumes/*/luns/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List storage volume luns for given storage volume. + rpc ListLuns(ListLunsRequest) returns (ListLunsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*/volumes/*}/luns" + }; + option (google.api.method_signature) = "parent"; + } + + // Get details of a single NFS share. + rpc GetNfsShare(GetNfsShareRequest) returns (NfsShare) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/nfsShares/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List NFS shares. + rpc ListNfsShares(ListNfsSharesRequest) returns (ListNfsSharesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/nfsShares" + }; + option (google.api.method_signature) = "parent"; + } + + // Update details of a single NFS share. + rpc UpdateNfsShare(UpdateNfsShareRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{nfs_share.name=projects/*/locations/*/nfsShares/*}" + body: "nfs_share" + }; + option (google.api.method_signature) = "nfs_share,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "NfsShare" + metadata_type: "OperationMetadata" + }; + } +} + +// Represents the metadata from a long-running operation. +message OperationMetadata { + // The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Name of the action executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Identifies whether the user requested the cancellation + // of the operation. Operations that have been successfully cancelled + // have [Operation.error][] value with a [google.rpc.Status.code][] of 1, + // corresponding to `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // API version used with the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Response message from resetting a server. +message ResetInstanceResponse { + +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto new file mode 100644 index 0000000..49105bd --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto @@ -0,0 +1,288 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.baremetalsolution.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/baremetalsolution/v2/lun.proto"; +import "google/cloud/baremetalsolution/v2/network.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option java_multiple_files = true; +option java_outer_classname = "InstanceProto"; +option java_package = "com.google.cloud.baremetalsolution.v2"; +option php_namespace = "Google\\Cloud\\BareMetalSolution\\V2"; +option ruby_package = "Google::Cloud::BareMetalSolution::V2"; + +// A server. +message Instance { + option (google.api.resource) = { + type: "baremetalsolution.googleapis.com/Instance" + pattern: "projects/{project}/locations/{location}/instances/{instance}" + }; + + // The possible states for this server. + enum State { + // The server is in an unknown state. + STATE_UNSPECIFIED = 0; + + // The server is being provisioned. + PROVISIONING = 1; + + // The server is running. + RUNNING = 2; + + // The server has been deleted. + DELETED = 3; + } + + // Output only. The resource name of this `Instance`. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // Format: + // `projects/{project}/locations/{location}/instances/{instance}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // An identifier for the `Instance`, generated by the backend. + string id = 11; + + // Output only. Create a time stamp. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update a time stamp. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The server type. + // [Available server + // types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations) + string machine_type = 4; + + // The state of the server. + State state = 5; + + // True if you enable hyperthreading for the server, otherwise false. + // The default value is false. + bool hyperthreading_enabled = 6; + + // Labels as key value pairs. + map labels = 7; + + // List of LUNs associated with this server. + repeated Lun luns = 8; + + // List of networks associated with this server. + repeated Network networks = 9; + + // True if the interactive serial console feature is enabled for the instance, + // false otherwise. + // The default value is false. + bool interactive_serial_console_enabled = 10; + + // The OS image currently installed on the server. + string os_image = 12; + + // Immutable. Pod name. + // Pod is an independent part of infrastructure. + // Instance can be connected to the assets (networks, volumes) allocated + // in the same pod only. + string pod = 13 [(google.api.field_behavior) = IMMUTABLE]; + + // Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc. + // Generally, the template name follows the syntax of + // "bond" or "nic". + string network_template = 14 [(google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/ServerNetworkTemplate" + }]; + + // List of logical interfaces for the instance. The number of logical + // interfaces will be the same as number of hardware bond/nic on the chosen + // network template. For the non-multivlan configurations (for eg, existing + // servers) that use existing default network template (bondaa-bondaa), both + // the Instance.networks field and the Instance.logical_interfaces fields will + // be filled to ensure backward compatibility. For the others, only + // Instance.logical_interfaces will be filled. + repeated LogicalInterface logical_interfaces = 15; +} + +// Message for requesting server information. +message GetInstanceRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Instance" + } + ]; +} + +// Message for requesting the list of servers. +message ListInstancesRequest { + // Required. Parent value for ListInstancesRequest. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, the server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results from the server. + string page_token = 3; + + // List filter. + string filter = 4; +} + +// Response message for the list of servers. +message ListInstancesResponse { + // The list of servers. + repeated Instance instances = 1; + + // A token identifying a page of results from the server. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message requesting to updating a server. +message UpdateInstanceRequest { + // Required. The server to update. + // + // The `name` field is used to identify the instance to update. + // Format: projects/{project}/locations/{location}/instances/{instance} + Instance instance = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to update. + // The currently supported fields are: + // `labels` + // `hyperthreading_enabled` + // `os_image` + google.protobuf.FieldMask update_mask = 2; +} + +// Message requesting to reset a server. +message ResetInstanceRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Instance" + } + ]; +} + +// Message requesting to start a server. +message StartInstanceRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Instance" + } + ]; +} + +// Message requesting to stop a server. +message StopInstanceRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Instance" + } + ]; +} + +// Message for detach specific LUN from an Instance. +message DetachLunRequest { + // Required. Name of the instance. + string instance = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Instance" + } + ]; + + // Required. Name of the Lun to detach. + string lun = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Lun" + } + ]; +} + +// Network template. +message ServerNetworkTemplate { + option (google.api.resource) = { + type: "baremetalsolution.googleapis.com/ServerNetworkTemplate" + pattern: "projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}" + }; + + // Logical interface. + message LogicalInterface { + // Interface type. + enum InterfaceType { + // Unspecified value. + INTERFACE_TYPE_UNSPECIFIED = 0; + + // Bond interface type. + BOND = 1; + + // NIC interface type. + NIC = 2; + } + + // Interface name. + // This is not a globally unique identifier. + // Name is unique only inside the ServerNetworkTemplate. This is of syntax + // or + // and forms part of the network template name. + string name = 1; + + // Interface type. + InterfaceType type = 2; + + // If true, interface must have network connected. + bool required = 3; + } + + // Output only. Template's unique name. The full resource name follows the pattern: + // `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}` + // Generally, the {server_network_template} follows the syntax of + // "bond" or "nic". + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Instance types this template is applicable to. + repeated string applicable_instance_types = 2; + + // Logical interfaces. + repeated LogicalInterface logical_interfaces = 3; +} + +// Response message from starting a server. +message StartInstanceResponse {} + +// Response message from stopping a server. +message StopInstanceResponse {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto new file mode 100644 index 0000000..c165a50 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto @@ -0,0 +1,149 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.baremetalsolution.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option java_multiple_files = true; +option java_outer_classname = "LunProto"; +option java_package = "com.google.cloud.baremetalsolution.v2"; +option php_namespace = "Google\\Cloud\\BareMetalSolution\\V2"; +option ruby_package = "Google::Cloud::BareMetalSolution::V2"; + +// A storage volume logical unit number (LUN). +message Lun { + option (google.api.resource) = { + type: "baremetalsolution.googleapis.com/Lun" + pattern: "projects/{project}/locations/{location}/volumes/{volume}/luns/{lun}" + }; + + // The possible states for the LUN. + enum State { + // The LUN is in an unknown state. + STATE_UNSPECIFIED = 0; + + // The LUN is being created. + CREATING = 1; + + // The LUN is being updated. + UPDATING = 2; + + // The LUN is ready for use. + READY = 3; + + // The LUN has been requested to be deleted. + DELETING = 4; + } + + // Display the operating systems present for the LUN multiprotocol type. + enum MultiprotocolType { + // Server has no OS specified. + MULTIPROTOCOL_TYPE_UNSPECIFIED = 0; + + // Server with Linux OS. + LINUX = 1; + } + + // The storage types for a LUN. + enum StorageType { + // The storage type for this LUN is unknown. + STORAGE_TYPE_UNSPECIFIED = 0; + + // This storage type for this LUN is SSD. + SSD = 1; + + // This storage type for this LUN is HDD. + HDD = 2; + } + + // Output only. The name of the LUN. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // An identifier for the LUN, generated by the backend. + string id = 10; + + // The state of this storage volume. + State state = 2; + + // The size of this LUN, in gigabytes. + int64 size_gb = 3; + + // The LUN multiprotocol type ensures the characteristics of the LUN are + // optimized for each operating system. + MultiprotocolType multiprotocol_type = 4; + + // Display the storage volume for this LUN. + string storage_volume = 5 [(google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Volume" + }]; + + // Display if this LUN can be shared between multiple physical servers. + bool shareable = 6; + + // Display if this LUN is a boot LUN. + bool boot_lun = 7; + + // The storage type for this LUN. + StorageType storage_type = 8; + + // The WWID for this LUN. + string wwid = 9; +} + +// Message for requesting storage lun information. +message GetLunRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Lun" + } + ]; +} + +// Message for requesting a list of storage volume luns. +message ListLunsRequest { + // Required. Parent value for ListLunsRequest. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Volume" + } + ]; + + // Requested page size. The server might return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results from the server. + string page_token = 3; +} + +// Response message containing the list of storage volume luns. +message ListLunsResponse { + // The list of luns. + repeated Lun luns = 1; + + // A token identifying a page of results from the server. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto new file mode 100644 index 0000000..3f240de --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto @@ -0,0 +1,284 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.baremetalsolution.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option java_multiple_files = true; +option java_outer_classname = "NetworkProto"; +option java_package = "com.google.cloud.baremetalsolution.v2"; +option php_namespace = "Google\\Cloud\\BareMetalSolution\\V2"; +option ruby_package = "Google::Cloud::BareMetalSolution::V2"; + +// A Network. +message Network { + option (google.api.resource) = { + type: "baremetalsolution.googleapis.com/Network" + pattern: "projects/{project}/locations/{location}/networks/{network}" + }; + + // Network type. + enum Type { + // Unspecified value. + TYPE_UNSPECIFIED = 0; + + // Client network, a network peered to a Google Cloud VPC. + CLIENT = 1; + + // Private network, a network local to the Bare Metal Solution environment. + PRIVATE = 2; + } + + // The possible states for this Network. + enum State { + // The Network is in an unknown state. + STATE_UNSPECIFIED = 0; + + // The Network is provisioning. + PROVISIONING = 1; + + // The Network has been provisioned. + PROVISIONED = 2; + } + + // Output only. The resource name of this `Network`. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // Format: + // `projects/{project}/locations/{location}/networks/{network}` + string name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // An identifier for the `Network`, generated by the backend. + string id = 10; + + // The type of this network. + Type type = 2; + + // IP address configured. + string ip_address = 3; + + // List of physical interfaces. + repeated string mac_address = 4; + + // The Network state. + State state = 6; + + // The vlan id of the Network. + string vlan_id = 7; + + // The cidr of the Network. + string cidr = 8; + + // The vrf for the Network. + VRF vrf = 9; + + // Labels as key value pairs. + map labels = 11; + + // IP range for reserved for services (e.g. NFS). + string services_cidr = 12; + + // List of IP address reservations in this network. + // When updating this field, an error will be generated if a reservation + // conflicts with an IP address already allocated to a physical server. + repeated NetworkAddressReservation reservations = 13; +} + +// A reservation of one or more addresses in a network. +message NetworkAddressReservation { + // The first address of this reservation block. + // Must be specified as a single IPv4 address, e.g. 10.1.2.2. + string start_address = 1; + + // The last address of this reservation block, inclusive. I.e., for cases when + // reservations are only single addresses, end_address and start_address will + // be the same. + // Must be specified as a single IPv4 address, e.g. 10.1.2.2. + string end_address = 2; + + // A note about this reservation, intended for human consumption. + string note = 3; +} + +// A network VRF. +message VRF { + // The possible states for this VRF. + enum State { + // The unspecified state. + STATE_UNSPECIFIED = 0; + + // The vrf is provisioning. + PROVISIONING = 1; + + // The vrf is provisioned. + PROVISIONED = 2; + } + + // QOS policy parameters. + message QosPolicy { + // The bandwidth permitted by the QOS policy, in gbps. + double bandwidth_gbps = 1; + } + + // VLAN attachment details. + message VlanAttachment { + // The peer vlan ID of the attachment. + int64 peer_vlan_id = 1; + + // The peer IP of the attachment. + string peer_ip = 2; + + // The router IP of the attachment. + string router_ip = 3; + } + + // The name of the VRF. + string name = 1; + + // The possible state of VRF. + State state = 5; + + // The QOS policy applied to this VRF. + QosPolicy qos_policy = 6; + + // The list of VLAN attachments for the VRF. + repeated VlanAttachment vlan_attachments = 7; +} + +// Each logical interface represents a logical abstraction of the underlying +// physical interface (for eg. bond, nic) of the instance. Each logical +// interface can effectively map to multiple network-IP pairs and still be +// mapped to one underlying physical interface. +message LogicalInterface { + // Each logical network interface is effectively a network and IP pair. + message LogicalNetworkInterface { + // Name of the network + string network = 1; + + // IP address in the network + string ip_address = 2; + + // Whether this interface is the default gateway for the instance. Only + // one interface can be the default gateway for the instance. + bool default_gateway = 3; + + // Type of network. + Network.Type network_type = 4; + + // An identifier for the `Network`, generated by the backend. + string id = 5; + } + + // List of logical network interfaces within a logical interface. + repeated LogicalNetworkInterface logical_network_interfaces = 1; + + // Interface name. This is of syntax or and + // forms part of the network template name. + string name = 2; + + // The index of the logical interface mapping to the index of the hardware + // bond or nic on the chosen network template. + int32 interface_index = 3; +} + +// Message for requesting network information. +message GetNetworkRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Network" + } + ]; +} + +// Message for requesting a list of networks. +message ListNetworksRequest { + // Required. Parent value for ListNetworksRequest. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Requested page size. The server might return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results from the server. + string page_token = 3; + + // List filter. + string filter = 4; +} + +// Response message containing the list of networks. +message ListNetworksResponse { + // The list of networks. + repeated Network networks = 1; + + // A token identifying a page of results from the server. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message requesting to updating a network. +message UpdateNetworkRequest { + // Required. The network to update. + // + // The `name` field is used to identify the instance to update. + // Format: projects/{project}/locations/{location}/networks/{network} + Network network = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to update. + // The only currently supported fields are: + // `labels`, `reservations` + google.protobuf.FieldMask update_mask = 2; +} + +// Network with all used IP addresses. +message NetworkUsage { + // Network. + Network network = 1; + + // All used IP addresses in this network. + repeated string used_ips = 2; +} + +// Request to get networks with IPs. +message ListNetworkUsageRequest { + // Required. Parent value (project and location). + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; +} + +// Response with Networks with IPs +message ListNetworkUsageResponse { + // Networks with IPs. + repeated NetworkUsage networks = 1; +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto new file mode 100644 index 0000000..29d2a80 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto @@ -0,0 +1,164 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.baremetalsolution.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option java_multiple_files = true; +option java_outer_classname = "NfsShareProto"; +option java_package = "com.google.cloud.baremetalsolution.v2"; +option php_namespace = "Google\\Cloud\\BareMetalSolution\\V2"; +option ruby_package = "Google::Cloud::BareMetalSolution::V2"; + +// An NFS share. +message NfsShare { + option (google.api.resource) = { + type: "baremetalsolution.googleapis.com/NFSShare" + pattern: "projects/{project}/locations/{location}/nfsShares/{nfs_share}" + }; + + // The possible states for this NFS share. + enum State { + // The share is in an unknown state. + STATE_UNSPECIFIED = 0; + + // The share has been provisioned. + PROVISIONED = 1; + } + + // The possible mount permissions. + enum MountPermissions { + // Permissions were not specified. + MOUNT_PERMISSIONS_UNSPECIFIED = 0; + + // NFS share can be mount with read-only permissions. + READ = 1; + + // NFS share can be mount with read-write permissions. + READ_WRITE = 2; + } + + // Represents an 'access point' for the share. + message AllowedClient { + // The network the access point sits on. + string network = 1 [(google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Network" + }]; + + // The IP address of the share on this network. + string share_ip = 2; + + // The subnet of IP addresses permitted to access the share. + string allowed_clients_cidr = 3; + + // Mount permissions. + MountPermissions mount_permissions = 4; + + // Allow dev flag. Which controls whether to allow creation of devices. + bool allow_dev = 5; + + // Allow the setuid flag. + bool allow_suid = 6; + + // Disable root squashing, which is a feature of NFS. + // Root squash is a special mapping of the remote superuser (root) identity + // when using identity authentication. + bool no_root_squash = 7; + } + + // Output only. The name of the NFS share. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An identifier for the NFS share, generated by the backend. + string nfs_share_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The state of the NFS share. + State state = 3; + + // The volume containing the share. + string volume = 4 [(google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Volume" + }]; + + // List of allowed access points. + repeated AllowedClient allowed_clients = 5; + + // Labels as key value pairs. + map labels = 6; +} + +// Message for requesting NFS share information. +message GetNfsShareRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/NFSShare" + } + ]; +} + +// Message for requesting a list of NFS shares. +message ListNfsSharesRequest { + // Required. Parent value for ListNfsSharesRequest. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Requested page size. The server might return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results from the server. + string page_token = 3; + + // List filter. + string filter = 4; +} + +// Response message containing the list of NFS shares. +message ListNfsSharesResponse { + // The list of NFS shares. + repeated NfsShare nfs_shares = 1; + + // A token identifying a page of results from the server. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message requesting to updating a NFS share. +message UpdateNfsShareRequest { + // Required. The NFS share to update. + // + // The `name` field is used to identify the NFS share to update. + // Format: projects/{project}/locations/{location}/nfsShares/{nfs_share} + NfsShare nfs_share = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to update. + // The only currently supported fields are: + // `labels` + google.protobuf.FieldMask update_mask = 2; +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto new file mode 100644 index 0000000..39d66f9 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto @@ -0,0 +1,231 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.baremetalsolution.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.BareMetalSolution.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; +option java_multiple_files = true; +option java_outer_classname = "VolumeProto"; +option java_package = "com.google.cloud.baremetalsolution.v2"; +option php_namespace = "Google\\Cloud\\BareMetalSolution\\V2"; +option ruby_package = "Google::Cloud::BareMetalSolution::V2"; + +// A storage volume. +message Volume { + option (google.api.resource) = { + type: "baremetalsolution.googleapis.com/Volume" + pattern: "projects/{project}/locations/{location}/volumes/{volume}" + }; + + // The storage type for a volume. + enum StorageType { + // The storage type for this volume is unknown. + STORAGE_TYPE_UNSPECIFIED = 0; + + // The storage type for this volume is SSD. + SSD = 1; + + // This storage type for this volume is HDD. + HDD = 2; + } + + // The possible states for a storage volume. + enum State { + // The storage volume is in an unknown state. + STATE_UNSPECIFIED = 0; + + // The storage volume is being created. + CREATING = 1; + + // The storage volume is ready for use. + READY = 2; + + // The storage volume has been requested to be deleted. + DELETING = 3; + } + + // Details about snapshot space reservation and usage on the storage volume. + message SnapshotReservationDetail { + // The space on this storage volume reserved for snapshots, shown in GiB. + int64 reserved_space_gib = 1; + + // The percent of snapshot space on this storage volume actually being used + // by the snapshot copies. This value might be higher than 100% if the + // snapshot copies have overflowed into the data portion of the storage + // volume. + int32 reserved_space_used_percent = 2; + + // The amount, in GiB, of available space in this storage volume's reserved + // snapshot space. + int64 reserved_space_remaining_gib = 3; + + // Percent of the total Volume size reserved for snapshot copies. + // Enabling snapshots requires reserving 20% or more of + // the storage volume space for snapshots. Maximum reserved space for + // snapshots is 40%. + // Setting this field will effectively set snapshot_enabled to true. + int32 reserved_space_percent = 4; + } + + // The kinds of auto delete behavior to use when snapshot reserved space is + // full. + enum SnapshotAutoDeleteBehavior { + // The unspecified behavior. + SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED = 0; + + // Don't delete any snapshots. This disables new snapshot creation, as + // long as the snapshot reserved space is full. + DISABLED = 1; + + // Delete the oldest snapshots first. + OLDEST_FIRST = 2; + + // Delete the newest snapshots first. + NEWEST_FIRST = 3; + } + + // Output only. The resource name of this `Volume`. + // Resource names are schemeless URIs that follow the conventions in + // https://cloud.google.com/apis/design/resource_names. + // Format: + // `projects/{project}/locations/{location}/volumes/{volume}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // An identifier for the `Volume`, generated by the backend. + string id = 11; + + // The storage type for this volume. + StorageType storage_type = 2; + + // The state of this storage volume. + State state = 3; + + // The requested size of this storage volume, in GiB. + int64 requested_size_gib = 4; + + // The current size of this storage volume, in GiB, including space reserved + // for snapshots. This size might be different than the requested size if the + // storage volume has been configured with auto grow or auto shrink. + int64 current_size_gib = 5; + + // Additional emergency size that was requested for this Volume, in GiB. + // current_size_gib includes this value. + int64 emergency_size_gib = 14; + + // The size, in GiB, that this storage volume has expanded as a result of an + // auto grow policy. In the absence of auto-grow, the value is 0. + int64 auto_grown_size_gib = 6; + + // The space remaining in the storage volume for new LUNs, in GiB, excluding + // space reserved for snapshots. + int64 remaining_space_gib = 7; + + // Details about snapshot space reservation and usage on the storage volume. + SnapshotReservationDetail snapshot_reservation_detail = 8; + + // The behavior to use when snapshot reserved space is full. + SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + + // Labels as key value pairs. + map labels = 12; + + // Whether snapshots are enabled. + bool snapshot_enabled = 13; + + // Immutable. Pod name. + string pod = 15 [(google.api.field_behavior) = IMMUTABLE]; +} + +// Message for requesting storage volume information. +message GetVolumeRequest { + // Required. Name of the resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Volume" + } + ]; +} + +// Message for requesting a list of storage volumes. +message ListVolumesRequest { + // Required. Parent value for ListVolumesRequest. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Requested page size. The server might return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results from the server. + string page_token = 3; + + // List filter. + string filter = 4; +} + +// Response message containing the list of storage volumes. +message ListVolumesResponse { + // The list of storage volumes. + repeated Volume volumes = 1; + + // A token identifying a page of results from the server. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for updating a volume. +message UpdateVolumeRequest { + // Required. The volume to update. + // + // The `name` field is used to identify the volume to update. + // Format: projects/{project}/locations/{location}/volumes/{volume} + Volume volume = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to update. + // The only currently supported fields are: + // `snapshot_auto_delete_behavior` + // `snapshot_schedule_policy_name` + // 'labels' + // 'snapshot_enabled' + // 'snapshot_reservation_detail.reserved_space_percent' + google.protobuf.FieldMask update_mask = 2; +} + +// Request for emergency resize Volume. +message ResizeVolumeRequest { + // Required. Volume to resize. + string volume = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "baremetalsolution.googleapis.com/Volume" + } + ]; + + // New Volume size, in GiB. + int64 size_gib = 2; +} diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000..a3a8729 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings; +import com.google.cloud.baremetalsolution.v2.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. + BareMetalSolutionSettings bareMetalSolutionSettings = + BareMetalSolutionSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + BareMetalSolutionClient bareMetalSolutionClient = + BareMetalSolutionClient.create(bareMetalSolutionSettings); + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000..875f49c --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_create_setendpoint_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings; +import com.google.cloud.baremetalsolution.v2.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. + BareMetalSolutionSettings bareMetalSolutionSettings = + BareMetalSolutionSettings.newBuilder().setEndpoint(myEndpoint).build(); + BareMetalSolutionClient bareMetalSolutionClient = + BareMetalSolutionClient.create(bareMetalSolutionSettings); + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java new file mode 100644 index 0000000..71244dd --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.DetachLunRequest; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.LunName; +import com.google.longrunning.Operation; + +public class AsyncDetachLun { + + public static void main(String[] args) throws Exception { + asyncDetachLun(); + } + + public static void asyncDetachLun() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + DetachLunRequest request = + DetachLunRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setLun(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + .build(); + ApiFuture future = bareMetalSolutionClient.detachLunCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java new file mode 100644 index 0000000..86555e6 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java @@ -0,0 +1,50 @@ +/* + * 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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.DetachLunRequest; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.LunName; +import com.google.cloud.baremetalsolution.v2.OperationMetadata; + +public class AsyncDetachLunLRO { + + public static void main(String[] args) throws Exception { + asyncDetachLunLRO(); + } + + public static void asyncDetachLunLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + DetachLunRequest request = + DetachLunRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setLun(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + .build(); + OperationFuture future = + bareMetalSolutionClient.detachLunOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java new file mode 100644 index 0000000..d789e2c --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.DetachLunRequest; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.LunName; + +public class SyncDetachLun { + + public static void main(String[] args) throws Exception { + syncDetachLun(); + } + + public static void syncDetachLun() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + DetachLunRequest request = + DetachLunRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setLun(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + .build(); + Instance response = bareMetalSolutionClient.detachLunAsync(request).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java new file mode 100644 index 0000000..35c72e4 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_instancenamelunname_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.LunName; + +public class SyncDetachLunInstancenameLunname { + + public static void main(String[] args) throws Exception { + syncDetachLunInstancenameLunname(); + } + + public static void syncDetachLunInstancenameLunname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + Instance response = bareMetalSolutionClient.detachLunAsync(instance, lun).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_instancenamelunname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java new file mode 100644 index 0000000..768a009 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_instancenamestring_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.LunName; + +public class SyncDetachLunInstancenameString { + + public static void main(String[] args) throws Exception { + syncDetachLunInstancenameString(); + } + + public static void syncDetachLunInstancenameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + String lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString(); + Instance response = bareMetalSolutionClient.detachLunAsync(instance, lun).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_instancenamestring_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java new file mode 100644 index 0000000..59b2861 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_stringlunname_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.LunName; + +public class SyncDetachLunStringLunname { + + public static void main(String[] args) throws Exception { + syncDetachLunStringLunname(); + } + + public static void syncDetachLunStringLunname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + Instance response = bareMetalSolutionClient.detachLunAsync(instance, lun).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_stringlunname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java new file mode 100644 index 0000000..22ee2a0 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_stringstring_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.LunName; + +public class SyncDetachLunStringString { + + public static void main(String[] args) throws Exception { + syncDetachLunStringString(); + } + + public static void syncDetachLunStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + String lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString(); + Instance response = bareMetalSolutionClient.detachLunAsync(instance, lun).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_detachlun_stringstring_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java new file mode 100644 index 0000000..a3945d0 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.GetInstanceRequest; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.InstanceName; + +public class AsyncGetInstance { + + public static void main(String[] args) throws Exception { + asyncGetInstance(); + } + + public static void asyncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + GetInstanceRequest request = + GetInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = + bareMetalSolutionClient.getInstanceCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java new file mode 100644 index 0000000..cc3f53c --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.GetInstanceRequest; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.InstanceName; + +public class SyncGetInstance { + + public static void main(String[] args) throws Exception { + syncGetInstance(); + } + + public static void syncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + GetInstanceRequest request = + GetInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + Instance response = bareMetalSolutionClient.getInstance(request); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java new file mode 100644 index 0000000..f0a4992 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_instancename_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.InstanceName; + +public class SyncGetInstanceInstancename { + + public static void main(String[] args) throws Exception { + syncGetInstanceInstancename(); + } + + public static void syncGetInstanceInstancename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + Instance response = bareMetalSolutionClient.getInstance(name); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_instancename_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java new file mode 100644 index 0000000..c1bf2c3 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.InstanceName; + +public class SyncGetInstanceString { + + public static void main(String[] args) throws Exception { + syncGetInstanceString(); + } + + public static void syncGetInstanceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + Instance response = bareMetalSolutionClient.getInstance(name); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getinstance_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java new file mode 100644 index 0000000..f0ac71b --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getlun_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.GetLunRequest; +import com.google.cloud.baremetalsolution.v2.Lun; +import com.google.cloud.baremetalsolution.v2.LunName; + +public class AsyncGetLun { + + public static void main(String[] args) throws Exception { + asyncGetLun(); + } + + public static void asyncGetLun() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + GetLunRequest request = + GetLunRequest.newBuilder() + .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + .build(); + ApiFuture future = bareMetalSolutionClient.getLunCallable().futureCall(request); + // Do something. + Lun response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getlun_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java new file mode 100644 index 0000000..7e1ea7f --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getlun_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.GetLunRequest; +import com.google.cloud.baremetalsolution.v2.Lun; +import com.google.cloud.baremetalsolution.v2.LunName; + +public class SyncGetLun { + + public static void main(String[] args) throws Exception { + syncGetLun(); + } + + public static void syncGetLun() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + GetLunRequest request = + GetLunRequest.newBuilder() + .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + .build(); + Lun response = bareMetalSolutionClient.getLun(request); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getlun_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java new file mode 100644 index 0000000..bf5634e --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getlun_lunname_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Lun; +import com.google.cloud.baremetalsolution.v2.LunName; + +public class SyncGetLunLunname { + + public static void main(String[] args) throws Exception { + syncGetLunLunname(); + } + + public static void syncGetLunLunname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + LunName name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + Lun response = bareMetalSolutionClient.getLun(name); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getlun_lunname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java new file mode 100644 index 0000000..960ffad --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getlun_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Lun; +import com.google.cloud.baremetalsolution.v2.LunName; + +public class SyncGetLunString { + + public static void main(String[] args) throws Exception { + syncGetLunString(); + } + + public static void syncGetLunString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString(); + Lun response = bareMetalSolutionClient.getLun(name); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getlun_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java new file mode 100644 index 0000000..f1e0402 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.GetNetworkRequest; +import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.NetworkName; + +public class AsyncGetNetwork { + + public static void main(String[] args) throws Exception { + asyncGetNetwork(); + } + + public static void asyncGetNetwork() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + GetNetworkRequest request = + GetNetworkRequest.newBuilder() + .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + .build(); + ApiFuture future = bareMetalSolutionClient.getNetworkCallable().futureCall(request); + // Do something. + Network response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java new file mode 100644 index 0000000..e996541 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.GetNetworkRequest; +import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.NetworkName; + +public class SyncGetNetwork { + + public static void main(String[] args) throws Exception { + syncGetNetwork(); + } + + public static void syncGetNetwork() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + GetNetworkRequest request = + GetNetworkRequest.newBuilder() + .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + .build(); + Network response = bareMetalSolutionClient.getNetwork(request); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java new file mode 100644 index 0000000..76671c6 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_networkname_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.NetworkName; + +public class SyncGetNetworkNetworkname { + + public static void main(String[] args) throws Exception { + syncGetNetworkNetworkname(); + } + + public static void syncGetNetworkNetworkname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]"); + Network response = bareMetalSolutionClient.getNetwork(name); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_networkname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java new file mode 100644 index 0000000..06954a2 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.NetworkName; + +public class SyncGetNetworkString { + + public static void main(String[] args) throws Exception { + syncGetNetworkString(); + } + + public static void syncGetNetworkString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString(); + Network response = bareMetalSolutionClient.getNetwork(name); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnetwork_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java new file mode 100644 index 0000000..162584b --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.GetNfsShareRequest; +import com.google.cloud.baremetalsolution.v2.NFSShareName; +import com.google.cloud.baremetalsolution.v2.NfsShare; + +public class AsyncGetNfsShare { + + public static void main(String[] args) throws Exception { + asyncGetNfsShare(); + } + + public static void asyncGetNfsShare() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + GetNfsShareRequest request = + GetNfsShareRequest.newBuilder() + .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) + .build(); + ApiFuture future = + bareMetalSolutionClient.getNfsShareCallable().futureCall(request); + // Do something. + NfsShare response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java new file mode 100644 index 0000000..020b976 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.GetNfsShareRequest; +import com.google.cloud.baremetalsolution.v2.NFSShareName; +import com.google.cloud.baremetalsolution.v2.NfsShare; + +public class SyncGetNfsShare { + + public static void main(String[] args) throws Exception { + syncGetNfsShare(); + } + + public static void syncGetNfsShare() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + GetNfsShareRequest request = + GetNfsShareRequest.newBuilder() + .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) + .build(); + NfsShare response = bareMetalSolutionClient.getNfsShare(request); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java new file mode 100644 index 0000000..a155120 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_nfssharename_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.NFSShareName; +import com.google.cloud.baremetalsolution.v2.NfsShare; + +public class SyncGetNfsShareNfssharename { + + public static void main(String[] args) throws Exception { + syncGetNfsShareNfssharename(); + } + + public static void syncGetNfsShareNfssharename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + NFSShareName name = NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"); + NfsShare response = bareMetalSolutionClient.getNfsShare(name); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_nfssharename_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java new file mode 100644 index 0000000..39f1180 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.NFSShareName; +import com.google.cloud.baremetalsolution.v2.NfsShare; + +public class SyncGetNfsShareString { + + public static void main(String[] args) throws Exception { + syncGetNfsShareString(); + } + + public static void syncGetNfsShareString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String name = NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString(); + NfsShare response = bareMetalSolutionClient.getNfsShare(name); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getnfsshare_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java new file mode 100644 index 0000000..5f72baf --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getvolume_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.GetVolumeRequest; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class AsyncGetVolume { + + public static void main(String[] args) throws Exception { + asyncGetVolume(); + } + + public static void asyncGetVolume() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + GetVolumeRequest request = + GetVolumeRequest.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .build(); + ApiFuture future = bareMetalSolutionClient.getVolumeCallable().futureCall(request); + // Do something. + Volume response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getvolume_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java new file mode 100644 index 0000000..a0ee963 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getvolume_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.GetVolumeRequest; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class SyncGetVolume { + + public static void main(String[] args) throws Exception { + syncGetVolume(); + } + + public static void syncGetVolume() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + GetVolumeRequest request = + GetVolumeRequest.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .build(); + Volume response = bareMetalSolutionClient.getVolume(request); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getvolume_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java new file mode 100644 index 0000000..c83bd22 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getvolume_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class SyncGetVolumeString { + + public static void main(String[] args) throws Exception { + syncGetVolumeString(); + } + + public static void syncGetVolumeString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); + Volume response = bareMetalSolutionClient.getVolume(name); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getvolume_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java new file mode 100644 index 0000000..074a0bc --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_getvolume_volumename_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class SyncGetVolumeVolumename { + + public static void main(String[] args) throws Exception { + syncGetVolumeVolumename(); + } + + public static void syncGetVolumeVolumename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + Volume response = bareMetalSolutionClient.getVolume(name); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_getvolume_volumename_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java new file mode 100644 index 0000000..c4750dd --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java @@ -0,0 +1,52 @@ +/* + * 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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listinstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.ListInstancesRequest; +import com.google.cloud.baremetalsolution.v2.LocationName; + +public class AsyncListInstances { + + public static void main(String[] args) throws Exception { + asyncListInstances(); + } + + public static void asyncListInstances() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + bareMetalSolutionClient.listInstancesPagedCallable().futureCall(request); + // Do something. + for (Instance element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listinstances_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java new file mode 100644 index 0000000..9eccd22 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java @@ -0,0 +1,60 @@ +/* + * 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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listinstances_paged_async] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.ListInstancesRequest; +import com.google.cloud.baremetalsolution.v2.ListInstancesResponse; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.common.base.Strings; + +public class AsyncListInstancesPaged { + + public static void main(String[] args) throws Exception { + asyncListInstancesPaged(); + } + + public static void asyncListInstancesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListInstancesResponse response = + bareMetalSolutionClient.listInstancesCallable().call(request); + for (Instance element : response.getInstancesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listinstances_paged_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java new file mode 100644 index 0000000..35af1be --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listinstances_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.ListInstancesRequest; +import com.google.cloud.baremetalsolution.v2.LocationName; + +public class SyncListInstances { + + public static void main(String[] args) throws Exception { + syncListInstances(); + } + + public static void syncListInstances() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Instance element : bareMetalSolutionClient.listInstances(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listinstances_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java new file mode 100644 index 0000000..05ed346 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listinstances_locationname_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.LocationName; + +public class SyncListInstancesLocationname { + + public static void main(String[] args) throws Exception { + syncListInstancesLocationname(); + } + + public static void syncListInstancesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Instance element : bareMetalSolutionClient.listInstances(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listinstances_locationname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java new file mode 100644 index 0000000..8dfa2e8 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listinstances_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.LocationName; + +public class SyncListInstancesString { + + public static void main(String[] args) throws Exception { + syncListInstancesString(); + } + + public static void syncListInstancesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Instance element : bareMetalSolutionClient.listInstances(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listinstances_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java new file mode 100644 index 0000000..69dbb66 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java @@ -0,0 +1,50 @@ +/* + * 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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listluns_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListLunsRequest; +import com.google.cloud.baremetalsolution.v2.Lun; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class AsyncListLuns { + + public static void main(String[] args) throws Exception { + asyncListLuns(); + } + + public static void asyncListLuns() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListLunsRequest request = + ListLunsRequest.newBuilder() + .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = bareMetalSolutionClient.listLunsPagedCallable().futureCall(request); + // Do something. + for (Lun element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listluns_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java new file mode 100644 index 0000000..ac2fd3f --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java @@ -0,0 +1,58 @@ +/* + * 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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listluns_paged_async] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListLunsRequest; +import com.google.cloud.baremetalsolution.v2.ListLunsResponse; +import com.google.cloud.baremetalsolution.v2.Lun; +import com.google.cloud.baremetalsolution.v2.VolumeName; +import com.google.common.base.Strings; + +public class AsyncListLunsPaged { + + public static void main(String[] args) throws Exception { + asyncListLunsPaged(); + } + + public static void asyncListLunsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListLunsRequest request = + ListLunsRequest.newBuilder() + .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLunsResponse response = bareMetalSolutionClient.listLunsCallable().call(request); + for (Lun element : response.getLunsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listluns_paged_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java new file mode 100644 index 0000000..08db5fa --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listluns_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListLunsRequest; +import com.google.cloud.baremetalsolution.v2.Lun; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class SyncListLuns { + + public static void main(String[] args) throws Exception { + syncListLuns(); + } + + public static void syncListLuns() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListLunsRequest request = + ListLunsRequest.newBuilder() + .setParent(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Lun element : bareMetalSolutionClient.listLuns(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listluns_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java new file mode 100644 index 0000000..9aabcec --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listluns_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Lun; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class SyncListLunsString { + + public static void main(String[] args) throws Exception { + syncListLunsString(); + } + + public static void syncListLunsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); + for (Lun element : bareMetalSolutionClient.listLuns(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listluns_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java new file mode 100644 index 0000000..9b61c7d --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listluns_volumename_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Lun; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class SyncListLunsVolumename { + + public static void main(String[] args) throws Exception { + syncListLunsVolumename(); + } + + public static void syncListLunsVolumename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + for (Lun element : bareMetalSolutionClient.listLuns(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listluns_volumename_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java new file mode 100644 index 0000000..74c2b5e --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java @@ -0,0 +1,52 @@ +/* + * 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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnetworks_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListNetworksRequest; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.Network; + +public class AsyncListNetworks { + + public static void main(String[] args) throws Exception { + asyncListNetworks(); + } + + public static void asyncListNetworks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListNetworksRequest request = + ListNetworksRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + bareMetalSolutionClient.listNetworksPagedCallable().futureCall(request); + // Do something. + for (Network element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnetworks_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java new file mode 100644 index 0000000..7effaae --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java @@ -0,0 +1,60 @@ +/* + * 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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnetworks_paged_async] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListNetworksRequest; +import com.google.cloud.baremetalsolution.v2.ListNetworksResponse; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.Network; +import com.google.common.base.Strings; + +public class AsyncListNetworksPaged { + + public static void main(String[] args) throws Exception { + asyncListNetworksPaged(); + } + + public static void asyncListNetworksPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListNetworksRequest request = + ListNetworksRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListNetworksResponse response = + bareMetalSolutionClient.listNetworksCallable().call(request); + for (Network element : response.getNetworksList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnetworks_paged_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java new file mode 100644 index 0000000..c7b6162 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnetworks_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListNetworksRequest; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.Network; + +public class SyncListNetworks { + + public static void main(String[] args) throws Exception { + syncListNetworks(); + } + + public static void syncListNetworks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListNetworksRequest request = + ListNetworksRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Network element : bareMetalSolutionClient.listNetworks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnetworks_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java new file mode 100644 index 0000000..5c59e19 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnetworks_locationname_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.Network; + +public class SyncListNetworksLocationname { + + public static void main(String[] args) throws Exception { + syncListNetworksLocationname(); + } + + public static void syncListNetworksLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Network element : bareMetalSolutionClient.listNetworks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnetworks_locationname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java new file mode 100644 index 0000000..a909ba3 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnetworks_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.Network; + +public class SyncListNetworksString { + + public static void main(String[] args) throws Exception { + syncListNetworksString(); + } + + public static void syncListNetworksString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Network element : bareMetalSolutionClient.listNetworks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnetworks_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java new file mode 100644 index 0000000..9d08707 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnetworkusage_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse; +import com.google.cloud.baremetalsolution.v2.LocationName; + +public class AsyncListNetworkUsage { + + public static void main(String[] args) throws Exception { + asyncListNetworkUsage(); + } + + public static void asyncListNetworkUsage() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListNetworkUsageRequest request = + ListNetworkUsageRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + bareMetalSolutionClient.listNetworkUsageCallable().futureCall(request); + // Do something. + ListNetworkUsageResponse response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnetworkusage_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java new file mode 100644 index 0000000..1f8147c --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnetworkusage_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse; +import com.google.cloud.baremetalsolution.v2.LocationName; + +public class SyncListNetworkUsage { + + public static void main(String[] args) throws Exception { + syncListNetworkUsage(); + } + + public static void syncListNetworkUsage() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListNetworkUsageRequest request = + ListNetworkUsageRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ListNetworkUsageResponse response = bareMetalSolutionClient.listNetworkUsage(request); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnetworkusage_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java new file mode 100644 index 0000000..ca5edbb --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnetworkusage_locationname_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse; +import com.google.cloud.baremetalsolution.v2.LocationName; + +public class SyncListNetworkUsageLocationname { + + public static void main(String[] args) throws Exception { + syncListNetworkUsageLocationname(); + } + + public static void syncListNetworkUsageLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + ListNetworkUsageResponse response = bareMetalSolutionClient.listNetworkUsage(location); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnetworkusage_locationname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java new file mode 100644 index 0000000..c2fe15b --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnetworkusage_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse; +import com.google.cloud.baremetalsolution.v2.LocationName; + +public class SyncListNetworkUsageString { + + public static void main(String[] args) throws Exception { + syncListNetworkUsageString(); + } + + public static void syncListNetworkUsageString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + ListNetworkUsageResponse response = bareMetalSolutionClient.listNetworkUsage(location); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnetworkusage_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java new file mode 100644 index 0000000..1897424 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java @@ -0,0 +1,52 @@ +/* + * 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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnfsshares_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.NfsShare; + +public class AsyncListNfsShares { + + public static void main(String[] args) throws Exception { + asyncListNfsShares(); + } + + public static void asyncListNfsShares() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListNfsSharesRequest request = + ListNfsSharesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + bareMetalSolutionClient.listNfsSharesPagedCallable().futureCall(request); + // Do something. + for (NfsShare element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnfsshares_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java new file mode 100644 index 0000000..ed4ee13 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java @@ -0,0 +1,60 @@ +/* + * 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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnfsshares_paged_async] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.NfsShare; +import com.google.common.base.Strings; + +public class AsyncListNfsSharesPaged { + + public static void main(String[] args) throws Exception { + asyncListNfsSharesPaged(); + } + + public static void asyncListNfsSharesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListNfsSharesRequest request = + ListNfsSharesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListNfsSharesResponse response = + bareMetalSolutionClient.listNfsSharesCallable().call(request); + for (NfsShare element : response.getNfsSharesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnfsshares_paged_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java new file mode 100644 index 0000000..a921557 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnfsshares_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.NfsShare; + +public class SyncListNfsShares { + + public static void main(String[] args) throws Exception { + syncListNfsShares(); + } + + public static void syncListNfsShares() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListNfsSharesRequest request = + ListNfsSharesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (NfsShare element : bareMetalSolutionClient.listNfsShares(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnfsshares_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java new file mode 100644 index 0000000..ff45797 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnfsshares_locationname_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.NfsShare; + +public class SyncListNfsSharesLocationname { + + public static void main(String[] args) throws Exception { + syncListNfsSharesLocationname(); + } + + public static void syncListNfsSharesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (NfsShare element : bareMetalSolutionClient.listNfsShares(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnfsshares_locationname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java new file mode 100644 index 0000000..b8404fe --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listnfsshares_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.NfsShare; + +public class SyncListNfsSharesString { + + public static void main(String[] args) throws Exception { + syncListNfsSharesString(); + } + + public static void syncListNfsSharesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (NfsShare element : bareMetalSolutionClient.listNfsShares(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listnfsshares_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java new file mode 100644 index 0000000..ed7f526 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java @@ -0,0 +1,52 @@ +/* + * 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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listvolumes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListVolumesRequest; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.Volume; + +public class AsyncListVolumes { + + public static void main(String[] args) throws Exception { + asyncListVolumes(); + } + + public static void asyncListVolumes() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListVolumesRequest request = + ListVolumesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + bareMetalSolutionClient.listVolumesPagedCallable().futureCall(request); + // Do something. + for (Volume element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listvolumes_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java new file mode 100644 index 0000000..4a713d0 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listvolumes_paged_async] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListVolumesRequest; +import com.google.cloud.baremetalsolution.v2.ListVolumesResponse; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.common.base.Strings; + +public class AsyncListVolumesPaged { + + public static void main(String[] args) throws Exception { + asyncListVolumesPaged(); + } + + public static void asyncListVolumesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListVolumesRequest request = + ListVolumesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListVolumesResponse response = bareMetalSolutionClient.listVolumesCallable().call(request); + for (Volume element : response.getVolumesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listvolumes_paged_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java new file mode 100644 index 0000000..f9bc042 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listvolumes_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ListVolumesRequest; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.Volume; + +public class SyncListVolumes { + + public static void main(String[] args) throws Exception { + syncListVolumes(); + } + + public static void syncListVolumes() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ListVolumesRequest request = + ListVolumesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Volume element : bareMetalSolutionClient.listVolumes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listvolumes_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java new file mode 100644 index 0000000..b348d64 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listvolumes_locationname_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.Volume; + +public class SyncListVolumesLocationname { + + public static void main(String[] args) throws Exception { + syncListVolumesLocationname(); + } + + public static void syncListVolumesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Volume element : bareMetalSolutionClient.listVolumes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listvolumes_locationname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java new file mode 100644 index 0000000..b95bddd --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_listvolumes_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.LocationName; +import com.google.cloud.baremetalsolution.v2.Volume; + +public class SyncListVolumesString { + + public static void main(String[] args) throws Exception { + syncListVolumesString(); + } + + public static void syncListVolumesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Volume element : bareMetalSolutionClient.listVolumes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_listvolumes_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java new file mode 100644 index 0000000..b1efbfd --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_resetinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.ResetInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncResetInstance { + + public static void main(String[] args) throws Exception { + asyncResetInstance(); + } + + public static void asyncResetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ResetInstanceRequest request = + ResetInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = + bareMetalSolutionClient.resetInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_resetinstance_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java new file mode 100644 index 0000000..0d73bc0 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_resetinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.OperationMetadata; +import com.google.cloud.baremetalsolution.v2.ResetInstanceRequest; +import com.google.cloud.baremetalsolution.v2.ResetInstanceResponse; + +public class AsyncResetInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncResetInstanceLRO(); + } + + public static void asyncResetInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ResetInstanceRequest request = + ResetInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + OperationFuture future = + bareMetalSolutionClient.resetInstanceOperationCallable().futureCall(request); + // Do something. + ResetInstanceResponse response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_resetinstance_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java new file mode 100644 index 0000000..63e585a --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_resetinstance_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.ResetInstanceRequest; +import com.google.cloud.baremetalsolution.v2.ResetInstanceResponse; + +public class SyncResetInstance { + + public static void main(String[] args) throws Exception { + syncResetInstance(); + } + + public static void syncResetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ResetInstanceRequest request = + ResetInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ResetInstanceResponse response = bareMetalSolutionClient.resetInstanceAsync(request).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_resetinstance_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java new file mode 100644 index 0000000..b3db967 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_resetinstance_instancename_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.ResetInstanceResponse; + +public class SyncResetInstanceInstancename { + + public static void main(String[] args) throws Exception { + syncResetInstanceInstancename(); + } + + public static void syncResetInstanceInstancename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + ResetInstanceResponse response = bareMetalSolutionClient.resetInstanceAsync(name).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_resetinstance_instancename_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java new file mode 100644 index 0000000..90671ff --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_resetinstance_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.ResetInstanceResponse; + +public class SyncResetInstanceString { + + public static void main(String[] args) throws Exception { + syncResetInstanceString(); + } + + public static void syncResetInstanceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + ResetInstanceResponse response = bareMetalSolutionClient.resetInstanceAsync(name).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_resetinstance_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java new file mode 100644 index 0000000..245f8ba --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_resizevolume_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest; +import com.google.cloud.baremetalsolution.v2.VolumeName; +import com.google.longrunning.Operation; + +public class AsyncResizeVolume { + + public static void main(String[] args) throws Exception { + asyncResizeVolume(); + } + + public static void asyncResizeVolume() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ResizeVolumeRequest request = + ResizeVolumeRequest.newBuilder() + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setSizeGib(847296130) + .build(); + ApiFuture future = + bareMetalSolutionClient.resizeVolumeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_resizevolume_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java new file mode 100644 index 0000000..9a6a360 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_resizevolume_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.OperationMetadata; +import com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class AsyncResizeVolumeLRO { + + public static void main(String[] args) throws Exception { + asyncResizeVolumeLRO(); + } + + public static void asyncResizeVolumeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ResizeVolumeRequest request = + ResizeVolumeRequest.newBuilder() + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setSizeGib(847296130) + .build(); + OperationFuture future = + bareMetalSolutionClient.resizeVolumeOperationCallable().futureCall(request); + // Do something. + Volume response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_resizevolume_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java new file mode 100644 index 0000000..4dfd66e --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_resizevolume_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class SyncResizeVolume { + + public static void main(String[] args) throws Exception { + syncResizeVolume(); + } + + public static void syncResizeVolume() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + ResizeVolumeRequest request = + ResizeVolumeRequest.newBuilder() + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setSizeGib(847296130) + .build(); + Volume response = bareMetalSolutionClient.resizeVolumeAsync(request).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_resizevolume_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java new file mode 100644 index 0000000..68eff39 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_resizevolume_stringlong_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class SyncResizeVolumeStringLong { + + public static void main(String[] args) throws Exception { + syncResizeVolumeStringLong(); + } + + public static void syncResizeVolumeStringLong() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String volume = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString(); + long sizeGib = 847296130; + Volume response = bareMetalSolutionClient.resizeVolumeAsync(volume, sizeGib).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_resizevolume_stringlong_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java new file mode 100644 index 0000000..40bb32c --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_resizevolume_volumenamelong_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.cloud.baremetalsolution.v2.VolumeName; + +public class SyncResizeVolumeVolumenameLong { + + public static void main(String[] args) throws Exception { + syncResizeVolumeVolumenameLong(); + } + + public static void syncResizeVolumeVolumenameLong() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + VolumeName volume = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + long sizeGib = 847296130; + Volume response = bareMetalSolutionClient.resizeVolumeAsync(volume, sizeGib).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_resizevolume_volumenamelong_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java new file mode 100644 index 0000000..fc3b157 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_startinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.StartInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncStartInstance { + + public static void main(String[] args) throws Exception { + asyncStartInstance(); + } + + public static void asyncStartInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + StartInstanceRequest request = + StartInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = + bareMetalSolutionClient.startInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_startinstance_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java new file mode 100644 index 0000000..9b99f8f --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_startinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.OperationMetadata; +import com.google.cloud.baremetalsolution.v2.StartInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StartInstanceResponse; + +public class AsyncStartInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncStartInstanceLRO(); + } + + public static void asyncStartInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + StartInstanceRequest request = + StartInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + OperationFuture future = + bareMetalSolutionClient.startInstanceOperationCallable().futureCall(request); + // Do something. + StartInstanceResponse response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_startinstance_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java new file mode 100644 index 0000000..7650668 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_startinstance_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.StartInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StartInstanceResponse; + +public class SyncStartInstance { + + public static void main(String[] args) throws Exception { + syncStartInstance(); + } + + public static void syncStartInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + StartInstanceRequest request = + StartInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + StartInstanceResponse response = bareMetalSolutionClient.startInstanceAsync(request).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_startinstance_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java new file mode 100644 index 0000000..566811c --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_startinstance_instancename_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.StartInstanceResponse; + +public class SyncStartInstanceInstancename { + + public static void main(String[] args) throws Exception { + syncStartInstanceInstancename(); + } + + public static void syncStartInstanceInstancename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + StartInstanceResponse response = bareMetalSolutionClient.startInstanceAsync(name).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_startinstance_instancename_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java new file mode 100644 index 0000000..545c79a --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_startinstance_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.StartInstanceResponse; + +public class SyncStartInstanceString { + + public static void main(String[] args) throws Exception { + syncStartInstanceString(); + } + + public static void syncStartInstanceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + StartInstanceResponse response = bareMetalSolutionClient.startInstanceAsync(name).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_startinstance_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java new file mode 100644 index 0000000..c76d56b --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_stopinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.StopInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncStopInstance { + + public static void main(String[] args) throws Exception { + asyncStopInstance(); + } + + public static void asyncStopInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + StopInstanceRequest request = + StopInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = + bareMetalSolutionClient.stopInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_stopinstance_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java new file mode 100644 index 0000000..355cc84 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_stopinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.OperationMetadata; +import com.google.cloud.baremetalsolution.v2.StopInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StopInstanceResponse; + +public class AsyncStopInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncStopInstanceLRO(); + } + + public static void asyncStopInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + StopInstanceRequest request = + StopInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + OperationFuture future = + bareMetalSolutionClient.stopInstanceOperationCallable().futureCall(request); + // Do something. + StopInstanceResponse response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_stopinstance_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java new file mode 100644 index 0000000..7e58a56 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_stopinstance_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.StopInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StopInstanceResponse; + +public class SyncStopInstance { + + public static void main(String[] args) throws Exception { + syncStopInstance(); + } + + public static void syncStopInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + StopInstanceRequest request = + StopInstanceRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .build(); + StopInstanceResponse response = bareMetalSolutionClient.stopInstanceAsync(request).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_stopinstance_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java new file mode 100644 index 0000000..3da06d6 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_stopinstance_instancename_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.StopInstanceResponse; + +public class SyncStopInstanceInstancename { + + public static void main(String[] args) throws Exception { + syncStopInstanceInstancename(); + } + + public static void syncStopInstanceInstancename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + StopInstanceResponse response = bareMetalSolutionClient.stopInstanceAsync(name).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_stopinstance_instancename_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java new file mode 100644 index 0000000..8f2b522 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_stopinstance_string_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.InstanceName; +import com.google.cloud.baremetalsolution.v2.StopInstanceResponse; + +public class SyncStopInstanceString { + + public static void main(String[] args) throws Exception { + syncStopInstanceString(); + } + + public static void syncStopInstanceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + StopInstanceResponse response = bareMetalSolutionClient.stopInstanceAsync(name).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_stopinstance_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java new file mode 100644 index 0000000..0572427 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateInstance { + + public static void main(String[] args) throws Exception { + asyncUpdateInstance(); + } + + public static void asyncUpdateInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateInstanceRequest request = + UpdateInstanceRequest.newBuilder() + .setInstance(Instance.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + bareMetalSolutionClient.updateInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java new file mode 100644 index 0000000..2cdcca2 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.OperationMetadata; +import com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateInstanceLRO(); + } + + public static void asyncUpdateInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateInstanceRequest request = + UpdateInstanceRequest.newBuilder() + .setInstance(Instance.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + bareMetalSolutionClient.updateInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java new file mode 100644 index 0000000..0f38ed6 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateInstance { + + public static void main(String[] args) throws Exception { + syncUpdateInstance(); + } + + public static void syncUpdateInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateInstanceRequest request = + UpdateInstanceRequest.newBuilder() + .setInstance(Instance.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Instance response = bareMetalSolutionClient.updateInstanceAsync(request).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java new file mode 100644 index 0000000..564e794 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.protobuf.FieldMask; + +public class SyncUpdateInstanceInstanceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateInstanceInstanceFieldmask(); + } + + public static void syncUpdateInstanceInstanceFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + Instance instance = Instance.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Instance response = bareMetalSolutionClient.updateInstanceAsync(instance, updateMask).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java new file mode 100644 index 0000000..34b1d08 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateNetwork { + + public static void main(String[] args) throws Exception { + asyncUpdateNetwork(); + } + + public static void asyncUpdateNetwork() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateNetworkRequest request = + UpdateNetworkRequest.newBuilder() + .setNetwork(Network.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + bareMetalSolutionClient.updateNetworkCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java new file mode 100644 index 0000000..f6aa5e1 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.OperationMetadata; +import com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateNetworkLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateNetworkLRO(); + } + + public static void asyncUpdateNetworkLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateNetworkRequest request = + UpdateNetworkRequest.newBuilder() + .setNetwork(Network.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + bareMetalSolutionClient.updateNetworkOperationCallable().futureCall(request); + // Do something. + Network response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java new file mode 100644 index 0000000..953e671 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateNetwork { + + public static void main(String[] args) throws Exception { + syncUpdateNetwork(); + } + + public static void syncUpdateNetwork() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateNetworkRequest request = + UpdateNetworkRequest.newBuilder() + .setNetwork(Network.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Network response = bareMetalSolutionClient.updateNetworkAsync(request).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java new file mode 100644 index 0000000..dcb0b17 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Network; +import com.google.protobuf.FieldMask; + +public class SyncUpdateNetworkNetworkFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateNetworkNetworkFieldmask(); + } + + public static void syncUpdateNetworkNetworkFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + Network network = Network.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Network response = bareMetalSolutionClient.updateNetworkAsync(network, updateMask).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java new file mode 100644 index 0000000..2aa9987 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.NfsShare; +import com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateNfsShare { + + public static void main(String[] args) throws Exception { + asyncUpdateNfsShare(); + } + + public static void asyncUpdateNfsShare() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateNfsShareRequest request = + UpdateNfsShareRequest.newBuilder() + .setNfsShare(NfsShare.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + bareMetalSolutionClient.updateNfsShareCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java new file mode 100644 index 0000000..cc15c8a --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.NfsShare; +import com.google.cloud.baremetalsolution.v2.OperationMetadata; +import com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateNfsShareLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateNfsShareLRO(); + } + + public static void asyncUpdateNfsShareLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateNfsShareRequest request = + UpdateNfsShareRequest.newBuilder() + .setNfsShare(NfsShare.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + bareMetalSolutionClient.updateNfsShareOperationCallable().futureCall(request); + // Do something. + NfsShare response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java new file mode 100644 index 0000000..7b52091 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.NfsShare; +import com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateNfsShare { + + public static void main(String[] args) throws Exception { + syncUpdateNfsShare(); + } + + public static void syncUpdateNfsShare() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateNfsShareRequest request = + UpdateNfsShareRequest.newBuilder() + .setNfsShare(NfsShare.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + NfsShare response = bareMetalSolutionClient.updateNfsShareAsync(request).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java new file mode 100644 index 0000000..b825ac2 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.NfsShare; +import com.google.protobuf.FieldMask; + +public class SyncUpdateNfsShareNfsshareFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateNfsShareNfsshareFieldmask(); + } + + public static void syncUpdateNfsShareNfsshareFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + NfsShare nfsShare = NfsShare.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + NfsShare response = bareMetalSolutionClient.updateNfsShareAsync(nfsShare, updateMask).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java new file mode 100644 index 0000000..bb556a2 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatevolume_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVolume { + + public static void main(String[] args) throws Exception { + asyncUpdateVolume(); + } + + public static void asyncUpdateVolume() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateVolumeRequest request = + UpdateVolumeRequest.newBuilder() + .setVolume(Volume.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + bareMetalSolutionClient.updateVolumeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatevolume_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java new file mode 100644 index 0000000..928cdc9 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatevolume_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.OperationMetadata; +import com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVolumeLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateVolumeLRO(); + } + + public static void asyncUpdateVolumeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateVolumeRequest request = + UpdateVolumeRequest.newBuilder() + .setVolume(Volume.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + bareMetalSolutionClient.updateVolumeOperationCallable().futureCall(request); + // Do something. + Volume response = future.get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatevolume_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java new file mode 100644 index 0000000..31fd597 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatevolume_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVolume { + + public static void main(String[] args) throws Exception { + syncUpdateVolume(); + } + + public static void syncUpdateVolume() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + UpdateVolumeRequest request = + UpdateVolumeRequest.newBuilder() + .setVolume(Volume.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Volume response = bareMetalSolutionClient.updateVolumeAsync(request).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatevolume_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java new file mode 100644 index 0000000..85d9b89 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatevolume_volumefieldmask_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVolumeVolumeFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateVolumeVolumeFieldmask(); + } + + public static void syncUpdateVolumeVolumeFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) { + Volume volume = Volume.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Volume response = bareMetalSolutionClient.updateVolumeAsync(volume, updateMask).get(); + } + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatevolume_volumefieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java new file mode 100644 index 0000000..3ecb44f --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionsettings_getinstance_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings; +import java.time.Duration; + +public class SyncGetInstance { + + public static void main(String[] args) throws Exception { + syncGetInstance(); + } + + public static void syncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + BareMetalSolutionSettings.Builder bareMetalSolutionSettingsBuilder = + BareMetalSolutionSettings.newBuilder(); + bareMetalSolutionSettingsBuilder + .getInstanceSettings() + .setRetrySettings( + bareMetalSolutionSettingsBuilder + .getInstanceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + BareMetalSolutionSettings bareMetalSolutionSettings = bareMetalSolutionSettingsBuilder.build(); + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionsettings_getinstance_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java new file mode 100644 index 0000000..503f9e1 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.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.baremetalsolution.v2.stub.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionstubsettings_getinstance_sync] +import com.google.cloud.baremetalsolution.v2.stub.BareMetalSolutionStubSettings; +import java.time.Duration; + +public class SyncGetInstance { + + public static void main(String[] args) throws Exception { + syncGetInstance(); + } + + public static void syncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + BareMetalSolutionStubSettings.Builder bareMetalSolutionSettingsBuilder = + BareMetalSolutionStubSettings.newBuilder(); + bareMetalSolutionSettingsBuilder + .getInstanceSettings() + .setRetrySettings( + bareMetalSolutionSettingsBuilder + .getInstanceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + BareMetalSolutionStubSettings bareMetalSolutionSettings = + bareMetalSolutionSettingsBuilder.build(); + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionstubsettings_getinstance_sync] diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BaremetalsolutionProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BaremetalsolutionProto.java deleted file mode 100644 index 0b76472..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BaremetalsolutionProto.java +++ /dev/null @@ -1,921 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class BaremetalsolutionProto { - private BaremetalsolutionProto() {} - - 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_baremetalsolution_v2_Volume_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetSnapshotSchedulePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetSnapshotSchedulePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetVolumeSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetVolumeSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_DeleteVolumeSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_DeleteVolumeSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VolumeSnapshot_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VolumeSnapshot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_Schedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_Schedule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_CreateSnapshotSchedulePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_CreateSnapshotSchedulePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateSnapshotSchedulePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateSnapshotSchedulePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_DeleteSnapshotSchedulePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_DeleteSnapshotSchedulePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_CreateVolumeSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_CreateVolumeSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_RestoreVolumeSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_RestoreVolumeSnapshotRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/baremetalsolution/v2/bare" - + "metalsolution.proto\022!google.cloud.bareme" - + "talsolution.v2\032\034google/api/annotations.p" - + "roto\032\027google/api/client.proto\032\037google/ap" - + "i/field_behavior.proto\032\031google/api/resou" - + "rce.proto\032#google/longrunning/operations" - + ".proto\032\033google/protobuf/empty.proto\032 goo" - + "gle/protobuf/field_mask.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\301\010\n\006Volume\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022K\n\014storage_type\030\002 \001(\01625.goo" - + "gle.cloud.baremetalsolution.v2.Volume.St" - + "orageType\022>\n\005state\030\003 \001(\0162/.google.cloud." - + "baremetalsolution.v2.Volume.State\022\032\n\022req" - + "uested_size_gib\030\004 \001(\003\022\030\n\020current_size_gi" - + "b\030\005 \001(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023" - + "remaining_space_gib\030\007 \001(\003\022h\n\033snapshot_re" - + "servation_detail\030\010 \001(\0132C.google.cloud.ba" - + "remetalsolution.v2.Volume.SnapshotReserv" - + "ationDetail\022k\n\035snapshot_auto_delete_beha" - + "vior\030\t \001(\0162D.google.cloud.baremetalsolut" - + "ion.v2.Volume.SnapshotAutoDeleteBehavior" - + "\022^\n\030snapshot_schedule_policy\030\n \001(\tB<\372A9\n" - + "7baremetalsolution.googleapis.com/Snapsh" - + "otSchedulePolicy\032\202\001\n\031SnapshotReservation" - + "Detail\022\032\n\022reserved_space_gib\030\001 \001(\003\022#\n\033re" - + "served_space_used_percent\030\002 \001(\005\022$\n\034reser" - + "ved_space_remaining_gib\030\003 \001(\003\"=\n\013Storage" - + "Type\022\034\n\030STORAGE_TYPE_UNSPECIFIED\020\000\022\007\n\003SS" - + "D\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021STATE_UNSPECIFI" - + "ED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETIN" - + "G\020\003\"}\n\032SnapshotAutoDeleteBehavior\022-\n)SNA" - + "PSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED\020\000" - + "\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FIRST\020\002\022\020\n\014NEWE" - + "ST_FIRST\020\003:f\352Ac\n\'baremetalsolution.googl" - + "eapis.com/Volume\0228projects/{project}/loc" - + "ations/{location}/volumes/{volume}\"v\n\022Li" - + "stVolumesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" - + "\n!locations.googleapis.com/Location\022\021\n\tp" - + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\177\n\023Li" - + "stVolumesResponse\022:\n\007volumes\030\001 \003(\0132).goo" - + "gle.cloud.baremetalsolution.v2.Volume\022\027\n" - + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 " - + "\003(\t\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(\tB/\340" - + "A\002\372A)\n\'baremetalsolution.googleapis.com/" - + "Volume\"\307\005\n\003Lun\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\005sta" - + "te\030\002 \001(\0162,.google.cloud.baremetalsolutio" - + "n.v2.Lun.State\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multi" - + "protocol_type\030\004 \001(\01628.google.cloud.barem" - + "etalsolution.v2.Lun.MultiprotocolType\022D\n" - + "\016storage_volume\030\005 \001(\tB,\372A)\n\'baremetalsol" - + "ution.googleapis.com/Volume\022\021\n\tshareable" - + "\030\006 \001(\010\022\020\n\010boot_lun\030\007 \001(\010\022H\n\014storage_type" - + "\030\010 \001(\01622.google.cloud.baremetalsolution." - + "v2.Lun.StorageType\022\014\n\004wwid\030\t \001(\t\"S\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\014" - + "\n\010UPDATING\020\002\022\t\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n" - + "\021MultiprotocolType\022\"\n\036MULTIPROTOCOL_TYPE" - + "_UNSPECIFIED\020\000\022\t\n\005LINUX\020\001\"=\n\013StorageType" - + "\022\034\n\030STORAGE_TYPE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022" - + "\007\n\003HDD\020\002:n\352Ak\n$baremetalsolution.googlea" - + "pis.com/Lun\022Cprojects/{project}/location" - + "s/{location}/volumes/{volume}/luns/{lun}" - + "\"\217\004\n\007Network\022\021\n\004name\030\005 \001(\tB\003\340A\003\022\017\n\007netwo" - + "rk\030\001 \001(\t\022=\n\004type\030\002 \001(\0162/.google.cloud.ba" - + "remetalsolution.v2.Network.Type\022\022\n\nip_ad" - + "dress\030\003 \001(\t\022\023\n\013mac_address\030\004 \003(\t\022?\n\005stat" - + "e\030\006 \001(\01620.google.cloud.baremetalsolution" - + ".v2.Network.State\022\017\n\007vlan_id\030\007 \001(\t\022\014\n\004ci" - + "dr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.google.cloud.bar" - + "emetalsolution.v2.VRF\"5\n\004Type\022\024\n\020TYPE_UN" - + "SPECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISIO" - + "NING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetals" - + "olution.googleapis.com/Network\022:projects" - + "/{project}/locations/{location}/networks" - + "/{network}\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;\n\005stat" - + "e\030\005 \001(\0162,.google.cloud.baremetalsolution" - + ".v2.VRF.State\022D\n\nqos_policy\030\006 \001(\01320.goog" - + "le.cloud.baremetalsolution.v2.VRF.QosPol" - + "icy\022O\n\020vlan_attachments\030\007 \003(\01325.google.c" - + "loud.baremetalsolution.v2.VRF.VlanAttach" - + "ment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbps\030\001 \001(" - + "\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_id\030\001 \001(" - + "\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 \001(\t\"A\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISI" - + "ONING\020\001\022\017\n\013PROVISIONED\020\002\"w\n\023ListNetworks" - + "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locatio" - + "ns.googleapis.com/Location\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\024ListNetwor" - + "ksResponse\022<\n\010networks\030\001 \003(\0132*.google.cl" - + "oud.baremetalsolution.v2.Network\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"S" - + "\n\021GetNetworkRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A" - + "*\n(baremetalsolution.googleapis.com/Netw" - + "ork\"q\n GetSnapshotSchedulePolicyRequest\022" - + "M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7baremetalsolution" - + ".googleapis.com/SnapshotSchedulePolicy\"\323" - + "\005\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create" - + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" - + "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" - + "solution.v2.Instance.State\022\036\n\026hyperthrea" - + "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" - + "gle.cloud.baremetalsolution.v2.Instance." - + "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" - + ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " - + "\003(\0132*.google.cloud.baremetalsolution.v2." - + "Network\022*\n\"interactive_serial_console_en" - + "abled\030\n \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020" - + "\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsolution.g" - + "oogleapis.com/Instance\022\n\tinst" - + "ances\030\001 \003(\0132+.google.cloud.baremetalsolu" - + "tion.v2.Instance\022\027\n\017next_page_token\030\002 \001(" - + "\t\022\023\n\013unreachable\030\003 \003(\t\"U\n\022GetInstanceReq" - + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" - + "ution.googleapis.com/Instance\"W\n\024ResetIn" - + "stanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)bar" - + "emetalsolution.googleapis.com/Instance\"\027" - + "\n\025ResetInstanceResponse\"a\n\030GetVolumeSnap" - + "shotRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/barem" - + "etalsolution.googleapis.com/VolumeSnapsh" - + "ot\"\204\001\n\032ListVolumeSnapshotsRequest\022?\n\006par" - + "ent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution.goo" - + "gleapis.com/Volume\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\"\230\001\n\033ListVolumeSnapshot" - + "sResponse\022K\n\020volume_snapshots\030\001 \003(\01321.go" - + "ogle.cloud.baremetalsolution.v2.VolumeSn" - + "apshot\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"d\n\033DeleteVolumeSnapshotRequ" - + "est\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/baremetalsolu" - + "tion.googleapis.com/VolumeSnapshot\"\200\002\n\021O" - + "perationMetadata\0224\n\013create_time\030\001 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0221\n\010end_ti" - + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A" - + "\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026reques" - + "ted_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_versi" - + "on\030\007 \001(\tB\003\340A\003\"\317\002\n\016VolumeSnapshot\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\002 \001(\t\022\022\n\nsize" - + "_bytes\030\003 \001(\003\0224\n\013create_time\030\004 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\001\022D\n\016storage_vo" - + "lume\030\005 \001(\tB,\372A)\n\'baremetalsolution.googl" - + "eapis.com/Volume:\204\001\352A\200\001\n/baremetalsoluti" - + "on.googleapis.com/VolumeSnapshot\022Mprojec" - + "ts/{project}/locations/{location}/volume" - + "s/{volume}/snapshots/{snapshot}\"\377\002\n\026Snap" - + "shotSchedulePolicy\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\023\n" - + "\013description\030\002 \001(\t\022U\n\tschedules\030\003 \003(\0132B." - + "google.cloud.baremetalsolution.v2.Snapsh" - + "otSchedulePolicy.Schedule\032I\n\010Schedule\022\024\n" - + "\014crontab_spec\030\001 \001(\t\022\027\n\017retention_count\030\002" - + " \001(\005\022\016\n\006prefix\030\003 \001(\t:\232\001\352A\226\001\n7baremetalso" - + "lution.googleapis.com/SnapshotSchedulePo" - + "licy\022[projects/{project}/locations/{loca" - + "tion}/snapshotSchedulePolicies/{snapshot" - + "_schedule_policy}\"\207\001\n#ListSnapshotSchedu" - + "lePoliciesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" - + "#\n!locations.googleapis.com/Location\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\236\001\n$" - + "ListSnapshotSchedulePoliciesResponse\022]\n\032" - + "snapshot_schedule_policies\030\001 \003(\01329.googl" - + "e.cloud.baremetalsolution.v2.SnapshotSch" - + "edulePolicy\022\027\n\017next_page_token\030\002 \001(\t\"\354\001\n" - + "#CreateSnapshotSchedulePolicyRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022`\n\030snapshot_schedule_pol" - + "icy\030\002 \001(\01329.google.cloud.baremetalsoluti" - + "on.v2.SnapshotSchedulePolicyB\003\340A\002\022(\n\033sna" - + "pshot_schedule_policy_id\030\003 \001(\tB\003\340A\002\"\275\001\n#" - + "UpdateSnapshotSchedulePolicyRequest\022`\n\030s" - + "napshot_schedule_policy\030\001 \001(\01329.google.c" - + "loud.baremetalsolution.v2.SnapshotSchedu" - + "lePolicyB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMaskB\003\340A\002\"t\n#DeleteSna" - + "pshotSchedulePolicyRequest\022M\n\004name\030\001 \001(\t" - + "B?\340A\002\372A9\n7baremetalsolution.googleapis.c" - + "om/SnapshotSchedulePolicy\"\206\001\n\023UpdateVolu" - + "meRequest\022>\n\006volume\030\001 \001(\0132).google.cloud" - + ".baremetalsolution.v2.VolumeB\003\340A\002\022/\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "sk\"K\n\rGetLunRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A" - + "&\n$baremetalsolution.googleapis.com/Lun\"" - + "y\n\017ListLunsRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372" - + "A)\n\'baremetalsolution.googleapis.com/Vol" - + "ume\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\"v\n\020ListLunsResponse\0224\n\004luns\030\001 \003(\0132&.g" - + "oogle.cloud.baremetalsolution.v2.Lun\022\027\n\017" - + "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" - + "(\t\"\257\001\n\033CreateVolumeSnapshotRequest\022?\n\006pa" - + "rent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution.go" - + "ogleapis.com/Volume\022O\n\017volume_snapshot\030\002" - + " \001(\01321.google.cloud.baremetalsolution.v2" - + ".VolumeSnapshotB\003\340A\002\"p\n\034RestoreVolumeSna" - + "pshotRequest\022P\n\017volume_snapshot\030\001 \001(\tB7\340" - + "A\002\372A1\n/baremetalsolution.googleapis.com/" - + "VolumeSnapshot2\217#\n\021BareMetalSolution\022\302\001\n" - + "\rListInstances\0227.google.cloud.baremetals" - + "olution.v2.ListInstancesRequest\0328.google" - + ".cloud.baremetalsolution.v2.ListInstance" - + "sResponse\">\202\323\344\223\002/\022-/v2/{parent=projects/" - + "*/locations/*}/instances\332A\006parent\022\257\001\n\013Ge" - + "tInstance\0225.google.cloud.baremetalsoluti" - + "on.v2.GetInstanceRequest\032+.google.cloud." - + "baremetalsolution.v2.Instance\"<\202\323\344\223\002/\022-/" - + "v2/{name=projects/*/locations/*/instance" - + "s/*}\332A\004name\022\333\001\n\rResetInstance\0227.google.c" - + "loud.baremetalsolution.v2.ResetInstanceR" - + "equest\032\035.google.longrunning.Operation\"r\202" - + "\323\344\223\0028\"3/v2/{name=projects/*/locations/*/" - + "instances/*}:reset:\001*\332A\004name\312A*\n\025ResetIn" - + "stanceResponse\022\021OperationMetadata\022\272\001\n\013Li" - + "stVolumes\0225.google.cloud.baremetalsoluti" - + "on.v2.ListVolumesRequest\0326.google.cloud." - + "baremetalsolution.v2.ListVolumesResponse" - + "\"<\202\323\344\223\002-\022+/v2/{parent=projects/*/locatio" - + "ns/*}/volumes\332A\006parent\022\247\001\n\tGetVolume\0223.g" - + "oogle.cloud.baremetalsolution.v2.GetVolu" - + "meRequest\032).google.cloud.baremetalsoluti" - + "on.v2.Volume\":\202\323\344\223\002-\022+/v2/{name=projects" - + "/*/locations/*/volumes/*}\332A\004name\022\334\001\n\014Upd" - + "ateVolume\0226.google.cloud.baremetalsoluti" - + "on.v2.UpdateVolumeRequest\032\035.google.longr" - + "unning.Operation\"u\202\323\344\223\002<22/v2/{volume.na" - + "me=projects/*/locations/*/volumes/*}:\006vo" - + "lume\332A\022volume,update_mask\312A\033\n\006Volume\022\021Op" - + "erationMetadata\022\276\001\n\014ListNetworks\0226.googl" - + "e.cloud.baremetalsolution.v2.ListNetwork" - + "sRequest\0327.google.cloud.baremetalsolutio" - + "n.v2.ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{" - + "parent=projects/*/locations/*}/networks\332" - + "A\006parent\022\253\001\n\nGetNetwork\0224.google.cloud.b" - + "aremetalsolution.v2.GetNetworkRequest\032*." - + "google.cloud.baremetalsolution.v2.Networ" - + "k\";\202\323\344\223\002.\022,/v2/{name=projects/*/location" - + "s/*/networks/*}\332A\004name\022\376\001\n\034ListSnapshotS" - + "chedulePolicies\022F.google.cloud.baremetal" - + "solution.v2.ListSnapshotSchedulePolicies" - + "Request\032G.google.cloud.baremetalsolution" - + ".v2.ListSnapshotSchedulePoliciesResponse" - + "\"M\202\323\344\223\002>\022\022*.goog" - + "le.cloud.baremetalsolution.v2.CreateVolu" - + "meSnapshotRequest\0321.google.cloud.baremet" - + "alsolution.v2.VolumeSnapshot\"i\202\323\344\223\002J\"7/v" - + "2/{parent=projects/*/locations/*/volumes" - + "/*}/snapshots:\017volume_snapshot\332A\026parent," - + "volume_snapshot\022\225\002\n\025RestoreVolumeSnapsho" - + "t\022?.google.cloud.baremetalsolution.v2.Re" - + "storeVolumeSnapshotRequest\032\035.google.long" - + "running.Operation\"\233\001\202\323\344\223\002]\"X/v2/{volume_" - + "snapshot=projects/*/locations/*/volumes/" - + "*/snapshots/*}:restoreVolumeSnapshot:\001*\332" - + "A\017volume_snapshot\312A#\n\016VolumeSnapshot\022\021Op" - + "erationMetadata\022\266\001\n\024DeleteVolumeSnapshot" - + "\022>.google.cloud.baremetalsolution.v2.Del" - + "eteVolumeSnapshotRequest\032\026.google.protob" - + "uf.Empty\"F\202\323\344\223\0029*7/v2/{name=projects/*/l" - + "ocations/*/volumes/*/snapshots/*}\332A\004name" - + "\022\313\001\n\021GetVolumeSnapshot\022;.google.cloud.ba" - + "remetalsolution.v2.GetVolumeSnapshotRequ" - + "est\0321.google.cloud.baremetalsolution.v2." - + "VolumeSnapshot\"F\202\323\344\223\0029\0227/v2/{name=projec" - + "ts/*/locations/*/volumes/*/snapshots/*}\332" - + "A\004name\022\336\001\n\023ListVolumeSnapshots\022=.google." - + "cloud.baremetalsolution.v2.ListVolumeSna" - + "pshotsRequest\032>.google.cloud.baremetalso" - + "lution.v2.ListVolumeSnapshotsResponse\"H\202" - + "\323\344\223\0029\0227/v2/{parent=projects/*/locations/" - + "*/volumes/*}/snapshots\332A\006parent\022\245\001\n\006GetL" - + "un\0220.google.cloud.baremetalsolution.v2.G" - + "etLunRequest\032&.google.cloud.baremetalsol" - + "ution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=projects" - + "/*/locations/*/volumes/*/luns/*}\332A\004name\022" - + "\270\001\n\010ListLuns\0222.google.cloud.baremetalsol" - + "ution.v2.ListLunsRequest\0323.google.cloud." - + "baremetalsolution.v2.ListLunsResponse\"C\202" - + "\323\344\223\0024\0222/v2/{parent=projects/*/locations/" - + "*/volumes/*}/luns\332A\006parent\032T\312A baremetal" - + "solution.googleapis.com\322A.https://www.go" - + "ogleapis.com/auth/cloud-platformB\204\002\n%com" - + ".google.cloud.baremetalsolution.v2B\026Bare" - + "metalsolutionProtoP\001ZRgoogle.golang.org/" - + "genproto/googleapis/cloud/baremetalsolut" - + "ion/v2;baremetalsolution\252\002!Google.Cloud." - + "BaremetalSolution.V2\312\002!Google\\Cloud\\Bare" - + "metalSolution\\V2\352\002$Google::Cloud::Bareme" - + "talSolution::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, - new java.lang.String[] { - "Name", - "StorageType", - "State", - "RequestedSizeGib", - "CurrentSizeGib", - "AutoGrownSizeGib", - "RemainingSpaceGib", - "SnapshotReservationDetail", - "SnapshotAutoDeleteBehavior", - "SnapshotSchedulePolicy", - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, - new java.lang.String[] { - "ReservedSpaceGib", "ReservedSpaceUsedPercent", "ReservedSpaceRemainingGib", - }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, - new java.lang.String[] { - "Volumes", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, - new java.lang.String[] { - "Name", - "State", - "SizeGb", - "MultiprotocolType", - "StorageVolume", - "Shareable", - "BootLun", - "StorageType", - "Wwid", - }); - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, - new java.lang.String[] { - "Name", - "Network", - "Type", - "IpAddress", - "MacAddress", - "State", - "VlanId", - "Cidr", - "Vrf", - }); - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, - new java.lang.String[] { - "Name", "State", "QosPolicy", "VlanAttachments", - }); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, - new java.lang.String[] { - "BandwidthGbps", - }); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, - new java.lang.String[] { - "PeerVlanId", "PeerIp", "RouterIp", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, - new java.lang.String[] { - "Networks", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_GetSnapshotSchedulePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_GetSnapshotSchedulePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetSnapshotSchedulePolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "MachineType", - "State", - "HyperthreadingEnabled", - "Labels", - "Luns", - "Networks", - "InteractiveSerialConsoleEnabled", - }); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, - new java.lang.String[] { - "Instances", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetVolumeSnapshotRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsResponse_descriptor, - new java.lang.String[] { - "VolumeSnapshots", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_DeleteVolumeSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_baremetalsolution_v2_DeleteVolumeSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_DeleteVolumeSnapshotRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - internal_static_google_cloud_baremetalsolution_v2_VolumeSnapshot_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_baremetalsolution_v2_VolumeSnapshot_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VolumeSnapshot_descriptor, - new java.lang.String[] { - "Name", "Description", "SizeBytes", "CreateTime", "StorageVolume", - }); - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_descriptor, - new java.lang.String[] { - "Name", "Description", "Schedules", - }); - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_Schedule_descriptor = - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_Schedule_descriptor, - new java.lang.String[] { - "CrontabSpec", "RetentionCount", "Prefix", - }); - internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesResponse_descriptor, - new java.lang.String[] { - "SnapshotSchedulePolicies", "NextPageToken", - }); - internal_static_google_cloud_baremetalsolution_v2_CreateSnapshotSchedulePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_baremetalsolution_v2_CreateSnapshotSchedulePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_CreateSnapshotSchedulePolicyRequest_descriptor, - new java.lang.String[] { - "Parent", "SnapshotSchedulePolicy", "SnapshotSchedulePolicyId", - }); - internal_static_google_cloud_baremetalsolution_v2_UpdateSnapshotSchedulePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_baremetalsolution_v2_UpdateSnapshotSchedulePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateSnapshotSchedulePolicyRequest_descriptor, - new java.lang.String[] { - "SnapshotSchedulePolicy", "UpdateMask", - }); - internal_static_google_cloud_baremetalsolution_v2_DeleteSnapshotSchedulePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_baremetalsolution_v2_DeleteSnapshotSchedulePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_DeleteSnapshotSchedulePolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, - new java.lang.String[] { - "Volume", "UpdateMask", - }); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, - new java.lang.String[] { - "Luns", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_CreateVolumeSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_baremetalsolution_v2_CreateVolumeSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_CreateVolumeSnapshotRequest_descriptor, - new java.lang.String[] { - "Parent", "VolumeSnapshot", - }); - internal_static_google_cloud_baremetalsolution_v2_RestoreVolumeSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_baremetalsolution_v2_RestoreVolumeSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_RestoreVolumeSnapshotRequest_descriptor, - new java.lang.String[] { - "VolumeSnapshot", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateSnapshotSchedulePolicyRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateSnapshotSchedulePolicyRequest.java deleted file mode 100644 index b2c9f55..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateSnapshotSchedulePolicyRequest.java +++ /dev/null @@ -1,1171 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Message for creating a snapshot schedule policy in a project.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest} - */ -public final class CreateSnapshotSchedulePolicyRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest) - CreateSnapshotSchedulePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateSnapshotSchedulePolicyRequest.newBuilder() to construct. - private CreateSnapshotSchedulePolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateSnapshotSchedulePolicyRequest() { - parent_ = ""; - snapshotSchedulePolicyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateSnapshotSchedulePolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateSnapshotSchedulePolicyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder subBuilder = - null; - if (snapshotSchedulePolicy_ != null) { - subBuilder = snapshotSchedulePolicy_.toBuilder(); - } - snapshotSchedulePolicy_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshotSchedulePolicy_); - snapshotSchedulePolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - snapshotSchedulePolicyId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } 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); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_CreateSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_CreateSnapshotSchedulePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest.class, - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest.Builder - .class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent project and location containing the SnapshotSchedulePolicy.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent project and location containing the SnapshotSchedulePolicy.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER = 2; - private com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshotSchedulePolicy_; - /** - * - * - *
-   * Required. The SnapshotSchedulePolicy to create.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the snapshotSchedulePolicy field is set. - */ - @java.lang.Override - public boolean hasSnapshotSchedulePolicy() { - return snapshotSchedulePolicy_ != null; - } - /** - * - * - *
-   * Required. The SnapshotSchedulePolicy to create.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The snapshotSchedulePolicy. - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy getSnapshotSchedulePolicy() { - return snapshotSchedulePolicy_ == null - ? com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.getDefaultInstance() - : snapshotSchedulePolicy_; - } - /** - * - * - *
-   * Required. The SnapshotSchedulePolicy to create.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder - getSnapshotSchedulePolicyOrBuilder() { - return getSnapshotSchedulePolicy(); - } - - public static final int SNAPSHOT_SCHEDULE_POLICY_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object snapshotSchedulePolicyId_; - /** - * - * - *
-   * Required. Snapshot policy ID
-   * 
- * - * string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The snapshotSchedulePolicyId. - */ - @java.lang.Override - public java.lang.String getSnapshotSchedulePolicyId() { - java.lang.Object ref = snapshotSchedulePolicyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - snapshotSchedulePolicyId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Snapshot policy ID
-   * 
- * - * string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for snapshotSchedulePolicyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSnapshotSchedulePolicyIdBytes() { - java.lang.Object ref = snapshotSchedulePolicyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - snapshotSchedulePolicyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (snapshotSchedulePolicy_ != null) { - output.writeMessage(2, getSnapshotSchedulePolicy()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotSchedulePolicyId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, snapshotSchedulePolicyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (snapshotSchedulePolicy_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSnapshotSchedulePolicy()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotSchedulePolicyId_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(3, snapshotSchedulePolicyId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest other = - (com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasSnapshotSchedulePolicy() != other.hasSnapshotSchedulePolicy()) return false; - if (hasSnapshotSchedulePolicy()) { - if (!getSnapshotSchedulePolicy().equals(other.getSnapshotSchedulePolicy())) return false; - } - if (!getSnapshotSchedulePolicyId().equals(other.getSnapshotSchedulePolicyId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasSnapshotSchedulePolicy()) { - hash = (37 * hash) + SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getSnapshotSchedulePolicy().hashCode(); - } - hash = (37 * hash) + SNAPSHOT_SCHEDULE_POLICY_ID_FIELD_NUMBER; - hash = (53 * hash) + getSnapshotSchedulePolicyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for creating a snapshot schedule policy in a project.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest) - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_CreateSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_CreateSnapshotSchedulePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest.class, - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (snapshotSchedulePolicyBuilder_ == null) { - snapshotSchedulePolicy_ = null; - } else { - snapshotSchedulePolicy_ = null; - snapshotSchedulePolicyBuilder_ = null; - } - snapshotSchedulePolicyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_CreateSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest build() { - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest - buildPartial() { - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest result = - new com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest(this); - result.parent_ = parent_; - if (snapshotSchedulePolicyBuilder_ == null) { - result.snapshotSchedulePolicy_ = snapshotSchedulePolicy_; - } else { - result.snapshotSchedulePolicy_ = snapshotSchedulePolicyBuilder_.build(); - } - result.snapshotSchedulePolicyId_ = snapshotSchedulePolicyId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasSnapshotSchedulePolicy()) { - mergeSnapshotSchedulePolicy(other.getSnapshotSchedulePolicy()); - } - if (!other.getSnapshotSchedulePolicyId().isEmpty()) { - snapshotSchedulePolicyId_ = other.snapshotSchedulePolicyId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent project and location containing the SnapshotSchedulePolicy.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent project and location containing the SnapshotSchedulePolicy.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent project and location containing the SnapshotSchedulePolicy.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent project and location containing the SnapshotSchedulePolicy.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent project and location containing the SnapshotSchedulePolicy.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshotSchedulePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder> - snapshotSchedulePolicyBuilder_; - /** - * - * - *
-     * Required. The SnapshotSchedulePolicy to create.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the snapshotSchedulePolicy field is set. - */ - public boolean hasSnapshotSchedulePolicy() { - return snapshotSchedulePolicyBuilder_ != null || snapshotSchedulePolicy_ != null; - } - /** - * - * - *
-     * Required. The SnapshotSchedulePolicy to create.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The snapshotSchedulePolicy. - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy - getSnapshotSchedulePolicy() { - if (snapshotSchedulePolicyBuilder_ == null) { - return snapshotSchedulePolicy_ == null - ? com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.getDefaultInstance() - : snapshotSchedulePolicy_; - } else { - return snapshotSchedulePolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The SnapshotSchedulePolicy to create.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy value) { - if (snapshotSchedulePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - snapshotSchedulePolicy_ = value; - onChanged(); - } else { - snapshotSchedulePolicyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The SnapshotSchedulePolicy to create.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder builderForValue) { - if (snapshotSchedulePolicyBuilder_ == null) { - snapshotSchedulePolicy_ = builderForValue.build(); - onChanged(); - } else { - snapshotSchedulePolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The SnapshotSchedulePolicy to create.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy value) { - if (snapshotSchedulePolicyBuilder_ == null) { - if (snapshotSchedulePolicy_ != null) { - snapshotSchedulePolicy_ = - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.newBuilder( - snapshotSchedulePolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - snapshotSchedulePolicy_ = value; - } - onChanged(); - } else { - snapshotSchedulePolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The SnapshotSchedulePolicy to create.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearSnapshotSchedulePolicy() { - if (snapshotSchedulePolicyBuilder_ == null) { - snapshotSchedulePolicy_ = null; - onChanged(); - } else { - snapshotSchedulePolicy_ = null; - snapshotSchedulePolicyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The SnapshotSchedulePolicy to create.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder - getSnapshotSchedulePolicyBuilder() { - - onChanged(); - return getSnapshotSchedulePolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The SnapshotSchedulePolicy to create.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder - getSnapshotSchedulePolicyOrBuilder() { - if (snapshotSchedulePolicyBuilder_ != null) { - return snapshotSchedulePolicyBuilder_.getMessageOrBuilder(); - } else { - return snapshotSchedulePolicy_ == null - ? com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.getDefaultInstance() - : snapshotSchedulePolicy_; - } - } - /** - * - * - *
-     * Required. The SnapshotSchedulePolicy to create.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder> - getSnapshotSchedulePolicyFieldBuilder() { - if (snapshotSchedulePolicyBuilder_ == null) { - snapshotSchedulePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder>( - getSnapshotSchedulePolicy(), getParentForChildren(), isClean()); - snapshotSchedulePolicy_ = null; - } - return snapshotSchedulePolicyBuilder_; - } - - private java.lang.Object snapshotSchedulePolicyId_ = ""; - /** - * - * - *
-     * Required. Snapshot policy ID
-     * 
- * - * string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The snapshotSchedulePolicyId. - */ - public java.lang.String getSnapshotSchedulePolicyId() { - java.lang.Object ref = snapshotSchedulePolicyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - snapshotSchedulePolicyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Snapshot policy ID
-     * 
- * - * string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for snapshotSchedulePolicyId. - */ - public com.google.protobuf.ByteString getSnapshotSchedulePolicyIdBytes() { - java.lang.Object ref = snapshotSchedulePolicyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - snapshotSchedulePolicyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Snapshot policy ID
-     * 
- * - * string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The snapshotSchedulePolicyId to set. - * @return This builder for chaining. - */ - public Builder setSnapshotSchedulePolicyId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - snapshotSchedulePolicyId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Snapshot policy ID
-     * 
- * - * string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearSnapshotSchedulePolicyId() { - - snapshotSchedulePolicyId_ = getDefaultInstance().getSnapshotSchedulePolicyId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Snapshot policy ID
-     * 
- * - * string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bytes for snapshotSchedulePolicyId to set. - * @return This builder for chaining. - */ - public Builder setSnapshotSchedulePolicyIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - snapshotSchedulePolicyId_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest) - private static final com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest(); - } - - public static com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSnapshotSchedulePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSnapshotSchedulePolicyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateSnapshotSchedulePolicyRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateSnapshotSchedulePolicyRequestOrBuilder.java deleted file mode 100644 index 6209041..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateSnapshotSchedulePolicyRequestOrBuilder.java +++ /dev/null @@ -1,121 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface CreateSnapshotSchedulePolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent project and location containing the SnapshotSchedulePolicy.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent project and location containing the SnapshotSchedulePolicy.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The SnapshotSchedulePolicy to create.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the snapshotSchedulePolicy field is set. - */ - boolean hasSnapshotSchedulePolicy(); - /** - * - * - *
-   * Required. The SnapshotSchedulePolicy to create.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The snapshotSchedulePolicy. - */ - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy getSnapshotSchedulePolicy(); - /** - * - * - *
-   * Required. The SnapshotSchedulePolicy to create.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder - getSnapshotSchedulePolicyOrBuilder(); - - /** - * - * - *
-   * Required. Snapshot policy ID
-   * 
- * - * string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The snapshotSchedulePolicyId. - */ - java.lang.String getSnapshotSchedulePolicyId(); - /** - * - * - *
-   * Required. Snapshot policy ID
-   * 
- * - * string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for snapshotSchedulePolicyId. - */ - com.google.protobuf.ByteString getSnapshotSchedulePolicyIdBytes(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateVolumeSnapshotRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateVolumeSnapshotRequest.java deleted file mode 100644 index 7c30e35..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateVolumeSnapshotRequest.java +++ /dev/null @@ -1,967 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Message for creating a volume snapshot.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest} - */ -public final class CreateVolumeSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest) - CreateVolumeSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateVolumeSnapshotRequest.newBuilder() to construct. - private CreateVolumeSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateVolumeSnapshotRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateVolumeSnapshotRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateVolumeSnapshotRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder subBuilder = null; - if (volumeSnapshot_ != null) { - subBuilder = volumeSnapshot_.toBuilder(); - } - volumeSnapshot_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(volumeSnapshot_); - volumeSnapshot_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } 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); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_CreateVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_CreateVolumeSnapshotRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest.class, - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The volume to snapshot.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The volume to snapshot.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VOLUME_SNAPSHOT_FIELD_NUMBER = 2; - private com.google.cloud.baremetalsolution.v2.VolumeSnapshot volumeSnapshot_; - /** - * - * - *
-   * Required. The volume snapshot to create. Only the description field may be specified.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the volumeSnapshot field is set. - */ - @java.lang.Override - public boolean hasVolumeSnapshot() { - return volumeSnapshot_ != null; - } - /** - * - * - *
-   * Required. The volume snapshot to create. Only the description field may be specified.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The volumeSnapshot. - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot getVolumeSnapshot() { - return volumeSnapshot_ == null - ? com.google.cloud.baremetalsolution.v2.VolumeSnapshot.getDefaultInstance() - : volumeSnapshot_; - } - /** - * - * - *
-   * Required. The volume snapshot to create. Only the description field may be specified.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder - getVolumeSnapshotOrBuilder() { - return getVolumeSnapshot(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (volumeSnapshot_ != null) { - output.writeMessage(2, getVolumeSnapshot()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (volumeSnapshot_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVolumeSnapshot()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest other = - (com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasVolumeSnapshot() != other.hasVolumeSnapshot()) return false; - if (hasVolumeSnapshot()) { - if (!getVolumeSnapshot().equals(other.getVolumeSnapshot())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasVolumeSnapshot()) { - hash = (37 * hash) + VOLUME_SNAPSHOT_FIELD_NUMBER; - hash = (53 * hash) + getVolumeSnapshot().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for creating a volume snapshot.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest) - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_CreateVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_CreateVolumeSnapshotRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest.class, - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest.Builder.class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (volumeSnapshotBuilder_ == null) { - volumeSnapshot_ = null; - } else { - volumeSnapshot_ = null; - volumeSnapshotBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_CreateVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest build() { - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest result = - new com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest(this); - result.parent_ = parent_; - if (volumeSnapshotBuilder_ == null) { - result.volumeSnapshot_ = volumeSnapshot_; - } else { - result.volumeSnapshot_ = volumeSnapshotBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasVolumeSnapshot()) { - mergeVolumeSnapshot(other.getVolumeSnapshot()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The volume to snapshot.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The volume to snapshot.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The volume to snapshot.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The volume to snapshot.
-     * 
- * - * - * 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 volume to snapshot.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.baremetalsolution.v2.VolumeSnapshot volumeSnapshot_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VolumeSnapshot, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder, - com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder> - volumeSnapshotBuilder_; - /** - * - * - *
-     * Required. The volume snapshot to create. Only the description field may be specified.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the volumeSnapshot field is set. - */ - public boolean hasVolumeSnapshot() { - return volumeSnapshotBuilder_ != null || volumeSnapshot_ != null; - } - /** - * - * - *
-     * Required. The volume snapshot to create. Only the description field may be specified.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The volumeSnapshot. - */ - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot getVolumeSnapshot() { - if (volumeSnapshotBuilder_ == null) { - return volumeSnapshot_ == null - ? com.google.cloud.baremetalsolution.v2.VolumeSnapshot.getDefaultInstance() - : volumeSnapshot_; - } else { - return volumeSnapshotBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The volume snapshot to create. Only the description field may be specified.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setVolumeSnapshot(com.google.cloud.baremetalsolution.v2.VolumeSnapshot value) { - if (volumeSnapshotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - volumeSnapshot_ = value; - onChanged(); - } else { - volumeSnapshotBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The volume snapshot to create. Only the description field may be specified.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setVolumeSnapshot( - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder builderForValue) { - if (volumeSnapshotBuilder_ == null) { - volumeSnapshot_ = builderForValue.build(); - onChanged(); - } else { - volumeSnapshotBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The volume snapshot to create. Only the description field may be specified.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeVolumeSnapshot(com.google.cloud.baremetalsolution.v2.VolumeSnapshot value) { - if (volumeSnapshotBuilder_ == null) { - if (volumeSnapshot_ != null) { - volumeSnapshot_ = - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.newBuilder(volumeSnapshot_) - .mergeFrom(value) - .buildPartial(); - } else { - volumeSnapshot_ = value; - } - onChanged(); - } else { - volumeSnapshotBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The volume snapshot to create. Only the description field may be specified.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearVolumeSnapshot() { - if (volumeSnapshotBuilder_ == null) { - volumeSnapshot_ = null; - onChanged(); - } else { - volumeSnapshot_ = null; - volumeSnapshotBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The volume snapshot to create. Only the description field may be specified.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder getVolumeSnapshotBuilder() { - - onChanged(); - return getVolumeSnapshotFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The volume snapshot to create. Only the description field may be specified.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder - getVolumeSnapshotOrBuilder() { - if (volumeSnapshotBuilder_ != null) { - return volumeSnapshotBuilder_.getMessageOrBuilder(); - } else { - return volumeSnapshot_ == null - ? com.google.cloud.baremetalsolution.v2.VolumeSnapshot.getDefaultInstance() - : volumeSnapshot_; - } - } - /** - * - * - *
-     * Required. The volume snapshot to create. Only the description field may be specified.
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VolumeSnapshot, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder, - com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder> - getVolumeSnapshotFieldBuilder() { - if (volumeSnapshotBuilder_ == null) { - volumeSnapshotBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VolumeSnapshot, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder, - com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder>( - getVolumeSnapshot(), getParentForChildren(), isClean()); - volumeSnapshot_ = null; - } - return volumeSnapshotBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest) - private static final com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest(); - } - - public static com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateVolumeSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateVolumeSnapshotRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateVolumeSnapshotRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateVolumeSnapshotRequestOrBuilder.java deleted file mode 100644 index c1f7c17..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/CreateVolumeSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,95 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface CreateVolumeSnapshotRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The volume to snapshot.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The volume to snapshot.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The volume snapshot to create. Only the description field may be specified.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the volumeSnapshot field is set. - */ - boolean hasVolumeSnapshot(); - /** - * - * - *
-   * Required. The volume snapshot to create. Only the description field may be specified.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The volumeSnapshot. - */ - com.google.cloud.baremetalsolution.v2.VolumeSnapshot getVolumeSnapshot(); - /** - * - * - *
-   * Required. The volume snapshot to create. Only the description field may be specified.
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder getVolumeSnapshotOrBuilder(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteSnapshotSchedulePolicyRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteSnapshotSchedulePolicyRequest.java deleted file mode 100644 index 0bef15d..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteSnapshotSchedulePolicyRequest.java +++ /dev/null @@ -1,674 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Message for deleting a snapshot schedule policy in a project.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest} - */ -public final class DeleteSnapshotSchedulePolicyRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest) - DeleteSnapshotSchedulePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteSnapshotSchedulePolicyRequest.newBuilder() to construct. - private DeleteSnapshotSchedulePolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteSnapshotSchedulePolicyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteSnapshotSchedulePolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteSnapshotSchedulePolicyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_DeleteSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_DeleteSnapshotSchedulePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest.class, - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest.Builder - .class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the snapshot schedule policy to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the snapshot schedule policy to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest other = - (com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for deleting a snapshot schedule policy in a project.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest) - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_DeleteSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_DeleteSnapshotSchedulePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest.class, - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_DeleteSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest build() { - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest - buildPartial() { - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest result = - new com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the snapshot schedule policy to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the snapshot schedule policy to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the snapshot schedule policy to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the snapshot schedule policy to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the snapshot schedule policy to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest) - private static final com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest(); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSnapshotSchedulePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSnapshotSchedulePolicyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteSnapshotSchedulePolicyRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteSnapshotSchedulePolicyRequestOrBuilder.java deleted file mode 100644 index 15af8af..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteSnapshotSchedulePolicyRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface DeleteSnapshotSchedulePolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the snapshot schedule policy to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the snapshot schedule policy to delete.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteVolumeSnapshotRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteVolumeSnapshotRequest.java deleted file mode 100644 index 9359b72..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteVolumeSnapshotRequest.java +++ /dev/null @@ -1,662 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Message for deleting named Volume snapshot.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest} - */ -public final class DeleteVolumeSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest) - DeleteVolumeSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteVolumeSnapshotRequest.newBuilder() to construct. - private DeleteVolumeSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteVolumeSnapshotRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteVolumeSnapshotRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteVolumeSnapshotRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_DeleteVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_DeleteVolumeSnapshotRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest.class, - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the snapshot to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the snapshot to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest other = - (com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for deleting named Volume snapshot.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest) - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_DeleteVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_DeleteVolumeSnapshotRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest.class, - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest.Builder.class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_DeleteVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest build() { - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest result = - new com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the snapshot to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the snapshot to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the snapshot to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the snapshot to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the snapshot to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest) - private static final com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest(); - } - - public static com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteVolumeSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteVolumeSnapshotRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteVolumeSnapshotRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteVolumeSnapshotRequestOrBuilder.java deleted file mode 100644 index 07a218d..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DeleteVolumeSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface DeleteVolumeSnapshotRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the snapshot to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the snapshot to delete.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 6807678..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java deleted file mode 100644 index 79cfa93..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetLunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java deleted file mode 100644 index 447c295..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNetworkRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetSnapshotSchedulePolicyRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetSnapshotSchedulePolicyRequest.java deleted file mode 100644 index 93a14b0..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetSnapshotSchedulePolicyRequest.java +++ /dev/null @@ -1,666 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Message for requesting snapshot schedule policy information.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest} - */ -public final class GetSnapshotSchedulePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest) - GetSnapshotSchedulePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetSnapshotSchedulePolicyRequest.newBuilder() to construct. - private GetSnapshotSchedulePolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetSnapshotSchedulePolicyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetSnapshotSchedulePolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetSnapshotSchedulePolicyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetSnapshotSchedulePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest.class, - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest other = - (com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for requesting snapshot schedule policy information.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest) - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetSnapshotSchedulePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest.class, - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest.Builder.class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest build() { - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest result = - new com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * 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. Name of the resource.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest) - private static final com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest(); - } - - public static com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSnapshotSchedulePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSnapshotSchedulePolicyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetSnapshotSchedulePolicyRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetSnapshotSchedulePolicyRequestOrBuilder.java deleted file mode 100644 index 29fe11e..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetSnapshotSchedulePolicyRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetSnapshotSchedulePolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java deleted file mode 100644 index 21de24d..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetVolumeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeSnapshotRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeSnapshotRequest.java deleted file mode 100644 index 5a469da..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeSnapshotRequest.java +++ /dev/null @@ -1,659 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Message for requesting storage volume snapshot information.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest} - */ -public final class GetVolumeSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest) - GetVolumeSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetVolumeSnapshotRequest.newBuilder() to construct. - private GetVolumeSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetVolumeSnapshotRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetVolumeSnapshotRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetVolumeSnapshotRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeSnapshotRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest.class, - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest other = - (com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for requesting storage volume snapshot information.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest) - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeSnapshotRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest.class, - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest.Builder.class); - } - - // Construct using com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest build() { - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest result = - new com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * 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. Name of the resource.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest) - private static final com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest(); - } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeSnapshotRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeSnapshotRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeSnapshotRequestOrBuilder.java deleted file mode 100644 index a96e1f1..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetVolumeSnapshotRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java deleted file mode 100644 index 5c64c88..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java +++ /dev/null @@ -1,3277 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * A server.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} - */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Instance) - InstanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use Instance.newBuilder() to construct. - private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Instance() { - name_ = ""; - machineType_ = ""; - state_ = 0; - luns_ = java.util.Collections.emptyList(); - networks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Instance(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Instance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 48: - { - hyperthreadingEnabled_ = input.readBool(); - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - luns_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; - } - case 74: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - networks_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - networks_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; - } - case 80: - { - interactiveSerialConsoleEnabled_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } 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); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - luns_ = java.util.Collections.unmodifiableList(luns_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - networks_ = java.util.Collections.unmodifiableList(networks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, - com.google.cloud.baremetalsolution.v2.Instance.Builder.class); - } - - /** - * - * - *
-   * The possible states for this server.
-   * 
- * - * Protobuf enum {@code google.cloud.baremetalsolution.v2.Instance.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The server is in an unknown state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The server is being provisioned.
-     * 
- * - * PROVISIONING = 1; - */ - PROVISIONING(1), - /** - * - * - *
-     * The server is running.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The server has been deleted.
-     * 
- * - * DELETED = 3; - */ - DELETED(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The server is in an unknown state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The server is being provisioned.
-     * 
- * - * PROVISIONING = 1; - */ - public static final int PROVISIONING_VALUE = 1; - /** - * - * - *
-     * The server is running.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * The server has been deleted.
-     * 
- * - * DELETED = 3; - */ - public static final int DELETED_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return RUNNING; - case 3: - return DELETED; - default: - return null; - } - } - - 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 State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.Instance.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Instance.State) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. The resource name of this `Instance`.
-   * Resource names are schemeless URIs that follow the conventions in
-   * https://cloud.google.com/apis/design/resource_names.
-   * Format:
-   * `projects/{project}/locations/{location}/instances/{instance}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The resource name of this `Instance`.
-   * Resource names are schemeless URIs that follow the conventions in
-   * https://cloud.google.com/apis/design/resource_names.
-   * Format:
-   * `projects/{project}/locations/{location}/instances/{instance}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. Create a time stamp.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. Create a time stamp.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. Create a time stamp.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Update a time stamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. Update a time stamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. Update a time stamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int MACHINE_TYPE_FIELD_NUMBER = 4; - private volatile java.lang.Object machineType_; - /** - * - * - *
-   * The server type.
-   * [Available server
-   * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
-   * 
- * - * string machine_type = 4; - * - * @return The machineType. - */ - @java.lang.Override - public java.lang.String getMachineType() { - java.lang.Object ref = machineType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineType_ = s; - return s; - } - } - /** - * - * - *
-   * The server type.
-   * [Available server
-   * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
-   * 
- * - * string machine_type = 4; - * - * @return The bytes for machineType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeBytes() { - java.lang.Object ref = machineType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - machineType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 5; - private int state_; - /** - * - * - *
-   * The state of the server.
-   * 
- * - * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * The state of the server.
-   * 
- * - * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Instance.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = - com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED - : result; - } - - public static final int HYPERTHREADING_ENABLED_FIELD_NUMBER = 6; - private boolean hyperthreadingEnabled_; - /** - * - * - *
-   * True if you enable hyperthreading for the server, otherwise false.
-   * The default value is false.
-   * 
- * - * bool hyperthreading_enabled = 6; - * - * @return The hyperthreadingEnabled. - */ - @java.lang.Override - public boolean getHyperthreadingEnabled() { - return hyperthreadingEnabled_; - } - - public static final int LABELS_FIELD_NUMBER = 7; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * Labels as key value pairs.
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Labels as key value pairs.
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Labels as key value pairs.
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Labels as key value pairs.
-   * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LUNS_FIELD_NUMBER = 8; - private java.util.List luns_; - /** - * - * - *
-   * List of LUNs associated with this server.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - @java.lang.Override - public java.util.List getLunsList() { - return luns_; - } - /** - * - * - *
-   * List of LUNs associated with this server.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - @java.lang.Override - public java.util.List - getLunsOrBuilderList() { - return luns_; - } - /** - * - * - *
-   * List of LUNs associated with this server.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - @java.lang.Override - public int getLunsCount() { - return luns_.size(); - } - /** - * - * - *
-   * List of LUNs associated with this server.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { - return luns_.get(index); - } - /** - * - * - *
-   * List of LUNs associated with this server.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { - return luns_.get(index); - } - - public static final int NETWORKS_FIELD_NUMBER = 9; - private java.util.List networks_; - /** - * - * - *
-   * List of networks associated with this server.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - @java.lang.Override - public java.util.List getNetworksList() { - return networks_; - } - /** - * - * - *
-   * List of networks associated with this server.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - @java.lang.Override - public java.util.List - getNetworksOrBuilderList() { - return networks_; - } - /** - * - * - *
-   * List of networks associated with this server.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - @java.lang.Override - public int getNetworksCount() { - return networks_.size(); - } - /** - * - * - *
-   * List of networks associated with this server.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { - return networks_.get(index); - } - /** - * - * - *
-   * List of networks associated with this server.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { - return networks_.get(index); - } - - public static final int INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER = 10; - private boolean interactiveSerialConsoleEnabled_; - /** - * - * - *
-   * True if the interactive serial console feature is enabled for the instance,
-   * false otherwise.
-   * The default value is false.
-   * 
- * - * bool interactive_serial_console_enabled = 10; - * - * @return The interactiveSerialConsoleEnabled. - */ - @java.lang.Override - public boolean getInteractiveSerialConsoleEnabled() { - return interactiveSerialConsoleEnabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (createTime_ != null) { - output.writeMessage(2, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(3, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineType_); - } - if (state_ - != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(5, state_); - } - if (hyperthreadingEnabled_ != false) { - output.writeBool(6, hyperthreadingEnabled_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); - for (int i = 0; i < luns_.size(); i++) { - output.writeMessage(8, luns_.get(i)); - } - for (int i = 0; i < networks_.size(); i++) { - output.writeMessage(9, networks_.get(i)); - } - if (interactiveSerialConsoleEnabled_ != false) { - output.writeBool(10, interactiveSerialConsoleEnabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineType_); - } - if (state_ - != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); - } - if (hyperthreadingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, hyperthreadingEnabled_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); - } - for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, luns_.get(i)); - } - for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, networks_.get(i)); - } - if (interactiveSerialConsoleEnabled_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 10, interactiveSerialConsoleEnabled_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Instance)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.Instance other = - (com.google.cloud.baremetalsolution.v2.Instance) obj; - - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getMachineType().equals(other.getMachineType())) return false; - if (state_ != other.state_) return false; - if (getHyperthreadingEnabled() != other.getHyperthreadingEnabled()) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getLunsList().equals(other.getLunsList())) return false; - if (!getNetworksList().equals(other.getNetworksList())) return false; - if (getInteractiveSerialConsoleEnabled() != other.getInteractiveSerialConsoleEnabled()) - return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMachineType().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + HYPERTHREADING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHyperthreadingEnabled()); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (getLunsCount() > 0) { - hash = (37 * hash) + LUNS_FIELD_NUMBER; - hash = (53 * hash) + getLunsList().hashCode(); - } - if (getNetworksCount() > 0) { - hash = (37 * hash) + NETWORKS_FIELD_NUMBER; - hash = (53 * hash) + getNetworksList().hashCode(); - } - hash = (37 * hash) + INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getInteractiveSerialConsoleEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Instance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A server.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Instance) - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 7: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, - com.google.cloud.baremetalsolution.v2.Instance.Builder.class); - } - - // Construct using com.google.cloud.baremetalsolution.v2.Instance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLunsFieldBuilder(); - getNetworksFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - machineType_ = ""; - - state_ = 0; - - hyperthreadingEnabled_ = false; - - internalGetMutableLabels().clear(); - if (lunsBuilder_ == null) { - luns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - lunsBuilder_.clear(); - } - if (networksBuilder_ == null) { - networks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - networksBuilder_.clear(); - } - interactiveSerialConsoleEnabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Instance getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Instance build() { - com.google.cloud.baremetalsolution.v2.Instance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { - com.google.cloud.baremetalsolution.v2.Instance result = - new com.google.cloud.baremetalsolution.v2.Instance(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.machineType_ = machineType_; - result.state_ = state_; - result.hyperthreadingEnabled_ = hyperthreadingEnabled_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (lunsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - luns_ = java.util.Collections.unmodifiableList(luns_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.luns_ = luns_; - } else { - result.luns_ = lunsBuilder_.build(); - } - if (networksBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - networks_ = java.util.Collections.unmodifiableList(networks_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.networks_ = networks_; - } else { - result.networks_ = networksBuilder_.build(); - } - result.interactiveSerialConsoleEnabled_ = interactiveSerialConsoleEnabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.Instance) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { - if (other == com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getMachineType().isEmpty()) { - machineType_ = other.machineType_; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.getHyperthreadingEnabled() != false) { - setHyperthreadingEnabled(other.getHyperthreadingEnabled()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (lunsBuilder_ == null) { - if (!other.luns_.isEmpty()) { - if (luns_.isEmpty()) { - luns_ = other.luns_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLunsIsMutable(); - luns_.addAll(other.luns_); - } - onChanged(); - } - } else { - if (!other.luns_.isEmpty()) { - if (lunsBuilder_.isEmpty()) { - lunsBuilder_.dispose(); - lunsBuilder_ = null; - luns_ = other.luns_; - bitField0_ = (bitField0_ & ~0x00000002); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLunsFieldBuilder() - : null; - } else { - lunsBuilder_.addAllMessages(other.luns_); - } - } - } - if (networksBuilder_ == null) { - if (!other.networks_.isEmpty()) { - if (networks_.isEmpty()) { - networks_ = other.networks_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureNetworksIsMutable(); - networks_.addAll(other.networks_); - } - onChanged(); - } - } else { - if (!other.networks_.isEmpty()) { - if (networksBuilder_.isEmpty()) { - networksBuilder_.dispose(); - networksBuilder_ = null; - networks_ = other.networks_; - bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; - } else { - networksBuilder_.addAllMessages(other.networks_); - } - } - } - if (other.getInteractiveSerialConsoleEnabled() != false) { - setInteractiveSerialConsoleEnabled(other.getInteractiveSerialConsoleEnabled()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.Instance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.Instance) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The resource name of this `Instance`.
-     * Resource names are schemeless URIs that follow the conventions in
-     * https://cloud.google.com/apis/design/resource_names.
-     * Format:
-     * `projects/{project}/locations/{location}/instances/{instance}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of this `Instance`.
-     * Resource names are schemeless URIs that follow the conventions in
-     * https://cloud.google.com/apis/design/resource_names.
-     * Format:
-     * `projects/{project}/locations/{location}/instances/{instance}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of this `Instance`.
-     * Resource names are schemeless URIs that follow the conventions in
-     * https://cloud.google.com/apis/design/resource_names.
-     * Format:
-     * `projects/{project}/locations/{location}/instances/{instance}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of this `Instance`.
-     * Resource names are schemeless URIs that follow the conventions in
-     * https://cloud.google.com/apis/design/resource_names.
-     * Format:
-     * `projects/{project}/locations/{location}/instances/{instance}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of this `Instance`.
-     * Resource names are schemeless URIs that follow the conventions in
-     * https://cloud.google.com/apis/design/resource_names.
-     * Format:
-     * `projects/{project}/locations/{location}/instances/{instance}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. Create a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. Create a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Create a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Create a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Create a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Create a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Create a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Create a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. Create a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. Update a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. Update a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Update a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Update a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Update a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Update a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Update a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Update a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. Update a time stamp.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object machineType_ = ""; - /** - * - * - *
-     * The server type.
-     * [Available server
-     * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
-     * 
- * - * string machine_type = 4; - * - * @return The machineType. - */ - public java.lang.String getMachineType() { - java.lang.Object ref = machineType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The server type.
-     * [Available server
-     * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
-     * 
- * - * string machine_type = 4; - * - * @return The bytes for machineType. - */ - public com.google.protobuf.ByteString getMachineTypeBytes() { - java.lang.Object ref = machineType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - machineType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The server type.
-     * [Available server
-     * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
-     * 
- * - * string machine_type = 4; - * - * @param value The machineType to set. - * @return This builder for chaining. - */ - public Builder setMachineType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - machineType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The server type.
-     * [Available server
-     * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
-     * 
- * - * string machine_type = 4; - * - * @return This builder for chaining. - */ - public Builder clearMachineType() { - - machineType_ = getDefaultInstance().getMachineType(); - onChanged(); - return this; - } - /** - * - * - *
-     * The server type.
-     * [Available server
-     * types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
-     * 
- * - * string machine_type = 4; - * - * @param value The bytes for machineType to set. - * @return This builder for chaining. - */ - public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - machineType_ = value; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * The state of the server.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * The state of the server.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The state of the server.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Instance.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = - com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The state of the server.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.baremetalsolution.v2.Instance.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The state of the server.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private boolean hyperthreadingEnabled_; - /** - * - * - *
-     * True if you enable hyperthreading for the server, otherwise false.
-     * The default value is false.
-     * 
- * - * bool hyperthreading_enabled = 6; - * - * @return The hyperthreadingEnabled. - */ - @java.lang.Override - public boolean getHyperthreadingEnabled() { - return hyperthreadingEnabled_; - } - /** - * - * - *
-     * True if you enable hyperthreading for the server, otherwise false.
-     * The default value is false.
-     * 
- * - * bool hyperthreading_enabled = 6; - * - * @param value The hyperthreadingEnabled to set. - * @return This builder for chaining. - */ - public Builder setHyperthreadingEnabled(boolean value) { - - hyperthreadingEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * True if you enable hyperthreading for the server, otherwise false.
-     * The default value is false.
-     * 
- * - * bool hyperthreading_enabled = 6; - * - * @return This builder for chaining. - */ - public Builder clearHyperthreadingEnabled() { - - hyperthreadingEnabled_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * Labels as key value pairs.
-     * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Labels as key value pairs.
-     * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Labels as key value pairs.
-     * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Labels as key value pairs.
-     * 
- * - * map<string, string> labels = 7; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Labels as key value pairs.
-     * 
- * - * map<string, string> labels = 7; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Labels as key value pairs.
-     * 
- * - * map<string, string> labels = 7; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Labels as key value pairs.
-     * 
- * - * map<string, string> labels = 7; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private java.util.List luns_ = - java.util.Collections.emptyList(); - - private void ensureLunsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - luns_ = new java.util.ArrayList(luns_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> - lunsBuilder_; - - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public java.util.List getLunsList() { - if (lunsBuilder_ == null) { - return java.util.Collections.unmodifiableList(luns_); - } else { - return lunsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public int getLunsCount() { - if (lunsBuilder_ == null) { - return luns_.size(); - } else { - return lunsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { - if (lunsBuilder_ == null) { - return luns_.get(index); - } else { - return lunsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { - if (lunsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLunsIsMutable(); - luns_.set(index, value); - onChanged(); - } else { - lunsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public Builder setLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { - if (lunsBuilder_ == null) { - ensureLunsIsMutable(); - luns_.set(index, builderForValue.build()); - onChanged(); - } else { - lunsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { - if (lunsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLunsIsMutable(); - luns_.add(value); - onChanged(); - } else { - lunsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { - if (lunsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLunsIsMutable(); - luns_.add(index, value); - onChanged(); - } else { - lunsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { - if (lunsBuilder_ == null) { - ensureLunsIsMutable(); - luns_.add(builderForValue.build()); - onChanged(); - } else { - lunsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public Builder addLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { - if (lunsBuilder_ == null) { - ensureLunsIsMutable(); - luns_.add(index, builderForValue.build()); - onChanged(); - } else { - lunsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public Builder addAllLuns( - java.lang.Iterable values) { - if (lunsBuilder_ == null) { - ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); - onChanged(); - } else { - lunsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public Builder clearLuns() { - if (lunsBuilder_ == null) { - luns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - lunsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public Builder removeLuns(int index) { - if (lunsBuilder_ == null) { - ensureLunsIsMutable(); - luns_.remove(index); - onChanged(); - } else { - lunsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { - return getLunsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { - if (lunsBuilder_ == null) { - return luns_.get(index); - } else { - return lunsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public java.util.List - getLunsOrBuilderList() { - if (lunsBuilder_ != null) { - return lunsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(luns_); - } - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { - return getLunsFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); - } - /** - * - * - *
-     * List of LUNs associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; - */ - public java.util.List getLunsBuilderList() { - return getLunsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> - getLunsFieldBuilder() { - if (lunsBuilder_ == null) { - lunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - luns_ = null; - } - return lunsBuilder_; - } - - private java.util.List networks_ = - java.util.Collections.emptyList(); - - private void ensureNetworksIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - networks_ = - new java.util.ArrayList(networks_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - networksBuilder_; - - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public java.util.List getNetworksList() { - if (networksBuilder_ == null) { - return java.util.Collections.unmodifiableList(networks_); - } else { - return networksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public int getNetworksCount() { - if (networksBuilder_ == null) { - return networks_.size(); - } else { - return networksBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { - if (networksBuilder_ == null) { - return networks_.get(index); - } else { - return networksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { - if (networksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNetworksIsMutable(); - networks_.set(index, value); - onChanged(); - } else { - networksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public Builder setNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - networks_.set(index, builderForValue.build()); - onChanged(); - } else { - networksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) { - if (networksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNetworksIsMutable(); - networks_.add(value); - onChanged(); - } else { - networksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { - if (networksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNetworksIsMutable(); - networks_.add(index, value); - onChanged(); - } else { - networksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public Builder addNetworks( - com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - networks_.add(builderForValue.build()); - onChanged(); - } else { - networksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public Builder addNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - networks_.add(index, builderForValue.build()); - onChanged(); - } else { - networksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public Builder addAllNetworks( - java.lang.Iterable values) { - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); - onChanged(); - } else { - networksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public Builder clearNetworks() { - if (networksBuilder_ == null) { - networks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - networksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public Builder removeNetworks(int index) { - if (networksBuilder_ == null) { - ensureNetworksIsMutable(); - networks_.remove(index); - onChanged(); - } else { - networksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { - return getNetworksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { - if (networksBuilder_ == null) { - return networks_.get(index); - } else { - return networksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public java.util.List - getNetworksOrBuilderList() { - if (networksBuilder_ != null) { - return networksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(networks_); - } - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { - return getNetworksFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); - } - /** - * - * - *
-     * List of networks associated with this server.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; - */ - public java.util.List - getNetworksBuilderList() { - return getNetworksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - getNetworksFieldBuilder() { - if (networksBuilder_ == null) { - networksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - networks_ = null; - } - return networksBuilder_; - } - - private boolean interactiveSerialConsoleEnabled_; - /** - * - * - *
-     * True if the interactive serial console feature is enabled for the instance,
-     * false otherwise.
-     * The default value is false.
-     * 
- * - * bool interactive_serial_console_enabled = 10; - * - * @return The interactiveSerialConsoleEnabled. - */ - @java.lang.Override - public boolean getInteractiveSerialConsoleEnabled() { - return interactiveSerialConsoleEnabled_; - } - /** - * - * - *
-     * True if the interactive serial console feature is enabled for the instance,
-     * false otherwise.
-     * The default value is false.
-     * 
- * - * bool interactive_serial_console_enabled = 10; - * - * @param value The interactiveSerialConsoleEnabled to set. - * @return This builder for chaining. - */ - public Builder setInteractiveSerialConsoleEnabled(boolean value) { - - interactiveSerialConsoleEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * True if the interactive serial console feature is enabled for the instance,
-     * false otherwise.
-     * The default value is false.
-     * 
- * - * bool interactive_serial_console_enabled = 10; - * - * @return This builder for chaining. - */ - public Builder clearInteractiveSerialConsoleEnabled() { - - interactiveSerialConsoleEnabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Instance) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Instance) - private static final com.google.cloud.baremetalsolution.v2.Instance DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Instance(); - } - - public static com.google.cloud.baremetalsolution.v2.Instance getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Instance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesRequest.java deleted file mode 100644 index 5cd29da..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesRequest.java +++ /dev/null @@ -1,943 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Message for requesting a list of snapshot schedule policies.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest} - */ -public final class ListSnapshotSchedulePoliciesRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest) - ListSnapshotSchedulePoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListSnapshotSchedulePoliciesRequest.newBuilder() to construct. - private ListSnapshotSchedulePoliciesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListSnapshotSchedulePoliciesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListSnapshotSchedulePoliciesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListSnapshotSchedulePoliciesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest.class, - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest.Builder - .class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent project containing the Snapshot Schedule Policies.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent project containing the Snapshot Schedule Policies.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of items to return.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * The next_page_token value returned from a previous List request, if any.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * The next_page_token value returned from a previous List request, if any.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest other = - (com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for requesting a list of snapshot schedule policies.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest) - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest.class, - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest build() { - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest - buildPartial() { - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest result = - new com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent project containing the Snapshot Schedule Policies.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent project containing the Snapshot Schedule Policies.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent project containing the Snapshot Schedule Policies.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent project containing the Snapshot Schedule Policies.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent project containing the Snapshot Schedule Policies.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of items to return.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of items to return.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of items to return.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * The next_page_token value returned from a previous List request, if any.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The next_page_token value returned from a previous List request, if any.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The next_page_token value returned from a previous List request, if any.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The next_page_token value returned from a previous List request, if any.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * The next_page_token value returned from a previous List request, if any.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest) - private static final com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest(); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnapshotSchedulePoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotSchedulePoliciesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesRequestOrBuilder.java deleted file mode 100644 index f5a85e0..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesRequestOrBuilder.java +++ /dev/null @@ -1,92 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ListSnapshotSchedulePoliciesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent project containing the Snapshot Schedule Policies.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent project containing the Snapshot Schedule Policies.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of items to return.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * The next_page_token value returned from a previous List request, if any.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * The next_page_token value returned from a previous List request, if any.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesResponse.java deleted file mode 100644 index e849db0..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesResponse.java +++ /dev/null @@ -1,1245 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Response message containing the list of snapshot schedule policies.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse} - */ -public final class ListSnapshotSchedulePoliciesResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse) - ListSnapshotSchedulePoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListSnapshotSchedulePoliciesResponse.newBuilder() to construct. - private ListSnapshotSchedulePoliciesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListSnapshotSchedulePoliciesResponse() { - snapshotSchedulePolicies_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListSnapshotSchedulePoliciesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListSnapshotSchedulePoliciesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - snapshotSchedulePolicies_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy>(); - mutable_bitField0_ |= 0x00000001; - } - snapshotSchedulePolicies_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - snapshotSchedulePolicies_ = - java.util.Collections.unmodifiableList(snapshotSchedulePolicies_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse.class, - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse.Builder - .class); - } - - public static final int SNAPSHOT_SCHEDULE_POLICIES_FIELD_NUMBER = 1; - private java.util.List - snapshotSchedulePolicies_; - /** - * - * - *
-   * The snapshot schedule policies registered in this project.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - @java.lang.Override - public java.util.List - getSnapshotSchedulePoliciesList() { - return snapshotSchedulePolicies_; - } - /** - * - * - *
-   * The snapshot schedule policies registered in this project.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder> - getSnapshotSchedulePoliciesOrBuilderList() { - return snapshotSchedulePolicies_; - } - /** - * - * - *
-   * The snapshot schedule policies registered in this project.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - @java.lang.Override - public int getSnapshotSchedulePoliciesCount() { - return snapshotSchedulePolicies_.size(); - } - /** - * - * - *
-   * The snapshot schedule policies registered in this project.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy getSnapshotSchedulePolicies( - int index) { - return snapshotSchedulePolicies_.get(index); - } - /** - * - * - *
-   * The snapshot schedule policies registered in this project.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder - getSnapshotSchedulePoliciesOrBuilder(int index) { - return snapshotSchedulePolicies_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < snapshotSchedulePolicies_.size(); i++) { - output.writeMessage(1, snapshotSchedulePolicies_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < snapshotSchedulePolicies_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, snapshotSchedulePolicies_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse other = - (com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse) obj; - - if (!getSnapshotSchedulePoliciesList().equals(other.getSnapshotSchedulePoliciesList())) - return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSnapshotSchedulePoliciesCount() > 0) { - hash = (37 * hash) + SNAPSHOT_SCHEDULE_POLICIES_FIELD_NUMBER; - hash = (53 * hash) + getSnapshotSchedulePoliciesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message containing the list of snapshot schedule policies.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse) - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse.class, - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse.Builder - .class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSnapshotSchedulePoliciesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (snapshotSchedulePoliciesBuilder_ == null) { - snapshotSchedulePolicies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - snapshotSchedulePoliciesBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListSnapshotSchedulePoliciesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse build() { - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - buildPartial() { - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse result = - new com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse(this); - int from_bitField0_ = bitField0_; - if (snapshotSchedulePoliciesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - snapshotSchedulePolicies_ = - java.util.Collections.unmodifiableList(snapshotSchedulePolicies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.snapshotSchedulePolicies_ = snapshotSchedulePolicies_; - } else { - result.snapshotSchedulePolicies_ = snapshotSchedulePoliciesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse other) { - if (other - == com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - .getDefaultInstance()) return this; - if (snapshotSchedulePoliciesBuilder_ == null) { - if (!other.snapshotSchedulePolicies_.isEmpty()) { - if (snapshotSchedulePolicies_.isEmpty()) { - snapshotSchedulePolicies_ = other.snapshotSchedulePolicies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSnapshotSchedulePoliciesIsMutable(); - snapshotSchedulePolicies_.addAll(other.snapshotSchedulePolicies_); - } - onChanged(); - } - } else { - if (!other.snapshotSchedulePolicies_.isEmpty()) { - if (snapshotSchedulePoliciesBuilder_.isEmpty()) { - snapshotSchedulePoliciesBuilder_.dispose(); - snapshotSchedulePoliciesBuilder_ = null; - snapshotSchedulePolicies_ = other.snapshotSchedulePolicies_; - bitField0_ = (bitField0_ & ~0x00000001); - snapshotSchedulePoliciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSnapshotSchedulePoliciesFieldBuilder() - : null; - } else { - snapshotSchedulePoliciesBuilder_.addAllMessages(other.snapshotSchedulePolicies_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List - snapshotSchedulePolicies_ = java.util.Collections.emptyList(); - - private void ensureSnapshotSchedulePoliciesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - snapshotSchedulePolicies_ = - new java.util.ArrayList( - snapshotSchedulePolicies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder> - snapshotSchedulePoliciesBuilder_; - - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public java.util.List - getSnapshotSchedulePoliciesList() { - if (snapshotSchedulePoliciesBuilder_ == null) { - return java.util.Collections.unmodifiableList(snapshotSchedulePolicies_); - } else { - return snapshotSchedulePoliciesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public int getSnapshotSchedulePoliciesCount() { - if (snapshotSchedulePoliciesBuilder_ == null) { - return snapshotSchedulePolicies_.size(); - } else { - return snapshotSchedulePoliciesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy getSnapshotSchedulePolicies( - int index) { - if (snapshotSchedulePoliciesBuilder_ == null) { - return snapshotSchedulePolicies_.get(index); - } else { - return snapshotSchedulePoliciesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public Builder setSnapshotSchedulePolicies( - int index, com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy value) { - if (snapshotSchedulePoliciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotSchedulePoliciesIsMutable(); - snapshotSchedulePolicies_.set(index, value); - onChanged(); - } else { - snapshotSchedulePoliciesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public Builder setSnapshotSchedulePolicies( - int index, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder builderForValue) { - if (snapshotSchedulePoliciesBuilder_ == null) { - ensureSnapshotSchedulePoliciesIsMutable(); - snapshotSchedulePolicies_.set(index, builderForValue.build()); - onChanged(); - } else { - snapshotSchedulePoliciesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public Builder addSnapshotSchedulePolicies( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy value) { - if (snapshotSchedulePoliciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotSchedulePoliciesIsMutable(); - snapshotSchedulePolicies_.add(value); - onChanged(); - } else { - snapshotSchedulePoliciesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public Builder addSnapshotSchedulePolicies( - int index, com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy value) { - if (snapshotSchedulePoliciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotSchedulePoliciesIsMutable(); - snapshotSchedulePolicies_.add(index, value); - onChanged(); - } else { - snapshotSchedulePoliciesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public Builder addSnapshotSchedulePolicies( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder builderForValue) { - if (snapshotSchedulePoliciesBuilder_ == null) { - ensureSnapshotSchedulePoliciesIsMutable(); - snapshotSchedulePolicies_.add(builderForValue.build()); - onChanged(); - } else { - snapshotSchedulePoliciesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public Builder addSnapshotSchedulePolicies( - int index, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder builderForValue) { - if (snapshotSchedulePoliciesBuilder_ == null) { - ensureSnapshotSchedulePoliciesIsMutable(); - snapshotSchedulePolicies_.add(index, builderForValue.build()); - onChanged(); - } else { - snapshotSchedulePoliciesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public Builder addAllSnapshotSchedulePolicies( - java.lang.Iterable - values) { - if (snapshotSchedulePoliciesBuilder_ == null) { - ensureSnapshotSchedulePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshotSchedulePolicies_); - onChanged(); - } else { - snapshotSchedulePoliciesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public Builder clearSnapshotSchedulePolicies() { - if (snapshotSchedulePoliciesBuilder_ == null) { - snapshotSchedulePolicies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - snapshotSchedulePoliciesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public Builder removeSnapshotSchedulePolicies(int index) { - if (snapshotSchedulePoliciesBuilder_ == null) { - ensureSnapshotSchedulePoliciesIsMutable(); - snapshotSchedulePolicies_.remove(index); - onChanged(); - } else { - snapshotSchedulePoliciesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder - getSnapshotSchedulePoliciesBuilder(int index) { - return getSnapshotSchedulePoliciesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder - getSnapshotSchedulePoliciesOrBuilder(int index) { - if (snapshotSchedulePoliciesBuilder_ == null) { - return snapshotSchedulePolicies_.get(index); - } else { - return snapshotSchedulePoliciesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder> - getSnapshotSchedulePoliciesOrBuilderList() { - if (snapshotSchedulePoliciesBuilder_ != null) { - return snapshotSchedulePoliciesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(snapshotSchedulePolicies_); - } - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder - addSnapshotSchedulePoliciesBuilder() { - return getSnapshotSchedulePoliciesFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.getDefaultInstance()); - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder - addSnapshotSchedulePoliciesBuilder(int index) { - return getSnapshotSchedulePoliciesFieldBuilder() - .addBuilder( - index, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.getDefaultInstance()); - } - /** - * - * - *
-     * The snapshot schedule policies registered in this project.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - public java.util.List - getSnapshotSchedulePoliciesBuilderList() { - return getSnapshotSchedulePoliciesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder> - getSnapshotSchedulePoliciesFieldBuilder() { - if (snapshotSchedulePoliciesBuilder_ == null) { - snapshotSchedulePoliciesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder>( - snapshotSchedulePolicies_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - snapshotSchedulePolicies_ = null; - } - return snapshotSchedulePoliciesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Token to retrieve the next page of results, or empty if there are no more
-     * results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse) - private static final com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse(); - } - - public static com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnapshotSchedulePoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotSchedulePoliciesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesResponseOrBuilder.java deleted file mode 100644 index eb1ea40..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListSnapshotSchedulePoliciesResponseOrBuilder.java +++ /dev/null @@ -1,117 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ListSnapshotSchedulePoliciesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The snapshot schedule policies registered in this project.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - java.util.List - getSnapshotSchedulePoliciesList(); - /** - * - * - *
-   * The snapshot schedule policies registered in this project.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy getSnapshotSchedulePolicies( - int index); - /** - * - * - *
-   * The snapshot schedule policies registered in this project.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - int getSnapshotSchedulePoliciesCount(); - /** - * - * - *
-   * The snapshot schedule policies registered in this project.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - java.util.List - getSnapshotSchedulePoliciesOrBuilderList(); - /** - * - * - *
-   * The snapshot schedule policies registered in this project.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * - */ - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder - getSnapshotSchedulePoliciesOrBuilder(int index); - - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Token to retrieve the next page of results, or empty if there are no more
-   * results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsRequest.java deleted file mode 100644 index 62a7d68..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsRequest.java +++ /dev/null @@ -1,933 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Message for requesting a list of storage volume snapshots.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest} - */ -public final class ListVolumeSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest) - ListVolumeSnapshotsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListVolumeSnapshotsRequest.newBuilder() to construct. - private ListVolumeSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListVolumeSnapshotsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListVolumeSnapshotsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListVolumeSnapshotsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest.class, - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Parent value for ListVolumesRequest.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Parent value for ListVolumesRequest.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Requested page size. The server might return fewer items than requested.
-   * If unspecified, server will pick an appropriate default.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A token identifying a page of results from the server.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying a page of results from the server.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest other = - (com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for requesting a list of storage volume snapshots.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest) - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest.class, - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest.Builder.class); - } - - // Construct using com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest build() { - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest result = - new com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Parent value for ListVolumesRequest.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Parent value for ListVolumesRequest.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Parent value for ListVolumesRequest.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Parent value for ListVolumesRequest.
-     * 
- * - * - * 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. Parent value for ListVolumesRequest.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Requested page size. The server might return fewer items than requested.
-     * If unspecified, server will pick an appropriate default.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Requested page size. The server might return fewer items than requested.
-     * If unspecified, server will pick an appropriate default.
-     * 
- * - * 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; - } - /** - * - * - *
-     * Requested page size. The server might return fewer items than requested.
-     * If unspecified, server will pick an appropriate default.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A token identifying a page of results from the server.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results from the server.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results from the server.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results from the server.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results from the server.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest) - private static final com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest(); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumeSnapshotsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumeSnapshotsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsRequestOrBuilder.java deleted file mode 100644 index 7891579..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsRequestOrBuilder.java +++ /dev/null @@ -1,93 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ListVolumeSnapshotsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Parent value for ListVolumesRequest.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Parent value for ListVolumesRequest.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Requested page size. The server might return fewer items than requested.
-   * If unspecified, server will pick an appropriate default.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A token identifying a page of results from the server.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * A token identifying a page of results from the server.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsResponse.java deleted file mode 100644 index f3bd256..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsResponse.java +++ /dev/null @@ -1,1434 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Response message containing the list of storage volume snapshots.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse} - */ -public final class ListVolumeSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse) - ListVolumeSnapshotsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListVolumeSnapshotsResponse.newBuilder() to construct. - private ListVolumeSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListVolumeSnapshotsResponse() { - volumeSnapshots_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListVolumeSnapshotsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListVolumeSnapshotsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumeSnapshots_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - volumeSnapshots_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - volumeSnapshots_ = java.util.Collections.unmodifiableList(volumeSnapshots_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse.class, - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse.Builder.class); - } - - public static final int VOLUME_SNAPSHOTS_FIELD_NUMBER = 1; - private java.util.List volumeSnapshots_; - /** - * - * - *
-   * The list of storage volumes.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - @java.lang.Override - public java.util.List - getVolumeSnapshotsList() { - return volumeSnapshots_; - } - /** - * - * - *
-   * The list of storage volumes.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - @java.lang.Override - public java.util.List - getVolumeSnapshotsOrBuilderList() { - return volumeSnapshots_; - } - /** - * - * - *
-   * The list of storage volumes.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - @java.lang.Override - public int getVolumeSnapshotsCount() { - return volumeSnapshots_.size(); - } - /** - * - * - *
-   * The list of storage volumes.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot getVolumeSnapshots(int index) { - return volumeSnapshots_.get(index); - } - /** - * - * - *
-   * The list of storage volumes.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder getVolumeSnapshotsOrBuilder( - int index) { - return volumeSnapshots_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token identifying a page of results from the server.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying a page of results from the server.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNREACHABLE_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList unreachable_; - /** - * - * - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_; - } - /** - * - * - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < volumeSnapshots_.size(); i++) { - output.writeMessage(1, volumeSnapshots_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < volumeSnapshots_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumeSnapshots_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - { - int dataSize = 0; - for (int i = 0; i < unreachable_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse other = - (com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse) obj; - - if (!getVolumeSnapshotsList().equals(other.getVolumeSnapshotsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getVolumeSnapshotsCount() > 0) { - hash = (37 * hash) + VOLUME_SNAPSHOTS_FIELD_NUMBER; - hash = (53 * hash) + getVolumeSnapshotsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (getUnreachableCount() > 0) { - hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message containing the list of storage volume snapshots.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse) - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse.class, - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse.Builder.class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getVolumeSnapshotsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (volumeSnapshotsBuilder_ == null) { - volumeSnapshots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - volumeSnapshotsBuilder_.clear(); - } - nextPageToken_ = ""; - - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumeSnapshotsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse build() { - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse result = - new com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse(this); - int from_bitField0_ = bitField0_; - if (volumeSnapshotsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - volumeSnapshots_ = java.util.Collections.unmodifiableList(volumeSnapshots_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.volumeSnapshots_ = volumeSnapshots_; - } else { - result.volumeSnapshots_ = volumeSnapshotsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (((bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unreachable_ = unreachable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse other) { - if (other - == com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse.getDefaultInstance()) - return this; - if (volumeSnapshotsBuilder_ == null) { - if (!other.volumeSnapshots_.isEmpty()) { - if (volumeSnapshots_.isEmpty()) { - volumeSnapshots_ = other.volumeSnapshots_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureVolumeSnapshotsIsMutable(); - volumeSnapshots_.addAll(other.volumeSnapshots_); - } - onChanged(); - } - } else { - if (!other.volumeSnapshots_.isEmpty()) { - if (volumeSnapshotsBuilder_.isEmpty()) { - volumeSnapshotsBuilder_.dispose(); - volumeSnapshotsBuilder_ = null; - volumeSnapshots_ = other.volumeSnapshots_; - bitField0_ = (bitField0_ & ~0x00000001); - volumeSnapshotsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVolumeSnapshotsFieldBuilder() - : null; - } else { - volumeSnapshotsBuilder_.addAllMessages(other.volumeSnapshots_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List volumeSnapshots_ = - java.util.Collections.emptyList(); - - private void ensureVolumeSnapshotsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - volumeSnapshots_ = - new java.util.ArrayList( - volumeSnapshots_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VolumeSnapshot, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder, - com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder> - volumeSnapshotsBuilder_; - - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public java.util.List - getVolumeSnapshotsList() { - if (volumeSnapshotsBuilder_ == null) { - return java.util.Collections.unmodifiableList(volumeSnapshots_); - } else { - return volumeSnapshotsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public int getVolumeSnapshotsCount() { - if (volumeSnapshotsBuilder_ == null) { - return volumeSnapshots_.size(); - } else { - return volumeSnapshotsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot getVolumeSnapshots(int index) { - if (volumeSnapshotsBuilder_ == null) { - return volumeSnapshots_.get(index); - } else { - return volumeSnapshotsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public Builder setVolumeSnapshots( - int index, com.google.cloud.baremetalsolution.v2.VolumeSnapshot value) { - if (volumeSnapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVolumeSnapshotsIsMutable(); - volumeSnapshots_.set(index, value); - onChanged(); - } else { - volumeSnapshotsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public Builder setVolumeSnapshots( - int index, com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder builderForValue) { - if (volumeSnapshotsBuilder_ == null) { - ensureVolumeSnapshotsIsMutable(); - volumeSnapshots_.set(index, builderForValue.build()); - onChanged(); - } else { - volumeSnapshotsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public Builder addVolumeSnapshots(com.google.cloud.baremetalsolution.v2.VolumeSnapshot value) { - if (volumeSnapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVolumeSnapshotsIsMutable(); - volumeSnapshots_.add(value); - onChanged(); - } else { - volumeSnapshotsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public Builder addVolumeSnapshots( - int index, com.google.cloud.baremetalsolution.v2.VolumeSnapshot value) { - if (volumeSnapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVolumeSnapshotsIsMutable(); - volumeSnapshots_.add(index, value); - onChanged(); - } else { - volumeSnapshotsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public Builder addVolumeSnapshots( - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder builderForValue) { - if (volumeSnapshotsBuilder_ == null) { - ensureVolumeSnapshotsIsMutable(); - volumeSnapshots_.add(builderForValue.build()); - onChanged(); - } else { - volumeSnapshotsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public Builder addVolumeSnapshots( - int index, com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder builderForValue) { - if (volumeSnapshotsBuilder_ == null) { - ensureVolumeSnapshotsIsMutable(); - volumeSnapshots_.add(index, builderForValue.build()); - onChanged(); - } else { - volumeSnapshotsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public Builder addAllVolumeSnapshots( - java.lang.Iterable values) { - if (volumeSnapshotsBuilder_ == null) { - ensureVolumeSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeSnapshots_); - onChanged(); - } else { - volumeSnapshotsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public Builder clearVolumeSnapshots() { - if (volumeSnapshotsBuilder_ == null) { - volumeSnapshots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - volumeSnapshotsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public Builder removeVolumeSnapshots(int index) { - if (volumeSnapshotsBuilder_ == null) { - ensureVolumeSnapshotsIsMutable(); - volumeSnapshots_.remove(index); - onChanged(); - } else { - volumeSnapshotsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder getVolumeSnapshotsBuilder( - int index) { - return getVolumeSnapshotsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder - getVolumeSnapshotsOrBuilder(int index) { - if (volumeSnapshotsBuilder_ == null) { - return volumeSnapshots_.get(index); - } else { - return volumeSnapshotsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public java.util.List - getVolumeSnapshotsOrBuilderList() { - if (volumeSnapshotsBuilder_ != null) { - return volumeSnapshotsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(volumeSnapshots_); - } - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder - addVolumeSnapshotsBuilder() { - return getVolumeSnapshotsFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.VolumeSnapshot.getDefaultInstance()); - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder addVolumeSnapshotsBuilder( - int index) { - return getVolumeSnapshotsFieldBuilder() - .addBuilder( - index, com.google.cloud.baremetalsolution.v2.VolumeSnapshot.getDefaultInstance()); - } - /** - * - * - *
-     * The list of storage volumes.
-     * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - public java.util.List - getVolumeSnapshotsBuilderList() { - return getVolumeSnapshotsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VolumeSnapshot, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder, - com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder> - getVolumeSnapshotsFieldBuilder() { - if (volumeSnapshotsBuilder_ == null) { - volumeSnapshotsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VolumeSnapshot, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder, - com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder>( - volumeSnapshots_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - volumeSnapshots_ = null; - } - return volumeSnapshotsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token identifying a page of results from the server.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results from the server.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying a page of results from the server.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results from the server.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying a page of results from the server.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_.getUnmodifiableView(); - } - /** - * - * - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - * - * - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - * - * - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - /** - * - * - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * - * @param index The index to set the value at. - * @param value The unreachable to set. - * @return This builder for chaining. - */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * - * @param value The unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * - * @param values The unreachable to add. - * @return This builder for chaining. - */ - public Builder addAllUnreachable(java.lang.Iterable values) { - ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); - onChanged(); - return this; - } - /** - * - * - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * - * @param value The bytes of the unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse) - private static final com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse(); - } - - public static com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumeSnapshotsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumeSnapshotsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsResponseOrBuilder.java deleted file mode 100644 index b7e9ca5..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumeSnapshotsResponseOrBuilder.java +++ /dev/null @@ -1,154 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ListVolumeSnapshotsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of storage volumes.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - java.util.List getVolumeSnapshotsList(); - /** - * - * - *
-   * The list of storage volumes.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - com.google.cloud.baremetalsolution.v2.VolumeSnapshot getVolumeSnapshots(int index); - /** - * - * - *
-   * The list of storage volumes.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - int getVolumeSnapshotsCount(); - /** - * - * - *
-   * The list of storage volumes.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - java.util.List - getVolumeSnapshotsOrBuilderList(); - /** - * - * - *
-   * The list of storage volumes.
-   * 
- * - * repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder getVolumeSnapshotsOrBuilder( - int index); - - /** - * - * - *
-   * A token identifying a page of results from the server.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token identifying a page of results from the server.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); - - /** - * - * - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * - * @return A list containing the unreachable. - */ - java.util.List getUnreachableList(); - /** - * - * - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * - * @return The count of unreachable. - */ - int getUnreachableCount(); - /** - * - * - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - /** - * - * - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - com.google.protobuf.ByteString getUnreachableBytes(int index); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java deleted file mode 100644 index 449af71..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java +++ /dev/null @@ -1,2581 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * A Network.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} - */ -public final class Network extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Network) - NetworkOrBuilder { - private static final long serialVersionUID = 0L; - // Use Network.newBuilder() to construct. - private Network(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Network() { - name_ = ""; - network_ = ""; - type_ = 0; - ipAddress_ = ""; - macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; - state_ = 0; - vlanId_ = ""; - cidr_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Network(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Network( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - ipAddress_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - macAddress_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - macAddress_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 48: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - vlanId_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - cidr_ = s; - break; - } - case 74: - { - com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; - if (vrf_ != null) { - subBuilder = vrf_.toBuilder(); - } - vrf_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vrf_); - vrf_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } 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); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - macAddress_ = macAddress_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, - com.google.cloud.baremetalsolution.v2.Network.Builder.class); - } - - /** - * - * - *
-   * Network type.
-   * 
- * - * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified value.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Client network, a network peered to a Google Cloud VPC.
-     * 
- * - * CLIENT = 1; - */ - CLIENT(1), - /** - * - * - *
-     * Private network, a network local to the Bare Metal Solution environment.
-     * 
- * - * PRIVATE = 2; - */ - PRIVATE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified value.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Client network, a network peered to a Google Cloud VPC.
-     * 
- * - * CLIENT = 1; - */ - public static final int CLIENT_VALUE = 1; - /** - * - * - *
-     * Private network, a network local to the Bare Metal Solution environment.
-     * 
- * - * PRIVATE = 2; - */ - public static final int PRIVATE_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return CLIENT; - case 2: - return PRIVATE; - default: - return null; - } - } - - 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 Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Network.Type) - } - - /** - * - * - *
-   * The possible states for this Network.
-   * 
- * - * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The Network is in an unknown state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The Network is provisioning.
-     * 
- * - * PROVISIONING = 1; - */ - PROVISIONING(1), - /** - * - * - *
-     * The Network has been provisioned.
-     * 
- * - * PROVISIONED = 2; - */ - PROVISIONED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The Network is in an unknown state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The Network is provisioning.
-     * 
- * - * PROVISIONING = 1; - */ - public static final int PROVISIONING_VALUE = 1; - /** - * - * - *
-     * The Network has been provisioned.
-     * 
- * - * PROVISIONED = 2; - */ - public static final int PROVISIONED_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return PROVISIONED; - default: - return null; - } - } - - 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 State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(1); - } - - private static final State[] VALUES = values(); - - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Network.State) - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. The resource name of this `Network`.
-   * Resource names are schemeless URIs that follow the conventions in
-   * https://cloud.google.com/apis/design/resource_names.
-   * Format:
-   * `projects/{project}/locations/{location}/networks/{network}`
-   * This field will contain the same value as field "network", which will soon
-   * be deprecated. Please use this field to reference the name of the network
-   * resource.
-   * 
- * - * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The resource name of this `Network`.
-   * Resource names are schemeless URIs that follow the conventions in
-   * https://cloud.google.com/apis/design/resource_names.
-   * Format:
-   * `projects/{project}/locations/{location}/networks/{network}`
-   * This field will contain the same value as field "network", which will soon
-   * be deprecated. Please use this field to reference the name of the network
-   * resource.
-   * 
- * - * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_FIELD_NUMBER = 1; - private volatile java.lang.Object network_; - /** - * - * - *
-   * Name of the network.
-   * 
- * - * string network = 1; - * - * @return The network. - */ - @java.lang.Override - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } - } - /** - * - * - *
-   * Name of the network.
-   * 
- * - * string network = 1; - * - * @return The bytes for network. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - * - * - *
-   * The type of this network.
-   * 
- * - * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * The type of this network.
-   * 
- * - * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = - com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED - : result; - } - - public static final int IP_ADDRESS_FIELD_NUMBER = 3; - private volatile java.lang.Object ipAddress_; - /** - * - * - *
-   * IP address configured.
-   * 
- * - * string ip_address = 3; - * - * @return The ipAddress. - */ - @java.lang.Override - public java.lang.String getIpAddress() { - java.lang.Object ref = ipAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipAddress_ = s; - return s; - } - } - /** - * - * - *
-   * IP address configured.
-   * 
- * - * string ip_address = 3; - * - * @return The bytes for ipAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIpAddressBytes() { - java.lang.Object ref = ipAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAC_ADDRESS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList macAddress_; - /** - * - * - *
-   * List of physical interfaces.
-   * 
- * - * repeated string mac_address = 4; - * - * @return A list containing the macAddress. - */ - public com.google.protobuf.ProtocolStringList getMacAddressList() { - return macAddress_; - } - /** - * - * - *
-   * List of physical interfaces.
-   * 
- * - * repeated string mac_address = 4; - * - * @return The count of macAddress. - */ - public int getMacAddressCount() { - return macAddress_.size(); - } - /** - * - * - *
-   * List of physical interfaces.
-   * 
- * - * repeated string mac_address = 4; - * - * @param index The index of the element to return. - * @return The macAddress at the given index. - */ - public java.lang.String getMacAddress(int index) { - return macAddress_.get(index); - } - /** - * - * - *
-   * List of physical interfaces.
-   * 
- * - * repeated string mac_address = 4; - * - * @param index The index of the value to return. - * @return The bytes of the macAddress at the given index. - */ - public com.google.protobuf.ByteString getMacAddressBytes(int index) { - return macAddress_.getByteString(index); - } - - public static final int STATE_FIELD_NUMBER = 6; - private int state_; - /** - * - * - *
-   * The Network state.
-   * 
- * - * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * The Network state.
-   * 
- * - * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = - com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED - : result; - } - - public static final int VLAN_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object vlanId_; - /** - * - * - *
-   * The vlan id of the Network.
-   * 
- * - * string vlan_id = 7; - * - * @return The vlanId. - */ - @java.lang.Override - public java.lang.String getVlanId() { - java.lang.Object ref = vlanId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vlanId_ = s; - return s; - } - } - /** - * - * - *
-   * The vlan id of the Network.
-   * 
- * - * string vlan_id = 7; - * - * @return The bytes for vlanId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVlanIdBytes() { - java.lang.Object ref = vlanId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vlanId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CIDR_FIELD_NUMBER = 8; - private volatile java.lang.Object cidr_; - /** - * - * - *
-   * The cidr of the Network.
-   * 
- * - * string cidr = 8; - * - * @return The cidr. - */ - @java.lang.Override - public java.lang.String getCidr() { - java.lang.Object ref = cidr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cidr_ = s; - return s; - } - } - /** - * - * - *
-   * The cidr of the Network.
-   * 
- * - * string cidr = 8; - * - * @return The bytes for cidr. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCidrBytes() { - java.lang.Object ref = cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VRF_FIELD_NUMBER = 9; - private com.google.cloud.baremetalsolution.v2.VRF vrf_; - /** - * - * - *
-   * The vrf for the Network.
-   * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * - * @return Whether the vrf field is set. - */ - @java.lang.Override - public boolean hasVrf() { - return vrf_ != null; - } - /** - * - * - *
-   * The vrf for the Network.
-   * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * - * @return The vrf. - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRF getVrf() { - return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; - } - /** - * - * - *
-   * The vrf for the Network.
-   * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { - return getVrf(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); - } - if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipAddress_); - } - for (int i = 0; i < macAddress_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, macAddress_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - if (state_ - != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(6, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, vlanId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cidr_); - } - if (vrf_ != null) { - output.writeMessage(9, getVrf()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); - } - if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); - } - { - int dataSize = 0; - for (int i = 0; i < macAddress_.size(); i++) { - dataSize += computeStringSizeNoTag(macAddress_.getRaw(i)); - } - size += dataSize; - size += 1 * getMacAddressList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - if (state_ - != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vlanId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cidr_); - } - if (vrf_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getVrf()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Network)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.Network other = - (com.google.cloud.baremetalsolution.v2.Network) obj; - - if (!getName().equals(other.getName())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (type_ != other.type_) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (!getMacAddressList().equals(other.getMacAddressList())) return false; - if (state_ != other.state_) return false; - if (!getVlanId().equals(other.getVlanId())) return false; - if (!getCidr().equals(other.getCidr())) return false; - if (hasVrf() != other.hasVrf()) return false; - if (hasVrf()) { - if (!getVrf().equals(other.getVrf())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getIpAddress().hashCode(); - if (getMacAddressCount() > 0) { - hash = (37 * hash) + MAC_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getMacAddressList().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + VLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + getVlanId().hashCode(); - hash = (37 * hash) + CIDR_FIELD_NUMBER; - hash = (53 * hash) + getCidr().hashCode(); - if (hasVrf()) { - hash = (37 * hash) + VRF_FIELD_NUMBER; - hash = (53 * hash) + getVrf().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.Network parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Network prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A Network.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Network) - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, - com.google.cloud.baremetalsolution.v2.Network.Builder.class); - } - - // Construct using com.google.cloud.baremetalsolution.v2.Network.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - network_ = ""; - - type_ = 0; - - ipAddress_ = ""; - - macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - state_ = 0; - - vlanId_ = ""; - - cidr_ = ""; - - if (vrfBuilder_ == null) { - vrf_ = null; - } else { - vrf_ = null; - vrfBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network build() { - com.google.cloud.baremetalsolution.v2.Network result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network buildPartial() { - com.google.cloud.baremetalsolution.v2.Network result = - new com.google.cloud.baremetalsolution.v2.Network(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.network_ = network_; - result.type_ = type_; - result.ipAddress_ = ipAddress_; - if (((bitField0_ & 0x00000001) != 0)) { - macAddress_ = macAddress_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.macAddress_ = macAddress_; - result.state_ = state_; - result.vlanId_ = vlanId_; - result.cidr_ = cidr_; - if (vrfBuilder_ == null) { - result.vrf_ = vrf_; - } else { - result.vrf_ = vrfBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.Network) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Network) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { - if (other == com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getIpAddress().isEmpty()) { - ipAddress_ = other.ipAddress_; - onChanged(); - } - if (!other.macAddress_.isEmpty()) { - if (macAddress_.isEmpty()) { - macAddress_ = other.macAddress_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMacAddressIsMutable(); - macAddress_.addAll(other.macAddress_); - } - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getVlanId().isEmpty()) { - vlanId_ = other.vlanId_; - onChanged(); - } - if (!other.getCidr().isEmpty()) { - cidr_ = other.cidr_; - onChanged(); - } - if (other.hasVrf()) { - mergeVrf(other.getVrf()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.Network parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.Network) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The resource name of this `Network`.
-     * Resource names are schemeless URIs that follow the conventions in
-     * https://cloud.google.com/apis/design/resource_names.
-     * Format:
-     * `projects/{project}/locations/{location}/networks/{network}`
-     * This field will contain the same value as field "network", which will soon
-     * be deprecated. Please use this field to reference the name of the network
-     * resource.
-     * 
- * - * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of this `Network`.
-     * Resource names are schemeless URIs that follow the conventions in
-     * https://cloud.google.com/apis/design/resource_names.
-     * Format:
-     * `projects/{project}/locations/{location}/networks/{network}`
-     * This field will contain the same value as field "network", which will soon
-     * be deprecated. Please use this field to reference the name of the network
-     * resource.
-     * 
- * - * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of this `Network`.
-     * Resource names are schemeless URIs that follow the conventions in
-     * https://cloud.google.com/apis/design/resource_names.
-     * Format:
-     * `projects/{project}/locations/{location}/networks/{network}`
-     * This field will contain the same value as field "network", which will soon
-     * be deprecated. Please use this field to reference the name of the network
-     * resource.
-     * 
- * - * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of this `Network`.
-     * Resource names are schemeless URIs that follow the conventions in
-     * https://cloud.google.com/apis/design/resource_names.
-     * Format:
-     * `projects/{project}/locations/{location}/networks/{network}`
-     * This field will contain the same value as field "network", which will soon
-     * be deprecated. Please use this field to reference the name of the network
-     * resource.
-     * 
- * - * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of this `Network`.
-     * Resource names are schemeless URIs that follow the conventions in
-     * https://cloud.google.com/apis/design/resource_names.
-     * Format:
-     * `projects/{project}/locations/{location}/networks/{network}`
-     * This field will contain the same value as field "network", which will soon
-     * be deprecated. Please use this field to reference the name of the network
-     * resource.
-     * 
- * - * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - * - * - *
-     * Name of the network.
-     * 
- * - * string network = 1; - * - * @return The network. - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Name of the network.
-     * 
- * - * string network = 1; - * - * @return The bytes for network. - */ - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Name of the network.
-     * 
- * - * string network = 1; - * - * @param value The network to set. - * @return This builder for chaining. - */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - network_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the network.
-     * 
- * - * string network = 1; - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - - network_ = getDefaultInstance().getNetwork(); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the network.
-     * 
- * - * string network = 1; - * - * @param value The bytes for network to set. - * @return This builder for chaining. - */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - network_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * - * - *
-     * The type of this network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * The type of this network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The type of this network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = - com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The type of this network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.baremetalsolution.v2.Network.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The type of this network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object ipAddress_ = ""; - /** - * - * - *
-     * IP address configured.
-     * 
- * - * string ip_address = 3; - * - * @return The ipAddress. - */ - public java.lang.String getIpAddress() { - java.lang.Object ref = ipAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * IP address configured.
-     * 
- * - * string ip_address = 3; - * - * @return The bytes for ipAddress. - */ - public com.google.protobuf.ByteString getIpAddressBytes() { - java.lang.Object ref = ipAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * IP address configured.
-     * 
- * - * string ip_address = 3; - * - * @param value The ipAddress to set. - * @return This builder for chaining. - */ - public Builder setIpAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ipAddress_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * IP address configured.
-     * 
- * - * string ip_address = 3; - * - * @return This builder for chaining. - */ - public Builder clearIpAddress() { - - ipAddress_ = getDefaultInstance().getIpAddress(); - onChanged(); - return this; - } - /** - * - * - *
-     * IP address configured.
-     * 
- * - * string ip_address = 3; - * - * @param value The bytes for ipAddress to set. - * @return This builder for chaining. - */ - public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ipAddress_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList macAddress_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureMacAddressIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - macAddress_ = new com.google.protobuf.LazyStringArrayList(macAddress_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * List of physical interfaces.
-     * 
- * - * repeated string mac_address = 4; - * - * @return A list containing the macAddress. - */ - public com.google.protobuf.ProtocolStringList getMacAddressList() { - return macAddress_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of physical interfaces.
-     * 
- * - * repeated string mac_address = 4; - * - * @return The count of macAddress. - */ - public int getMacAddressCount() { - return macAddress_.size(); - } - /** - * - * - *
-     * List of physical interfaces.
-     * 
- * - * repeated string mac_address = 4; - * - * @param index The index of the element to return. - * @return The macAddress at the given index. - */ - public java.lang.String getMacAddress(int index) { - return macAddress_.get(index); - } - /** - * - * - *
-     * List of physical interfaces.
-     * 
- * - * repeated string mac_address = 4; - * - * @param index The index of the value to return. - * @return The bytes of the macAddress at the given index. - */ - public com.google.protobuf.ByteString getMacAddressBytes(int index) { - return macAddress_.getByteString(index); - } - /** - * - * - *
-     * List of physical interfaces.
-     * 
- * - * repeated string mac_address = 4; - * - * @param index The index to set the value at. - * @param value The macAddress to set. - * @return This builder for chaining. - */ - public Builder setMacAddress(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); - macAddress_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of physical interfaces.
-     * 
- * - * repeated string mac_address = 4; - * - * @param value The macAddress to add. - * @return This builder for chaining. - */ - public Builder addMacAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); - macAddress_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of physical interfaces.
-     * 
- * - * repeated string mac_address = 4; - * - * @param values The macAddress to add. - * @return This builder for chaining. - */ - public Builder addAllMacAddress(java.lang.Iterable values) { - ensureMacAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, macAddress_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of physical interfaces.
-     * 
- * - * repeated string mac_address = 4; - * - * @return This builder for chaining. - */ - public Builder clearMacAddress() { - macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * List of physical interfaces.
-     * 
- * - * repeated string mac_address = 4; - * - * @param value The bytes of the macAddress to add. - * @return This builder for chaining. - */ - public Builder addMacAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureMacAddressIsMutable(); - macAddress_.add(value); - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * The Network state.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * The Network state.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The Network state.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = - com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The Network state.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.baremetalsolution.v2.Network.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Network state.
-     * 
- * - * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object vlanId_ = ""; - /** - * - * - *
-     * The vlan id of the Network.
-     * 
- * - * string vlan_id = 7; - * - * @return The vlanId. - */ - public java.lang.String getVlanId() { - java.lang.Object ref = vlanId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vlanId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The vlan id of the Network.
-     * 
- * - * string vlan_id = 7; - * - * @return The bytes for vlanId. - */ - public com.google.protobuf.ByteString getVlanIdBytes() { - java.lang.Object ref = vlanId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vlanId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The vlan id of the Network.
-     * 
- * - * string vlan_id = 7; - * - * @param value The vlanId to set. - * @return This builder for chaining. - */ - public Builder setVlanId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - vlanId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The vlan id of the Network.
-     * 
- * - * string vlan_id = 7; - * - * @return This builder for chaining. - */ - public Builder clearVlanId() { - - vlanId_ = getDefaultInstance().getVlanId(); - onChanged(); - return this; - } - /** - * - * - *
-     * The vlan id of the Network.
-     * 
- * - * string vlan_id = 7; - * - * @param value The bytes for vlanId to set. - * @return This builder for chaining. - */ - public Builder setVlanIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - vlanId_ = value; - onChanged(); - return this; - } - - private java.lang.Object cidr_ = ""; - /** - * - * - *
-     * The cidr of the Network.
-     * 
- * - * string cidr = 8; - * - * @return The cidr. - */ - public java.lang.String getCidr() { - java.lang.Object ref = cidr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cidr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The cidr of the Network.
-     * 
- * - * string cidr = 8; - * - * @return The bytes for cidr. - */ - public com.google.protobuf.ByteString getCidrBytes() { - java.lang.Object ref = cidr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The cidr of the Network.
-     * 
- * - * string cidr = 8; - * - * @param value The cidr to set. - * @return This builder for chaining. - */ - public Builder setCidr(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cidr_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The cidr of the Network.
-     * 
- * - * string cidr = 8; - * - * @return This builder for chaining. - */ - public Builder clearCidr() { - - cidr_ = getDefaultInstance().getCidr(); - onChanged(); - return this; - } - /** - * - * - *
-     * The cidr of the Network.
-     * 
- * - * string cidr = 8; - * - * @param value The bytes for cidr to set. - * @return This builder for chaining. - */ - public Builder setCidrBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cidr_ = value; - onChanged(); - return this; - } - - private com.google.cloud.baremetalsolution.v2.VRF vrf_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, - com.google.cloud.baremetalsolution.v2.VRF.Builder, - com.google.cloud.baremetalsolution.v2.VRFOrBuilder> - vrfBuilder_; - /** - * - * - *
-     * The vrf for the Network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * - * @return Whether the vrf field is set. - */ - public boolean hasVrf() { - return vrfBuilder_ != null || vrf_ != null; - } - /** - * - * - *
-     * The vrf for the Network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * - * @return The vrf. - */ - public com.google.cloud.baremetalsolution.v2.VRF getVrf() { - if (vrfBuilder_ == null) { - return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; - } else { - return vrfBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The vrf for the Network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - */ - public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF value) { - if (vrfBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vrf_ = value; - onChanged(); - } else { - vrfBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The vrf for the Network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - */ - public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { - if (vrfBuilder_ == null) { - vrf_ = builderForValue.build(); - onChanged(); - } else { - vrfBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The vrf for the Network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - */ - public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { - if (vrfBuilder_ == null) { - if (vrf_ != null) { - vrf_ = - com.google - .cloud - .baremetalsolution - .v2 - .VRF - .newBuilder(vrf_) - .mergeFrom(value) - .buildPartial(); - } else { - vrf_ = value; - } - onChanged(); - } else { - vrfBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The vrf for the Network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - */ - public Builder clearVrf() { - if (vrfBuilder_ == null) { - vrf_ = null; - onChanged(); - } else { - vrf_ = null; - vrfBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The vrf for the Network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - */ - public com.google.cloud.baremetalsolution.v2.VRF.Builder getVrfBuilder() { - - onChanged(); - return getVrfFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The vrf for the Network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - */ - public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { - if (vrfBuilder_ != null) { - return vrfBuilder_.getMessageOrBuilder(); - } else { - return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; - } - } - /** - * - * - *
-     * The vrf for the Network.
-     * 
- * - * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, - com.google.cloud.baremetalsolution.v2.VRF.Builder, - com.google.cloud.baremetalsolution.v2.VRFOrBuilder> - getVrfFieldBuilder() { - if (vrfBuilder_ == null) { - vrfBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, - com.google.cloud.baremetalsolution.v2.VRF.Builder, - com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( - getVrf(), getParentForChildren(), isClean()); - vrf_ = null; - } - return vrfBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Network) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Network) - private static final com.google.cloud.baremetalsolution.v2.Network DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Network(); - } - - public static com.google.cloud.baremetalsolution.v2.Network getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Network parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Network(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java deleted file mode 100644 index 3cdaf1b..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java deleted file mode 100644 index 6123d2c..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/RestoreVolumeSnapshotRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/RestoreVolumeSnapshotRequest.java deleted file mode 100644 index 063b6f8..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/RestoreVolumeSnapshotRequest.java +++ /dev/null @@ -1,664 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Message for restoring a volume snapshot.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest} - */ -public final class RestoreVolumeSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest) - RestoreVolumeSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RestoreVolumeSnapshotRequest.newBuilder() to construct. - private RestoreVolumeSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RestoreVolumeSnapshotRequest() { - volumeSnapshot_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RestoreVolumeSnapshotRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RestoreVolumeSnapshotRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - volumeSnapshot_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } 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); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_RestoreVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_RestoreVolumeSnapshotRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest.class, - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest.Builder.class); - } - - public static final int VOLUME_SNAPSHOT_FIELD_NUMBER = 1; - private volatile java.lang.Object volumeSnapshot_; - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The volumeSnapshot. - */ - @java.lang.Override - public java.lang.String getVolumeSnapshot() { - java.lang.Object ref = volumeSnapshot_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - volumeSnapshot_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for volumeSnapshot. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVolumeSnapshotBytes() { - java.lang.Object ref = volumeSnapshot_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - volumeSnapshot_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeSnapshot_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volumeSnapshot_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeSnapshot_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volumeSnapshot_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest other = - (com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest) obj; - - if (!getVolumeSnapshot().equals(other.getVolumeSnapshot())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VOLUME_SNAPSHOT_FIELD_NUMBER; - hash = (53 * hash) + getVolumeSnapshot().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for restoring a volume snapshot.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest) - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_RestoreVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_RestoreVolumeSnapshotRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest.class, - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest.Builder.class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - volumeSnapshot_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_RestoreVolumeSnapshotRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest build() { - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest result = - new com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest(this); - result.volumeSnapshot_ = volumeSnapshot_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest - .getDefaultInstance()) return this; - if (!other.getVolumeSnapshot().isEmpty()) { - volumeSnapshot_ = other.volumeSnapshot_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object volumeSnapshot_ = ""; - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The volumeSnapshot. - */ - public java.lang.String getVolumeSnapshot() { - java.lang.Object ref = volumeSnapshot_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - volumeSnapshot_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for volumeSnapshot. - */ - public com.google.protobuf.ByteString getVolumeSnapshotBytes() { - java.lang.Object ref = volumeSnapshot_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - volumeSnapshot_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The volumeSnapshot to set. - * @return This builder for chaining. - */ - public Builder setVolumeSnapshot(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - volumeSnapshot_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearVolumeSnapshot() { - - volumeSnapshot_ = getDefaultInstance().getVolumeSnapshot(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the resource.
-     * 
- * - * - * string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for volumeSnapshot to set. - * @return This builder for chaining. - */ - public Builder setVolumeSnapshotBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - volumeSnapshot_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest) - private static final com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest(); - } - - public static com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreVolumeSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestoreVolumeSnapshotRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/RestoreVolumeSnapshotRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/RestoreVolumeSnapshotRequestOrBuilder.java deleted file mode 100644 index b56f004..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/RestoreVolumeSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface RestoreVolumeSnapshotRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The volumeSnapshot. - */ - java.lang.String getVolumeSnapshot(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for volumeSnapshot. - */ - com.google.protobuf.ByteString getVolumeSnapshotBytes(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicy.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicy.java deleted file mode 100644 index e995464..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicy.java +++ /dev/null @@ -1,2404 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * A snapshot schedule policy.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy} - */ -public final class SnapshotSchedulePolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy) - SnapshotSchedulePolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use SnapshotSchedulePolicy.newBuilder() to construct. - private SnapshotSchedulePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SnapshotSchedulePolicy() { - name_ = ""; - description_ = ""; - schedules_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SnapshotSchedulePolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SnapshotSchedulePolicy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - schedules_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule>(); - mutable_bitField0_ |= 0x00000001; - } - schedules_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - .parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } 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); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - schedules_ = java.util.Collections.unmodifiableList(schedules_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.class, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder.class); - } - - public interface ScheduleOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * A crontab-like specification that the schedule uses to take
-     * snapshots.
-     * 
- * - * string crontab_spec = 1; - * - * @return The crontabSpec. - */ - java.lang.String getCrontabSpec(); - /** - * - * - *
-     * A crontab-like specification that the schedule uses to take
-     * snapshots.
-     * 
- * - * string crontab_spec = 1; - * - * @return The bytes for crontabSpec. - */ - com.google.protobuf.ByteString getCrontabSpecBytes(); - - /** - * - * - *
-     * The maximum number of snapshots to retain in this schedule.
-     * 
- * - * int32 retention_count = 2; - * - * @return The retentionCount. - */ - int getRetentionCount(); - - /** - * - * - *
-     * A list of snapshot names created in this schedule.
-     * 
- * - * string prefix = 3; - * - * @return The prefix. - */ - java.lang.String getPrefix(); - /** - * - * - *
-     * A list of snapshot names created in this schedule.
-     * 
- * - * string prefix = 3; - * - * @return The bytes for prefix. - */ - com.google.protobuf.ByteString getPrefixBytes(); - } - /** - * - * - *
-   * A snapshot schedule.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule} - */ - public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule) - ScheduleOrBuilder { - private static final long serialVersionUID = 0L; - // Use Schedule.newBuilder() to construct. - private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Schedule() { - crontabSpec_ = ""; - prefix_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Schedule(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Schedule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - crontabSpec_ = s; - break; - } - case 16: - { - retentionCount_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - prefix_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } 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); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.class, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder.class); - } - - public static final int CRONTAB_SPEC_FIELD_NUMBER = 1; - private volatile java.lang.Object crontabSpec_; - /** - * - * - *
-     * A crontab-like specification that the schedule uses to take
-     * snapshots.
-     * 
- * - * string crontab_spec = 1; - * - * @return The crontabSpec. - */ - @java.lang.Override - public java.lang.String getCrontabSpec() { - java.lang.Object ref = crontabSpec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crontabSpec_ = s; - return s; - } - } - /** - * - * - *
-     * A crontab-like specification that the schedule uses to take
-     * snapshots.
-     * 
- * - * string crontab_spec = 1; - * - * @return The bytes for crontabSpec. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCrontabSpecBytes() { - java.lang.Object ref = crontabSpec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crontabSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RETENTION_COUNT_FIELD_NUMBER = 2; - private int retentionCount_; - /** - * - * - *
-     * The maximum number of snapshots to retain in this schedule.
-     * 
- * - * int32 retention_count = 2; - * - * @return The retentionCount. - */ - @java.lang.Override - public int getRetentionCount() { - return retentionCount_; - } - - public static final int PREFIX_FIELD_NUMBER = 3; - private volatile java.lang.Object prefix_; - /** - * - * - *
-     * A list of snapshot names created in this schedule.
-     * 
- * - * string prefix = 3; - * - * @return The prefix. - */ - @java.lang.Override - public java.lang.String getPrefix() { - java.lang.Object ref = prefix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - prefix_ = s; - return s; - } - } - /** - * - * - *
-     * A list of snapshot names created in this schedule.
-     * 
- * - * string prefix = 3; - * - * @return The bytes for prefix. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPrefixBytes() { - java.lang.Object ref = prefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - prefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crontabSpec_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, crontabSpec_); - } - if (retentionCount_ != 0) { - output.writeInt32(2, retentionCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prefix_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, prefix_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crontabSpec_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, crontabSpec_); - } - if (retentionCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, retentionCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prefix_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, prefix_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule other = - (com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule) obj; - - if (!getCrontabSpec().equals(other.getCrontabSpec())) return false; - if (getRetentionCount() != other.getRetentionCount()) return false; - if (!getPrefix().equals(other.getPrefix())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CRONTAB_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getCrontabSpec().hashCode(); - hash = (37 * hash) + RETENTION_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getRetentionCount(); - hash = (37 * hash) + PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getPrefix().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * A snapshot schedule.
-     * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule) - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.class, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder - .class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - crontabSpec_ = ""; - - retentionCount_ = 0; - - prefix_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_Schedule_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule build() { - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule buildPartial() { - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule result = - new com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule(this); - result.crontabSpec_ = crontabSpec_; - result.retentionCount_ = retentionCount_; - result.prefix_ = prefix_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule other) { - if (other - == com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - .getDefaultInstance()) return this; - if (!other.getCrontabSpec().isEmpty()) { - crontabSpec_ = other.crontabSpec_; - onChanged(); - } - if (other.getRetentionCount() != 0) { - setRetentionCount(other.getRetentionCount()); - } - if (!other.getPrefix().isEmpty()) { - prefix_ = other.prefix_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object crontabSpec_ = ""; - /** - * - * - *
-       * A crontab-like specification that the schedule uses to take
-       * snapshots.
-       * 
- * - * string crontab_spec = 1; - * - * @return The crontabSpec. - */ - public java.lang.String getCrontabSpec() { - java.lang.Object ref = crontabSpec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crontabSpec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * A crontab-like specification that the schedule uses to take
-       * snapshots.
-       * 
- * - * string crontab_spec = 1; - * - * @return The bytes for crontabSpec. - */ - public com.google.protobuf.ByteString getCrontabSpecBytes() { - java.lang.Object ref = crontabSpec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crontabSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * A crontab-like specification that the schedule uses to take
-       * snapshots.
-       * 
- * - * string crontab_spec = 1; - * - * @param value The crontabSpec to set. - * @return This builder for chaining. - */ - public Builder setCrontabSpec(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crontabSpec_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * A crontab-like specification that the schedule uses to take
-       * snapshots.
-       * 
- * - * string crontab_spec = 1; - * - * @return This builder for chaining. - */ - public Builder clearCrontabSpec() { - - crontabSpec_ = getDefaultInstance().getCrontabSpec(); - onChanged(); - return this; - } - /** - * - * - *
-       * A crontab-like specification that the schedule uses to take
-       * snapshots.
-       * 
- * - * string crontab_spec = 1; - * - * @param value The bytes for crontabSpec to set. - * @return This builder for chaining. - */ - public Builder setCrontabSpecBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crontabSpec_ = value; - onChanged(); - return this; - } - - private int retentionCount_; - /** - * - * - *
-       * The maximum number of snapshots to retain in this schedule.
-       * 
- * - * int32 retention_count = 2; - * - * @return The retentionCount. - */ - @java.lang.Override - public int getRetentionCount() { - return retentionCount_; - } - /** - * - * - *
-       * The maximum number of snapshots to retain in this schedule.
-       * 
- * - * int32 retention_count = 2; - * - * @param value The retentionCount to set. - * @return This builder for chaining. - */ - public Builder setRetentionCount(int value) { - - retentionCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The maximum number of snapshots to retain in this schedule.
-       * 
- * - * int32 retention_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearRetentionCount() { - - retentionCount_ = 0; - onChanged(); - return this; - } - - private java.lang.Object prefix_ = ""; - /** - * - * - *
-       * A list of snapshot names created in this schedule.
-       * 
- * - * string prefix = 3; - * - * @return The prefix. - */ - public java.lang.String getPrefix() { - java.lang.Object ref = prefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - prefix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * A list of snapshot names created in this schedule.
-       * 
- * - * string prefix = 3; - * - * @return The bytes for prefix. - */ - public com.google.protobuf.ByteString getPrefixBytes() { - java.lang.Object ref = prefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - prefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * A list of snapshot names created in this schedule.
-       * 
- * - * string prefix = 3; - * - * @param value The prefix to set. - * @return This builder for chaining. - */ - public Builder setPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - prefix_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * A list of snapshot names created in this schedule.
-       * 
- * - * string prefix = 3; - * - * @return This builder for chaining. - */ - public Builder clearPrefix() { - - prefix_ = getDefaultInstance().getPrefix(); - onChanged(); - return this; - } - /** - * - * - *
-       * A list of snapshot names created in this schedule.
-       * 
- * - * string prefix = 3; - * - * @param value The bytes for prefix to set. - * @return This builder for chaining. - */ - public Builder setPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - prefix_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule) - private static final com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule(); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. The name of the snapshot schedule policy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the snapshot schedule policy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * - * - *
-   * The description of the snapshot schedule policy.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * The description of the snapshot schedule policy.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEDULES_FIELD_NUMBER = 3; - private java.util.List - schedules_; - /** - * - * - *
-   * The snapshot schedules contained in this policy. You can specify a maximum
-   *  of 5 schedules.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - @java.lang.Override - public java.util.List - getSchedulesList() { - return schedules_; - } - /** - * - * - *
-   * The snapshot schedules contained in this policy. You can specify a maximum
-   *  of 5 schedules.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder> - getSchedulesOrBuilderList() { - return schedules_; - } - /** - * - * - *
-   * The snapshot schedules contained in this policy. You can specify a maximum
-   *  of 5 schedules.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - @java.lang.Override - public int getSchedulesCount() { - return schedules_.size(); - } - /** - * - * - *
-   * The snapshot schedules contained in this policy. You can specify a maximum
-   *  of 5 schedules.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule getSchedules( - int index) { - return schedules_.get(index); - } - /** - * - * - *
-   * The snapshot schedules contained in this policy. You can specify a maximum
-   *  of 5 schedules.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder - getSchedulesOrBuilder(int index) { - return schedules_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - for (int i = 0; i < schedules_.size(); i++) { - output.writeMessage(3, schedules_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - for (int i = 0; i < schedules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, schedules_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy other = - (com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getSchedulesList().equals(other.getSchedulesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getSchedulesCount() > 0) { - hash = (37 * hash) + SCHEDULES_FIELD_NUMBER; - hash = (53 * hash) + getSchedulesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A snapshot schedule policy.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy) - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.class, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder.class); - } - - // Construct using com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSchedulesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - description_ = ""; - - if (schedulesBuilder_ == null) { - schedules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - schedulesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_SnapshotSchedulePolicy_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy build() { - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy buildPartial() { - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy result = - new com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.description_ = description_; - if (schedulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - schedules_ = java.util.Collections.unmodifiableList(schedules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.schedules_ = schedules_; - } else { - result.schedules_ = schedulesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy other) { - if (other - == com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (schedulesBuilder_ == null) { - if (!other.schedules_.isEmpty()) { - if (schedules_.isEmpty()) { - schedules_ = other.schedules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSchedulesIsMutable(); - schedules_.addAll(other.schedules_); - } - onChanged(); - } - } else { - if (!other.schedules_.isEmpty()) { - if (schedulesBuilder_.isEmpty()) { - schedulesBuilder_.dispose(); - schedulesBuilder_ = null; - schedules_ = other.schedules_; - bitField0_ = (bitField0_ & ~0x00000001); - schedulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSchedulesFieldBuilder() - : null; - } else { - schedulesBuilder_.addAllMessages(other.schedules_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The name of the snapshot schedule policy.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The name of the snapshot schedule policy.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The name of the snapshot schedule policy.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the snapshot schedule policy.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the snapshot schedule policy.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * The description of the snapshot schedule policy.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The description of the snapshot schedule policy.
-     * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The description of the snapshot schedule policy.
-     * 
- * - * string description = 2; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the snapshot schedule policy.
-     * 
- * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the snapshot schedule policy.
-     * 
- * - * string description = 2; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.util.List - schedules_ = java.util.Collections.emptyList(); - - private void ensureSchedulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - schedules_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule>(schedules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder> - schedulesBuilder_; - - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public java.util.List - getSchedulesList() { - if (schedulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(schedules_); - } else { - return schedulesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public int getSchedulesCount() { - if (schedulesBuilder_ == null) { - return schedules_.size(); - } else { - return schedulesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule getSchedules( - int index) { - if (schedulesBuilder_ == null) { - return schedules_.get(index); - } else { - return schedulesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public Builder setSchedules( - int index, com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule value) { - if (schedulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSchedulesIsMutable(); - schedules_.set(index, value); - onChanged(); - } else { - schedulesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public Builder setSchedules( - int index, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder - builderForValue) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.set(index, builderForValue.build()); - onChanged(); - } else { - schedulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public Builder addSchedules( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule value) { - if (schedulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSchedulesIsMutable(); - schedules_.add(value); - onChanged(); - } else { - schedulesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public Builder addSchedules( - int index, com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule value) { - if (schedulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSchedulesIsMutable(); - schedules_.add(index, value); - onChanged(); - } else { - schedulesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public Builder addSchedules( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder - builderForValue) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.add(builderForValue.build()); - onChanged(); - } else { - schedulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public Builder addSchedules( - int index, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder - builderForValue) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.add(index, builderForValue.build()); - onChanged(); - } else { - schedulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public Builder addAllSchedules( - java.lang.Iterable< - ? extends com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule> - values) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schedules_); - onChanged(); - } else { - schedulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public Builder clearSchedules() { - if (schedulesBuilder_ == null) { - schedules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - schedulesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public Builder removeSchedules(int index) { - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.remove(index); - onChanged(); - } else { - schedulesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder - getSchedulesBuilder(int index) { - return getSchedulesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder - getSchedulesOrBuilder(int index) { - if (schedulesBuilder_ == null) { - return schedules_.get(index); - } else { - return schedulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder> - getSchedulesOrBuilderList() { - if (schedulesBuilder_ != null) { - return schedulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(schedules_); - } - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder - addSchedulesBuilder() { - return getSchedulesFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - .getDefaultInstance()); - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder - addSchedulesBuilder(int index) { - return getSchedulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule - .getDefaultInstance()); - } - /** - * - * - *
-     * The snapshot schedules contained in this policy. You can specify a maximum
-     *  of 5 schedules.
-     * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - public java.util.List< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder> - getSchedulesBuilderList() { - return getSchedulesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder> - getSchedulesFieldBuilder() { - if (schedulesBuilder_ == null) { - schedulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder>( - schedules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - schedules_ = null; - } - return schedulesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy) - private static final com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy(); - } - - public static com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotSchedulePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotSchedulePolicy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicyOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicyOrBuilder.java deleted file mode 100644 index 39337b6..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SnapshotSchedulePolicyOrBuilder.java +++ /dev/null @@ -1,145 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface SnapshotSchedulePolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The name of the snapshot schedule policy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The name of the snapshot schedule policy.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The description of the snapshot schedule policy.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * The description of the snapshot schedule policy.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * The snapshot schedules contained in this policy. You can specify a maximum
-   *  of 5 schedules.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - java.util.List - getSchedulesList(); - /** - * - * - *
-   * The snapshot schedules contained in this policy. You can specify a maximum
-   *  of 5 schedules.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule getSchedules(int index); - /** - * - * - *
-   * The snapshot schedules contained in this policy. You can specify a maximum
-   *  of 5 schedules.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - int getSchedulesCount(); - /** - * - * - *
-   * The snapshot schedules contained in this policy. You can specify a maximum
-   *  of 5 schedules.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder> - getSchedulesOrBuilderList(); - /** - * - * - *
-   * The snapshot schedules contained in this policy. You can specify a maximum
-   *  of 5 schedules.
-   * 
- * - * - * repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * - */ - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.ScheduleOrBuilder - getSchedulesOrBuilder(int index); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateSnapshotSchedulePolicyRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateSnapshotSchedulePolicyRequest.java deleted file mode 100644 index 9a559a1..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateSnapshotSchedulePolicyRequest.java +++ /dev/null @@ -1,1112 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Message for updating a snapshot schedule policy in a project.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest} - */ -public final class UpdateSnapshotSchedulePolicyRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest) - UpdateSnapshotSchedulePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateSnapshotSchedulePolicyRequest.newBuilder() to construct. - private UpdateSnapshotSchedulePolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateSnapshotSchedulePolicyRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateSnapshotSchedulePolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateSnapshotSchedulePolicyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder subBuilder = - null; - if (snapshotSchedulePolicy_ != null) { - subBuilder = snapshotSchedulePolicy_.toBuilder(); - } - snapshotSchedulePolicy_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshotSchedulePolicy_); - snapshotSchedulePolicy_ = 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } 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); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateSnapshotSchedulePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest.Builder - .class); - } - - public static final int SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER = 1; - private com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshotSchedulePolicy_; - /** - * - * - *
-   * Required. The snapshot schedule policy to update.
-   * The `name` field is used to identify the snapshot schedule policy to
-   * update. Format:
-   * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the snapshotSchedulePolicy field is set. - */ - @java.lang.Override - public boolean hasSnapshotSchedulePolicy() { - return snapshotSchedulePolicy_ != null; - } - /** - * - * - *
-   * Required. The snapshot schedule policy to update.
-   * The `name` field is used to identify the snapshot schedule policy to
-   * update. Format:
-   * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The snapshotSchedulePolicy. - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy getSnapshotSchedulePolicy() { - return snapshotSchedulePolicy_ == null - ? com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.getDefaultInstance() - : snapshotSchedulePolicy_; - } - /** - * - * - *
-   * Required. The snapshot schedule policy to update.
-   * The `name` field is used to identify the snapshot schedule policy to
-   * update. Format:
-   * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder - getSnapshotSchedulePolicyOrBuilder() { - return getSnapshotSchedulePolicy(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (snapshotSchedulePolicy_ != null) { - output.writeMessage(1, getSnapshotSchedulePolicy()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (snapshotSchedulePolicy_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshotSchedulePolicy()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest other = - (com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest) obj; - - if (hasSnapshotSchedulePolicy() != other.hasSnapshotSchedulePolicy()) return false; - if (hasSnapshotSchedulePolicy()) { - if (!getSnapshotSchedulePolicy().equals(other.getSnapshotSchedulePolicy())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSnapshotSchedulePolicy()) { - hash = (37 * hash) + SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getSnapshotSchedulePolicy().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Message for updating a snapshot schedule policy in a project.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest) - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateSnapshotSchedulePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (snapshotSchedulePolicyBuilder_ == null) { - snapshotSchedulePolicy_ = null; - } else { - snapshotSchedulePolicy_ = null; - snapshotSchedulePolicyBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateSnapshotSchedulePolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest build() { - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest - buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest result = - new com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest(this); - if (snapshotSchedulePolicyBuilder_ == null) { - result.snapshotSchedulePolicy_ = snapshotSchedulePolicy_; - } else { - result.snapshotSchedulePolicy_ = snapshotSchedulePolicyBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest - .getDefaultInstance()) return this; - if (other.hasSnapshotSchedulePolicy()) { - mergeSnapshotSchedulePolicy(other.getSnapshotSchedulePolicy()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshotSchedulePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder> - snapshotSchedulePolicyBuilder_; - /** - * - * - *
-     * Required. The snapshot schedule policy to update.
-     * The `name` field is used to identify the snapshot schedule policy to
-     * update. Format:
-     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the snapshotSchedulePolicy field is set. - */ - public boolean hasSnapshotSchedulePolicy() { - return snapshotSchedulePolicyBuilder_ != null || snapshotSchedulePolicy_ != null; - } - /** - * - * - *
-     * Required. The snapshot schedule policy to update.
-     * The `name` field is used to identify the snapshot schedule policy to
-     * update. Format:
-     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The snapshotSchedulePolicy. - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy - getSnapshotSchedulePolicy() { - if (snapshotSchedulePolicyBuilder_ == null) { - return snapshotSchedulePolicy_ == null - ? com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.getDefaultInstance() - : snapshotSchedulePolicy_; - } else { - return snapshotSchedulePolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The snapshot schedule policy to update.
-     * The `name` field is used to identify the snapshot schedule policy to
-     * update. Format:
-     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy value) { - if (snapshotSchedulePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - snapshotSchedulePolicy_ = value; - onChanged(); - } else { - snapshotSchedulePolicyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The snapshot schedule policy to update.
-     * The `name` field is used to identify the snapshot schedule policy to
-     * update. Format:
-     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder builderForValue) { - if (snapshotSchedulePolicyBuilder_ == null) { - snapshotSchedulePolicy_ = builderForValue.build(); - onChanged(); - } else { - snapshotSchedulePolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The snapshot schedule policy to update.
-     * The `name` field is used to identify the snapshot schedule policy to
-     * update. Format:
-     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeSnapshotSchedulePolicy( - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy value) { - if (snapshotSchedulePolicyBuilder_ == null) { - if (snapshotSchedulePolicy_ != null) { - snapshotSchedulePolicy_ = - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.newBuilder( - snapshotSchedulePolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - snapshotSchedulePolicy_ = value; - } - onChanged(); - } else { - snapshotSchedulePolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The snapshot schedule policy to update.
-     * The `name` field is used to identify the snapshot schedule policy to
-     * update. Format:
-     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearSnapshotSchedulePolicy() { - if (snapshotSchedulePolicyBuilder_ == null) { - snapshotSchedulePolicy_ = null; - onChanged(); - } else { - snapshotSchedulePolicy_ = null; - snapshotSchedulePolicyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The snapshot schedule policy to update.
-     * The `name` field is used to identify the snapshot schedule policy to
-     * update. Format:
-     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder - getSnapshotSchedulePolicyBuilder() { - - onChanged(); - return getSnapshotSchedulePolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The snapshot schedule policy to update.
-     * The `name` field is used to identify the snapshot schedule policy to
-     * update. Format:
-     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder - getSnapshotSchedulePolicyOrBuilder() { - if (snapshotSchedulePolicyBuilder_ != null) { - return snapshotSchedulePolicyBuilder_.getMessageOrBuilder(); - } else { - return snapshotSchedulePolicy_ == null - ? com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.getDefaultInstance() - : snapshotSchedulePolicy_; - } - } - /** - * - * - *
-     * Required. The snapshot schedule policy to update.
-     * The `name` field is used to identify the snapshot schedule policy to
-     * update. Format:
-     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-     * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder> - getSnapshotSchedulePolicyFieldBuilder() { - if (snapshotSchedulePolicyBuilder_ == null) { - snapshotSchedulePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Builder, - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder>( - getSnapshotSchedulePolicy(), getParentForChildren(), isClean()); - snapshotSchedulePolicy_ = null; - } - return snapshotSchedulePolicyBuilder_; - } - - 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_; - /** - * - * - *
-     * Required. The list of fields to update.
-     * 
- * - * .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. The list of fields to update.
-     * 
- * - * .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_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to update.
-     * 
- * - * .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(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to update.
-     * 
- * - * .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_; - } - } - /** - * - * - *
-     * Required. The list of fields to update.
-     * 
- * - * .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> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest) - private static final com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest(); - } - - public static com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSnapshotSchedulePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSnapshotSchedulePolicyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateSnapshotSchedulePolicyRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateSnapshotSchedulePolicyRequestOrBuilder.java deleted file mode 100644 index a7e15a5..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateSnapshotSchedulePolicyRequestOrBuilder.java +++ /dev/null @@ -1,114 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface UpdateSnapshotSchedulePolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The snapshot schedule policy to update.
-   * The `name` field is used to identify the snapshot schedule policy to
-   * update. Format:
-   * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the snapshotSchedulePolicy field is set. - */ - boolean hasSnapshotSchedulePolicy(); - /** - * - * - *
-   * Required. The snapshot schedule policy to update.
-   * The `name` field is used to identify the snapshot schedule policy to
-   * update. Format:
-   * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The snapshotSchedulePolicy. - */ - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy getSnapshotSchedulePolicy(); - /** - * - * - *
-   * Required. The snapshot schedule policy to update.
-   * The `name` field is used to identify the snapshot schedule policy to
-   * update. Format:
-   * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
-   * 
- * - * - * .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicyOrBuilder - getSnapshotSchedulePolicyOrBuilder(); - - /** - * - * - *
-   * Required. The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshot.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshot.java deleted file mode 100644 index 6fc0624..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshot.java +++ /dev/null @@ -1,1370 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -/** - * - * - *
- * Snapshot registered for a given storage volume.
- * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.VolumeSnapshot} - */ -public final class VolumeSnapshot extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VolumeSnapshot) - VolumeSnapshotOrBuilder { - private static final long serialVersionUID = 0L; - // Use VolumeSnapshot.newBuilder() to construct. - private VolumeSnapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private VolumeSnapshot() { - name_ = ""; - description_ = ""; - storageVolume_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new VolumeSnapshot(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private VolumeSnapshot( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 24: - { - sizeBytes_ = input.readInt64(); - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - storageVolume_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } 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); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VolumeSnapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VolumeSnapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.class, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. The name of the storage volume snapshot.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the storage volume snapshot.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * - * - *
-   * The description of the storage volume snapshot.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * The description of the storage volume snapshot.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIZE_BYTES_FIELD_NUMBER = 3; - private long sizeBytes_; - /** - * - * - *
-   * The size of the storage volume snapshot, in bytes.
-   * 
- * - * int64 size_bytes = 3; - * - * @return The sizeBytes. - */ - @java.lang.Override - public long getSizeBytes() { - return sizeBytes_; - } - - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Optional. The creation time of the storage volume snapshot.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Optional. The creation time of the storage volume snapshot.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Optional. The creation time of the storage volume snapshot.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int STORAGE_VOLUME_FIELD_NUMBER = 5; - private volatile java.lang.Object storageVolume_; - /** - * - * - *
-   * The storage volume this snapshot belongs to.
-   * 
- * - * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * - * @return The storageVolume. - */ - @java.lang.Override - public java.lang.String getStorageVolume() { - java.lang.Object ref = storageVolume_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storageVolume_ = s; - return s; - } - } - /** - * - * - *
-   * The storage volume this snapshot belongs to.
-   * 
- * - * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for storageVolume. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStorageVolumeBytes() { - java.lang.Object ref = storageVolume_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - storageVolume_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (sizeBytes_ != 0L) { - output.writeInt64(3, sizeBytes_); - } - if (createTime_ != null) { - output.writeMessage(4, getCreateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, storageVolume_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (sizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeBytes_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageVolume_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.baremetalsolution.v2.VolumeSnapshot)) { - return super.equals(obj); - } - com.google.cloud.baremetalsolution.v2.VolumeSnapshot other = - (com.google.cloud.baremetalsolution.v2.VolumeSnapshot) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getSizeBytes() != other.getSizeBytes()) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (!getStorageVolume().equals(other.getStorageVolume())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - hash = (37 * hash) + STORAGE_VOLUME_FIELD_NUMBER; - hash = (53 * hash) + getStorageVolume().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VolumeSnapshot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Snapshot registered for a given storage volume.
-   * 
- * - * Protobuf type {@code google.cloud.baremetalsolution.v2.VolumeSnapshot} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VolumeSnapshot) - com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VolumeSnapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VolumeSnapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.class, - com.google.cloud.baremetalsolution.v2.VolumeSnapshot.Builder.class); - } - - // Construct using com.google.cloud.baremetalsolution.v2.VolumeSnapshot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - description_ = ""; - - sizeBytes_ = 0L; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - storageVolume_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BaremetalsolutionProto - .internal_static_google_cloud_baremetalsolution_v2_VolumeSnapshot_descriptor; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.VolumeSnapshot.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot build() { - com.google.cloud.baremetalsolution.v2.VolumeSnapshot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot buildPartial() { - com.google.cloud.baremetalsolution.v2.VolumeSnapshot result = - new com.google.cloud.baremetalsolution.v2.VolumeSnapshot(this); - result.name_ = name_; - result.description_ = description_; - result.sizeBytes_ = sizeBytes_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - result.storageVolume_ = storageVolume_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.VolumeSnapshot) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VolumeSnapshot) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VolumeSnapshot other) { - if (other == com.google.cloud.baremetalsolution.v2.VolumeSnapshot.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.getSizeBytes() != 0L) { - setSizeBytes(other.getSizeBytes()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (!other.getStorageVolume().isEmpty()) { - storageVolume_ = other.storageVolume_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.VolumeSnapshot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.VolumeSnapshot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The name of the storage volume snapshot.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The name of the storage volume snapshot.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The name of the storage volume snapshot.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the storage volume snapshot.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the storage volume snapshot.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * The description of the storage volume snapshot.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The description of the storage volume snapshot.
-     * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The description of the storage volume snapshot.
-     * 
- * - * string description = 2; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the storage volume snapshot.
-     * 
- * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the storage volume snapshot.
-     * 
- * - * string description = 2; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private long sizeBytes_; - /** - * - * - *
-     * The size of the storage volume snapshot, in bytes.
-     * 
- * - * int64 size_bytes = 3; - * - * @return The sizeBytes. - */ - @java.lang.Override - public long getSizeBytes() { - return sizeBytes_; - } - /** - * - * - *
-     * The size of the storage volume snapshot, in bytes.
-     * 
- * - * int64 size_bytes = 3; - * - * @param value The sizeBytes to set. - * @return This builder for chaining. - */ - public Builder setSizeBytes(long value) { - - sizeBytes_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The size of the storage volume snapshot, in bytes.
-     * 
- * - * int64 size_bytes = 3; - * - * @return This builder for chaining. - */ - public Builder clearSizeBytes() { - - sizeBytes_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Optional. The creation time of the storage volume snapshot.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Optional. The creation time of the storage volume snapshot.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The creation time of the storage volume snapshot.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The creation time of the storage volume snapshot.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The creation time of the storage volume snapshot.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The creation time of the storage volume snapshot.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The creation time of the storage volume snapshot.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The creation time of the storage volume snapshot.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Optional. The creation time of the storage volume snapshot.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private java.lang.Object storageVolume_ = ""; - /** - * - * - *
-     * The storage volume this snapshot belongs to.
-     * 
- * - * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * - * @return The storageVolume. - */ - public java.lang.String getStorageVolume() { - java.lang.Object ref = storageVolume_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storageVolume_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The storage volume this snapshot belongs to.
-     * 
- * - * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for storageVolume. - */ - public com.google.protobuf.ByteString getStorageVolumeBytes() { - java.lang.Object ref = storageVolume_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - storageVolume_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The storage volume this snapshot belongs to.
-     * 
- * - * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * - * @param value The storageVolume to set. - * @return This builder for chaining. - */ - public Builder setStorageVolume(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - storageVolume_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The storage volume this snapshot belongs to.
-     * 
- * - * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. - */ - public Builder clearStorageVolume() { - - storageVolume_ = getDefaultInstance().getStorageVolume(); - onChanged(); - return this; - } - /** - * - * - *
-     * The storage volume this snapshot belongs to.
-     * 
- * - * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * - * @param value The bytes for storageVolume to set. - * @return This builder for chaining. - */ - public Builder setStorageVolumeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - storageVolume_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VolumeSnapshot) - } - - // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VolumeSnapshot) - private static final com.google.cloud.baremetalsolution.v2.VolumeSnapshot DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VolumeSnapshot(); - } - - public static com.google.cloud.baremetalsolution.v2.VolumeSnapshot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VolumeSnapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VolumeSnapshot(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeSnapshot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotName.java deleted file mode 100644 index b387972..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotName.java +++ /dev/null @@ -1,258 +0,0 @@ -/* - * 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.baremetalsolution.v2; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class VolumeSnapshotName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_VOLUME_SNAPSHOT = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String volume; - private final String snapshot; - - @Deprecated - protected VolumeSnapshotName() { - project = null; - location = null; - volume = null; - snapshot = null; - } - - private VolumeSnapshotName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - volume = Preconditions.checkNotNull(builder.getVolume()); - snapshot = Preconditions.checkNotNull(builder.getSnapshot()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getVolume() { - return volume; - } - - public String getSnapshot() { - return snapshot; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static VolumeSnapshotName of( - String project, String location, String volume, String snapshot) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setVolume(volume) - .setSnapshot(snapshot) - .build(); - } - - public static String format(String project, String location, String volume, String snapshot) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setVolume(volume) - .setSnapshot(snapshot) - .build() - .toString(); - } - - public static VolumeSnapshotName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_VOLUME_SNAPSHOT.validatedMatch( - formattedString, "VolumeSnapshotName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("volume"), - matchMap.get("snapshot")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (VolumeSnapshotName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_VOLUME_SNAPSHOT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (volume != null) { - fieldMapBuilder.put("volume", volume); - } - if (snapshot != null) { - fieldMapBuilder.put("snapshot", snapshot); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_VOLUME_SNAPSHOT.instantiate( - "project", project, "location", location, "volume", volume, "snapshot", snapshot); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - VolumeSnapshotName that = ((VolumeSnapshotName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.volume, that.volume) - && Objects.equals(this.snapshot, that.snapshot); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(volume); - h *= 1000003; - h ^= Objects.hashCode(snapshot); - return h; - } - - /** Builder for projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}. */ - public static class Builder { - private String project; - private String location; - private String volume; - private String snapshot; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getVolume() { - return volume; - } - - public String getSnapshot() { - return snapshot; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setVolume(String volume) { - this.volume = volume; - return this; - } - - public Builder setSnapshot(String snapshot) { - this.snapshot = snapshot; - return this; - } - - private Builder(VolumeSnapshotName volumeSnapshotName) { - this.project = volumeSnapshotName.project; - this.location = volumeSnapshotName.location; - this.volume = volumeSnapshotName.volume; - this.snapshot = volumeSnapshotName.snapshot; - } - - public VolumeSnapshotName build() { - return new VolumeSnapshotName(this); - } - } -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotOrBuilder.java deleted file mode 100644 index 9d3b8b2..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotOrBuilder.java +++ /dev/null @@ -1,151 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface VolumeSnapshotOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VolumeSnapshot) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The name of the storage volume snapshot.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The name of the storage volume snapshot.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The description of the storage volume snapshot.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * The description of the storage volume snapshot.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * The size of the storage volume snapshot, in bytes.
-   * 
- * - * int64 size_bytes = 3; - * - * @return The sizeBytes. - */ - long getSizeBytes(); - - /** - * - * - *
-   * Optional. The creation time of the storage volume snapshot.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Optional. The creation time of the storage volume snapshot.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Optional. The creation time of the storage volume snapshot.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * The storage volume this snapshot belongs to.
-   * 
- * - * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * - * @return The storageVolume. - */ - java.lang.String getStorageVolume(); - /** - * - * - *
-   * The storage volume this snapshot belongs to.
-   * 
- * - * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for storageVolume. - */ - com.google.protobuf.ByteString getStorageVolumeBytes(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto deleted file mode 100644 index 5516eaa..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto +++ /dev/null @@ -1,1020 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.baremetalsolution.v2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.BaremetalSolution.V2"; -option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution"; -option java_multiple_files = true; -option java_outer_classname = "BaremetalsolutionProto"; -option java_package = "com.google.cloud.baremetalsolution.v2"; -option php_namespace = "Google\\Cloud\\BaremetalSolution\\V2"; -option ruby_package = "Google::Cloud::BaremetalSolution::V2"; - -// Performs management operations on Bare Metal Solution servers. -// -// The `baremetalsolution.googleapis.com` service provides management -// capabilities for Bare Metal Solution servers. To access the API methods, you -// must assign Bare Metal Solution IAM roles containing the desired permissions -// to your staff in your Google Cloud project. You must also enable the Bare -// Metal Solution API. Once enabled, the methods act -// upon specific servers in your Bare Metal Solution environment. -service BareMetalSolution { - option (google.api.default_host) = "baremetalsolution.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // List servers in a given project and location. - rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) { - option (google.api.http) = { - get: "/v2/{parent=projects/*/locations/*}/instances" - }; - option (google.api.method_signature) = "parent"; - } - - // Get details about a single server. - rpc GetInstance(GetInstanceRequest) returns (Instance) { - option (google.api.http) = { - get: "/v2/{name=projects/*/locations/*/instances/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Perform an ungraceful, hard reset on a server. Equivalent to shutting the - // power off and then turning it back on. - rpc ResetInstance(ResetInstanceRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2/{name=projects/*/locations/*/instances/*}:reset" - body: "*" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "ResetInstanceResponse" - metadata_type: "OperationMetadata" - }; - } - - // List storage volumes in a given project and location. - rpc ListVolumes(ListVolumesRequest) returns (ListVolumesResponse) { - option (google.api.http) = { - get: "/v2/{parent=projects/*/locations/*}/volumes" - }; - option (google.api.method_signature) = "parent"; - } - - // Get details of a single storage volume. - rpc GetVolume(GetVolumeRequest) returns (Volume) { - option (google.api.http) = { - get: "/v2/{name=projects/*/locations/*/volumes/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Update details of a single storage volume. - rpc UpdateVolume(UpdateVolumeRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v2/{volume.name=projects/*/locations/*/volumes/*}" - body: "volume" - }; - option (google.api.method_signature) = "volume,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Volume" - metadata_type: "OperationMetadata" - }; - } - - // List network in a given project and location. - rpc ListNetworks(ListNetworksRequest) returns (ListNetworksResponse) { - option (google.api.http) = { - get: "/v2/{parent=projects/*/locations/*}/networks" - }; - option (google.api.method_signature) = "parent"; - } - - // Get details of a single network. - rpc GetNetwork(GetNetworkRequest) returns (Network) { - option (google.api.http) = { - get: "/v2/{name=projects/*/locations/*/networks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // List snapshot schedule policies in a given project and location. - rpc ListSnapshotSchedulePolicies(ListSnapshotSchedulePoliciesRequest) returns (ListSnapshotSchedulePoliciesResponse) { - option (google.api.http) = { - get: "/v2/{parent=projects/*/locations/*}/snapshotSchedulePolicies" - }; - option (google.api.method_signature) = "parent"; - } - - // Get details of a single snapshot schedule policy. - rpc GetSnapshotSchedulePolicy(GetSnapshotSchedulePolicyRequest) returns (SnapshotSchedulePolicy) { - option (google.api.http) = { - get: "/v2/{name=projects/*/locations/*/snapshotSchedulePolicies/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Create a snapshot schedule policy in the specified project. - rpc CreateSnapshotSchedulePolicy(CreateSnapshotSchedulePolicyRequest) returns (SnapshotSchedulePolicy) { - option (google.api.http) = { - post: "/v2/{parent=projects/*/locations/*}/snapshotSchedulePolicies" - body: "snapshot_schedule_policy" - }; - option (google.api.method_signature) = "parent,snapshot_schedule_policy,snapshot_schedule_policy_id"; - } - - // Update a snapshot schedule policy in the specified project. - rpc UpdateSnapshotSchedulePolicy(UpdateSnapshotSchedulePolicyRequest) returns (SnapshotSchedulePolicy) { - option (google.api.http) = { - patch: "/v2/{snapshot_schedule_policy.name=projects/*/locations/*/snapshotSchedulePolicies/*}" - body: "snapshot_schedule_policy" - }; - option (google.api.method_signature) = "snapshot_schedule_policy,update_mask"; - } - - // Delete a named snapshot schedule policy. - rpc DeleteSnapshotSchedulePolicy(DeleteSnapshotSchedulePolicyRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v2/{name=projects/*/locations/*/snapshotSchedulePolicies/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Create a storage volume snapshot in a containing volume. - rpc CreateVolumeSnapshot(CreateVolumeSnapshotRequest) returns (VolumeSnapshot) { - option (google.api.http) = { - post: "/v2/{parent=projects/*/locations/*/volumes/*}/snapshots" - body: "volume_snapshot" - }; - option (google.api.method_signature) = "parent,volume_snapshot"; - } - - // Restore a storage volume snapshot to its containing volume. - rpc RestoreVolumeSnapshot(RestoreVolumeSnapshotRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2/{volume_snapshot=projects/*/locations/*/volumes/*/snapshots/*}:restoreVolumeSnapshot" - body: "*" - }; - option (google.api.method_signature) = "volume_snapshot"; - option (google.longrunning.operation_info) = { - response_type: "VolumeSnapshot" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a storage volume snapshot for a given volume. - rpc DeleteVolumeSnapshot(DeleteVolumeSnapshotRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v2/{name=projects/*/locations/*/volumes/*/snapshots/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Get details of a single storage volume snapshot. - rpc GetVolumeSnapshot(GetVolumeSnapshotRequest) returns (VolumeSnapshot) { - option (google.api.http) = { - get: "/v2/{name=projects/*/locations/*/volumes/*/snapshots/*}" - }; - option (google.api.method_signature) = "name"; - } - - // List storage volume snapshots for given storage volume. - rpc ListVolumeSnapshots(ListVolumeSnapshotsRequest) returns (ListVolumeSnapshotsResponse) { - option (google.api.http) = { - get: "/v2/{parent=projects/*/locations/*/volumes/*}/snapshots" - }; - option (google.api.method_signature) = "parent"; - } - - // Get details of a single storage logical unit number(LUN). - rpc GetLun(GetLunRequest) returns (Lun) { - option (google.api.http) = { - get: "/v2/{name=projects/*/locations/*/volumes/*/luns/*}" - }; - option (google.api.method_signature) = "name"; - } - - // List storage volume luns for given storage volume. - rpc ListLuns(ListLunsRequest) returns (ListLunsResponse) { - option (google.api.http) = { - get: "/v2/{parent=projects/*/locations/*/volumes/*}/luns" - }; - option (google.api.method_signature) = "parent"; - } -} - -// A storage volume. -message Volume { - option (google.api.resource) = { - type: "baremetalsolution.googleapis.com/Volume" - pattern: "projects/{project}/locations/{location}/volumes/{volume}" - }; - - // Details about snapshot space reservation and usage on the storage volume. - message SnapshotReservationDetail { - // The space on this storage volume reserved for snapshots, shown in GiB. - int64 reserved_space_gib = 1; - - // The percent of snapshot space on this storage volume actually being used - // by the snapshot copies. This value might be higher than 100% if the - // snapshot copies have overflowed into the data portion of the storage - // volume. - int32 reserved_space_used_percent = 2; - - // The amount, in GiB, of available space in this storage volume's reserved - // snapshot space. - int64 reserved_space_remaining_gib = 3; - } - - // The storage type for a volume. - enum StorageType { - // The storage type for this volume is unknown. - STORAGE_TYPE_UNSPECIFIED = 0; - - // The storage type for this volume is SSD. - SSD = 1; - - // This storage type for this volume is HDD. - HDD = 2; - } - - // The possible states for a storage volume. - enum State { - // The storage volume is in an unknown state. - STATE_UNSPECIFIED = 0; - - // The storage volume is being created. - CREATING = 1; - - // The storage volume is ready for use. - READY = 2; - - // The storage volume has been requested to be deleted. - DELETING = 3; - } - - // The kinds of auto delete behavior to use when snapshot reserved space is - // full. - enum SnapshotAutoDeleteBehavior { - // The unspecified behavior. - SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED = 0; - - // Don't delete any snapshots. This disables new snapshot creation, as - // long as the snapshot reserved space is full. - DISABLED = 1; - - // Delete the oldest snapshots first. - OLDEST_FIRST = 2; - - // Delete the newest snapshots first. - NEWEST_FIRST = 3; - } - - // Output only. The resource name of this `Volume`. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // Format: - // `projects/{project}/locations/{location}/volumes/{volume}` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The storage type for this volume. - StorageType storage_type = 2; - - // The state of this storage volume. - State state = 3; - - // The requested size of this storage volume, in GiB. - int64 requested_size_gib = 4; - - // The current size of this storage volume, in GiB, including space reserved - // for snapshots. This size might be different than the requested size if the - // storage volume has been configured with auto grow or auto shrink. - int64 current_size_gib = 5; - - // The size, in GiB, that this storage volume has expanded as a result of an - // auto grow policy. In the absence of auto-grow, the value is 0. - int64 auto_grown_size_gib = 6; - - // The space remaining in the storage volume for new LUNs, in GiB, excluding - // space reserved for snapshots. - int64 remaining_space_gib = 7; - - // Details about snapshot space reservation and usage on the storage volume. - SnapshotReservationDetail snapshot_reservation_detail = 8; - - // The behavior to use when snapshot reserved space is full. - SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - - // The name of the snapshot schedule policy in use for this volume, if any. - string snapshot_schedule_policy = 10 [(google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/SnapshotSchedulePolicy" - }]; -} - -// Message for requesting a list of storage volumes. -message ListVolumesRequest { - // Required. Parent value for ListVolumesRequest. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Requested page size. The server might return fewer items than requested. - // If unspecified, server will pick an appropriate default. - int32 page_size = 2; - - // A token identifying a page of results from the server. - string page_token = 3; -} - -// Response message containing the list of storage volumes. -message ListVolumesResponse { - // The list of storage volumes. - repeated Volume volumes = 1; - - // A token identifying a page of results from the server. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// Message for requesting storage volume information. -message GetVolumeRequest { - // Required. Name of the resource. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/Volume" - } - ]; -} - -// A storage volume logical unit number (LUN). -message Lun { - option (google.api.resource) = { - type: "baremetalsolution.googleapis.com/Lun" - pattern: "projects/{project}/locations/{location}/volumes/{volume}/luns/{lun}" - }; - - // The possible states for the LUN. - enum State { - // The LUN is in an unknown state. - STATE_UNSPECIFIED = 0; - - // The LUN is being created. - CREATING = 1; - - // The LUN is being updated. - UPDATING = 2; - - // The LUN is ready for use. - READY = 3; - - // The LUN has been requested to be deleted. - DELETING = 4; - } - - // Display the operating systems present for the LUN multiprotocol type. - enum MultiprotocolType { - // Server has no OS specified. - MULTIPROTOCOL_TYPE_UNSPECIFIED = 0; - - // Server with Linux OS. - LINUX = 1; - } - - // The storage types for a LUN. - enum StorageType { - // The storage type for this LUN is unknown. - STORAGE_TYPE_UNSPECIFIED = 0; - - // This storage type for this LUN is SSD. - SSD = 1; - - // This storage type for this LUN is HDD. - HDD = 2; - } - - // Output only. The name of the LUN. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The state of this storage volume. - State state = 2; - - // The size of this LUN, in gigabytes. - int64 size_gb = 3; - - // The LUN multiprotocol type ensures the characteristics of the LUN are - // optimized for each operating system. - MultiprotocolType multiprotocol_type = 4; - - // Display the storage volume for this LUN. - string storage_volume = 5 [(google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/Volume" - }]; - - // Display if this LUN can be shared between multiple physical servers. - bool shareable = 6; - - // Display if this LUN is a boot LUN. - bool boot_lun = 7; - - // The storage type for this LUN. - StorageType storage_type = 8; - - // The WWID for this LUN. - string wwid = 9; -} - -// A Network. -message Network { - option (google.api.resource) = { - type: "baremetalsolution.googleapis.com/Network" - pattern: "projects/{project}/locations/{location}/networks/{network}" - }; - - // Network type. - enum Type { - // Unspecified value. - TYPE_UNSPECIFIED = 0; - - // Client network, a network peered to a Google Cloud VPC. - CLIENT = 1; - - // Private network, a network local to the Bare Metal Solution environment. - PRIVATE = 2; - } - - // The possible states for this Network. - enum State { - // The Network is in an unknown state. - STATE_UNSPECIFIED = 0; - - // The Network is provisioning. - PROVISIONING = 1; - - // The Network has been provisioned. - PROVISIONED = 2; - } - - // Output only. The resource name of this `Network`. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // Format: - // `projects/{project}/locations/{location}/networks/{network}` - // This field will contain the same value as field "network", which will soon - // be deprecated. Please use this field to reference the name of the network - // resource. - string name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Name of the network. - string network = 1; - - // The type of this network. - Type type = 2; - - // IP address configured. - string ip_address = 3; - - // List of physical interfaces. - repeated string mac_address = 4; - - // The Network state. - State state = 6; - - // The vlan id of the Network. - string vlan_id = 7; - - // The cidr of the Network. - string cidr = 8; - - // The vrf for the Network. - VRF vrf = 9; -} - -// A network VRF. -message VRF { - // QOS policy parameters. - message QosPolicy { - // The bandwidth permitted by the QOS policy, in gbps. - double bandwidth_gbps = 1; - } - - // VLAN attachment details. - message VlanAttachment { - // The peer vlan ID of the attachment. - int64 peer_vlan_id = 1; - - // The peer IP of the attachment. - string peer_ip = 2; - - // The router IP of the attachment. - string router_ip = 3; - } - - // The possible states for this VRF. - enum State { - // The unspecified state. - STATE_UNSPECIFIED = 0; - - // The vrf is provisioning. - PROVISIONING = 1; - - // The vrf is provisioned. - PROVISIONED = 2; - } - - // The name of the VRF. - string name = 1; - - // The possible state of VRF. - State state = 5; - - // The QOS policy applied to this VRF. - QosPolicy qos_policy = 6; - - // The list of VLAN attachments for the VRF. - repeated VlanAttachment vlan_attachments = 7; -} - -// Message for requesting a list of networks. -message ListNetworksRequest { - // Required. Parent value for ListNetworksRequest. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Requested page size. The server might return fewer items than requested. - // If unspecified, server will pick an appropriate default. - int32 page_size = 2; - - // A token identifying a page of results from the server. - string page_token = 3; -} - -// Response message containing the list of networks. -message ListNetworksResponse { - // The list of networks. - repeated Network networks = 1; - - // A token identifying a page of results from the server. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// Message for requesting network information. -message GetNetworkRequest { - // Required. Name of the resource. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/Network" - } - ]; -} - -// Message for requesting snapshot schedule policy information. -message GetSnapshotSchedulePolicyRequest { - // Required. Name of the resource. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/SnapshotSchedulePolicy" - } - ]; -} - -// A server. -message Instance { - option (google.api.resource) = { - type: "baremetalsolution.googleapis.com/Instance" - pattern: "projects/{project}/locations/{location}/instances/{instance}" - }; - - // The possible states for this server. - enum State { - // The server is in an unknown state. - STATE_UNSPECIFIED = 0; - - // The server is being provisioned. - PROVISIONING = 1; - - // The server is running. - RUNNING = 2; - - // The server has been deleted. - DELETED = 3; - } - - // Output only. The resource name of this `Instance`. - // Resource names are schemeless URIs that follow the conventions in - // https://cloud.google.com/apis/design/resource_names. - // Format: - // `projects/{project}/locations/{location}/instances/{instance}` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Create a time stamp. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Update a time stamp. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The server type. - // [Available server - // types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations) - string machine_type = 4; - - // The state of the server. - State state = 5; - - // True if you enable hyperthreading for the server, otherwise false. - // The default value is false. - bool hyperthreading_enabled = 6; - - // Labels as key value pairs. - map labels = 7; - - // List of LUNs associated with this server. - repeated Lun luns = 8; - - // List of networks associated with this server. - repeated Network networks = 9; - - // True if the interactive serial console feature is enabled for the instance, - // false otherwise. - // The default value is false. - bool interactive_serial_console_enabled = 10; -} - -// Message for requesting the list of servers. -message ListInstancesRequest { - // Required. Parent value for ListInstancesRequest. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Requested page size. Server may return fewer items than requested. - // If unspecified, the server will pick an appropriate default. - int32 page_size = 2; - - // A token identifying a page of results from the server. - string page_token = 3; -} - -// Response message for the list of servers. -message ListInstancesResponse { - // The list of servers. - repeated Instance instances = 1; - - // A token identifying a page of results from the server. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// Message for requesting server information. -message GetInstanceRequest { - // Required. Name of the resource. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/Instance" - } - ]; -} - -// Message requesting to reset a server. -message ResetInstanceRequest { - // Required. Name of the resource. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/Instance" - } - ]; -} - -// Response message from resetting a server. -message ResetInstanceResponse { - -} - -// Message for requesting storage volume snapshot information. -message GetVolumeSnapshotRequest { - // Required. Name of the resource. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/VolumeSnapshot" - } - ]; -} - -// Message for requesting a list of storage volume snapshots. -message ListVolumeSnapshotsRequest { - // Required. Parent value for ListVolumesRequest. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/Volume" - } - ]; - - // Requested page size. The server might return fewer items than requested. - // If unspecified, server will pick an appropriate default. - int32 page_size = 2; - - // A token identifying a page of results from the server. - string page_token = 3; -} - -// Response message containing the list of storage volume snapshots. -message ListVolumeSnapshotsResponse { - // The list of storage volumes. - repeated VolumeSnapshot volume_snapshots = 1; - - // A token identifying a page of results from the server. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// Message for deleting named Volume snapshot. -message DeleteVolumeSnapshotRequest { - // Required. The name of the snapshot to delete. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/VolumeSnapshot" - } - ]; -} - -// Represents the metadata from a long-running operation. -message OperationMetadata { - // The time the operation was created. - google.protobuf.Timestamp create_time = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The time the operation finished running. - google.protobuf.Timestamp end_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Server-defined resource path for the target of the operation. - string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Name of the action executed by the operation. - string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Human-readable status of the operation, if any. - string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Identifies whether the user requested the cancellation - // of the operation. Operations that have been successfully cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][] of 1, - // corresponding to `Code.CANCELLED`. - bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // API version used with the operation. - string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Snapshot registered for a given storage volume. -message VolumeSnapshot { - option (google.api.resource) = { - type: "baremetalsolution.googleapis.com/VolumeSnapshot" - pattern: "projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}" - }; - - // Output only. The name of the storage volume snapshot. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The description of the storage volume snapshot. - string description = 2; - - // The size of the storage volume snapshot, in bytes. - int64 size_bytes = 3; - - // Optional. The creation time of the storage volume snapshot. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OPTIONAL]; - - // The storage volume this snapshot belongs to. - string storage_volume = 5 [(google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/Volume" - }]; -} - -// A snapshot schedule policy. -message SnapshotSchedulePolicy { - option (google.api.resource) = { - type: "baremetalsolution.googleapis.com/SnapshotSchedulePolicy" - pattern: "projects/{project}/locations/{location}/snapshotSchedulePolicies/{snapshot_schedule_policy}" - }; - - // A snapshot schedule. - message Schedule { - // A crontab-like specification that the schedule uses to take - // snapshots. - string crontab_spec = 1; - - // The maximum number of snapshots to retain in this schedule. - int32 retention_count = 2; - - // A list of snapshot names created in this schedule. - string prefix = 3; - } - - // Output only. The name of the snapshot schedule policy. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The description of the snapshot schedule policy. - string description = 2; - - // The snapshot schedules contained in this policy. You can specify a maximum - // of 5 schedules. - repeated Schedule schedules = 3; -} - -// Message for requesting a list of snapshot schedule policies. -message ListSnapshotSchedulePoliciesRequest { - // Required. The parent project containing the Snapshot Schedule Policies. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // The maximum number of items to return. - int32 page_size = 2; - - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; -} - -// Response message containing the list of snapshot schedule policies. -message ListSnapshotSchedulePoliciesResponse { - // The snapshot schedule policies registered in this project. - repeated SnapshotSchedulePolicy snapshot_schedule_policies = 1; - - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - string next_page_token = 2; -} - -// Message for creating a snapshot schedule policy in a project. -message CreateSnapshotSchedulePolicyRequest { - // Required. The parent project and location containing the SnapshotSchedulePolicy. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Required. The SnapshotSchedulePolicy to create. - SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. Snapshot policy ID - string snapshot_schedule_policy_id = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Message for updating a snapshot schedule policy in a project. -message UpdateSnapshotSchedulePolicyRequest { - // Required. The snapshot schedule policy to update. - // - // The `name` field is used to identify the snapshot schedule policy to - // update. Format: - // projects/{project}/locations/global/snapshotSchedulePolicies/{policy} - SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to update. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Message for deleting a snapshot schedule policy in a project. -message DeleteSnapshotSchedulePolicyRequest { - // Required. The name of the snapshot schedule policy to delete. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/SnapshotSchedulePolicy" - } - ]; -} - -// Message for updating a volume. -message UpdateVolumeRequest { - // Required. The volume to update. - // - // The `name` field is used to identify the volume to update. - // Format: projects/{project}/locations/{location}/volumes/{volume} - Volume volume = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of fields to update. - // The only currently supported fields are: - // `snapshot_auto_delete_behavior` - // `snapshot_schedule_policy_name` - google.protobuf.FieldMask update_mask = 2; -} - -// Message for requesting storage lun information. -message GetLunRequest { - // Required. Name of the resource. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/Lun" - } - ]; -} - -// Message for requesting a list of storage volume luns. -message ListLunsRequest { - // Required. Parent value for ListLunsRequest. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/Volume" - } - ]; - - // Requested page size. The server might return fewer items than requested. - // If unspecified, server will pick an appropriate default. - int32 page_size = 2; - - // A token identifying a page of results from the server. - string page_token = 3; -} - -// Response message containing the list of storage volume luns. -message ListLunsResponse { - // The list of luns. - repeated Lun luns = 1; - - // A token identifying a page of results from the server. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// Message for creating a volume snapshot. -message CreateVolumeSnapshotRequest { - // Required. The volume to snapshot. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/Volume" - } - ]; - - // Required. The volume snapshot to create. Only the description field may be specified. - VolumeSnapshot volume_snapshot = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Message for restoring a volume snapshot. -message RestoreVolumeSnapshotRequest { - // Required. Name of the resource. - string volume_snapshot = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "baremetalsolution.googleapis.com/VolumeSnapshot" - } - ]; -} From 5517b2c54f835c7c23a2baec6731e5bb1b07e125 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 17 Jun 2022 17:50:54 +0000 Subject: [PATCH 2/7] =?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 --- .../v2/BareMetalSolutionClient.java | 46 +- .../v2/BareMetalSolutionSettings.java | 7 +- .../baremetalsolution/v2/gapic_metadata.json | 0 .../baremetalsolution/v2/package-info.java | 0 .../v2/stub/BareMetalSolutionStub.java | 0 .../stub/BareMetalSolutionStubSettings.java | 6 +- .../GrpcBareMetalSolutionCallableFactory.java | 0 .../v2/stub/GrpcBareMetalSolutionStub.java | 1 - .../v2/BareMetalSolutionClientTest.java | 0 .../v2/MockBareMetalSolution.java | 0 .../v2/MockBareMetalSolutionImpl.java | 0 .../v2/BareMetalSolutionGrpc.java | 2624 +++++++++++++++++ .../v2/BareMetalSolutionGrpc.java | 1975 ------------- .../v2/BareMetalSolutionProto.java | 218 -- .../v2/DetachLunRequestOrBuilder.java | 49 - .../v2/GetInstanceRequestOrBuilder.java | 29 - .../v2/GetLunRequestOrBuilder.java | 29 - .../v2/GetNetworkRequestOrBuilder.java | 29 - .../v2/GetNfsShareRequestOrBuilder.java | 29 - .../v2/GetVolumeRequestOrBuilder.java | 29 - .../baremetalsolution/v2/InstanceProto.java | 283 -- .../v2/ListNetworkUsageRequestOrBuilder.java | 29 - .../cloud/baremetalsolution/v2/LunProto.java | 126 - .../baremetalsolution/v2/NetworkProto.java | 283 -- .../baremetalsolution/v2/NfsShareProto.java | 171 -- .../v2/ResetInstanceRequestOrBuilder.java | 29 - .../v2/ResetInstanceResponseOrBuilder.java | 9 - .../v2/ResizeVolumeRequestOrBuilder.java | 39 - .../v2/StartInstanceRequestOrBuilder.java | 29 - .../v2/StartInstanceResponseOrBuilder.java | 9 - .../v2/StopInstanceRequestOrBuilder.java | 29 - .../v2/StopInstanceResponseOrBuilder.java | 9 - .../baremetalsolution/v2/VolumeProto.java | 192 -- .../v2/BareMetalSolutionProto.java | 238 ++ .../v2/DetachLunRequest.java | 449 +-- .../v2/DetachLunRequestOrBuilder.java | 83 + .../v2/GetInstanceRequest.java | 342 ++- .../v2/GetInstanceRequestOrBuilder.java | 54 + .../baremetalsolution/v2/GetLunRequest.java | 339 ++- .../v2/GetLunRequestOrBuilder.java | 54 + .../v2/GetNetworkRequest.java | 342 ++- .../v2/GetNetworkRequestOrBuilder.java | 54 + .../v2/GetNfsShareRequest.java | 342 ++- .../v2/GetNfsShareRequestOrBuilder.java | 54 + .../v2/GetVolumeRequest.java | 342 ++- .../v2/GetVolumeRequestOrBuilder.java | 54 + .../cloud/baremetalsolution/v2/Instance.java | 1991 ++++++++----- .../baremetalsolution/v2/InstanceName.java | 0 .../v2/InstanceOrBuilder.java | 215 +- .../baremetalsolution/v2/InstanceProto.java | 325 ++ .../v2/ListInstancesRequest.java | 534 ++-- .../v2/ListInstancesRequestOrBuilder.java | 56 +- .../v2/ListInstancesResponse.java | 571 ++-- .../v2/ListInstancesResponseOrBuilder.java | 63 +- .../baremetalsolution/v2/ListLunsRequest.java | 455 +-- .../v2/ListLunsRequestOrBuilder.java | 47 +- .../v2/ListLunsResponse.java | 572 ++-- .../v2/ListLunsResponseOrBuilder.java | 63 +- .../v2/ListNetworkUsageRequest.java | 350 ++- .../v2/ListNetworkUsageRequestOrBuilder.java | 54 + .../v2/ListNetworkUsageResponse.java | 387 ++- .../v2/ListNetworkUsageResponseOrBuilder.java | 36 +- .../v2/ListNetworksRequest.java | 534 ++-- .../v2/ListNetworksRequestOrBuilder.java | 56 +- .../v2/ListNetworksResponse.java | 574 ++-- .../v2/ListNetworksResponseOrBuilder.java | 63 +- .../v2/ListNfsSharesRequest.java | 534 ++-- .../v2/ListNfsSharesRequestOrBuilder.java | 56 +- .../v2/ListNfsSharesResponse.java | 571 ++-- .../v2/ListNfsSharesResponseOrBuilder.java | 63 +- .../v2/ListVolumesRequest.java | 534 ++-- .../v2/ListVolumesRequestOrBuilder.java | 56 +- .../v2/ListVolumesResponse.java | 570 ++-- .../v2/ListVolumesResponseOrBuilder.java | 63 +- .../baremetalsolution/v2/LocationName.java | 0 .../v2/LogicalInterface.java | 1369 +++++---- .../v2/LogicalInterfaceOrBuilder.java | 74 +- .../cloud/baremetalsolution/v2/Lun.java | 1048 ++++--- .../cloud/baremetalsolution/v2/LunName.java | 0 .../baremetalsolution/v2/LunOrBuilder.java | 81 +- .../cloud/baremetalsolution/v2/LunProto.java | 153 + .../baremetalsolution/v2/NFSShareName.java | 0 .../cloud/baremetalsolution/v2/Network.java | 1705 ++++++----- .../v2/NetworkAddressReservation.java | 493 ++-- .../NetworkAddressReservationOrBuilder.java | 45 +- .../baremetalsolution/v2/NetworkName.java | 0 .../v2/NetworkOrBuilder.java | 170 +- .../baremetalsolution/v2/NetworkProto.java | 327 ++ .../baremetalsolution/v2/NetworkUsage.java | 443 +-- .../v2/NetworkUsageOrBuilder.java | 44 +- .../cloud/baremetalsolution/v2/NfsShare.java | 1891 +++++++----- .../v2/NfsShareOrBuilder.java | 111 +- .../baremetalsolution/v2/NfsShareProto.java | 202 ++ .../v2/OperationMetadata.java | 855 +++--- .../v2/OperationMetadataOrBuilder.java | 91 +- .../v2/ResetInstanceRequest.java | 342 ++- .../v2/ResetInstanceRequestOrBuilder.java | 54 + .../v2/ResetInstanceResponse.java | 238 +- .../v2/ResetInstanceResponseOrBuilder.java | 24 + .../v2/ResizeVolumeRequest.java | 379 ++- .../v2/ResizeVolumeRequestOrBuilder.java | 67 + .../v2/ServerNetworkTemplate.java | 1387 +++++---- .../v2/ServerNetworkTemplateOrBuilder.java | 88 +- .../v2/StartInstanceRequest.java | 342 ++- .../v2/StartInstanceRequestOrBuilder.java | 54 + .../v2/StartInstanceResponse.java | 238 +- .../v2/StartInstanceResponseOrBuilder.java | 24 + .../v2/StopInstanceRequest.java | 342 ++- .../v2/StopInstanceRequestOrBuilder.java | 54 + .../v2/StopInstanceResponse.java | 238 +- .../v2/StopInstanceResponseOrBuilder.java | 24 + .../v2/UpdateInstanceRequest.java | 480 +-- .../v2/UpdateInstanceRequestOrBuilder.java | 46 +- .../v2/UpdateNetworkRequest.java | 480 +-- .../v2/UpdateNetworkRequestOrBuilder.java | 46 +- .../v2/UpdateNfsShareRequest.java | 480 +-- .../v2/UpdateNfsShareRequestOrBuilder.java | 46 +- .../v2/UpdateVolumeRequest.java | 483 +-- .../v2/UpdateVolumeRequestOrBuilder.java | 46 +- .../cloud/baremetalsolution/v2/VRF.java | 1457 +++++---- .../baremetalsolution/v2/VRFOrBuilder.java | 71 +- .../cloud/baremetalsolution/v2/Volume.java | 2005 ++++++++----- .../baremetalsolution/v2/VolumeName.java | 0 .../baremetalsolution/v2/VolumeOrBuilder.java | 149 +- .../baremetalsolution/v2/VolumeProto.java | 230 ++ .../v2/baremetalsolution.proto | 0 .../cloud/baremetalsolution/v2/instance.proto | 0 .../cloud/baremetalsolution/v2/lun.proto | 0 .../cloud/baremetalsolution/v2/network.proto | 0 .../baremetalsolution/v2/nfs_share.proto | 0 .../cloud/baremetalsolution/v2/volume.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../detachlun/AsyncDetachLun.java | 0 .../detachlun/AsyncDetachLunLRO.java | 0 .../detachlun/SyncDetachLun.java | 0 .../SyncDetachLunInstancenameLunname.java | 0 .../SyncDetachLunInstancenameString.java | 0 .../detachlun/SyncDetachLunStringLunname.java | 0 .../detachlun/SyncDetachLunStringString.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../getlun/AsyncGetLun.java | 0 .../getlun/SyncGetLun.java | 0 .../getlun/SyncGetLunLunname.java | 0 .../getlun/SyncGetLunString.java | 0 .../getnetwork/AsyncGetNetwork.java | 0 .../getnetwork/SyncGetNetwork.java | 0 .../getnetwork/SyncGetNetworkNetworkname.java | 0 .../getnetwork/SyncGetNetworkString.java | 0 .../getnfsshare/AsyncGetNfsShare.java | 0 .../getnfsshare/SyncGetNfsShare.java | 0 .../SyncGetNfsShareNfssharename.java | 0 .../getnfsshare/SyncGetNfsShareString.java | 0 .../getvolume/AsyncGetVolume.java | 0 .../getvolume/SyncGetVolume.java | 0 .../getvolume/SyncGetVolumeString.java | 0 .../getvolume/SyncGetVolumeVolumename.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../listluns/AsyncListLuns.java | 0 .../listluns/AsyncListLunsPaged.java | 0 .../listluns/SyncListLuns.java | 0 .../listluns/SyncListLunsString.java | 0 .../listluns/SyncListLunsVolumename.java | 0 .../listnetworks/AsyncListNetworks.java | 0 .../listnetworks/AsyncListNetworksPaged.java | 0 .../listnetworks/SyncListNetworks.java | 0 .../SyncListNetworksLocationname.java | 0 .../listnetworks/SyncListNetworksString.java | 0 .../AsyncListNetworkUsage.java | 0 .../SyncListNetworkUsage.java | 0 .../SyncListNetworkUsageLocationname.java | 0 .../SyncListNetworkUsageString.java | 0 .../listnfsshares/AsyncListNfsShares.java | 0 .../AsyncListNfsSharesPaged.java | 0 .../listnfsshares/SyncListNfsShares.java | 0 .../SyncListNfsSharesLocationname.java | 0 .../SyncListNfsSharesString.java | 0 .../listvolumes/AsyncListVolumes.java | 0 .../listvolumes/AsyncListVolumesPaged.java | 0 .../listvolumes/SyncListVolumes.java | 0 .../SyncListVolumesLocationname.java | 0 .../listvolumes/SyncListVolumesString.java | 0 .../resetinstance/AsyncResetInstance.java | 0 .../resetinstance/AsyncResetInstanceLRO.java | 0 .../resetinstance/SyncResetInstance.java | 0 .../SyncResetInstanceInstancename.java | 0 .../SyncResetInstanceString.java | 0 .../resizevolume/AsyncResizeVolume.java | 0 .../resizevolume/AsyncResizeVolumeLRO.java | 0 .../resizevolume/SyncResizeVolume.java | 0 .../SyncResizeVolumeStringLong.java | 0 .../SyncResizeVolumeVolumenameLong.java | 0 .../startinstance/AsyncStartInstance.java | 0 .../startinstance/AsyncStartInstanceLRO.java | 0 .../startinstance/SyncStartInstance.java | 0 .../SyncStartInstanceInstancename.java | 0 .../SyncStartInstanceString.java | 0 .../stopinstance/AsyncStopInstance.java | 0 .../stopinstance/AsyncStopInstanceLRO.java | 0 .../stopinstance/SyncStopInstance.java | 0 .../SyncStopInstanceInstancename.java | 0 .../stopinstance/SyncStopInstanceString.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 6 +- .../updatenetwork/AsyncUpdateNetwork.java | 0 .../updatenetwork/AsyncUpdateNetworkLRO.java | 0 .../updatenetwork/SyncUpdateNetwork.java | 0 .../SyncUpdateNetworkNetworkFieldmask.java | 3 +- .../updatenfsshare/AsyncUpdateNfsShare.java | 0 .../AsyncUpdateNfsShareLRO.java | 0 .../updatenfsshare/SyncUpdateNfsShare.java | 0 .../SyncUpdateNfsShareNfsshareFieldmask.java | 6 +- .../updatevolume/AsyncUpdateVolume.java | 0 .../updatevolume/AsyncUpdateVolumeLRO.java | 0 .../updatevolume/SyncUpdateVolume.java | 0 .../SyncUpdateVolumeVolumeFieldmask.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 227 files changed, 22914 insertions(+), 14565 deletions(-) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java (98%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java (100%) create mode 100644 grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java delete mode 100644 owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java (63%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java (83%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java (52%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java (63%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java (51%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java (78%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java (78%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java (70%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java (67%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java (61%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java (66%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java (67%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java (73%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/network.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (87%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java (93%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java (87%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java (100%) diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java index ce914c1..b618b60 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java @@ -67,13 +67,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. *
* @@ -2695,7 +2695,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListInstancesPagedResponse extends AbstractPagedListResponse< - ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, ListInstancesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2745,7 +2748,10 @@ public ApiFuture createPageAsync( public static class ListInstancesFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, ListInstancesFixedSizeCollection> { private ListInstancesFixedSizeCollection(List pages, int collectionSize) { @@ -2765,7 +2771,10 @@ protected ListInstancesFixedSizeCollection createCollection( public static class ListVolumesPagedResponse extends AbstractPagedListResponse< - ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, + ListVolumesRequest, + ListVolumesResponse, + Volume, + ListVolumesPage, ListVolumesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2812,7 +2821,10 @@ public ApiFuture createPageAsync( public static class ListVolumesFixedSizeCollection extends AbstractFixedSizeCollection< - ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, + ListVolumesRequest, + ListVolumesResponse, + Volume, + ListVolumesPage, ListVolumesFixedSizeCollection> { private ListVolumesFixedSizeCollection(List pages, int collectionSize) { @@ -2832,7 +2844,10 @@ protected ListVolumesFixedSizeCollection createCollection( public static class ListNetworksPagedResponse extends AbstractPagedListResponse< - ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, + ListNetworksRequest, + ListNetworksResponse, + Network, + ListNetworksPage, ListNetworksFixedSizeCollection> { public static ApiFuture createAsync( @@ -2881,7 +2896,10 @@ public ApiFuture createPageAsync( public static class ListNetworksFixedSizeCollection extends AbstractFixedSizeCollection< - ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, + ListNetworksRequest, + ListNetworksResponse, + Network, + ListNetworksPage, ListNetworksFixedSizeCollection> { private ListNetworksFixedSizeCollection(List pages, int collectionSize) { @@ -2964,7 +2982,10 @@ protected ListLunsFixedSizeCollection createCollection( public static class ListNfsSharesPagedResponse extends AbstractPagedListResponse< - ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, + ListNfsSharesRequest, + ListNfsSharesResponse, + NfsShare, + ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3014,7 +3035,10 @@ public ApiFuture createPageAsync( public static class ListNfsSharesFixedSizeCollection extends AbstractFixedSizeCollection< - ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, + ListNfsSharesRequest, + ListNfsSharesResponse, + NfsShare, + ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { private ListNfsSharesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java similarity index 98% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java index 3c28ef9..26d7b05 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.baremetalsolution.v2.stub.BareMetalSolutionStubSettings; @@ -48,10 +47,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java index 337ce24..8fe9ece 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java @@ -100,10 +100,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java index b55630f..0e6e0e1 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java @@ -70,7 +70,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java diff --git a/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java new file mode 100644 index 0000000..cf4ba73 --- /dev/null +++ b/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java @@ -0,0 +1,2624 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.baremetalsolution.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Performs management operations on Bare Metal Solution servers.
+ * The `baremetalsolution.googleapis.com` service provides management
+ * capabilities for Bare Metal Solution servers. To access the API methods, you
+ * must assign Bare Metal Solution IAM roles containing the desired permissions
+ * to your staff in your Google Cloud project. You must also enable the Bare
+ * Metal Solution API. Once enabled, the methods act
+ * upon specific servers in your Bare Metal Solution environment.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BareMetalSolutionGrpc { + + private BareMetalSolutionGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + BareMetalSolutionGrpc.getListInstancesMethod = + getListInstancesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance> + getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance> + getGetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance> + getGetInstanceMethod; + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + BareMetalSolutionGrpc.getGetInstanceMethod = + getGetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + BareMetalSolutionGrpc.getUpdateInstanceMethod = + getUpdateInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation> + getResetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetInstance", + requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation> + getResetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation> + getResetInstanceMethod; + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + BareMetalSolutionGrpc.getResetInstanceMethod = + getResetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) + .build(); + } + } + } + return getResetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation> + getStartInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartInstance", + requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation> + getStartInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation> + getStartInstanceMethod; + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + BareMetalSolutionGrpc.getStartInstanceMethod = + getStartInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) + .build(); + } + } + } + return getStartInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation> + getStopInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopInstance", + requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation> + getStopInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation> + getStopInstanceMethod; + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + BareMetalSolutionGrpc.getStopInstanceMethod = + getStopInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) + .build(); + } + } + } + return getStopInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, com.google.longrunning.Operation> + getDetachLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetachLun", + requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, com.google.longrunning.Operation> + getDetachLunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, + com.google.longrunning.Operation> + getDetachLunMethod; + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + BareMetalSolutionGrpc.getDetachLunMethod = + getDetachLunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.DetachLunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) + .build(); + } + } + } + return getDetachLunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + getListVolumesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVolumes", + requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + getListVolumesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + getListVolumesMethod; + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + BareMetalSolutionGrpc.getListVolumesMethod = + getListVolumesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) + .build(); + } + } + } + return getListVolumesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume> + getGetVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVolume", + requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Volume.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume> + getGetVolumeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume> + getGetVolumeMethod; + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + BareMetalSolutionGrpc.getGetVolumeMethod = + getGetVolumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) + .build(); + } + } + } + return getGetVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation> + getUpdateVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", + requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation> + getUpdateVolumeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation> + getUpdateVolumeMethod; + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + BareMetalSolutionGrpc.getUpdateVolumeMethod = + getUpdateVolumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) + .build(); + } + } + } + return getUpdateVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation> + getResizeVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", + requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation> + getResizeVolumeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation> + getResizeVolumeMethod; + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + BareMetalSolutionGrpc.getResizeVolumeMethod = + getResizeVolumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) + .build(); + } + } + } + return getResizeVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + getListNetworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworks", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + getListNetworksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + getListNetworksMethod; + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + BareMetalSolutionGrpc.getListNetworksMethod = + getListNetworksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) + .build(); + } + } + } + return getListNetworksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + getListNetworkUsageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + getListNetworkUsageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + getListNetworkUsageMethod; + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + BareMetalSolutionGrpc.getListNetworkUsageMethod = + getListNetworkUsageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) + .build(); + } + } + } + return getListNetworkUsageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network> + getGetNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNetwork", + requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Network.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network> + getGetNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network> + getGetNetworkMethod; + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + BareMetalSolutionGrpc.getGetNetworkMethod = + getGetNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) + .build(); + } + } + } + return getGetNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation> + getUpdateNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation> + getUpdateNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation> + getUpdateNetworkMethod; + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + BareMetalSolutionGrpc.getUpdateNetworkMethod = + getUpdateNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) + .build(); + } + } + } + return getUpdateNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun> + getGetLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLun", + requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Lun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun> + getGetLunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun> + getGetLunMethod; + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + BareMetalSolutionGrpc.getGetLunMethod = + getGetLunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetLunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) + .build(); + } + } + } + return getGetLunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + getListLunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLuns", + requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + getListLunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + getListLunsMethod; + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + BareMetalSolutionGrpc.getListLunsMethod = + getListLunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) + .build(); + } + } + } + return getListLunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare> + getGetNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare> + getGetNfsShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare> + getGetNfsShareMethod; + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + BareMetalSolutionGrpc.getGetNfsShareMethod = + getGetNfsShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) + .build(); + } + } + } + return getGetNfsShareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + getListNfsSharesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", + requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + getListNfsSharesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + getListNfsSharesMethod; + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + BareMetalSolutionGrpc.getListNfsSharesMethod = + getListNfsSharesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) + .build(); + } + } + } + return getListNfsSharesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation> + getUpdateNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation> + getUpdateNfsShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation> + getUpdateNfsShareMethod; + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + BareMetalSolutionGrpc.getUpdateNfsShareMethod = + getUpdateNfsShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) + .build(); + } + } + } + return getUpdateNfsShareMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + }; + return BareMetalSolutionStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BareMetalSolutionBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + }; + return BareMetalSolutionBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BareMetalSolutionFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + }; + return BareMetalSolutionFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public abstract static class BareMetalSolutionImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListVolumesMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVolumeMethod(), responseObserver); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResizeVolumeMethod(), responseObserver); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNetworksMethod(), responseObserver); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNetworkUsageMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNetworkMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNfsShareMethod(), responseObserver); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNfsSharesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNfsShareMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance>(this, METHODID_GET_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getResetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_RESET_INSTANCE))) + .addMethod( + getStartInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_START_INSTANCE))) + .addMethod( + getStopInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_STOP_INSTANCE))) + .addMethod( + getDetachLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, + com.google.longrunning.Operation>(this, METHODID_DETACH_LUN))) + .addMethod( + getListVolumesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( + this, METHODID_LIST_VOLUMES))) + .addMethod( + getGetVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume>(this, METHODID_GET_VOLUME))) + .addMethod( + getUpdateVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_VOLUME))) + .addMethod( + getResizeVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation>(this, METHODID_RESIZE_VOLUME))) + .addMethod( + getListNetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( + this, METHODID_LIST_NETWORKS))) + .addMethod( + getListNetworkUsageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( + this, METHODID_LIST_NETWORK_USAGE))) + .addMethod( + getGetNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network>(this, METHODID_GET_NETWORK))) + .addMethod( + getUpdateNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_NETWORK))) + .addMethod( + getGetLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun>(this, METHODID_GET_LUN))) + .addMethod( + getListLunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse>( + this, METHODID_LIST_LUNS))) + .addMethod( + getGetNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare>( + this, METHODID_GET_NFS_SHARE))) + .addMethod( + getListNfsSharesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( + this, METHODID_LIST_NFS_SHARES))) + .addMethod( + getUpdateNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_NFS_SHARE))) + .build(); + } + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionStub + extends io.grpc.stub.AbstractAsyncStub { + private BareMetalSolutionStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BareMetalSolutionBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Instance getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.longrunning.Operation resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.longrunning.Operation startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public com.google.longrunning.Operation stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.longrunning.Operation detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetachLunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVolumesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Volume getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.longrunning.Operation updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.longrunning.Operation resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResizeVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Network getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNetworkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.longrunning.Operation updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Lun getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNfsShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNfsSharesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.longrunning.Operation updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BareMetalSolutionFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Instance> + getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Volume> + getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Network> + getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Lun> + getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.NfsShare> + getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_UPDATE_INSTANCE = 2; + private static final int METHODID_RESET_INSTANCE = 3; + private static final int METHODID_START_INSTANCE = 4; + private static final int METHODID_STOP_INSTANCE = 5; + private static final int METHODID_DETACH_LUN = 6; + private static final int METHODID_LIST_VOLUMES = 7; + private static final int METHODID_GET_VOLUME = 8; + private static final int METHODID_UPDATE_VOLUME = 9; + private static final int METHODID_RESIZE_VOLUME = 10; + private static final int METHODID_LIST_NETWORKS = 11; + private static final int METHODID_LIST_NETWORK_USAGE = 12; + private static final int METHODID_GET_NETWORK = 13; + private static final int METHODID_UPDATE_NETWORK = 14; + private static final int METHODID_GET_LUN = 15; + private static final int METHODID_LIST_LUNS = 16; + private static final int METHODID_GET_NFS_SHARE = 17; + private static final int METHODID_LIST_NFS_SHARES = 18; + private static final int METHODID_UPDATE_NFS_SHARE = 19; + + 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 BareMetalSolutionImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances( + (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListInstancesResponse>) + responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance( + (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance( + (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_INSTANCE: + serviceImpl.resetInstance( + (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_INSTANCE: + serviceImpl.startInstance( + (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_INSTANCE: + serviceImpl.stopInstance( + (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETACH_LUN: + serviceImpl.detachLun( + (com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOLUMES: + serviceImpl.listVolumes( + (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListVolumesResponse>) + responseObserver); + break; + case METHODID_GET_VOLUME: + serviceImpl.getVolume( + (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_VOLUME: + serviceImpl.updateVolume( + (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESIZE_VOLUME: + serviceImpl.resizeVolume( + (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NETWORKS: + serviceImpl.listNetworks( + (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListNetworksResponse>) + responseObserver); + break; + case METHODID_LIST_NETWORK_USAGE: + serviceImpl.listNetworkUsage( + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>) + responseObserver); + break; + case METHODID_GET_NETWORK: + serviceImpl.getNetwork( + (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_NETWORK: + serviceImpl.updateNetwork( + (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LUN: + serviceImpl.getLun( + (com.google.cloud.baremetalsolution.v2.GetLunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_LUNS: + serviceImpl.listLuns( + (com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NFS_SHARE: + serviceImpl.getNfsShare( + (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_NFS_SHARES: + serviceImpl.listNfsShares( + (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>) + responseObserver); + break; + case METHODID_UPDATE_NFS_SHARE: + serviceImpl.updateNfsShare( + (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BareMetalSolutionBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BareMetalSolution"); + } + } + + private static final class BareMetalSolutionFileDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier { + BareMetalSolutionFileDescriptorSupplier() {} + } + + private static final class BareMetalSolutionMethodDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getResetInstanceMethod()) + .addMethod(getStartInstanceMethod()) + .addMethod(getStopInstanceMethod()) + .addMethod(getDetachLunMethod()) + .addMethod(getListVolumesMethod()) + .addMethod(getGetVolumeMethod()) + .addMethod(getUpdateVolumeMethod()) + .addMethod(getResizeVolumeMethod()) + .addMethod(getListNetworksMethod()) + .addMethod(getListNetworkUsageMethod()) + .addMethod(getGetNetworkMethod()) + .addMethod(getUpdateNetworkMethod()) + .addMethod(getGetLunMethod()) + .addMethod(getListLunsMethod()) + .addMethod(getGetNfsShareMethod()) + .addMethod(getListNfsSharesMethod()) + .addMethod(getUpdateNfsShareMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java deleted file mode 100644 index d21be35..0000000 --- a/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java +++ /dev/null @@ -1,1975 +0,0 @@ -package com.google.cloud.baremetalsolution.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Performs management operations on Bare Metal Solution servers.
- * The `baremetalsolution.googleapis.com` service provides management
- * capabilities for Bare Metal Solution servers. To access the API methods, you
- * must assign Bare Metal Solution IAM roles containing the desired permissions
- * to your staff in your Google Cloud project. You must also enable the Bare
- * Metal Solution API. Once enabled, the methods act
- * upon specific servers in your Bare Metal Solution environment.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BareMetalSolutionGrpc { - - private BareMetalSolutionGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListInstancesMethod() { - io.grpc.MethodDescriptor getListInstancesMethod; - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - BareMetalSolutionGrpc.getListInstancesMethod = getListInstancesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstanceMethod() { - io.grpc.MethodDescriptor getGetInstanceMethod; - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - BareMetalSolutionGrpc.getGetInstanceMethod = getGetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { - io.grpc.MethodDescriptor getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { - BareMetalSolutionGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getResetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetInstance", - requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResetInstanceMethod() { - io.grpc.MethodDescriptor getResetInstanceMethod; - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - BareMetalSolutionGrpc.getResetInstanceMethod = getResetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) - .build(); - } - } - } - return getResetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartInstance", - requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartInstanceMethod() { - io.grpc.MethodDescriptor getStartInstanceMethod; - if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { - BareMetalSolutionGrpc.getStartInstanceMethod = getStartInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) - .build(); - } - } - } - return getStartInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopInstance", - requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopInstanceMethod() { - io.grpc.MethodDescriptor getStopInstanceMethod; - if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { - BareMetalSolutionGrpc.getStopInstanceMethod = getStopInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) - .build(); - } - } - } - return getStopInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDetachLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetachLun", - requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDetachLunMethod() { - io.grpc.MethodDescriptor getDetachLunMethod; - if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { - BareMetalSolutionGrpc.getDetachLunMethod = getDetachLunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) - .build(); - } - } - } - return getDetachLunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListVolumesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumes", - requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListVolumesMethod() { - io.grpc.MethodDescriptor getListVolumesMethod; - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - BareMetalSolutionGrpc.getListVolumesMethod = getListVolumesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) - .build(); - } - } - } - return getListVolumesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolume", - requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Volume.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetVolumeMethod() { - io.grpc.MethodDescriptor getGetVolumeMethod; - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - BareMetalSolutionGrpc.getGetVolumeMethod = getGetVolumeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) - .build(); - } - } - } - return getGetVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", - requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateVolumeMethod() { - io.grpc.MethodDescriptor getUpdateVolumeMethod; - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - BareMetalSolutionGrpc.getUpdateVolumeMethod = getUpdateVolumeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) - .build(); - } - } - } - return getUpdateVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor getResizeVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", - requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResizeVolumeMethod() { - io.grpc.MethodDescriptor getResizeVolumeMethod; - if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { - BareMetalSolutionGrpc.getResizeVolumeMethod = getResizeVolumeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) - .build(); - } - } - } - return getResizeVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNetworksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworks", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNetworksMethod() { - io.grpc.MethodDescriptor getListNetworksMethod; - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - BareMetalSolutionGrpc.getListNetworksMethod = getListNetworksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) - .build(); - } - } - } - return getListNetworksMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNetworkUsageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNetworkUsageMethod() { - io.grpc.MethodDescriptor getListNetworkUsageMethod; - if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { - BareMetalSolutionGrpc.getListNetworkUsageMethod = getListNetworkUsageMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) - .build(); - } - } - } - return getListNetworkUsageMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNetwork", - requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Network.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNetworkMethod() { - io.grpc.MethodDescriptor getGetNetworkMethod; - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - BareMetalSolutionGrpc.getGetNetworkMethod = getGetNetworkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) - .build(); - } - } - } - return getGetNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", - requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNetworkMethod() { - io.grpc.MethodDescriptor getUpdateNetworkMethod; - if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { - BareMetalSolutionGrpc.getUpdateNetworkMethod = getUpdateNetworkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) - .build(); - } - } - } - return getUpdateNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLun", - requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Lun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetLunMethod() { - io.grpc.MethodDescriptor getGetLunMethod; - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - BareMetalSolutionGrpc.getGetLunMethod = getGetLunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) - .build(); - } - } - } - return getGetLunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListLunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLuns", - requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListLunsMethod() { - io.grpc.MethodDescriptor getListLunsMethod; - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - BareMetalSolutionGrpc.getListLunsMethod = getListLunsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) - .build(); - } - } - } - return getListLunsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNfsShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", - requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNfsShareMethod() { - io.grpc.MethodDescriptor getGetNfsShareMethod; - if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { - BareMetalSolutionGrpc.getGetNfsShareMethod = getGetNfsShareMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) - .build(); - } - } - } - return getGetNfsShareMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNfsSharesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", - requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNfsSharesMethod() { - io.grpc.MethodDescriptor getListNfsSharesMethod; - if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { - BareMetalSolutionGrpc.getListNfsSharesMethod = getListNfsSharesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) - .build(); - } - } - } - return getListNfsSharesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNfsShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", - requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNfsShareMethod() { - io.grpc.MethodDescriptor getUpdateNfsShareMethod; - if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { - BareMetalSolutionGrpc.getUpdateNfsShareMethod = getUpdateNfsShareMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) - .build(); - } - } - } - return getUpdateNfsShareMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - }; - return BareMetalSolutionStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BareMetalSolutionBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - }; - return BareMetalSolutionBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static BareMetalSolutionFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - }; - return BareMetalSolutionFutureStub.newStub(factory, channel); - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static abstract class BareMetalSolutionImplBase implements io.grpc.BindableService { - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetInstanceMethod(), responseObserver); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartInstanceMethod(), responseObserver); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopInstanceMethod(), responseObserver); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVolumesMethod(), responseObserver); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateVolumeMethod(), responseObserver); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResizeVolumeMethod(), responseObserver); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworksMethod(), responseObserver); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworkUsageMethod(), responseObserver); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNetworkMethod(), responseObserver); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNfsShareMethod(), responseObserver); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNfsSharesMethod(), responseObserver); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNfsShareMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance>( - this, METHODID_GET_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getResetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_RESET_INSTANCE))) - .addMethod( - getStartInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_START_INSTANCE))) - .addMethod( - getStopInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_INSTANCE))) - .addMethod( - getDetachLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, - com.google.longrunning.Operation>( - this, METHODID_DETACH_LUN))) - .addMethod( - getListVolumesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( - this, METHODID_LIST_VOLUMES))) - .addMethod( - getGetVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume>( - this, METHODID_GET_VOLUME))) - .addMethod( - getUpdateVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_VOLUME))) - .addMethod( - getResizeVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation>( - this, METHODID_RESIZE_VOLUME))) - .addMethod( - getListNetworksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( - this, METHODID_LIST_NETWORKS))) - .addMethod( - getListNetworkUsageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( - this, METHODID_LIST_NETWORK_USAGE))) - .addMethod( - getGetNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network>( - this, METHODID_GET_NETWORK))) - .addMethod( - getUpdateNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_NETWORK))) - .addMethod( - getGetLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun>( - this, METHODID_GET_LUN))) - .addMethod( - getListLunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse>( - this, METHODID_LIST_LUNS))) - .addMethod( - getGetNfsShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare>( - this, METHODID_GET_NFS_SHARE))) - .addMethod( - getListNfsSharesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( - this, METHODID_LIST_NFS_SHARES))) - .addMethod( - getUpdateNfsShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_NFS_SHARE))) - .build(); - } - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionStub extends io.grpc.stub.AbstractAsyncStub { - private BareMetalSolutionStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BareMetalSolutionBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Instance getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public com.google.longrunning.Operation updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.longrunning.Operation resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public com.google.longrunning.Operation startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public com.google.longrunning.Operation stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public com.google.longrunning.Operation detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetachLunMethod(), getCallOptions(), request); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumesMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Volume getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.longrunning.Operation updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public com.google.longrunning.Operation resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResizeVolumeMethod(), getCallOptions(), request); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworksMethod(), getCallOptions(), request); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Network getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNetworkMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public com.google.longrunning.Operation updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Lun getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLunMethod(), getCallOptions(), request); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLunsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNfsShareMethod(), getCallOptions(), request); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNfsSharesMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public com.google.longrunning.Operation updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionFutureStub extends io.grpc.stub.AbstractFutureStub { - private BareMetalSolutionFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateInstance( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startInstance( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopInstance( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture detachLun( - com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resizeVolume( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNetworkUsage( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNetwork( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNfsShare( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNfsShares( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNfsShare( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_UPDATE_INSTANCE = 2; - private static final int METHODID_RESET_INSTANCE = 3; - private static final int METHODID_START_INSTANCE = 4; - private static final int METHODID_STOP_INSTANCE = 5; - private static final int METHODID_DETACH_LUN = 6; - private static final int METHODID_LIST_VOLUMES = 7; - private static final int METHODID_GET_VOLUME = 8; - private static final int METHODID_UPDATE_VOLUME = 9; - private static final int METHODID_RESIZE_VOLUME = 10; - private static final int METHODID_LIST_NETWORKS = 11; - private static final int METHODID_LIST_NETWORK_USAGE = 12; - private static final int METHODID_GET_NETWORK = 13; - private static final int METHODID_UPDATE_NETWORK = 14; - private static final int METHODID_GET_LUN = 15; - private static final int METHODID_LIST_LUNS = 16; - private static final int METHODID_GET_NFS_SHARE = 17; - private static final int METHODID_LIST_NFS_SHARES = 18; - private static final int METHODID_UPDATE_NFS_SHARE = 19; - - 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 BareMetalSolutionImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESET_INSTANCE: - serviceImpl.resetInstance((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_INSTANCE: - serviceImpl.startInstance((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_INSTANCE: - serviceImpl.stopInstance((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DETACH_LUN: - serviceImpl.detachLun((com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VOLUMES: - serviceImpl.listVolumes((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_VOLUME: - serviceImpl.getVolume((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_VOLUME: - serviceImpl.updateVolume((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESIZE_VOLUME: - serviceImpl.resizeVolume((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NETWORKS: - serviceImpl.listNetworks((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NETWORK_USAGE: - serviceImpl.listNetworkUsage((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NETWORK: - serviceImpl.getNetwork((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NETWORK: - serviceImpl.updateNetwork((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LUN: - serviceImpl.getLun((com.google.cloud.baremetalsolution.v2.GetLunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_LUNS: - serviceImpl.listLuns((com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NFS_SHARE: - serviceImpl.getNfsShare((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NFS_SHARES: - serviceImpl.listNfsShares((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NFS_SHARE: - serviceImpl.updateNfsShare((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BareMetalSolutionBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BareMetalSolution"); - } - } - - private static final class BareMetalSolutionFileDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier { - BareMetalSolutionFileDescriptorSupplier() {} - } - - private static final class BareMetalSolutionMethodDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getResetInstanceMethod()) - .addMethod(getStartInstanceMethod()) - .addMethod(getStopInstanceMethod()) - .addMethod(getDetachLunMethod()) - .addMethod(getListVolumesMethod()) - .addMethod(getGetVolumeMethod()) - .addMethod(getUpdateVolumeMethod()) - .addMethod(getResizeVolumeMethod()) - .addMethod(getListNetworksMethod()) - .addMethod(getListNetworkUsageMethod()) - .addMethod(getGetNetworkMethod()) - .addMethod(getUpdateNetworkMethod()) - .addMethod(getGetLunMethod()) - .addMethod(getListLunsMethod()) - .addMethod(getGetNfsShareMethod()) - .addMethod(getListNfsSharesMethod()) - .addMethod(getUpdateNfsShareMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java deleted file mode 100644 index 2ce6b05..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java +++ /dev/null @@ -1,218 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class BareMetalSolutionProto { - private BareMetalSolutionProto() {} - 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_baremetalsolution_v2_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/baremetalsolution/v2/bare" + - "metalsolution.proto\022!google.cloud.bareme" + - "talsolution.v2\032\034google/api/annotations.p" + - "roto\032\027google/api/client.proto\032\037google/ap" + - "i/field_behavior.proto\0320google/cloud/bar" + - "emetalsolution/v2/instance.proto\032+google" + - "/cloud/baremetalsolution/v2/lun.proto\032/g" + - "oogle/cloud/baremetalsolution/v2/network" + - ".proto\0321google/cloud/baremetalsolution/v" + - "2/nfs_share.proto\032.google/cloud/baremeta" + - "lsolution/v2/volume.proto\032#google/longru" + - "nning/operations.proto\032\037google/protobuf/" + - "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" + - "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + - "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" + - "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " + - "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" + - "setInstanceResponse2\335 \n\021BareMetalSolutio" + - "n\022\302\001\n\rListInstances\0227.google.cloud.barem" + - "etalsolution.v2.ListInstancesRequest\0328.g" + - "oogle.cloud.baremetalsolution.v2.ListIns" + - "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" + - "ects/*/locations/*}/instances\332A\006parent\022\257" + - "\001\n\013GetInstance\0225.google.cloud.baremetals" + - "olution.v2.GetInstanceRequest\032+.google.c" + - "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" + - "\002/\022-/v2/{name=projects/*/locations/*/ins" + - "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" + - "ogle.cloud.baremetalsolution.v2.UpdateIn" + - "stanceRequest\032\035.google.longrunning.Opera" + - "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" + - "s/*/locations/*/instances/*}:\010instance\332A" + - "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" + - "ationMetadata\022\333\001\n\rResetInstance\0227.google" + - ".cloud.baremetalsolution.v2.ResetInstanc" + - "eRequest\032\035.google.longrunning.Operation\"" + - "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" + - "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" + - "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" + - "StartInstance\0227.google.cloud.baremetalso" + - "lution.v2.StartInstanceRequest\032\035.google." + - "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" + - "=projects/*/locations/*/instances/*}:sta" + - "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" + - "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" + - "gle.cloud.baremetalsolution.v2.StopInsta" + - "nceRequest\032\035.google.longrunning.Operatio" + - "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" + - "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" + - "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" + - "DetachLun\0223.google.cloud.baremetalsoluti" + - "on.v2.DetachLunRequest\032\035.google.longrunn" + - "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" + - "jects/*/locations/*/instances/*}:detachL" + - "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" + - "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" + - "oud.baremetalsolution.v2.ListVolumesRequ" + - "est\0326.google.cloud.baremetalsolution.v2." + - "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" + - "=projects/*/locations/*}/volumes\332A\006paren" + - "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" + - "solution.v2.GetVolumeRequest\032).google.cl" + - "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" + - "+/v2/{name=projects/*/locations/*/volume" + - "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" + - "oud.baremetalsolution.v2.UpdateVolumeReq" + - "uest\032\035.google.longrunning.Operation\"u\202\323\344" + - "\223\002<22/v2/{volume.name=projects/*/locatio" + - "ns/*/volumes/*}:\006volume\332A\022volume,update_" + - "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" + - "esizeVolume\0226.google.cloud.baremetalsolu" + - "tion.v2.ResizeVolumeRequest\032\035.google.lon" + - "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" + - "projects/*/locations/*/volumes/*}:resize" + - ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" + - "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" + - "oud.baremetalsolution.v2.ListNetworksReq" + - "uest\0327.google.cloud.baremetalsolution.v2" + - ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" + - "nt=projects/*/locations/*}/networks\332A\006pa" + - "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" + - ".baremetalsolution.v2.ListNetworkUsageRe" + - "quest\032;.google.cloud.baremetalsolution.v" + - "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" + - "{location=projects/*/locations/*}/networ" + - "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" + - "twork\0224.google.cloud.baremetalsolution.v" + - "2.GetNetworkRequest\032*.google.cloud.barem" + - "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" + - "me=projects/*/locations/*/networks/*}\332A\004" + - "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" + - "remetalsolution.v2.UpdateNetworkRequest\032" + - "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" + - "/v2/{network.name=projects/*/locations/*" + - "/networks/*}:\007network\332A\023network,update_m" + - "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" + - "etLun\0220.google.cloud.baremetalsolution.v" + - "2.GetLunRequest\032&.google.cloud.baremetal" + - "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" + - "cts/*/locations/*/volumes/*/luns/*}\332A\004na" + - "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" + - "solution.v2.ListLunsRequest\0323.google.clo" + - "ud.baremetalsolution.v2.ListLunsResponse" + - "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" + - "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" + - "Share\0225.google.cloud.baremetalsolution.v" + - "2.GetNfsShareRequest\032+.google.cloud.bare" + - "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" + - "name=projects/*/locations/*/nfsShares/*}" + - "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" + - ".baremetalsolution.v2.ListNfsSharesReque" + - "st\0328.google.cloud.baremetalsolution.v2.L" + - "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" + - "t=projects/*/locations/*}/nfsShares\332A\006pa" + - "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" + - "aremetalsolution.v2.UpdateNfsShareReques" + - "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" + - "D27/v2/{nfs_share.name=projects/*/locati" + - "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" + - "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" + - "adata\032T\312A baremetalsolution.googleapis.c" + - "om\322A.https://www.googleapis.com/auth/clo" + - "ud-platformB\204\002\n%com.google.cloud.baremet" + - "alsolution.v2B\026BareMetalSolutionProtoP\001Z" + - "Rgoogle.golang.org/genproto/googleapis/c" + - "loud/baremetalsolution/v2;baremetalsolut" + - "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" + - "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" + - "ogle::Cloud::BareMetalSolution::V2b\006prot" + - "o3" - }; - 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java deleted file mode 100644 index 5ac8a36..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface DetachLunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the instance.
-   * 
- * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The instance. - */ - java.lang.String getInstance(); - /** - *
-   * Required. Name of the instance.
-   * 
- * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for instance. - */ - com.google.protobuf.ByteString - getInstanceBytes(); - - /** - *
-   * Required. Name of the Lun to detach.
-   * 
- * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The lun. - */ - java.lang.String getLun(); - /** - *
-   * Required. Name of the Lun to detach.
-   * 
- * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for lun. - */ - com.google.protobuf.ByteString - getLunBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java deleted file mode 100644 index e956437..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java deleted file mode 100644 index d320c48..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/lun.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetLunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java deleted file mode 100644 index 59b3157..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNetworkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java deleted file mode 100644 index f17088b..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/nfs_share.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNfsShareRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java deleted file mode 100644 index ed4c7ee..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetVolumeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java deleted file mode 100644 index 1c4d7e3..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java +++ /dev/null @@ -1,283 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class InstanceProto { - private InstanceProto() {} - 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_baremetalsolution_v2_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/baremetalsolution/v2/inst" + - "ance.proto\022!google.cloud.baremetalsoluti" + - "on.v2\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032+google/cloud/" + - "baremetalsolution/v2/lun.proto\032/google/c" + - "loud/baremetalsolution/v2/network.proto\032" + - " google/protobuf/field_mask.proto\032\037googl" + - "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" + - "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" + - "solution.v2.Instance.State\022\036\n\026hyperthrea" + - "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" + - "gle.cloud.baremetalsolution.v2.Instance." + - "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" + - ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " + - "\003(\0132*.google.cloud.baremetalsolution.v2." + - "Network\022*\n\"interactive_serial_console_en" + - "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" + - "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" + - "baremetalsolution.googleapis.com/ServerN" + - "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" + - "(\01323.google.cloud.baremetalsolution.v2.L" + - "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" + - "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" + - "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" + - "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" + - "+.google.cloud.baremetalsolution.v2.Inst" + - "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + - "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" + - "instance\030\001 \001(\0132+.google.cloud.baremetals" + - "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" + - "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" + - "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + - ")baremetalsolution.googleapis.com/Instan" + - "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" + - "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" + - "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" + - "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" + - "leapis.com/Instance\"\222\001\n\020DetachLunRequest" + - "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" + - "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" + - "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" + - ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" + - "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" + - "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" + - "oogle.cloud.baremetalsolution.v2.ServerN" + - "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" + - "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" + - "2W.google.cloud.baremetalsolution.v2.Ser" + - "verNetworkTemplate.LogicalInterface.Inte" + - "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" + - "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" + - "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" + - "n.googleapis.com/ServerNetworkTemplate\022W" + - "projects/{project}/locations/{location}/" + - "serverNetworkTemplate/{server_network_te" + - "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" + - "InstanceResponseB\373\001\n%com.google.cloud.ba" + - "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/baremetalsolution/v2;baremetalsolution\252" + - "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" + - "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" + - "::Cloud::BareMetalSolution::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, - new java.lang.String[] { "Name", "Id", "CreateTime", "UpdateTime", "MachineType", "State", "HyperthreadingEnabled", "Labels", "Luns", "Networks", "InteractiveSerialConsoleEnabled", "OsImage", "Pod", "NetworkTemplate", "LogicalInterfaces", }); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, - new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, - new java.lang.String[] { "Instance", "UpdateMask", }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, - new java.lang.String[] { "Instance", "Lun", }); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, - new java.lang.String[] { "Name", "ApplicableInstanceTypes", "LogicalInterfaces", }); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, - new java.lang.String[] { "Name", "Type", "Required", }); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java deleted file mode 100644 index e4cb363..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ListNetworkUsageRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Parent value (project and location).
-   * 
- * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The location. - */ - java.lang.String getLocation(); - /** - *
-   * Required. Parent value (project and location).
-   * 
- * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for location. - */ - com.google.protobuf.ByteString - getLocationBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java deleted file mode 100644 index 88b187e..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java +++ /dev/null @@ -1,126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/lun.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class LunProto { - private LunProto() {} - 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_baremetalsolution_v2_Lun_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." + - "proto\022!google.cloud.baremetalsolution.v2" + - "\032\037google/api/field_behavior.proto\032\031googl" + - "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" + - "gle.cloud.baremetalsolution.v2.Lun.State" + - "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" + - "\004 \001(\01628.google.cloud.baremetalsolution.v" + - "2.Lun.MultiprotocolType\022D\n\016storage_volum" + - "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" + - "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" + - "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" + - "e.cloud.baremetalsolution.v2.Lun.Storage" + - "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" + - "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" + - "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" + - "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" + - "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" + - "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" + - "$baremetalsolution.googleapis.com/Lun\022Cp" + - "rojects/{project}/locations/{location}/v" + - "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" + - "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" + - "tion.googleapis.com/Lun\"y\n\017ListLunsReque" + - "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" + - "ution.googleapis.com/Volume\022\021\n\tpage_size" + - "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" + - "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" + - "metalsolution.v2.Lun\022\027\n\017next_page_token\030" + - "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" + - "e.cloud.baremetalsolution.v2B\010LunProtoP\001" + - "ZRgoogle.golang.org/genproto/googleapis/" + - "cloud/baremetalsolution/v2;baremetalsolu" + - "tion\252\002!Google.Cloud.BareMetalSolution.V2" + - "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" + - "oogle::Cloud::BareMetalSolution::V2b\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, - new java.lang.String[] { "Name", "Id", "State", "SizeGb", "MultiprotocolType", "StorageVolume", "Shareable", "BootLun", "StorageType", "Wwid", }); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, - new java.lang.String[] { "Luns", "NextPageToken", "Unreachable", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java deleted file mode 100644 index e830e19..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java +++ /dev/null @@ -1,283 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class NetworkProto { - private NetworkProto() {} - 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_baremetalsolution_v2_Network_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" + - "ork.proto\022!google.cloud.baremetalsolutio" + - "n.v2\032\037google/api/field_behavior.proto\032\031g" + - "oogle/api/resource.proto\032 google/protobu" + - "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" + - " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" + - "ogle.cloud.baremetalsolution.v2.Network." + - "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" + - "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" + - "metalsolution.v2.Network.State\022\017\n\007vlan_i" + - "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" + - "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" + - "bels\030\013 \003(\01326.google.cloud.baremetalsolut" + - "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" + - "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" + - ".cloud.baremetalsolution.v2.NetworkAddre" + - "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" + - "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" + - "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" + - "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" + - "lution.googleapis.com/Network\022:projects/" + - "{project}/locations/{location}/networks/" + - "{network}\"U\n\031NetworkAddressReservation\022\025" + - "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" + - "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" + - "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" + - "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" + - "0.google.cloud.baremetalsolution.v2.VRF." + - "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" + - "ogle.cloud.baremetalsolution.v2.VRF.Vlan" + - "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" + - "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" + - "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " + - "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" + - "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" + - "alInterface\022o\n\032logical_network_interface" + - "s\030\001 \003(\0132K.google.cloud.baremetalsolution" + - ".v2.LogicalInterface.LogicalNetworkInter" + - "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " + - "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" + - "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" + - "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" + - "ogle.cloud.baremetalsolution.v2.Network." + - "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" + - "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" + - "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" + - "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + - ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + - "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" + - "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" + - "(\0132*.google.cloud.baremetalsolution.v2.N" + - "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + - "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" + - "\007network\030\001 \001(\0132*.google.cloud.baremetals" + - "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" + - "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" + - ".baremetalsolution.v2.Network\022\020\n\010used_ip" + - "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" + - "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + - "is.com/Location\"]\n\030ListNetworkUsageRespo" + - "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" + - "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" + - "oogle.cloud.baremetalsolution.v2B\014Networ" + - "kProtoP\001ZRgoogle.golang.org/genproto/goo" + - "gleapis/cloud/baremetalsolution/v2;barem" + - "etalsolution\252\002!Google.Cloud.BareMetalSol" + - "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" + - "n\\V2\352\002$Google::Cloud::BareMetalSolution:" + - ":V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, - new java.lang.String[] { "Name", "Id", "Type", "IpAddress", "MacAddress", "State", "VlanId", "Cidr", "Vrf", "Labels", "ServicesCidr", "Reservations", }); - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, - new java.lang.String[] { "StartAddress", "EndAddress", "Note", }); - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, - new java.lang.String[] { "Name", "State", "QosPolicy", "VlanAttachments", }); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, - new java.lang.String[] { "BandwidthGbps", }); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, - new java.lang.String[] { "PeerVlanId", "PeerIp", "RouterIp", }); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, - new java.lang.String[] { "LogicalNetworkInterfaces", "Name", "InterfaceIndex", }); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, - new java.lang.String[] { "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", }); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, - new java.lang.String[] { "Networks", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, - new java.lang.String[] { "Network", "UpdateMask", }); - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, - new java.lang.String[] { "Network", "UsedIps", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, - new java.lang.String[] { "Location", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, - new java.lang.String[] { "Networks", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java deleted file mode 100644 index ba39d39..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java +++ /dev/null @@ -1,171 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/nfs_share.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class NfsShareProto { - private NfsShareProto() {} - 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_baremetalsolution_v2_NfsShare_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/baremetalsolution/v2/nfs_" + - "share.proto\022!google.cloud.baremetalsolut" + - "ion.v2\032\037google/api/field_behavior.proto\032" + - "\031google/api/resource.proto\032 google/proto" + - "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" + - "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" + - "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" + - "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" + - "\tB,\372A)\n\'baremetalsolution.googleapis.com" + - "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" + - "e.cloud.baremetalsolution.v2.NfsShare.Al" + - "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" + - "ud.baremetalsolution.v2.NfsShare.LabelsE" + - "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" + - "-\372A*\n(baremetalsolution.googleapis.com/N" + - "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" + - "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" + - "\0162<.google.cloud.baremetalsolution.v2.Nf" + - "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" + - "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" + - "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" + - "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" + - "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" + - "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" + - "olution.googleapis.com/NFSShare\022=project" + - "s/{project}/locations/{location}/nfsShar" + - "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" + - "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" + - "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" + - "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + - "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + - " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" + - "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" + - "\030\001 \003(\0132+.google.cloud.baremetalsolution." + - "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + - "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" + - "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" + - "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" + - "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + - "kB\373\001\n%com.google.cloud.baremetalsolution" + - ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" + - "genproto/googleapis/cloud/baremetalsolut" + - "ion/v2;baremetalsolution\252\002!Google.Cloud." + - "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" + - "MetalSolution\\V2\352\002$Google::Cloud::BareMe" + - "talSolution::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, - new java.lang.String[] { "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, - new java.lang.String[] { "Network", "ShareIp", "AllowedClientsCidr", "MountPermissions", "AllowDev", "AllowSuid", "NoRootSquash", }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, - new java.lang.String[] { "NfsShares", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, - new java.lang.String[] { "NfsShare", "UpdateMask", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java deleted file mode 100644 index 6068d11..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java deleted file mode 100644 index f9e4cd0..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java deleted file mode 100644 index 2fc28ec..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResizeVolumeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Volume to resize.
-   * 
- * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The volume. - */ - java.lang.String getVolume(); - /** - *
-   * Required. Volume to resize.
-   * 
- * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for volume. - */ - com.google.protobuf.ByteString - getVolumeBytes(); - - /** - *
-   * New Volume size, in GiB.
-   * 
- * - * int64 size_gib = 2; - * @return The sizeGib. - */ - long getSizeGib(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java deleted file mode 100644 index 51f49d0..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StartInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java deleted file mode 100644 index d1a3887..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StartInstanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java deleted file mode 100644 index ba9234c..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StopInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java deleted file mode 100644 index cc35d1f..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StopInstanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java deleted file mode 100644 index 417c220..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java +++ /dev/null @@ -1,192 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class VolumeProto { - private VolumeProto() {} - 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_baremetalsolution_v2_Volume_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" + - "me.proto\022!google.cloud.baremetalsolution" + - ".v2\032\037google/api/field_behavior.proto\032\031go" + - "ogle/api/resource.proto\032 google/protobuf" + - "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" + - "\01625.google.cloud.baremetalsolution.v2.Vo" + - "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" + - ".cloud.baremetalsolution.v2.Volume.State" + - "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" + - "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" + - "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" + - "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" + - "tion_detail\030\010 \001(\0132C.google.cloud.baremet" + - "alsolution.v2.Volume.SnapshotReservation" + - "Detail\022k\n\035snapshot_auto_delete_behavior\030" + - "\t \001(\0162D.google.cloud.baremetalsolution.v" + - "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" + - "abels\030\014 \003(\01325.google.cloud.baremetalsolu" + - "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" + - "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" + - "hotReservationDetail\022\032\n\022reserved_space_g" + - "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" + - "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " + - "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" + - "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" + - "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" + - "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" + - "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" + - "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" + - "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" + - "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" + - "olution.googleapis.com/Volume\0228projects/" + - "{project}/locations/{location}/volumes/{" + - "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" + - "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." + - "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" + - "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + - "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + - "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" + - "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" + - "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" + - "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" + - "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" + - "oogle.cloud.baremetalsolution.v2.VolumeB" + - "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + - "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" + - "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." + - "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" + - "\371\001\n%com.google.cloud.baremetalsolution.v" + - "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" + - "roto/googleapis/cloud/baremetalsolution/" + - "v2;baremetalsolution\252\002!Google.Cloud.Bare" + - "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" + - "lSolution\\V2\352\002$Google::Cloud::BareMetalS" + - "olution::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, - new java.lang.String[] { "Name", "Id", "StorageType", "State", "RequestedSizeGib", "CurrentSizeGib", "EmergencySizeGib", "AutoGrownSizeGib", "RemainingSpaceGib", "SnapshotReservationDetail", "SnapshotAutoDeleteBehavior", "Labels", "SnapshotEnabled", "Pod", }); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, - new java.lang.String[] { "ReservedSpaceGib", "ReservedSpaceUsedPercent", "ReservedSpaceRemainingGib", "ReservedSpacePercent", }); - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, - new java.lang.String[] { "Volumes", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, - new java.lang.String[] { "Volume", "UpdateMask", }); - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, - new java.lang.String[] { "Volume", "SizeGib", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java new file mode 100644 index 0000000..679c482 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java @@ -0,0 +1,238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class BareMetalSolutionProto { + private BareMetalSolutionProto() {} + + 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_baremetalsolution_v2_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/baremetalsolution/v2/bare" + + "metalsolution.proto\022!google.cloud.bareme" + + "talsolution.v2\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\0320google/cloud/bar" + + "emetalsolution/v2/instance.proto\032+google" + + "/cloud/baremetalsolution/v2/lun.proto\032/g" + + "oogle/cloud/baremetalsolution/v2/network" + + ".proto\0321google/cloud/baremetalsolution/v" + + "2/nfs_share.proto\032.google/cloud/baremeta" + + "lsolution/v2/volume.proto\032#google/longru" + + "nning/operations.proto\032\037google/protobuf/" + + "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" + + "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " + + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" + + "setInstanceResponse2\335 \n\021BareMetalSolutio" + + "n\022\302\001\n\rListInstances\0227.google.cloud.barem" + + "etalsolution.v2.ListInstancesRequest\0328.g" + + "oogle.cloud.baremetalsolution.v2.ListIns" + + "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" + + "ects/*/locations/*}/instances\332A\006parent\022\257" + + "\001\n\013GetInstance\0225.google.cloud.baremetals" + + "olution.v2.GetInstanceRequest\032+.google.c" + + "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" + + "\002/\022-/v2/{name=projects/*/locations/*/ins" + + "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" + + "ogle.cloud.baremetalsolution.v2.UpdateIn" + + "stanceRequest\032\035.google.longrunning.Opera" + + "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" + + "s/*/locations/*/instances/*}:\010instance\332A" + + "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" + + "ationMetadata\022\333\001\n\rResetInstance\0227.google" + + ".cloud.baremetalsolution.v2.ResetInstanc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" + + "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" + + "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" + + "StartInstance\0227.google.cloud.baremetalso" + + "lution.v2.StartInstanceRequest\032\035.google." + + "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" + + "=projects/*/locations/*/instances/*}:sta" + + "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" + + "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" + + "gle.cloud.baremetalsolution.v2.StopInsta" + + "nceRequest\032\035.google.longrunning.Operatio" + + "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" + + "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" + + "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" + + "DetachLun\0223.google.cloud.baremetalsoluti" + + "on.v2.DetachLunRequest\032\035.google.longrunn" + + "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" + + "jects/*/locations/*/instances/*}:detachL" + + "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" + + "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" + + "oud.baremetalsolution.v2.ListVolumesRequ" + + "est\0326.google.cloud.baremetalsolution.v2." + + "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" + + "=projects/*/locations/*}/volumes\332A\006paren" + + "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" + + "solution.v2.GetVolumeRequest\032).google.cl" + + "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" + + "+/v2/{name=projects/*/locations/*/volume" + + "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" + + "oud.baremetalsolution.v2.UpdateVolumeReq" + + "uest\032\035.google.longrunning.Operation\"u\202\323\344" + + "\223\002<22/v2/{volume.name=projects/*/locatio" + + "ns/*/volumes/*}:\006volume\332A\022volume,update_" + + "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" + + "esizeVolume\0226.google.cloud.baremetalsolu" + + "tion.v2.ResizeVolumeRequest\032\035.google.lon" + + "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" + + "projects/*/locations/*/volumes/*}:resize" + + ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" + + "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" + + "oud.baremetalsolution.v2.ListNetworksReq" + + "uest\0327.google.cloud.baremetalsolution.v2" + + ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" + + "nt=projects/*/locations/*}/networks\332A\006pa" + + "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" + + ".baremetalsolution.v2.ListNetworkUsageRe" + + "quest\032;.google.cloud.baremetalsolution.v" + + "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" + + "{location=projects/*/locations/*}/networ" + + "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" + + "twork\0224.google.cloud.baremetalsolution.v" + + "2.GetNetworkRequest\032*.google.cloud.barem" + + "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" + + "me=projects/*/locations/*/networks/*}\332A\004" + + "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" + + "remetalsolution.v2.UpdateNetworkRequest\032" + + "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" + + "/v2/{network.name=projects/*/locations/*" + + "/networks/*}:\007network\332A\023network,update_m" + + "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" + + "etLun\0220.google.cloud.baremetalsolution.v" + + "2.GetLunRequest\032&.google.cloud.baremetal" + + "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" + + "cts/*/locations/*/volumes/*/luns/*}\332A\004na" + + "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" + + "solution.v2.ListLunsRequest\0323.google.clo" + + "ud.baremetalsolution.v2.ListLunsResponse" + + "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" + + "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" + + "Share\0225.google.cloud.baremetalsolution.v" + + "2.GetNfsShareRequest\032+.google.cloud.bare" + + "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" + + "name=projects/*/locations/*/nfsShares/*}" + + "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" + + ".baremetalsolution.v2.ListNfsSharesReque" + + "st\0328.google.cloud.baremetalsolution.v2.L" + + "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" + + "t=projects/*/locations/*}/nfsShares\332A\006pa" + + "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" + + "aremetalsolution.v2.UpdateNfsShareReques" + + "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" + + "D27/v2/{nfs_share.name=projects/*/locati" + + "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" + + "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" + + "adata\032T\312A baremetalsolution.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\204\002\n%com.google.cloud.baremet" + + "alsolution.v2B\026BareMetalSolutionProtoP\001Z" + + "Rgoogle.golang.org/genproto/googleapis/c" + + "loud/baremetalsolution/v2;baremetalsolut" + + "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" + + "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" + + "ogle::Cloud::BareMetalSolution::V2b\006prot" + + "o3" + }; + 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java index 6074780..ec51b3a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for detach specific LUN from an Instance.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} */ -public final class DetachLunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetachLunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) DetachLunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetachLunRequest.newBuilder() to construct. private DetachLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetachLunRequest() { instance_ = ""; lun_ = ""; @@ -26,16 +44,15 @@ private DetachLunRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetachLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetachLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DetachLunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - instance_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + instance_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - lun_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + lun_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,41 @@ private DetachLunRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private volatile java.lang.Object instance_; /** + * + * *
    * Required. Name of the instance.
    * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The instance. */ @java.lang.Override @@ -116,29 +142,31 @@ public java.lang.String getInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; } } /** + * + * *
    * Required. Name of the instance.
    * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for instance. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceBytes() { + public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instance_ = b; return b; } else { @@ -149,11 +177,16 @@ public java.lang.String getInstance() { public static final int LUN_FIELD_NUMBER = 2; private volatile java.lang.Object lun_; /** + * + * *
    * Required. Name of the Lun to detach.
    * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The lun. */ @java.lang.Override @@ -162,29 +195,31 @@ public java.lang.String getLun() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lun_ = s; return s; } } /** + * + * *
    * Required. Name of the Lun to detach.
    * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for lun. */ @java.lang.Override - public com.google.protobuf.ByteString - getLunBytes() { + public com.google.protobuf.ByteString getLunBytes() { java.lang.Object ref = lun_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lun_ = b; return b; } else { @@ -193,6 +228,7 @@ public java.lang.String getLun() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,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(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); } @@ -235,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.baremetalsolution.v2.DetachLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.DetachLunRequest other = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; + com.google.cloud.baremetalsolution.v2.DetachLunRequest other = + (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; - if (!getInstance() - .equals(other.getInstance())) return false; - if (!getLun() - .equals(other.getLun())) return false; + if (!getInstance().equals(other.getInstance())) return false; + if (!getLun().equals(other.getLun())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for detach specific LUN from an Instance.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) com.google.cloud.baremetalsolution.v2.DetachLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.DetachLunRequest.newBuilder() @@ -385,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override @@ -427,7 +470,8 @@ public com.google.cloud.baremetalsolution.v2.DetachLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.DetachLunRequest result = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); + com.google.cloud.baremetalsolution.v2.DetachLunRequest result = + new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); result.instance_ = instance_; result.lun_ = lun_; onBuilt(); @@ -438,38 +482,39 @@ public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.DetachLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest) other); } else { super.mergeFrom(other); return this; @@ -477,7 +522,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.DetachLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) + return this; if (!other.getInstance().isEmpty()) { instance_ = other.instance_; onChanged(); @@ -505,7 +551,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,18 +564,22 @@ public Builder mergeFrom( private java.lang.Object instance_ = ""; /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The instance. */ public java.lang.String getInstance() { java.lang.Object ref = instance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; @@ -537,20 +588,23 @@ public java.lang.String getInstance() { } } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for instance. */ - public com.google.protobuf.ByteString - getInstanceBytes() { + public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instance_ = b; return b; } else { @@ -558,54 +612,67 @@ public java.lang.String getInstance() { } } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The instance to set. * @return This builder for chaining. */ - public Builder setInstance( - java.lang.String value) { + public Builder setInstance(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instance_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearInstance() { - + instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for instance to set. * @return This builder for chaining. */ - public Builder setInstanceBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; onChanged(); return this; @@ -613,18 +680,22 @@ public Builder setInstanceBytes( private java.lang.Object lun_ = ""; /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The lun. */ public java.lang.String getLun() { java.lang.Object ref = lun_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lun_ = s; return s; @@ -633,20 +704,23 @@ public java.lang.String getLun() { } } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for lun. */ - public com.google.protobuf.ByteString - getLunBytes() { + public com.google.protobuf.ByteString getLunBytes() { java.lang.Object ref = lun_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lun_ = b; return b; } else { @@ -654,61 +728,74 @@ public java.lang.String getLun() { } } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The lun to set. * @return This builder for chaining. */ - public Builder setLun( - java.lang.String value) { + public Builder setLun(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lun_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLun() { - + lun_ = getDefaultInstance().getLun(); onChanged(); return this; } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for lun to set. * @return This builder for chaining. */ - public Builder setLunBytes( - com.google.protobuf.ByteString value) { + public Builder setLunBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lun_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) private static final com.google.cloud.baremetalsolution.v2.DetachLunRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(); } @@ -732,16 +819,16 @@ public static com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetachLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetachLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetachLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetachLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +843,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java new file mode 100644 index 0000000..75fbf25 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java @@ -0,0 +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/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface DetachLunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the instance.
+   * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + /** + * + * + *
+   * Required. Name of the instance.
+   * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The lun. + */ + java.lang.String getLun(); + /** + * + * + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for lun. + */ + com.google.protobuf.ByteString getLunBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java index 03dcb9d..5990f0f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting server information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ -public final class GetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) GetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetInstanceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting server information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) com.google.cloud.baremetalsolution.v2.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..cc92dbb --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java index 32ab528..4f0939b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting storage lun information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ -public final class GetLunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetLunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetLunRequest) GetLunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetLunRequest.newBuilder() to construct. private GetLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetLunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetLunRequest( 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,34 +91,41 @@ private GetLunRequest( } 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.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetLunRequest other = (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; + com.google.cloud.baremetalsolution.v2.GetLunRequest other = + (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,126 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting storage lun information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetLunRequest) com.google.cloud.baremetalsolution.v2.GetLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetLunRequest.newBuilder() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override @@ -362,7 +397,8 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetLunRequest result = new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); + com.google.cloud.baremetalsolution.v2.GetLunRequest result = + new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +473,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +486,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +510,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +534,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetLunRequest) private static final com.google.cloud.baremetalsolution.v2.GetLunRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetLunRequest(); } @@ -566,16 +625,16 @@ public static com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java new file mode 100644 index 0000000..9f97c73 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetLunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java index 8b4f73a..c7048ac 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting network information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ -public final class GetNetworkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) GetNetworkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNetworkRequest.newBuilder() to construct. private GetNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNetworkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetNetworkRequest( 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,34 +91,41 @@ private GetNetworkRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = + (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting network information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) com.google.cloud.baremetalsolution.v2.GetNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNetworkRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = + new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) private static final com.google.cloud.baremetalsolution.v2.GetNetworkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNetworkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNetworkRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNetworkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNetworkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java new file mode 100644 index 0000000..c619b65 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNetworkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java index 888e6a6..30fffbf 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting NFS share information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} */ -public final class GetNfsShareRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNfsShareRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) GetNfsShareRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNfsShareRequest.newBuilder() to construct. private GetNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNfsShareRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNfsShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetNfsShareRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetNfsShareRequest( 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,34 +91,41 @@ private GetNfsShareRequest( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = + (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting NFS share information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) com.google.cloud.baremetalsolution.v2.GetNfsShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = + new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) private static final com.google.cloud.baremetalsolution.v2.GetNfsShareRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNfsShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNfsShareRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNfsShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNfsShareRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java new file mode 100644 index 0000000..072571e --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNfsShareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java index 01d7345..1a670e5 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting storage volume information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ -public final class GetVolumeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetVolumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) GetVolumeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetVolumeRequest.newBuilder() to construct. private GetVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetVolumeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetVolumeRequest( 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,34 +91,41 @@ private GetVolumeRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = + (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting storage volume information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) com.google.cloud.baremetalsolution.v2.GetVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetVolumeRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = + new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.GetVolumeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java new file mode 100644 index 0000000..9830fba --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetVolumeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java index 293d61c..66c8eeb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} */ -public final class Instance extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Instance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Instance) InstanceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Instance() { name_ = ""; id_ = ""; @@ -34,16 +52,15 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Instance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -63,131 +80,152 @@ private Instance( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 48: { + machineType_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); - hyperthreadingEnabled_ = input.readBool(); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + state_ = rawValue; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 48: + { + hyperthreadingEnabled_ = input.readBool(); + break; } - luns_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - networks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - networks_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; - } - case 80: { - - interactiveSerialConsoleEnabled_ = input.readBool(); - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); + case 66: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + luns_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + networks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + networks_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; + } + case 80: + { + interactiveSerialConsoleEnabled_ = input.readBool(); + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - osImage_ = s; - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); + osImage_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; - } - case 114: { - java.lang.String s = input.readStringRequireUtf8(); + pod_ = s; + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); - networkTemplate_ = s; - break; - } - case 122: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + networkTemplate_ = s; + break; } - logicalInterfaces_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 122: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + logicalInterfaces_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.LogicalInterface>(); + mutable_bitField0_ |= 0x00000008; + } + logicalInterfaces_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -195,8 +233,7 @@ private Instance( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -211,41 +248,46 @@ private Instance( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + com.google.cloud.baremetalsolution.v2.Instance.class, + com.google.cloud.baremetalsolution.v2.Instance.Builder.class); } /** + * + * *
    * The possible states for this server.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The server is in an unknown state.
      * 
@@ -254,6 +296,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The server is being provisioned.
      * 
@@ -262,6 +306,8 @@ public enum State */ PROVISIONING(1), /** + * + * *
      * The server is running.
      * 
@@ -270,6 +316,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The server has been deleted.
      * 
@@ -281,6 +329,8 @@ public enum State ; /** + * + * *
      * The server is in an unknown state.
      * 
@@ -289,6 +339,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The server is being provisioned.
      * 
@@ -297,6 +349,8 @@ public enum State */ public static final int PROVISIONING_VALUE = 1; /** + * + * *
      * The server is running.
      * 
@@ -305,6 +359,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The server has been deleted.
      * 
@@ -313,7 +369,6 @@ public enum State */ public static final int DELETED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -338,50 +393,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONING; - case 2: return RUNNING; - case 3: return DELETED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return RUNNING; + case 3: + return DELETED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Instance.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -401,6 +457,8 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -410,6 +468,7 @@ private State(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -418,14 +477,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; } } /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -435,16 +495,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -455,11 +514,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 11; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ @java.lang.Override @@ -468,29 +530,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; } } /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @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 { @@ -501,11 +563,15 @@ public java.lang.String getId() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -513,11 +579,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -525,11 +595,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -539,11 +612,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -551,11 +628,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -563,11 +644,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -577,6 +661,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MACHINE_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object machineType_; /** + * + * *
    * The server type.
    * [Available server
@@ -584,6 +670,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string machine_type = 4; + * * @return The machineType. */ @java.lang.Override @@ -592,14 +679,15 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** + * + * *
    * The server type.
    * [Available server
@@ -607,16 +695,15 @@ public java.lang.String getMachineType() {
    * 
* * string machine_type = 4; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -627,39 +714,53 @@ public java.lang.String getMachineType() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Instance.State result = + com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED + : result; } public static final int HYPERTHREADING_ENABLED_FIELD_NUMBER = 6; private boolean hyperthreadingEnabled_; /** + * + * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; + * * @return The hyperthreadingEnabled. */ @java.lang.Override @@ -668,24 +769,23 @@ public boolean getHyperthreadingEnabled() { } public static final int LABELS_FIELD_NUMBER = 7; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -694,28 +794,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -723,11 +825,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 7; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -735,16 +838,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -752,12 +855,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 7; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -767,6 +869,8 @@ public java.lang.String getLabelsOrThrow( public static final int LUNS_FIELD_NUMBER = 8; private java.util.List luns_; /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -778,6 +882,8 @@ public java.util.List getLunsList() { return luns_; } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -785,11 +891,13 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -801,6 +909,8 @@ public int getLunsCount() { return luns_.size(); } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -812,6 +922,8 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -819,14 +931,15 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { return luns_.get(index); } public static final int NETWORKS_FIELD_NUMBER = 9; private java.util.List networks_; /** + * + * *
    * List of networks associated with this server.
    * 
@@ -838,6 +951,8 @@ public java.util.List getNetworks return networks_; } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -845,11 +960,13 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -861,6 +978,8 @@ public int getNetworksCount() { return networks_.size(); } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -872,6 +991,8 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -879,14 +1000,15 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { return networks_.get(index); } public static final int INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER = 10; private boolean interactiveSerialConsoleEnabled_; /** + * + * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -894,6 +1016,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild
    * 
* * bool interactive_serial_console_enabled = 10; + * * @return The interactiveSerialConsoleEnabled. */ @java.lang.Override @@ -904,11 +1027,14 @@ public boolean getInteractiveSerialConsoleEnabled() { public static final int OS_IMAGE_FIELD_NUMBER = 12; private volatile java.lang.Object osImage_; /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The osImage. */ @java.lang.Override @@ -917,29 +1043,29 @@ public java.lang.String getOsImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osImage_ = s; return s; } } /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The bytes for osImage. */ @java.lang.Override - public com.google.protobuf.ByteString - getOsImageBytes() { + public com.google.protobuf.ByteString getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); osImage_ = b; return b; } else { @@ -950,6 +1076,8 @@ public java.lang.String getOsImage() { public static final int POD_FIELD_NUMBER = 13; private volatile java.lang.Object pod_; /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -958,6 +1086,7 @@ public java.lang.String getOsImage() {
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ @java.lang.Override @@ -966,14 +1095,15 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -982,16 +1112,15 @@ public java.lang.String getPod() {
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -1002,6 +1131,8 @@ public java.lang.String getPod() { public static final int NETWORK_TEMPLATE_FIELD_NUMBER = 14; private volatile java.lang.Object networkTemplate_; /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -1009,6 +1140,7 @@ public java.lang.String getPod() {
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The networkTemplate. */ @java.lang.Override @@ -1017,14 +1149,15 @@ public java.lang.String getNetworkTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkTemplate_ = s; return s; } } /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -1032,16 +1165,15 @@ public java.lang.String getNetworkTemplate() {
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for networkTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkTemplateBytes() { + public com.google.protobuf.ByteString getNetworkTemplateBytes() { java.lang.Object ref = networkTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkTemplate_ = b; return b; } else { @@ -1052,6 +1184,8 @@ public java.lang.String getNetworkTemplate() { public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 15; private java.util.List logicalInterfaces_; /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1062,13 +1196,17 @@ public java.lang.String getNetworkTemplate() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override - public java.util.List getLogicalInterfacesList() { + public java.util.List + getLogicalInterfacesList() { return logicalInterfaces_; } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1079,14 +1217,17 @@ public java.util.List ge
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override - public java.util.List + public java.util.List getLogicalInterfacesOrBuilderList() { return logicalInterfaces_; } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1097,13 +1238,16 @@ public java.util.List ge
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override public int getLogicalInterfacesCount() { return logicalInterfaces_.size(); } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1114,13 +1258,16 @@ public int getLogicalInterfacesCount() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { return logicalInterfaces_.get(index); } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1131,15 +1278,17 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { return logicalInterfaces_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1151,8 +1300,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1165,18 +1313,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (hyperthreadingEnabled_ != false) { output.writeBool(6, hyperthreadingEnabled_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); for (int i = 0; i < luns_.size(); i++) { output.writeMessage(8, luns_.get(i)); } @@ -1214,45 +1359,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (hyperthreadingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, hyperthreadingEnabled_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, labels__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, hyperthreadingEnabled_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); } for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, luns_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, networks_.get(i)); } if (interactiveSerialConsoleEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, interactiveSerialConsoleEnabled_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 10, interactiveSerialConsoleEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); @@ -1267,8 +1408,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, networkTemplate_); } for (int i = 0; i < logicalInterfaces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, logicalInterfaces_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, logicalInterfaces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1278,48 +1419,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Instance)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Instance other = (com.google.cloud.baremetalsolution.v2.Instance) obj; + com.google.cloud.baremetalsolution.v2.Instance other = + (com.google.cloud.baremetalsolution.v2.Instance) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getMachineType() - .equals(other.getMachineType())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (state_ != other.state_) return false; - if (getHyperthreadingEnabled() - != other.getHyperthreadingEnabled()) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getLunsList() - .equals(other.getLunsList())) return false; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; - if (getInteractiveSerialConsoleEnabled() - != other.getInteractiveSerialConsoleEnabled()) return false; - if (!getOsImage() - .equals(other.getOsImage())) return false; - if (!getPod() - .equals(other.getPod())) return false; - if (!getNetworkTemplate() - .equals(other.getNetworkTemplate())) return false; - if (!getLogicalInterfacesList() - .equals(other.getLogicalInterfacesList())) return false; + if (getHyperthreadingEnabled() != other.getHyperthreadingEnabled()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getLunsList().equals(other.getLunsList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; + if (getInteractiveSerialConsoleEnabled() != other.getInteractiveSerialConsoleEnabled()) + return false; + if (!getOsImage().equals(other.getOsImage())) return false; + if (!getPod().equals(other.getPod())) return false; + if (!getNetworkTemplate().equals(other.getNetworkTemplate())) return false; + if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1348,8 +1477,7 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + HYPERTHREADING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHyperthreadingEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHyperthreadingEnabled()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -1363,8 +1491,9 @@ public int hashCode() { hash = (53 * hash) + getNetworksList().hashCode(); } hash = (37 * hash) + INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInteractiveSerialConsoleEnabled()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getInteractiveSerialConsoleEnabled()); hash = (37 * hash) + OS_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getOsImage().hashCode(); hash = (37 * hash) + POD_FIELD_NUMBER; @@ -1380,140 +1509,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Instance) com.google.cloud.baremetalsolution.v2.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 7: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + com.google.cloud.baremetalsolution.v2.Instance.class, + com.google.cloud.baremetalsolution.v2.Instance.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Instance.newBuilder() @@ -1521,19 +1657,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLunsFieldBuilder(); getNetworksFieldBuilder(); getLogicalInterfacesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1590,9 +1726,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @java.lang.Override @@ -1611,7 +1747,8 @@ public com.google.cloud.baremetalsolution.v2.Instance build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { - com.google.cloud.baremetalsolution.v2.Instance result = new com.google.cloud.baremetalsolution.v2.Instance(this); + com.google.cloud.baremetalsolution.v2.Instance result = + new com.google.cloud.baremetalsolution.v2.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -1669,38 +1806,39 @@ public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Instance) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance) other); } else { super.mergeFrom(other); return this; @@ -1733,8 +1871,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { if (other.getHyperthreadingEnabled() != false) { setHyperthreadingEnabled(other.getHyperthreadingEnabled()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -1753,9 +1890,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000002); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLunsFieldBuilder() : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLunsFieldBuilder() + : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -1779,9 +1917,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -1820,9 +1959,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { logicalInterfacesBuilder_ = null; logicalInterfaces_ = other.logicalInterfaces_; bitField0_ = (bitField0_ & ~0x00000008); - logicalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogicalInterfacesFieldBuilder() : null; + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogicalInterfacesFieldBuilder() + : null; } else { logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); } @@ -1856,10 +1996,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1869,13 +2012,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1884,6 +2027,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1893,15 +2038,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1909,6 +2053,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1918,20 +2064,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1941,15 +2089,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1959,16 +2110,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1976,18 +2127,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -1996,20 +2149,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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 { @@ -2017,54 +2171,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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; } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -2072,39 +2233,58 @@ public Builder setIdBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2120,14 +2300,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2138,17 +2321,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2160,11 +2347,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2178,48 +2369,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2227,39 +2434,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2275,14 +2501,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2293,17 +2522,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2315,11 +2548,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2333,48 +2570,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2382,6 +2635,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object machineType_ = ""; /** + * + * *
      * The server type.
      * [Available server
@@ -2389,13 +2644,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string machine_type = 4; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -2404,6 +2659,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * The server type.
      * [Available server
@@ -2411,15 +2668,14 @@ public java.lang.String getMachineType() {
      * 
* * string machine_type = 4; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -2427,6 +2683,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * The server type.
      * [Available server
@@ -2434,20 +2692,22 @@ public java.lang.String getMachineType() {
      * 
* * string machine_type = 4; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * The server type.
      * [Available server
@@ -2455,15 +2715,18 @@ public Builder setMachineType(
      * 
* * string machine_type = 4; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * The server type.
      * [Available server
@@ -2471,16 +2734,16 @@ public Builder clearMachineType() {
      * 
* * string machine_type = 4; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; @@ -2488,51 +2751,67 @@ public Builder setMachineTypeBytes( private int state_ = 0; /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Instance.State result = + com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2540,34 +2819,40 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Instance.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private boolean hyperthreadingEnabled_ ; + private boolean hyperthreadingEnabled_; /** + * + * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; + * * @return The hyperthreadingEnabled. */ @java.lang.Override @@ -2575,53 +2860,58 @@ public boolean getHyperthreadingEnabled() { return hyperthreadingEnabled_; } /** + * + * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; + * * @param value The hyperthreadingEnabled to set. * @return This builder for chaining. */ public Builder setHyperthreadingEnabled(boolean value) { - + hyperthreadingEnabled_ = value; onChanged(); return this; } /** + * + * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; + * * @return This builder for chaining. */ public Builder clearHyperthreadingEnabled() { - + hyperthreadingEnabled_ = false; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2633,28 +2923,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2662,11 +2954,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 7; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2674,16 +2967,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2691,12 +2985,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 7; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2704,80 +2997,83 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.util.List luns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> + lunsBuilder_; /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2792,6 +3088,8 @@ public java.util.List getLunsList() { } } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2806,6 +3104,8 @@ public int getLunsCount() { } } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2820,14 +3120,15 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder setLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2841,6 +3142,8 @@ public Builder setLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2859,6 +3162,8 @@ public Builder setLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2879,14 +3184,15 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder addLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2900,14 +3206,15 @@ public Builder addLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder addLuns( - com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -2918,6 +3225,8 @@ public Builder addLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2936,6 +3245,8 @@ public Builder addLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2946,8 +3257,7 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -2955,6 +3265,8 @@ public Builder addAllLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2972,6 +3284,8 @@ public Builder clearLuns() { return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2989,39 +3303,44 @@ public Builder removeLuns(int index) { return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { return getLunsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { if (lunsBuilder_ == null) { - return luns_.get(index); } else { + return luns_.get(index); + } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -3029,6 +3348,8 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( } } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -3036,60 +3357,72 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( - int index) { - return getLunsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { + return getLunsFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public java.util.List - getLunsBuilderList() { + public java.util.List getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + lunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); luns_ = null; } return lunsBuilder_; } private java.util.List networks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - networks_ = new java.util.ArrayList(networks_); + networks_ = + new java.util.ArrayList(networks_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networksBuilder_; /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3104,6 +3437,8 @@ public java.util.List getNetworks } } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3118,6 +3453,8 @@ public int getNetworksCount() { } } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3132,14 +3469,15 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public Builder setNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3153,6 +3491,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3171,6 +3511,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3191,14 +3533,15 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public Builder addNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3212,6 +3555,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3230,6 +3575,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3248,6 +3595,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3258,8 +3607,7 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -3267,6 +3615,8 @@ public Builder addAllNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3284,6 +3634,8 @@ public Builder clearNetworks() { return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3301,39 +3653,44 @@ public Builder removeNetworks(int index) { return this; } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { return getNetworksFieldBuilder().getBuilder(index); } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { if (networksBuilder_ == null) { - return networks_.get(index); } else { + return networks_.get(index); + } else { return networksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -3341,6 +3698,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3348,49 +3707,57 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( - int index) { - return getNetworksFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { + return getNetworksFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + networksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); networks_ = null; } return networksBuilder_; } - private boolean interactiveSerialConsoleEnabled_ ; + private boolean interactiveSerialConsoleEnabled_; /** + * + * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3398,6 +3765,7 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(
      * 
* * bool interactive_serial_console_enabled = 10; + * * @return The interactiveSerialConsoleEnabled. */ @java.lang.Override @@ -3405,6 +3773,8 @@ public boolean getInteractiveSerialConsoleEnabled() { return interactiveSerialConsoleEnabled_; } /** + * + * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3412,16 +3782,19 @@ public boolean getInteractiveSerialConsoleEnabled() {
      * 
* * bool interactive_serial_console_enabled = 10; + * * @param value The interactiveSerialConsoleEnabled to set. * @return This builder for chaining. */ public Builder setInteractiveSerialConsoleEnabled(boolean value) { - + interactiveSerialConsoleEnabled_ = value; onChanged(); return this; } /** + * + * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3429,10 +3802,11 @@ public Builder setInteractiveSerialConsoleEnabled(boolean value) {
      * 
* * bool interactive_serial_console_enabled = 10; + * * @return This builder for chaining. */ public Builder clearInteractiveSerialConsoleEnabled() { - + interactiveSerialConsoleEnabled_ = false; onChanged(); return this; @@ -3440,18 +3814,20 @@ public Builder clearInteractiveSerialConsoleEnabled() { private java.lang.Object osImage_ = ""; /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @return The osImage. */ public java.lang.String getOsImage() { java.lang.Object ref = osImage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osImage_ = s; return s; @@ -3460,20 +3836,21 @@ public java.lang.String getOsImage() { } } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @return The bytes for osImage. */ - public com.google.protobuf.ByteString - getOsImageBytes() { + public com.google.protobuf.ByteString getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); osImage_ = b; return b; } else { @@ -3481,54 +3858,61 @@ public java.lang.String getOsImage() { } } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @param value The osImage to set. * @return This builder for chaining. */ - public Builder setOsImage( - java.lang.String value) { + public Builder setOsImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + osImage_ = value; onChanged(); return this; } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @return This builder for chaining. */ public Builder clearOsImage() { - + osImage_ = getDefaultInstance().getOsImage(); onChanged(); return this; } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @param value The bytes for osImage to set. * @return This builder for chaining. */ - public Builder setOsImageBytes( - com.google.protobuf.ByteString value) { + public Builder setOsImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + osImage_ = value; onChanged(); return this; @@ -3536,6 +3920,8 @@ public Builder setOsImageBytes( private java.lang.Object pod_ = ""; /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3544,13 +3930,13 @@ public Builder setOsImageBytes(
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -3559,6 +3945,8 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3567,15 +3955,14 @@ public java.lang.String getPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -3583,6 +3970,8 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3591,20 +3980,22 @@ public java.lang.String getPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod( - java.lang.String value) { + public Builder setPod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3613,15 +4004,18 @@ public Builder setPod(
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3630,16 +4024,16 @@ public Builder clearPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes( - com.google.protobuf.ByteString value) { + public Builder setPodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = value; onChanged(); return this; @@ -3647,6 +4041,8 @@ public Builder setPodBytes( private java.lang.Object networkTemplate_ = ""; /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3654,13 +4050,13 @@ public Builder setPodBytes(
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The networkTemplate. */ public java.lang.String getNetworkTemplate() { java.lang.Object ref = networkTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkTemplate_ = s; return s; @@ -3669,6 +4065,8 @@ public java.lang.String getNetworkTemplate() { } } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3676,15 +4074,14 @@ public java.lang.String getNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for networkTemplate. */ - public com.google.protobuf.ByteString - getNetworkTemplateBytes() { + public com.google.protobuf.ByteString getNetworkTemplateBytes() { java.lang.Object ref = networkTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkTemplate_ = b; return b; } else { @@ -3692,6 +4089,8 @@ public java.lang.String getNetworkTemplate() { } } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3699,20 +4098,22 @@ public java.lang.String getNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @param value The networkTemplate to set. * @return This builder for chaining. */ - public Builder setNetworkTemplate( - java.lang.String value) { + public Builder setNetworkTemplate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + networkTemplate_ = value; onChanged(); return this; } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3720,15 +4121,18 @@ public Builder setNetworkTemplate(
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearNetworkTemplate() { - + networkTemplate_ = getDefaultInstance().getNetworkTemplate(); onChanged(); return this; } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3736,34 +4140,42 @@ public Builder clearNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for networkTemplate to set. * @return This builder for chaining. */ - public Builder setNetworkTemplateBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkTemplateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkTemplate_ = value; onChanged(); return this; } - private java.util.List logicalInterfaces_ = - java.util.Collections.emptyList(); + private java.util.List + logicalInterfaces_ = java.util.Collections.emptyList(); + private void ensureLogicalInterfacesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); + logicalInterfaces_ = + new java.util.ArrayList( + logicalInterfaces_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; + com.google.cloud.baremetalsolution.v2.LogicalInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> + logicalInterfacesBuilder_; /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3774,9 +4186,11 @@ private void ensureLogicalInterfacesIsMutable() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public java.util.List getLogicalInterfacesList() { + public java.util.List + getLogicalInterfacesList() { if (logicalInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalInterfaces_); } else { @@ -3784,6 +4198,8 @@ public java.util.List ge } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3794,7 +4210,8 @@ public java.util.List ge
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public int getLogicalInterfacesCount() { if (logicalInterfacesBuilder_ == null) { @@ -3804,6 +4221,8 @@ public int getLogicalInterfacesCount() { } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3814,7 +4233,8 @@ public int getLogicalInterfacesCount() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -3824,6 +4244,8 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3834,7 +4256,8 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder setLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { @@ -3851,6 +4274,8 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3861,7 +4286,8 @@ public Builder setLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder setLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -3875,6 +4301,8 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3885,9 +4313,11 @@ public Builder setLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface value) { + public Builder addLogicalInterfaces( + com.google.cloud.baremetalsolution.v2.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3901,6 +4331,8 @@ public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.Logica return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3911,7 +4343,8 @@ public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.Logica
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { @@ -3928,6 +4361,8 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3938,7 +4373,8 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addLogicalInterfaces( com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -3952,6 +4388,8 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3962,7 +4400,8 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -3976,6 +4415,8 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3986,14 +4427,15 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addAllLogicalInterfaces( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logicalInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalInterfaces_); onChanged(); } else { logicalInterfacesBuilder_.addAllMessages(values); @@ -4001,6 +4443,8 @@ public Builder addAllLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4011,7 +4455,8 @@ public Builder addAllLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder clearLogicalInterfaces() { if (logicalInterfacesBuilder_ == null) { @@ -4024,6 +4469,8 @@ public Builder clearLogicalInterfaces() { return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4034,7 +4481,8 @@ public Builder clearLogicalInterfaces() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder removeLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -4047,6 +4495,8 @@ public Builder removeLogicalInterfaces(int index) { return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4057,13 +4507,16 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder getLogicalInterfacesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder + getLogicalInterfacesBuilder(int index) { return getLogicalInterfacesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4074,16 +4527,20 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder getLogical
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { if (logicalInterfacesBuilder_ == null) { - return logicalInterfaces_.get(index); } else { + return logicalInterfaces_.get(index); + } else { return logicalInterfacesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4094,10 +4551,11 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogica
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public java.util.List - getLogicalInterfacesOrBuilderList() { + public java.util.List + getLogicalInterfacesOrBuilderList() { if (logicalInterfacesBuilder_ != null) { return logicalInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -4105,6 +4563,8 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogica } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4115,13 +4575,17 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogica
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder() { - return getLogicalInterfacesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder + addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4132,14 +4596,18 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogical
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder( - int index) { - return getLogicalInterfacesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder + addLogicalInterfacesBuilder(int index) { + return getLogicalInterfacesFieldBuilder() + .addBuilder( + index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4150,18 +4618,25 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogical
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public java.util.List - getLogicalInterfacesBuilderList() { + public java.util.List + getLogicalInterfacesBuilderList() { return getLogicalInterfacesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.LogicalInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> getLogicalInterfacesFieldBuilder() { if (logicalInterfacesBuilder_ == null) { - logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( + logicalInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( logicalInterfaces_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -4170,9 +4645,9 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogical } return logicalInterfacesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4182,12 +4657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Instance) private static final com.google.cloud.baremetalsolution.v2.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Instance(); } @@ -4196,16 +4671,16 @@ public static com.google.cloud.baremetalsolution.v2.Instance getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4220,6 +4695,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java similarity index 83% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java index eccecfd..d375ed9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -17,10 +35,13 @@ public interface InstanceOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -30,86 +51,115 @@ public interface InstanceOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * The server type.
    * [Available server
@@ -117,10 +167,13 @@ public interface InstanceOrBuilder extends
    * 
* * string machine_type = 4; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * The server type.
    * [Available server
@@ -128,42 +181,53 @@ public interface InstanceOrBuilder extends
    * 
* * string machine_type = 4; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Instance.State getState(); /** + * + * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; + * * @return The hyperthreadingEnabled. */ boolean getHyperthreadingEnabled(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -172,30 +236,31 @@ public interface InstanceOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -204,31 +269,34 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List - getLunsList(); + java.util.List getLunsList(); /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -237,6 +305,8 @@ java.lang.String getLabelsOrThrow( */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -245,34 +315,40 @@ java.lang.String getLabelsOrThrow( */ int getLunsCount(); /** + * + * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** + * + * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); /** + * + * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List - getNetworksList(); + java.util.List getNetworksList(); /** + * + * *
    * List of networks associated with this server.
    * 
@@ -281,6 +357,8 @@ com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** + * + * *
    * List of networks associated with this server.
    * 
@@ -289,25 +367,30 @@ com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( */ int getNetworksCount(); /** + * + * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** + * + * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); /** + * + * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -315,31 +398,39 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * bool interactive_serial_console_enabled = 10; + * * @return The interactiveSerialConsoleEnabled. */ boolean getInteractiveSerialConsoleEnabled(); /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The osImage. */ java.lang.String getOsImage(); /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The bytes for osImage. */ - com.google.protobuf.ByteString - getOsImageBytes(); + com.google.protobuf.ByteString getOsImageBytes(); /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -348,10 +439,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ java.lang.String getPod(); /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -360,12 +454,14 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - com.google.protobuf.ByteString - getPodBytes(); + com.google.protobuf.ByteString getPodBytes(); /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -373,10 +469,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The networkTemplate. */ java.lang.String getNetworkTemplate(); /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -384,12 +483,14 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for networkTemplate. */ - com.google.protobuf.ByteString - getNetworkTemplateBytes(); + com.google.protobuf.ByteString getNetworkTemplateBytes(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -400,11 +501,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - java.util.List - getLogicalInterfacesList(); + java.util.List getLogicalInterfacesList(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -415,10 +518,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -429,10 +535,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ int getLogicalInterfacesCount(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -443,11 +552,14 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - java.util.List + java.util.List getLogicalInterfacesOrBuilderList(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -458,7 +570,8 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( int index); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java new file mode 100644 index 0000000..7b9b6d4 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java @@ -0,0 +1,325 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class InstanceProto { + private InstanceProto() {} + + 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_baremetalsolution_v2_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/baremetalsolution/v2/inst" + + "ance.proto\022!google.cloud.baremetalsoluti" + + "on.v2\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032+google/cloud/" + + "baremetalsolution/v2/lun.proto\032/google/c" + + "loud/baremetalsolution/v2/network.proto\032" + + " google/protobuf/field_mask.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" + + "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" + + "solution.v2.Instance.State\022\036\n\026hyperthrea" + + "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" + + "gle.cloud.baremetalsolution.v2.Instance." + + "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" + + ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " + + "\003(\0132*.google.cloud.baremetalsolution.v2." + + "Network\022*\n\"interactive_serial_console_en" + + "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" + + "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" + + "baremetalsolution.googleapis.com/ServerN" + + "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" + + "(\01323.google.cloud.baremetalsolution.v2.L" + + "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" + + "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" + + "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" + + "+.google.cloud.baremetalsolution.v2.Inst" + + "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" + + "instance\030\001 \001(\0132+.google.cloud.baremetals" + + "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" + + "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")baremetalsolution.googleapis.com/Instan" + + "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" + + "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" + + "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" + + "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" + + "leapis.com/Instance\"\222\001\n\020DetachLunRequest" + + "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" + + "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" + + "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" + + ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" + + "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" + + "oogle.cloud.baremetalsolution.v2.ServerN" + + "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" + + "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" + + "2W.google.cloud.baremetalsolution.v2.Ser" + + "verNetworkTemplate.LogicalInterface.Inte" + + "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" + + "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" + + "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" + + "n.googleapis.com/ServerNetworkTemplate\022W" + + "projects/{project}/locations/{location}/" + + "serverNetworkTemplate/{server_network_te" + + "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" + + "InstanceResponseB\373\001\n%com.google.cloud.ba" + + "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/baremetalsolution/v2;baremetalsolution\252" + + "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" + + "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" + + "::Cloud::BareMetalSolution::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, + new java.lang.String[] { + "Name", + "Id", + "CreateTime", + "UpdateTime", + "MachineType", + "State", + "HyperthreadingEnabled", + "Labels", + "Luns", + "Networks", + "InteractiveSerialConsoleEnabled", + "OsImage", + "Pod", + "NetworkTemplate", + "LogicalInterfaces", + }); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Instances", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, + new java.lang.String[] { + "Instance", "UpdateMask", + }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, + new java.lang.String[] { + "Instance", "Lun", + }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, + new java.lang.String[] { + "Name", "ApplicableInstanceTypes", "LogicalInterfaces", + }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, + new java.lang.String[] { + "Name", "Type", "Required", + }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, + new java.lang.String[] {}); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java index 7c955f4..8419229 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ -public final class ListInstancesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) ListInstancesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstancesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListInstancesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListInstancesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = + (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.cloud.baremetalsolution.v2.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = + new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * 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. Parent value for ListInstancesRequest.
      * 
* - * string 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. Parent value for ListInstancesRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) private static final com.google.cloud.baremetalsolution.v2.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java index 1d504fd..10c9345 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java index 9d37ccd..69f116a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message for the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ -public final class ListInstancesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) ListInstancesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstancesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,42 @@ private ListInstancesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + instances_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); + break; } - instances_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +116,7 @@ private ListInstancesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -107,22 +128,27 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** + * + * *
    * The list of servers.
    * 
@@ -134,6 +160,8 @@ public java.util.List getInstanc return instances_; } /** + * + * *
    * The list of servers.
    * 
@@ -141,11 +169,13 @@ public java.util.List getInstanc * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public java.util.List + public java.util.List getInstancesOrBuilderList() { return instances_; } /** + * + * *
    * The list of servers.
    * 
@@ -157,6 +187,8 @@ public int getInstancesCount() { return instances_.size(); } /** + * + * *
    * The list of servers.
    * 
@@ -168,6 +200,8 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { return instances_.get(index); } /** + * + * *
    * The list of servers.
    * 
@@ -175,19 +209,21 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index) { return instances_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +232,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.baremetalsolution.v2.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = + (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.cloud.baremetalsolution.v2.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesResponse.newBuilder() @@ -490,17 +543,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInstancesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = + new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) + return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResp instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInstancesFieldBuilder() : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(instances_); + instances_ = + new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instancesBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + instancesBuilder_; /** + * + * *
      * The list of servers.
      * 
@@ -701,6 +767,8 @@ public java.util.List getInstanc } } /** + * + * *
      * The list of servers.
      * 
@@ -715,6 +783,8 @@ public int getInstancesCount() { } } /** + * + * *
      * The list of servers.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { } } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder setInstances( - int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder setInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -768,6 +841,8 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -788,14 +863,15 @@ public Builder addInstances(com.google.cloud.baremetalsolution.v2.Instance value return this; } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder addInstances( - int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder addInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +885,8 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -827,6 +905,8 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -845,6 +925,8 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -855,8 +937,7 @@ public Builder addAllInstances( java.lang.Iterable values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); @@ -864,6 +945,8 @@ public Builder addAllInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -881,6 +964,8 @@ public Builder clearInstances() { return this; } /** + * + * *
      * The list of servers.
      * 
@@ -898,17 +983,20 @@ public Builder removeInstances(int index) { return this; } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder(int index) { return getInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of servers.
      * 
@@ -918,19 +1006,22 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilde public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( int index) { if (instancesBuilder_ == null) { - return instances_.get(index); } else { + return instances_.get(index); + } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1029,8 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui } } /** + * + * *
      * The list of servers.
      * 
@@ -945,42 +1038,48 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + return getInstancesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder( - int index) { - return getInstancesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - instances_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; @@ -988,18 +1087,20 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1109,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1131,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1244,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1337,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1370,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) private static final com.google.cloud.baremetalsolution.v2.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(); } @@ -1253,16 +1384,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1408,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java index 5523911..65768d2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List - getInstancesList(); + java.util.List getInstancesList(); /** + * + * *
    * The list of servers.
    * 
@@ -25,6 +44,8 @@ public interface ListInstancesResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Instance getInstances(int index); /** + * + * *
    * The list of servers.
    * 
@@ -33,82 +54,100 @@ public interface ListInstancesResponseOrBuilder extends */ int getInstancesCount(); /** + * + * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** + * + * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java index 78bf806..625cb29 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ -public final class ListLunsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) ListLunsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLunsRequest.newBuilder() to construct. private ListLunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLunsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListLunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListLunsRequest( 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,34 +104,41 @@ private ListLunsRequest( } 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.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -121,29 +147,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. Parent value for ListLunsRequest.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -154,12 +182,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -170,11 +201,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -183,29 +217,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -214,6 +248,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -249,8 +283,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_); @@ -263,19 +296,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.baremetalsolution.v2.ListLunsRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsRequest other = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) obj; + com.google.cloud.baremetalsolution.v2.ListLunsRequest other = + (com.google.cloud.baremetalsolution.v2.ListLunsRequest) 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; } @@ -299,117 +330,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.cloud.baremetalsolution.v2.ListLunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsRequest.newBuilder() @@ -417,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 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override @@ -461,7 +501,8 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsRequest result = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); + com.google.cloud.baremetalsolution.v2.ListLunsRequest result = + new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -473,38 +514,39 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest) other); } else { super.mergeFrom(other); return this; @@ -512,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -543,7 +586,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -555,18 +599,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * string parent = 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; @@ -575,20 +623,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * string parent = 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 { @@ -596,67 +647,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * 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. Parent value for ListLunsRequest.
      * 
* - * string 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. Parent value for ListLunsRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -664,32 +731,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -697,18 +770,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -717,20 +792,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -738,61 +814,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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); } @@ -802,12 +885,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) private static final com.google.cloud.baremetalsolution.v2.ListLunsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(); } @@ -816,16 +899,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +923,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java index 633ab6f..c79ee15 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java @@ -1,60 +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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsRequestOrBuilder extends +public interface ListLunsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * string parent = 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. Parent value for ListLunsRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java index 46512a7..e1c0471 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ -public final class ListLunsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) ListLunsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLunsResponse.newBuilder() to construct. private ListLunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLunsResponse() { luns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListLunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListLunsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + luns_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; } - luns_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListLunsResponse( } 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)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -107,22 +127,27 @@ private ListLunsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } public static final int LUNS_FIELD_NUMBER = 1; private java.util.List luns_; /** + * + * *
    * The list of luns.
    * 
@@ -134,6 +159,8 @@ public java.util.List getLunsList() { return luns_; } /** + * + * *
    * The list of luns.
    * 
@@ -141,11 +168,13 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** + * + * *
    * The list of luns.
    * 
@@ -157,6 +186,8 @@ public int getLunsCount() { return luns_.size(); } /** + * + * *
    * The list of luns.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** + * + * *
    * The list of luns.
    * 
@@ -175,19 +208,21 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { return luns_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +231,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +264,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +307,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < luns_.size(); i++) { output.writeMessage(1, luns_.get(i)); } @@ -310,8 +355,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, luns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +376,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsResponse other = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; + com.google.cloud.baremetalsolution.v2.ListLunsResponse other = + (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; - if (!getLunsList() - .equals(other.getLunsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getLunsList().equals(other.getLunsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +414,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.cloud.baremetalsolution.v2.ListLunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsResponse.newBuilder() @@ -490,17 +542,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLunsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override @@ -539,7 +591,8 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsResponse result = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); + com.google.cloud.baremetalsolution.v2.ListLunsResponse result = + new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); int from_bitField0_ = bitField0_; if (lunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +617,39 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) + return this; if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -622,9 +677,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000001); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLunsFieldBuilder() : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLunsFieldBuilder() + : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -663,7 +719,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +729,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List luns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> + lunsBuilder_; /** + * + * *
      * The list of luns.
      * 
@@ -701,6 +765,8 @@ public java.util.List getLunsList() { } } /** + * + * *
      * The list of luns.
      * 
@@ -715,6 +781,8 @@ public int getLunsCount() { } } /** + * + * *
      * The list of luns.
      * 
@@ -729,14 +797,15 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder setLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +819,8 @@ public Builder setLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -768,6 +839,8 @@ public Builder setLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -788,14 +861,15 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,14 +883,15 @@ public Builder addLuns( return this; } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns( - com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -827,6 +902,8 @@ public Builder addLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -845,6 +922,8 @@ public Builder addLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -855,8 +934,7 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -864,6 +942,8 @@ public Builder addAllLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -881,6 +961,8 @@ public Builder clearLuns() { return this; } /** + * + * *
      * The list of luns.
      * 
@@ -898,39 +980,44 @@ public Builder removeLuns(int index) { return this; } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { return getLunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { if (lunsBuilder_ == null) { - return luns_.get(index); } else { + return luns_.get(index); + } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1025,8 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( } } /** + * + * *
      * The list of luns.
      * 
@@ -945,42 +1034,47 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( - int index) { - return getLunsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { + return getLunsFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List - getLunsBuilderList() { + public java.util.List getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + lunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); luns_ = null; } return lunsBuilder_; @@ -988,18 +1082,20 @@ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1104,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1126,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1239,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1332,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1365,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) private static final com.google.cloud.baremetalsolution.v2.ListLunsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(); } @@ -1253,16 +1379,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1403,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java index 23a95a3..4e01c38 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsResponseOrBuilder extends +public interface ListLunsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List - getLunsList(); + java.util.List getLunsList(); /** + * + * *
    * The list of luns.
    * 
@@ -25,6 +44,8 @@ public interface ListLunsResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** + * + * *
    * The list of luns.
    * 
@@ -33,82 +54,100 @@ public interface ListLunsResponseOrBuilder extends */ int getLunsCount(); /** + * + * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** + * + * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java index 4c7201a..98e6e14 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Request to get networks with IPs.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} */ -public final class ListNetworkUsageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworkUsageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) ListNetworkUsageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworkUsageRequest.newBuilder() to construct. private ListNetworkUsageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworkUsageRequest() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNetworkUsageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworkUsageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ListNetworkUsageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + location_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private ListNetworkUsageRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** + * + * *
    * Required. Parent value (project and location).
    * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The location. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
    * Required. Parent value (project and location).
    * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getLocation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to get networks with IPs.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,13 +377,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance(); } @@ -362,7 +399,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = + new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); result.location_ = location_; onBuilt(); return result; @@ -372,38 +410,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +450,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) + return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -435,7 +476,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +490,22 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -467,20 +514,23 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -488,61 +538,74 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +615,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(); } @@ -566,16 +630,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworkUsageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworkUsageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java new file mode 100644 index 0000000..05ccf8f --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ListNetworkUsageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value (project and location).
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+   * Required. Parent value (project and location).
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java index 470b090..78f0f77 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response with Networks with IPs
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} */ -public final class ListNetworkUsageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworkUsageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) ListNetworkUsageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworkUsageResponse.newBuilder() to construct. private ListNetworkUsageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworkUsageResponse() { networks_ = 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 ListNetworkUsageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworkUsageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,26 @@ private ListNetworkUsageResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + networks_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NetworkUsage.parser(), + extensionRegistry)); + break; } - networks_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkUsage.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 +98,7 @@ private ListNetworkUsageResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -87,22 +107,27 @@ private ListNetworkUsageResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** + * + * *
    * Networks with IPs.
    * 
@@ -114,6 +139,8 @@ public java.util.List getNet return networks_; } /** + * + * *
    * Networks with IPs.
    * 
@@ -121,11 +148,13 @@ public java.util.List getNet * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** + * + * *
    * Networks with IPs.
    * 
@@ -137,6 +166,8 @@ public int getNetworksCount() { return networks_.size(); } /** + * + * *
    * Networks with IPs.
    * 
@@ -148,6 +179,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) return networks_.get(index); } /** + * + * *
    * Networks with IPs.
    * 
@@ -161,6 +194,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -187,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +230,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +260,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 with Networks with IPs
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.newBuilder() @@ -346,17 +388,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) { getNetworksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +412,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance(); } @@ -391,7 +434,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = + new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +454,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) other); } else { super.mergeFrom(other); return this; @@ -449,7 +494,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) + return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -468,9 +515,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageR networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -495,7 +543,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +554,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(networks_); + networks_ = + new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> networksBuilder_; + com.google.cloud.baremetalsolution.v2.NetworkUsage, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> + networksBuilder_; /** + * + * *
      * Networks with IPs.
      * 
@@ -533,6 +591,8 @@ public java.util.List getNet } } /** + * + * *
      * Networks with IPs.
      * 
@@ -547,6 +607,8 @@ public int getNetworksCount() { } } /** + * + * *
      * Networks with IPs.
      * 
@@ -561,6 +623,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) } } /** + * + * *
      * Networks with IPs.
      * 
@@ -582,6 +646,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -600,6 +666,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -620,6 +688,8 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.NetworkUsage va return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -641,6 +711,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -659,6 +731,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -677,6 +751,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -687,8 +763,7 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -696,6 +771,8 @@ public Builder addAllNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -713,6 +790,8 @@ public Builder clearNetworks() { return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -730,6 +809,8 @@ public Builder removeNetworks(int index) { return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -741,6 +822,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBui return getNetworksFieldBuilder().getBuilder(index); } /** + * + * *
      * Networks with IPs.
      * 
@@ -750,19 +833,22 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBui public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( int index) { if (networksBuilder_ == null) { - return networks_.get(index); } else { + return networks_.get(index); + } else { return networksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Networks with IPs.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +856,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr } } /** + * + * *
      * Networks with IPs.
      * 
@@ -777,10 +865,12 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder() { - return getNetworksFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); } /** + * + * *
      * Networks with IPs.
      * 
@@ -789,37 +879,43 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBui */ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder( int index) { - return getNetworksFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder( + index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); } /** + * + * *
      * Networks with IPs.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> + com.google.cloud.baremetalsolution.v2.NetworkUsage, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( - networks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + networksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkUsage, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( + networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); networks_ = null; } return networksBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,30 +925,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) - private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworkUsageResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworkUsageResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,9 +962,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java index 6d55ac6..ef8a66b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworkUsageResponseOrBuilder extends +public interface ListNetworkUsageResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - java.util.List - getNetworksList(); + java.util.List getNetworksList(); /** + * + * *
    * Networks with IPs.
    * 
@@ -25,6 +44,8 @@ public interface ListNetworkUsageResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index); /** + * + * *
    * Networks with IPs.
    * 
@@ -33,21 +54,24 @@ public interface ListNetworkUsageResponseOrBuilder extends */ int getNetworksCount(); /** + * + * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** + * + * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java index 02b44ee..276a02f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ -public final class ListNetworksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) ListNetworksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworksRequest.newBuilder() to construct. private ListNetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworksRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListNetworksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNetworksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListNetworksRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListNetworksRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListNetworksRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = + (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.cloud.baremetalsolution.v2.ListNetworksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = + new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * 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. Parent value for ListNetworksRequest.
      * 
* - * string 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. Parent value for ListNetworksRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) private static final com.google.cloud.baremetalsolution.v2.ListNetworksRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java index 4c26a87..f0ccc2f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksRequestOrBuilder extends +public interface ListNetworksRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java index f98c159..ce6d426 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ -public final class ListNetworksResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworksResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) ListNetworksResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworksResponse.newBuilder() to construct. private ListNetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworksResponse() { networks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListNetworksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNetworksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,42 @@ private ListNetworksResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + networks_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; } - networks_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +116,7 @@ private ListNetworksResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -107,22 +128,27 @@ private ListNetworksResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** + * + * *
    * The list of networks.
    * 
@@ -134,6 +160,8 @@ public java.util.List getNetworks return networks_; } /** + * + * *
    * The list of networks.
    * 
@@ -141,11 +169,13 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** + * + * *
    * The list of networks.
    * 
@@ -157,6 +187,8 @@ public int getNetworksCount() { return networks_.size(); } /** + * + * *
    * The list of networks.
    * 
@@ -168,6 +200,8 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** + * + * *
    * The list of networks.
    * 
@@ -175,19 +209,21 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { return networks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +232,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.baremetalsolution.v2.ListNetworksResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = + (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.cloud.baremetalsolution.v2.ListNetworksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksResponse.newBuilder() @@ -490,17 +543,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) { getNetworksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = + new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) + return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRespo networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(networks_); + networks_ = + new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networksBuilder_; /** + * + * *
      * The list of networks.
      * 
@@ -701,6 +767,8 @@ public java.util.List getNetworks } } /** + * + * *
      * The list of networks.
      * 
@@ -715,6 +783,8 @@ public int getNetworksCount() { } } /** + * + * *
      * The list of networks.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder setNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -768,6 +841,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -788,14 +863,15 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder addNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +885,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -827,6 +905,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -845,6 +925,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -855,8 +937,7 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -864,6 +945,8 @@ public Builder addAllNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -881,6 +964,8 @@ public Builder clearNetworks() { return this; } /** + * + * *
      * The list of networks.
      * 
@@ -898,39 +983,44 @@ public Builder removeNetworks(int index) { return this; } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { return getNetworksFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { if (networksBuilder_ == null) { - return networks_.get(index); } else { + return networks_.get(index); + } else { return networksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1028,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** + * + * *
      * The list of networks.
      * 
@@ -945,42 +1037,48 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( - int index) { - return getNetworksFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { + return getNetworksFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + networksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); networks_ = null; } return networksBuilder_; @@ -988,18 +1086,20 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1108,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1130,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1243,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1336,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1369,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) private static final com.google.cloud.baremetalsolution.v2.ListNetworksResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(); } @@ -1253,16 +1383,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1407,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java index 8b09c36..8718101 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksResponseOrBuilder extends +public interface ListNetworksResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List - getNetworksList(); + java.util.List getNetworksList(); /** + * + * *
    * The list of networks.
    * 
@@ -25,6 +44,8 @@ public interface ListNetworksResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** + * + * *
    * The list of networks.
    * 
@@ -33,82 +54,100 @@ public interface ListNetworksResponseOrBuilder extends */ int getNetworksCount(); /** + * + * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** + * + * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java index 27cd94f..ff77931 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of NFS shares.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} */ -public final class ListNfsSharesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNfsSharesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) ListNfsSharesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNfsSharesRequest.newBuilder() to construct. private ListNfsSharesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNfsSharesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListNfsSharesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNfsSharesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNfsSharesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListNfsSharesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListNfsSharesRequest( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListNfsSharesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of NFS shares.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) com.google.cloud.baremetalsolution.v2.ListNfsSharesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = + new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * 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. Parent value for ListNfsSharesRequest.
      * 
* - * string 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. Parent value for ListNfsSharesRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNfsSharesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNfsSharesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java index c1029fe..195f826 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNfsSharesRequestOrBuilder extends +public interface ListNfsSharesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java index 95fe371..c9c1e94 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of NFS shares.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} */ -public final class ListNfsSharesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNfsSharesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) ListNfsSharesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNfsSharesResponse.newBuilder() to construct. private ListNfsSharesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNfsSharesResponse() { nfsShares_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListNfsSharesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNfsSharesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNfsSharesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,42 @@ private ListNfsSharesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nfsShares_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nfsShares_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nfsShares_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); + break; } - nfsShares_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +116,7 @@ private ListNfsSharesResponse( } 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)) { nfsShares_ = java.util.Collections.unmodifiableList(nfsShares_); @@ -107,22 +128,27 @@ private ListNfsSharesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); } public static final int NFS_SHARES_FIELD_NUMBER = 1; private java.util.List nfsShares_; /** + * + * *
    * The list of NFS shares.
    * 
@@ -134,6 +160,8 @@ public java.util.List getNfsShar return nfsShares_; } /** + * + * *
    * The list of NFS shares.
    * 
@@ -141,11 +169,13 @@ public java.util.List getNfsShar * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNfsSharesOrBuilderList() { return nfsShares_; } /** + * + * *
    * The list of NFS shares.
    * 
@@ -157,6 +187,8 @@ public int getNfsSharesCount() { return nfsShares_.size(); } /** + * + * *
    * The list of NFS shares.
    * 
@@ -168,6 +200,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { return nfsShares_.get(index); } /** + * + * *
    * The list of NFS shares.
    * 
@@ -175,19 +209,21 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder(int index) { return nfsShares_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +232,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < nfsShares_.size(); i++) { output.writeMessage(1, nfsShares_.get(i)); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nfsShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nfsShares_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nfsShares_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.baremetalsolution.v2.ListNfsSharesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; - if (!getNfsSharesList() - .equals(other.getNfsSharesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getNfsSharesList().equals(other.getNfsSharesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of NFS shares.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) com.google.cloud.baremetalsolution.v2.ListNfsSharesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.newBuilder() @@ -490,17 +543,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) { getNfsSharesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = + new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); int from_bitField0_ = bitField0_; if (nfsSharesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) + return this; if (nfsSharesBuilder_ == null) { if (!other.nfsShares_.isEmpty()) { if (nfsShares_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResp nfsSharesBuilder_ = null; nfsShares_ = other.nfsShares_; bitField0_ = (bitField0_ & ~0x00000001); - nfsSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNfsSharesFieldBuilder() : null; + nfsSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNfsSharesFieldBuilder() + : null; } else { nfsSharesBuilder_.addAllMessages(other.nfsShares_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List nfsShares_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNfsSharesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsShares_ = new java.util.ArrayList(nfsShares_); + nfsShares_ = + new java.util.ArrayList(nfsShares_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsSharesBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + nfsSharesBuilder_; /** + * + * *
      * The list of NFS shares.
      * 
@@ -701,6 +767,8 @@ public java.util.List getNfsShar } } /** + * + * *
      * The list of NFS shares.
      * 
@@ -715,6 +783,8 @@ public int getNfsSharesCount() { } } /** + * + * *
      * The list of NFS shares.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { } } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public Builder setNfsShares( - int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + public Builder setNfsShares(int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -768,6 +841,8 @@ public Builder setNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -788,14 +863,15 @@ public Builder addNfsShares(com.google.cloud.baremetalsolution.v2.NfsShare value return this; } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public Builder addNfsShares( - int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + public Builder addNfsShares(int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +885,8 @@ public Builder addNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -827,6 +905,8 @@ public Builder addNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -845,6 +925,8 @@ public Builder addNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -855,8 +937,7 @@ public Builder addAllNfsShares( java.lang.Iterable values) { if (nfsSharesBuilder_ == null) { ensureNfsSharesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nfsShares_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsShares_); onChanged(); } else { nfsSharesBuilder_.addAllMessages(values); @@ -864,6 +945,8 @@ public Builder addAllNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -881,6 +964,8 @@ public Builder clearNfsShares() { return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -898,17 +983,20 @@ public Builder removeNfsShares(int index) { return this; } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder(int index) { return getNfsSharesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of NFS shares.
      * 
@@ -918,19 +1006,22 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilde public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( int index) { if (nfsSharesBuilder_ == null) { - return nfsShares_.get(index); } else { + return nfsShares_.get(index); + } else { return nfsSharesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public java.util.List - getNfsSharesOrBuilderList() { + public java.util.List + getNfsSharesOrBuilderList() { if (nfsSharesBuilder_ != null) { return nfsSharesBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1029,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBui } } /** + * + * *
      * The list of NFS shares.
      * 
@@ -945,42 +1038,48 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBui * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder() { - return getNfsSharesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + return getNfsSharesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder( - int index) { - return getNfsSharesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder(int index) { + return getNfsSharesFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public java.util.List - getNfsSharesBuilderList() { + public java.util.List + getNfsSharesBuilderList() { return getNfsSharesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> getNfsSharesFieldBuilder() { if (nfsSharesBuilder_ == null) { - nfsSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( - nfsShares_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + nfsSharesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + nfsShares_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nfsShares_ = null; } return nfsSharesBuilder_; @@ -988,18 +1087,20 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1109,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1131,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1244,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1337,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1370,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(); } @@ -1253,16 +1384,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNfsSharesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNfsSharesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1408,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java index 4e3cedd..219771e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNfsSharesResponseOrBuilder extends +public interface ListNfsSharesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - java.util.List - getNfsSharesList(); + java.util.List getNfsSharesList(); /** + * + * *
    * The list of NFS shares.
    * 
@@ -25,6 +44,8 @@ public interface ListNfsSharesResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index); /** + * + * *
    * The list of NFS shares.
    * 
@@ -33,82 +54,100 @@ public interface ListNfsSharesResponseOrBuilder extends */ int getNfsSharesCount(); /** + * + * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - java.util.List + java.util.List getNfsSharesOrBuilderList(); /** + * + * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java index 3fb2e23..31b65d9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ -public final class ListVolumesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVolumesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) ListVolumesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVolumesRequest.newBuilder() to construct. private ListVolumesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVolumesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListVolumesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVolumesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVolumesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListVolumesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListVolumesRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListVolumesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = + (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.cloud.baremetalsolution.v2.ListVolumesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = + new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * 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. Parent value for ListVolumesRequest.
      * 
* - * string 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. Parent value for ListVolumesRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) private static final com.google.cloud.baremetalsolution.v2.ListVolumesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java index 4b30dd3..6db8315 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesRequestOrBuilder extends +public interface ListVolumesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java index 0af4bba..06aba84 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ -public final class ListVolumesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVolumesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) ListVolumesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVolumesResponse.newBuilder() to construct. private ListVolumesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVolumesResponse() { volumes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListVolumesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVolumesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVolumesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListVolumesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + volumes_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); + break; } - volumes_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListVolumesResponse( } 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)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); @@ -107,22 +127,27 @@ private ListVolumesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } public static final int VOLUMES_FIELD_NUMBER = 1; private java.util.List volumes_; /** + * + * *
    * The list of storage volumes.
    * 
@@ -134,6 +159,8 @@ public java.util.List getVolumesLi return volumes_; } /** + * + * *
    * The list of storage volumes.
    * 
@@ -141,11 +168,13 @@ public java.util.List getVolumesLi * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** + * + * *
    * The list of storage volumes.
    * 
@@ -157,6 +186,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * The list of storage volumes.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * The list of storage volumes.
    * 
@@ -175,19 +208,21 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { return volumes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +231,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +264,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +307,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(1, volumes_.get(i)); } @@ -310,8 +355,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +376,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = + (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; - if (!getVolumesList() - .equals(other.getVolumesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getVolumesList().equals(other.getVolumesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +414,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.cloud.baremetalsolution.v2.ListVolumesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesResponse.newBuilder() @@ -490,17 +542,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVolumesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override @@ -539,7 +591,8 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = + new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); int from_bitField0_ = bitField0_; if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +617,39 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) + return this; if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { @@ -622,9 +677,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRespon volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); - volumesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVolumesFieldBuilder() : null; + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVolumesFieldBuilder() + : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } @@ -663,7 +719,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +729,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List volumes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumesBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + volumesBuilder_; /** + * + * *
      * The list of storage volumes.
      * 
@@ -701,6 +765,8 @@ public java.util.List getVolumesLi } } /** + * + * *
      * The list of storage volumes.
      * 
@@ -715,6 +781,8 @@ public int getVolumesCount() { } } /** + * + * *
      * The list of storage volumes.
      * 
@@ -729,14 +797,15 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { } } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder setVolumes( - int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder setVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +819,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -768,6 +839,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -788,14 +861,15 @@ public Builder addVolumes(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder addVolumes( - int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder addVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +883,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -827,6 +903,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -845,6 +923,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -855,8 +935,7 @@ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); @@ -864,6 +943,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -881,6 +962,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -898,39 +981,44 @@ public Builder removeVolumes(int index) { return this; } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder(int index) { return getVolumesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { if (volumesBuilder_ == null) { - return volumes_.get(index); } else { + return volumes_.get(index); + } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1026,8 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder } } /** + * + * *
      * The list of storage volumes.
      * 
@@ -945,42 +1035,48 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder( - int index) { - return getVolumesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder(int index) { + return getVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesBuilderList() { + public java.util.List + getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - volumes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + volumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + volumes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; @@ -988,18 +1084,20 @@ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1106,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1128,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1241,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1334,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1367,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) private static final com.google.cloud.baremetalsolution.v2.ListVolumesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(); } @@ -1253,16 +1381,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1405,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java index 52657e8..4d4b8f6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesResponseOrBuilder extends +public interface ListVolumesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List - getVolumesList(); + java.util.List getVolumesList(); /** + * + * *
    * The list of storage volumes.
    * 
@@ -25,6 +44,8 @@ public interface ListVolumesResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index); /** + * + * *
    * The list of storage volumes.
    * 
@@ -33,82 +54,100 @@ public interface ListVolumesResponseOrBuilder extends */ int getVolumesCount(); /** + * + * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List + java.util.List getVolumesOrBuilderList(); /** + * + * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java index e418612..2a49f8b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Each logical interface represents a logical abstraction of the underlying
  * physical interface (for eg. bond, nic) of the instance. Each logical
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface}
  */
-public final class LogicalInterface extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LogicalInterface extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface)
     LogicalInterfaceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LogicalInterface.newBuilder() to construct.
   private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LogicalInterface() {
     logicalNetworkInterfaces_ = java.util.Collections.emptyList();
     name_ = "";
@@ -29,16 +47,15 @@ private LogicalInterface() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogicalInterface();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LogicalInterface(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,33 +75,41 @@ private LogicalInterface(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              logicalNetworkInterfaces_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                logicalNetworkInterfaces_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.baremetalsolution.v2.LogicalInterface
+                            .LogicalNetworkInterface>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              logicalNetworkInterfaces_.add(
+                  input.readMessage(
+                      com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface
+                          .parser(),
+                      extensionRegistry));
+              break;
             }
-            logicalNetworkInterfaces_.add(
-                input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 24: {
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            interfaceIndex_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          case 24:
+            {
+              interfaceIndex_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,139 +117,171 @@ private LogicalInterface(
     } 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)) {
-        logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
+        logicalNetworkInterfaces_ =
+            java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.baremetalsolution.v2.NetworkProto
+        .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
+    return com.google.cloud.baremetalsolution.v2.NetworkProto
+        .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.class,
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
   }
 
-  public interface LogicalNetworkInterfaceOrBuilder extends
+  public interface LogicalNetworkInterfaceOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Name of the network
      * 
* * string network = 1; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
      * Name of the network
      * 
* * string network = 1; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
      * Whether this interface is the default gateway for the instance. Only
      * one interface can be the default gateway for the instance.
      * 
* * bool default_gateway = 3; + * * @return The defaultGateway. */ boolean getDefaultGateway(); /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The enum numeric value on the wire for networkType. */ int getNetworkTypeValue(); /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The networkType. */ com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType(); /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @return The id. */ java.lang.String getId(); /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); } /** + * + * *
    * Each logical network interface is effectively a network and IP pair.
    * 
* - * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + * Protobuf type {@code + * google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} */ - public static final class LogicalNetworkInterface extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LogicalNetworkInterface extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) LogicalNetworkInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogicalNetworkInterface.newBuilder() to construct. private LogicalNetworkInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LogicalNetworkInterface() { network_ = ""; ipAddress_ = ""; @@ -234,16 +291,15 @@ private LogicalNetworkInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogicalNetworkInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LogicalNetworkInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -262,42 +318,46 @@ private LogicalNetworkInterface( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - network_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - ipAddress_ = s; - break; - } - case 24: { + network_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - defaultGateway_ = input.readBool(); - break; - } - case 32: { - int rawValue = input.readEnum(); + ipAddress_ = s; + break; + } + case 24: + { + defaultGateway_ = input.readBool(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - networkType_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + networkType_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + id_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -305,34 +365,40 @@ private LogicalNetworkInterface( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + .class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** + * + * *
      * Name of the network
      * 
* * string network = 1; + * * @return The network. */ @java.lang.Override @@ -341,29 +407,29 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
      * Name of the network
      * 
* * string network = 1; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -374,11 +440,14 @@ public java.lang.String getNetwork() { public static final int IP_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object ipAddress_; /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The ipAddress. */ @java.lang.Override @@ -387,29 +456,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -420,12 +489,15 @@ public java.lang.String getIpAddress() { public static final int DEFAULT_GATEWAY_FIELD_NUMBER = 3; private boolean defaultGateway_; /** + * + * *
      * Whether this interface is the default gateway for the instance. Only
      * one interface can be the default gateway for the instance.
      * 
* * bool default_gateway = 3; + * * @return The defaultGateway. */ @java.lang.Override @@ -436,38 +508,52 @@ public boolean getDefaultGateway() { public static final int NETWORK_TYPE_FIELD_NUMBER = 4; private int networkType_; /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The enum numeric value on the wire for networkType. */ - @java.lang.Override public int getNetworkTypeValue() { + @java.lang.Override + public int getNetworkTypeValue() { return networkType_; } /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The networkType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } public static final int ID_FIELD_NUMBER = 5; private volatile java.lang.Object id_; /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @return The id. */ @java.lang.Override @@ -476,29 +562,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; } } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @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 { @@ -507,6 +593,7 @@ public java.lang.String getId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -518,8 +605,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -529,7 +615,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (defaultGateway_ != false) { output.writeBool(3, defaultGateway_); } - if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + if (networkType_ + != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, networkType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { @@ -551,12 +638,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_); } if (defaultGateway_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, defaultGateway_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, defaultGateway_); } - if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, networkType_); + if (networkType_ + != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, networkType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, id_); @@ -569,22 +655,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.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { + if (!(obj + instanceof + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = + (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (getDefaultGateway() - != other.getDefaultGateway()) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (getDefaultGateway() != other.getDefaultGateway()) return false; if (networkType_ != other.networkType_) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getId().equals(other.getId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -601,8 +686,7 @@ public int hashCode() { hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); hash = (37 * hash) + DEFAULT_GATEWAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDefaultGateway()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultGateway()); hash = (37 * hash) + NETWORK_TYPE_FIELD_NUMBER; hash = (53 * hash) + networkType_; hash = (37 * hash) + ID_FIELD_NUMBER; @@ -612,88 +696,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -703,44 +800,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Each logical network interface is effectively a network and IP pair.
      * 
* - * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + * Protobuf type {@code + * google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .class, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .Builder.class); } - // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() + // Construct using + // com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -758,19 +863,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface build() { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = buildPartial(); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + build() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -778,8 +887,11 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface buildPartial() { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(this); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + buildPartial() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = + new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface( + this); result.network_ = network_; result.ipAddress_ = ipAddress_; result.defaultGateway_ = defaultGateway_; @@ -793,46 +905,56 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)other); + if (other + instanceof + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { + return mergeFrom( + (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { - if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { + if (other + == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -866,11 +988,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parsedMessage = null; + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -882,18 +1007,20 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -902,20 +1029,21 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -923,54 +1051,61 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -978,18 +1113,20 @@ public Builder setNetworkBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -998,20 +1135,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -1019,67 +1157,77 @@ public java.lang.String getIpAddress() { } } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private boolean defaultGateway_ ; + private boolean defaultGateway_; /** + * + * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; + * * @return The defaultGateway. */ @java.lang.Override @@ -1087,32 +1235,38 @@ public boolean getDefaultGateway() { return defaultGateway_; } /** + * + * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; + * * @param value The defaultGateway to set. * @return This builder for chaining. */ public Builder setDefaultGateway(boolean value) { - + defaultGateway_ = value; onChanged(); return this; } /** + * + * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; + * * @return This builder for chaining. */ public Builder clearDefaultGateway() { - + defaultGateway_ = false; onChanged(); return this; @@ -1120,51 +1274,67 @@ public Builder clearDefaultGateway() { private int networkType_ = 0; /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The enum numeric value on the wire for networkType. */ - @java.lang.Override public int getNetworkTypeValue() { + @java.lang.Override + public int getNetworkTypeValue() { return networkType_; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @param value The enum numeric value on the wire for networkType to set. * @return This builder for chaining. */ public Builder setNetworkTypeValue(int value) { - + networkType_ = value; onChanged(); return this; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The networkType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @param value The networkType to set. * @return This builder for chaining. */ @@ -1172,21 +1342,24 @@ public Builder setNetworkType(com.google.cloud.baremetalsolution.v2.Network.Type if (value == null) { throw new NullPointerException(); } - + networkType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return This builder for chaining. */ public Builder clearNetworkType() { - + networkType_ = 0; onChanged(); return this; @@ -1194,18 +1367,20 @@ public Builder clearNetworkType() { private java.lang.Object id_ = ""; /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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; @@ -1214,20 +1389,21 @@ public java.lang.String getId() { } } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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 { @@ -1235,58 +1411,66 @@ public java.lang.String getId() { } } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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; } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1299,30 +1483,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) - private static final com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterface + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); + DEFAULT_INSTANCE = + new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalNetworkInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalNetworkInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalNetworkInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalNetworkInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1334,81 +1522,112 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LOGICAL_NETWORK_INTERFACES_FIELD_NUMBER = 1; - private java.util.List logicalNetworkInterfaces_; + private java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + logicalNetworkInterfaces_; /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public java.util.List getLogicalNetworkInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + getLogicalNetworkInterfacesList() { return logicalNetworkInterfaces_; } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesOrBuilderList() { return logicalNetworkInterfaces_; } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override public int getLogicalNetworkInterfacesCount() { return logicalNetworkInterfaces_.size(); } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getLogicalNetworkInterfaces(int index) { return logicalNetworkInterfaces_.get(index); } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder + getLogicalNetworkInterfacesOrBuilder(int index) { return logicalNetworkInterfaces_.get(index); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -1417,30 +1636,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; } } /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * 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 { @@ -1451,12 +1670,15 @@ public java.lang.String getName() { public static final int INTERFACE_INDEX_FIELD_NUMBER = 3; private int interfaceIndex_; /** + * + * *
    * The index of the logical interface mapping to the index of the hardware
    * bond or nic on the chosen network template.
    * 
* * int32 interface_index = 3; + * * @return The interfaceIndex. */ @java.lang.Override @@ -1465,6 +1687,7 @@ public int getInterfaceIndex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1476,8 +1699,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < logicalNetworkInterfaces_.size(); i++) { output.writeMessage(1, logicalNetworkInterfaces_.get(i)); } @@ -1497,15 +1719,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < logicalNetworkInterfaces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, logicalNetworkInterfaces_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, logicalNetworkInterfaces_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (interfaceIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, interfaceIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, interfaceIndex_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1515,19 +1737,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.baremetalsolution.v2.LogicalInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; + com.google.cloud.baremetalsolution.v2.LogicalInterface other = + (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; - if (!getLogicalNetworkInterfacesList() - .equals(other.getLogicalNetworkInterfacesList())) return false; - if (!getName() - .equals(other.getName())) return false; - if (getInterfaceIndex() - != other.getInterfaceIndex()) return false; + if (!getLogicalNetworkInterfacesList().equals(other.getLogicalNetworkInterfacesList())) + return false; + if (!getName().equals(other.getName())) return false; + if (getInterfaceIndex() != other.getInterfaceIndex()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1553,96 +1774,104 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Each logical interface represents a logical abstraction of the underlying
    * physical interface (for eg. bond, nic) of the instance. Each logical
@@ -1652,21 +1881,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface)
       com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.baremetalsolution.v2.NetworkProto
+          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
+      return com.google.cloud.baremetalsolution.v2.NetworkProto
+          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
+              com.google.cloud.baremetalsolution.v2.LogicalInterface.class,
+              com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
     }
 
     // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.newBuilder()
@@ -1674,17 +1905,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) {
         getLogicalNetworkInterfacesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1702,9 +1933,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.baremetalsolution.v2.NetworkProto
+          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
     }
 
     @java.lang.Override
@@ -1723,11 +1954,13 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface build() {
 
     @java.lang.Override
     public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() {
-      com.google.cloud.baremetalsolution.v2.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface(this);
+      com.google.cloud.baremetalsolution.v2.LogicalInterface result =
+          new com.google.cloud.baremetalsolution.v2.LogicalInterface(this);
       int from_bitField0_ = bitField0_;
       if (logicalNetworkInterfacesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
+          logicalNetworkInterfaces_ =
+              java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.logicalNetworkInterfaces_ = logicalNetworkInterfaces_;
@@ -1744,38 +1977,39 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface) {
-        return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface)other);
+        return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1783,7 +2017,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface other) {
-      if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()) return this;
+      if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance())
+        return this;
       if (logicalNetworkInterfacesBuilder_ == null) {
         if (!other.logicalNetworkInterfaces_.isEmpty()) {
           if (logicalNetworkInterfaces_.isEmpty()) {
@@ -1802,9 +2037,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface
             logicalNetworkInterfacesBuilder_ = null;
             logicalNetworkInterfaces_ = other.logicalNetworkInterfaces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            logicalNetworkInterfacesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLogicalNetworkInterfacesFieldBuilder() : null;
+            logicalNetworkInterfacesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLogicalNetworkInterfacesFieldBuilder()
+                    : null;
           } else {
             logicalNetworkInterfacesBuilder_.addAllMessages(other.logicalNetworkInterfaces_);
           }
@@ -1836,7 +2072,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1845,28 +2082,43 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List logicalNetworkInterfaces_ =
-      java.util.Collections.emptyList();
+    private java.util.List<
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>
+        logicalNetworkInterfaces_ = java.util.Collections.emptyList();
+
     private void ensureLogicalNetworkInterfacesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        logicalNetworkInterfaces_ = new java.util.ArrayList(logicalNetworkInterfaces_);
+        logicalNetworkInterfaces_ =
+            new java.util.ArrayList<
+                com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>(
+                logicalNetworkInterfaces_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> logicalNetworkInterfacesBuilder_;
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface,
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder,
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>
+        logicalNetworkInterfacesBuilder_;
 
     /**
+     *
+     *
      * 
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public java.util.List getLogicalNetworkInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + getLogicalNetworkInterfacesList() { if (logicalNetworkInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalNetworkInterfaces_); } else { @@ -1874,11 +2126,15 @@ public java.util.List * List of logical network interfaces within a logical interface. *
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public int getLogicalNetworkInterfacesCount() { if (logicalNetworkInterfacesBuilder_ == null) { @@ -1888,13 +2144,18 @@ public int getLogicalNetworkInterfacesCount() { } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getLogicalNetworkInterfaces(int index) { if (logicalNetworkInterfacesBuilder_ == null) { return logicalNetworkInterfaces_.get(index); } else { @@ -1902,14 +2163,19 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder setLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1923,14 +2189,20 @@ public Builder setLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder setLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.set(index, builderForValue.build()); @@ -1941,13 +2213,18 @@ public Builder setLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public Builder addLogicalNetworkInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + public Builder addLogicalNetworkInterfaces( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1961,14 +2238,19 @@ public Builder addLogicalNetworkInterfaces(com.google.cloud.baremetalsolution.v2 return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1982,14 +2264,19 @@ public Builder addLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addLogicalNetworkInterfaces( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.add(builderForValue.build()); @@ -2000,14 +2287,20 @@ public Builder addLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.add(index, builderForValue.build()); @@ -2018,18 +2311,24 @@ public Builder addLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addAllLogicalNetworkInterfaces( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + values) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logicalNetworkInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalNetworkInterfaces_); onChanged(); } else { logicalNetworkInterfacesBuilder_.addAllMessages(values); @@ -2037,11 +2336,15 @@ public Builder addAllLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder clearLogicalNetworkInterfaces() { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2054,11 +2357,15 @@ public Builder clearLogicalNetworkInterfaces() { return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder removeLogicalNetworkInterfaces(int index) { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2071,39 +2378,55 @@ public Builder removeLogicalNetworkInterfaces(int index) { return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder getLogicalNetworkInterfacesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + getLogicalNetworkInterfacesBuilder(int index) { return getLogicalNetworkInterfacesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder + getLogicalNetworkInterfacesOrBuilder(int index) { if (logicalNetworkInterfacesBuilder_ == null) { - return logicalNetworkInterfaces_.get(index); } else { + return logicalNetworkInterfaces_.get(index); + } else { return logicalNetworkInterfacesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public java.util.List - getLogicalNetworkInterfacesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder> + getLogicalNetworkInterfacesOrBuilderList() { if (logicalNetworkInterfacesBuilder_ != null) { return logicalNetworkInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -2111,45 +2434,72 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder() { - return getLogicalNetworkInterfacesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + addLogicalNetworkInterfacesBuilder() { + return getLogicalNetworkInterfacesFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance()); } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder( - int index) { - return getLogicalNetworkInterfacesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + addLogicalNetworkInterfacesBuilder(int index) { + return getLogicalNetworkInterfacesFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance()); } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public java.util.List - getLogicalNetworkInterfacesBuilderList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder> + getLogicalNetworkInterfacesBuilderList() { return getLogicalNetworkInterfacesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesFieldBuilder() { if (logicalNetworkInterfacesBuilder_ == null) { - logicalNetworkInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>( + logicalNetworkInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder>( logicalNetworkInterfaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2161,19 +2511,21 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte private java.lang.Object name_ = ""; /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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; @@ -2182,21 +2534,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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 { @@ -2204,70 +2557,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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; } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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 int interfaceIndex_ ; + private int interfaceIndex_; /** + * + * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; + * * @return The interfaceIndex. */ @java.lang.Override @@ -2275,39 +2638,45 @@ public int getInterfaceIndex() { return interfaceIndex_; } /** + * + * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; + * * @param value The interfaceIndex to set. * @return This builder for chaining. */ public Builder setInterfaceIndex(int value) { - + interfaceIndex_ = value; onChanged(); return this; } /** + * + * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; + * * @return This builder for chaining. */ public Builder clearInterfaceIndex() { - + interfaceIndex_ = 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); } @@ -2317,12 +2686,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface) private static final com.google.cloud.baremetalsolution.v2.LogicalInterface DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface(); } @@ -2331,16 +2700,16 @@ public static com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2355,6 +2724,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java similarity index 51% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java index da8ff8e..f3faf3f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java @@ -1,85 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface LogicalInterfaceOrBuilder extends +public interface LogicalInterfaceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - java.util.List + java.util.List getLogicalNetworkInterfacesList(); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getLogicalNetworkInterfaces(int index); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ int getLogicalNetworkInterfacesCount(); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesOrBuilderList(); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder + getLogicalNetworkInterfacesOrBuilder(int index); /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The index of the logical interface mapping to the index of the hardware
    * bond or nic on the chosen network template.
    * 
* * int32 interface_index = 3; + * * @return The interfaceIndex. */ int getInterfaceIndex(); diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java index d586da5..cbd6146 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A storage volume logical unit number (LUN).
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ -public final class Lun extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Lun extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Lun) LunOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Lun.newBuilder() to construct. private Lun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Lun() { name_ = ""; id_ = ""; @@ -31,16 +49,15 @@ private Lun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Lun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Lun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,70 +76,77 @@ private Lun( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 24: { - - sizeGb_ = input.readInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - multiprotocolType_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - storageVolume_ = s; - break; - } - case 48: { + state_ = rawValue; + break; + } + case 24: + { + sizeGb_ = input.readInt64(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - shareable_ = input.readBool(); - break; - } - case 56: { + multiprotocolType_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - bootLun_ = input.readBool(); - break; - } - case 64: { - int rawValue = input.readEnum(); + storageVolume_ = s; + break; + } + case 48: + { + shareable_ = input.readBool(); + break; + } + case 56: + { + bootLun_ = input.readBool(); + break; + } + case 64: + { + int rawValue = input.readEnum(); - storageType_ = rawValue; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); + storageType_ = rawValue; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - wwid_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + wwid_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + id_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -130,36 +154,41 @@ private Lun( } 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.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, + com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } /** + * + * *
    * The possible states for the LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The LUN is in an unknown state.
      * 
@@ -168,6 +197,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The LUN is being created.
      * 
@@ -176,6 +207,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The LUN is being updated.
      * 
@@ -184,6 +217,8 @@ public enum State */ UPDATING(2), /** + * + * *
      * The LUN is ready for use.
      * 
@@ -192,6 +227,8 @@ public enum State */ READY(3), /** + * + * *
      * The LUN has been requested to be deleted.
      * 
@@ -203,6 +240,8 @@ public enum State ; /** + * + * *
      * The LUN is in an unknown state.
      * 
@@ -211,6 +250,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The LUN is being created.
      * 
@@ -219,6 +260,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The LUN is being updated.
      * 
@@ -227,6 +270,8 @@ public enum State */ public static final int UPDATING_VALUE = 2; /** + * + * *
      * The LUN is ready for use.
      * 
@@ -235,6 +280,8 @@ public enum State */ public static final int READY_VALUE = 3; /** + * + * *
      * The LUN has been requested to be deleted.
      * 
@@ -243,7 +290,6 @@ public enum State */ public static final int DELETING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -268,51 +314,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return UPDATING; - case 3: return READY; - case 4: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return UPDATING; + case 3: + return READY; + case 4: + return DELETING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -330,15 +378,18 @@ private State(int value) { } /** + * + * *
    * Display the operating systems present for the LUN multiprotocol type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.MultiprotocolType} */ - public enum MultiprotocolType - implements com.google.protobuf.ProtocolMessageEnum { + public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Server has no OS specified.
      * 
@@ -347,6 +398,8 @@ public enum MultiprotocolType */ MULTIPROTOCOL_TYPE_UNSPECIFIED(0), /** + * + * *
      * Server with Linux OS.
      * 
@@ -358,6 +411,8 @@ public enum MultiprotocolType ; /** + * + * *
      * Server has no OS specified.
      * 
@@ -366,6 +421,8 @@ public enum MultiprotocolType */ public static final int MULTIPROTOCOL_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Server with Linux OS.
      * 
@@ -374,7 +431,6 @@ public enum MultiprotocolType */ public static final int LINUX_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -399,9 +455,12 @@ public static MultiprotocolType valueOf(int value) { */ public static MultiprotocolType forNumber(int value) { switch (value) { - case 0: return MULTIPROTOCOL_TYPE_UNSPECIFIED; - case 1: return LINUX; - default: return null; + case 0: + return MULTIPROTOCOL_TYPE_UNSPECIFIED; + case 1: + return LINUX; + default: + return null; } } @@ -409,28 +468,28 @@ public static MultiprotocolType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - MultiprotocolType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MultiprotocolType findValueByNumber(int number) { - return MultiprotocolType.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 MultiprotocolType findValueByNumber(int number) { + return MultiprotocolType.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.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(1); } @@ -439,8 +498,7 @@ public MultiprotocolType findValueByNumber(int number) { public static MultiprotocolType 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; @@ -458,15 +516,18 @@ private MultiprotocolType(int value) { } /** + * + * *
    * The storage types for a LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.StorageType} */ - public enum StorageType - implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The storage type for this LUN is unknown.
      * 
@@ -475,6 +536,8 @@ public enum StorageType */ STORAGE_TYPE_UNSPECIFIED(0), /** + * + * *
      * This storage type for this LUN is SSD.
      * 
@@ -483,6 +546,8 @@ public enum StorageType */ SSD(1), /** + * + * *
      * This storage type for this LUN is HDD.
      * 
@@ -494,6 +559,8 @@ public enum StorageType ; /** + * + * *
      * The storage type for this LUN is unknown.
      * 
@@ -502,6 +569,8 @@ public enum StorageType */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * This storage type for this LUN is SSD.
      * 
@@ -510,6 +579,8 @@ public enum StorageType */ public static final int SSD_VALUE = 1; /** + * + * *
      * This storage type for this LUN is HDD.
      * 
@@ -518,7 +589,6 @@ public enum StorageType */ public static final int HDD_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -543,49 +613,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: return STORAGE_TYPE_UNSPECIFIED; - case 1: return SSD; - case 2: return HDD; - default: return null; + case 0: + return STORAGE_TYPE_UNSPECIFIED; + case 1: + return SSD; + case 2: + return HDD; + 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< - StorageType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.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 StorageType findValueByNumber(int number) { + return StorageType.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.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(2); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -605,11 +675,14 @@ private StorageType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -618,29 +691,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -651,11 +724,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ @java.lang.Override @@ -664,29 +740,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; } } /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @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 { @@ -697,38 +773,50 @@ public java.lang.String getId() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = + com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } public static final int SIZE_GB_FIELD_NUMBER = 3; private long sizeGb_; /** + * + * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; + * * @return The sizeGb. */ @java.lang.Override @@ -739,40 +827,54 @@ public long getSizeGb() { public static final int MULTIPROTOCOL_TYPE_FIELD_NUMBER = 4; private int multiprotocolType_; /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override public int getMultiprotocolTypeValue() { + @java.lang.Override + public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The multiprotocolType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED + : result; } public static final int STORAGE_VOLUME_FIELD_NUMBER = 5; private volatile java.lang.Object storageVolume_; /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The storageVolume. */ @java.lang.Override @@ -781,29 +883,29 @@ public java.lang.String getStorageVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; } } /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for storageVolume. */ @java.lang.Override - public com.google.protobuf.ByteString - getStorageVolumeBytes() { + public com.google.protobuf.ByteString getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -814,11 +916,14 @@ public java.lang.String getStorageVolume() { public static final int SHAREABLE_FIELD_NUMBER = 6; private boolean shareable_; /** + * + * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; + * * @return The shareable. */ @java.lang.Override @@ -829,11 +934,14 @@ public boolean getShareable() { public static final int BOOT_LUN_FIELD_NUMBER = 7; private boolean bootLun_; /** + * + * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; + * * @return The bootLun. */ @java.lang.Override @@ -844,38 +952,52 @@ public boolean getBootLun() { public static final int STORAGE_TYPE_FIELD_NUMBER = 8; private int storageType_; /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The storageType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = + com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED + : result; } public static final int WWID_FIELD_NUMBER = 9; private volatile java.lang.Object wwid_; /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The wwid. */ @java.lang.Override @@ -884,29 +1006,29 @@ public java.lang.String getWwid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; } } /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The bytes for wwid. */ @java.lang.Override - public com.google.protobuf.ByteString - getWwidBytes() { + public com.google.protobuf.ByteString getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); wwid_ = b; return b; } else { @@ -915,6 +1037,7 @@ public java.lang.String getWwid() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -926,8 +1049,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -937,7 +1059,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (sizeGb_ != 0L) { output.writeInt64(3, sizeGb_); } - if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { + if (multiprotocolType_ + != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType + .MULTIPROTOCOL_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { @@ -949,7 +1074,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (bootLun_ != false) { output.writeBool(7, bootLun_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { @@ -971,31 +1098,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.Lun.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (sizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, sizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeGb_); } - if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, multiprotocolType_); + if (multiprotocolType_ + != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType + .MULTIPROTOCOL_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageVolume_); } if (shareable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, shareable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, shareable_); } if (bootLun_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, bootLun_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, bootLun_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, storageType_); + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, wwid_); @@ -1011,30 +1137,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.baremetalsolution.v2.Lun)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Lun other = (com.google.cloud.baremetalsolution.v2.Lun) obj; + com.google.cloud.baremetalsolution.v2.Lun other = + (com.google.cloud.baremetalsolution.v2.Lun) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (state_ != other.state_) return false; - if (getSizeGb() - != other.getSizeGb()) return false; + if (getSizeGb() != other.getSizeGb()) return false; if (multiprotocolType_ != other.multiprotocolType_) return false; - if (!getStorageVolume() - .equals(other.getStorageVolume())) return false; - if (getShareable() - != other.getShareable()) return false; - if (getBootLun() - != other.getBootLun()) return false; + if (!getStorageVolume().equals(other.getStorageVolume())) return false; + if (getShareable() != other.getShareable()) return false; + if (getBootLun() != other.getBootLun()) return false; if (storageType_ != other.storageType_) return false; - if (!getWwid() - .equals(other.getWwid())) return false; + if (!getWwid().equals(other.getWwid())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1053,18 +1173,15 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGb()); hash = (37 * hash) + MULTIPROTOCOL_TYPE_FIELD_NUMBER; hash = (53 * hash) + multiprotocolType_; hash = (37 * hash) + STORAGE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getStorageVolume().hashCode(); hash = (37 * hash) + SHAREABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShareable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShareable()); hash = (37 * hash) + BOOT_LUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBootLun()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBootLun()); hash = (37 * hash) + STORAGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + storageType_; hash = (37 * hash) + WWID_FIELD_NUMBER; @@ -1074,118 +1191,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun 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.baremetalsolution.v2.Lun parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Lun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume logical unit number (LUN).
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Lun) com.google.cloud.baremetalsolution.v2.LunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, + com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Lun.newBuilder() @@ -1193,16 +1319,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(); @@ -1230,9 +1355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override @@ -1251,7 +1376,8 @@ public com.google.cloud.baremetalsolution.v2.Lun build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { - com.google.cloud.baremetalsolution.v2.Lun result = new com.google.cloud.baremetalsolution.v2.Lun(this); + com.google.cloud.baremetalsolution.v2.Lun result = + new com.google.cloud.baremetalsolution.v2.Lun(this); result.name_ = name_; result.id_ = id_; result.state_ = state_; @@ -1270,38 +1396,39 @@ public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Lun) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun) other); } else { super.mergeFrom(other); return this; @@ -1375,18 +1502,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1395,20 +1524,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1416,54 +1546,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1471,18 +1608,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1491,20 +1630,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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 { @@ -1512,54 +1652,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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; } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1567,51 +1714,65 @@ public Builder setIdBytes( private int state_ = 0; /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = + com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1619,33 +1780,39 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Lun.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long sizeGb_ ; + private long sizeGb_; /** + * + * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; + * * @return The sizeGb. */ @java.lang.Override @@ -1653,30 +1820,36 @@ public long getSizeGb() { return sizeGb_; } /** + * + * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; + * * @param value The sizeGb to set. * @return This builder for chaining. */ public Builder setSizeGb(long value) { - + sizeGb_ = value; onChanged(); return this; } /** + * + * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; + * * @return This builder for chaining. */ public Builder clearSizeGb() { - + sizeGb_ = 0L; onChanged(); return this; @@ -1684,78 +1857,98 @@ public Builder clearSizeGb() { private int multiprotocolType_ = 0; /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override public int getMultiprotocolTypeValue() { + @java.lang.Override + public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @param value The enum numeric value on the wire for multiprotocolType to set. * @return This builder for chaining. */ public Builder setMultiprotocolTypeValue(int value) { - + multiprotocolType_ = value; onChanged(); return this; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The multiprotocolType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED + : result; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @param value The multiprotocolType to set. * @return This builder for chaining. */ - public Builder setMultiprotocolType(com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { + public Builder setMultiprotocolType( + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { if (value == null) { throw new NullPointerException(); } - + multiprotocolType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return This builder for chaining. */ public Builder clearMultiprotocolType() { - + multiprotocolType_ = 0; onChanged(); return this; @@ -1763,18 +1956,20 @@ public Builder clearMultiprotocolType() { private java.lang.Object storageVolume_ = ""; /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The storageVolume. */ public java.lang.String getStorageVolume() { java.lang.Object ref = storageVolume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; @@ -1783,20 +1978,21 @@ public java.lang.String getStorageVolume() { } } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for storageVolume. */ - public com.google.protobuf.ByteString - getStorageVolumeBytes() { + public com.google.protobuf.ByteString getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -1804,66 +2000,76 @@ public java.lang.String getStorageVolume() { } } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @param value The storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolume( - java.lang.String value) { + public Builder setStorageVolume(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + storageVolume_ = value; onChanged(); return this; } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearStorageVolume() { - + storageVolume_ = getDefaultInstance().getStorageVolume(); onChanged(); return this; } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolumeBytes( - com.google.protobuf.ByteString value) { + public Builder setStorageVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageVolume_ = value; onChanged(); return this; } - private boolean shareable_ ; + private boolean shareable_; /** + * + * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; + * * @return The shareable. */ @java.lang.Override @@ -1871,42 +2077,51 @@ public boolean getShareable() { return shareable_; } /** + * + * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; + * * @param value The shareable to set. * @return This builder for chaining. */ public Builder setShareable(boolean value) { - + shareable_ = value; onChanged(); return this; } /** + * + * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; + * * @return This builder for chaining. */ public Builder clearShareable() { - + shareable_ = false; onChanged(); return this; } - private boolean bootLun_ ; + private boolean bootLun_; /** + * + * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; + * * @return The bootLun. */ @java.lang.Override @@ -1914,30 +2129,36 @@ public boolean getBootLun() { return bootLun_; } /** + * + * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; + * * @param value The bootLun to set. * @return This builder for chaining. */ public Builder setBootLun(boolean value) { - + bootLun_ = value; onChanged(); return this; } /** + * + * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; + * * @return This builder for chaining. */ public Builder clearBootLun() { - + bootLun_ = false; onChanged(); return this; @@ -1945,51 +2166,67 @@ public Builder clearBootLun() { private int storageType_ = 0; /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = + com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED + : result; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @param value The storageType to set. * @return This builder for chaining. */ @@ -1997,21 +2234,24 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Lun.StorageT if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -2019,18 +2259,20 @@ public Builder clearStorageType() { private java.lang.Object wwid_ = ""; /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @return The wwid. */ public java.lang.String getWwid() { java.lang.Object ref = wwid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; @@ -2039,20 +2281,21 @@ public java.lang.String getWwid() { } } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @return The bytes for wwid. */ - public com.google.protobuf.ByteString - getWwidBytes() { + public com.google.protobuf.ByteString getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); wwid_ = b; return b; } else { @@ -2060,61 +2303,68 @@ public java.lang.String getWwid() { } } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @param value The wwid to set. * @return This builder for chaining. */ - public Builder setWwid( - java.lang.String value) { + public Builder setWwid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + wwid_ = value; onChanged(); return this; } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @return This builder for chaining. */ public Builder clearWwid() { - + wwid_ = getDefaultInstance().getWwid(); onChanged(); return this; } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @param value The bytes for wwid to set. * @return This builder for chaining. */ - public Builder setWwidBytes( - com.google.protobuf.ByteString value) { + public Builder setWwidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + wwid_ = 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); } @@ -2124,12 +2374,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Lun) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Lun) private static final com.google.cloud.baremetalsolution.v2.Lun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Lun(); } @@ -2138,16 +2388,16 @@ public static com.google.cloud.baremetalsolution.v2.Lun getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Lun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Lun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Lun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Lun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2162,6 +2412,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Lun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java index eae3681..df63068 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java @@ -1,178 +1,241 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface LunOrBuilder extends +public interface LunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Lun) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Lun.State getState(); /** + * + * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; + * * @return The sizeGb. */ long getSizeGb(); /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The enum numeric value on the wire for multiprotocolType. */ int getMultiprotocolTypeValue(); /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The multiprotocolType. */ com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType(); /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The storageVolume. */ java.lang.String getStorageVolume(); /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for storageVolume. */ - com.google.protobuf.ByteString - getStorageVolumeBytes(); + com.google.protobuf.ByteString getStorageVolumeBytes(); /** + * + * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; + * * @return The shareable. */ boolean getShareable(); /** + * + * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; + * * @return The bootLun. */ boolean getBootLun(); /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType(); /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The wwid. */ java.lang.String getWwid(); /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The bytes for wwid. */ - com.google.protobuf.ByteString - getWwidBytes(); + com.google.protobuf.ByteString getWwidBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java new file mode 100644 index 0000000..94372e2 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java @@ -0,0 +1,153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class LunProto { + private LunProto() {} + + 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_baremetalsolution_v2_Lun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." + + "proto\022!google.cloud.baremetalsolution.v2" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" + + "gle.cloud.baremetalsolution.v2.Lun.State" + + "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" + + "\004 \001(\01628.google.cloud.baremetalsolution.v" + + "2.Lun.MultiprotocolType\022D\n\016storage_volum" + + "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" + + "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" + + "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" + + "e.cloud.baremetalsolution.v2.Lun.Storage" + + "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" + + "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" + + "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" + + "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" + + "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" + + "$baremetalsolution.googleapis.com/Lun\022Cp" + + "rojects/{project}/locations/{location}/v" + + "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" + + "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" + + "tion.googleapis.com/Lun\"y\n\017ListLunsReque" + + "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" + + "ution.googleapis.com/Volume\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" + + "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" + + "metalsolution.v2.Lun\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" + + "e.cloud.baremetalsolution.v2B\010LunProtoP\001" + + "ZRgoogle.golang.org/genproto/googleapis/" + + "cloud/baremetalsolution/v2;baremetalsolu" + + "tion\252\002!Google.Cloud.BareMetalSolution.V2" + + "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" + + "oogle::Cloud::BareMetalSolution::V2b\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, + new java.lang.String[] { + "Name", + "Id", + "State", + "SizeGb", + "MultiprotocolType", + "StorageVolume", + "Shareable", + "BootLun", + "StorageType", + "Wwid", + }); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, + new java.lang.String[] { + "Luns", "NextPageToken", "Unreachable", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java index 26b360f..3977086 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A Network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} */ -public final class Network extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Network extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Network) NetworkOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Network.newBuilder() to construct. private Network(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Network() { name_ = ""; id_ = ""; @@ -34,16 +52,15 @@ private Network() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Network(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Network( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -63,105 +80,122 @@ private Network( case 0: done = true; break; - case 16: { - int rawValue = input.readEnum(); + case 16: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - ipAddress_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - macAddress_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + ipAddress_ = s; + break; } - macAddress_.add(s); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + macAddress_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + macAddress_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 48: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - vlanId_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + vlanId_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - cidr_ = s; - break; - } - case 74: { - com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; - if (vrf_ != null) { - subBuilder = vrf_.toBuilder(); + cidr_ = s; + break; } - vrf_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vrf_); - vrf_ = subBuilder.buildPartial(); + case 74: + { + com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; + if (vrf_ != null) { + subBuilder = vrf_.toBuilder(); + } + vrf_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(vrf_); + vrf_ = subBuilder.buildPartial(); + } + + break; } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + id_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); + case 90: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - servicesCidr_ = s; - break; - } - case 106: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - reservations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + servicesCidr_ = s; + break; } - reservations_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 106: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + reservations_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>(); + mutable_bitField0_ |= 0x00000004; + } + reservations_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -169,8 +203,7 @@ private Network( } 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)) { macAddress_ = macAddress_.getUnmodifiableView(); @@ -182,41 +215,46 @@ private Network( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_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 11: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); + com.google.cloud.baremetalsolution.v2.Network.class, + com.google.cloud.baremetalsolution.v2.Network.Builder.class); } /** + * + * *
    * Network type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified value.
      * 
@@ -225,6 +263,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Client network, a network peered to a Google Cloud VPC.
      * 
@@ -233,6 +273,8 @@ public enum Type */ CLIENT(1), /** + * + * *
      * Private network, a network local to the Bare Metal Solution environment.
      * 
@@ -244,6 +286,8 @@ public enum Type ; /** + * + * *
      * Unspecified value.
      * 
@@ -252,6 +296,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Client network, a network peered to a Google Cloud VPC.
      * 
@@ -260,6 +306,8 @@ public enum Type */ public static final int CLIENT_VALUE = 1; /** + * + * *
      * Private network, a network local to the Bare Metal Solution environment.
      * 
@@ -268,7 +316,6 @@ public enum Type */ public static final int PRIVATE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -293,49 +340,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return CLIENT; - case 2: return PRIVATE; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return CLIENT; + case 2: + return PRIVATE; + 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< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.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 Type findValueByNumber(int number) { + return Type.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.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -353,15 +400,18 @@ private Type(int value) { } /** + * + * *
    * The possible states for this Network.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The Network is in an unknown state.
      * 
@@ -370,6 +420,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Network is provisioning.
      * 
@@ -378,6 +430,8 @@ public enum State */ PROVISIONING(1), /** + * + * *
      * The Network has been provisioned.
      * 
@@ -389,6 +443,8 @@ public enum State ; /** + * + * *
      * The Network is in an unknown state.
      * 
@@ -397,6 +453,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Network is provisioning.
      * 
@@ -405,6 +463,8 @@ public enum State */ public static final int PROVISIONING_VALUE = 1; /** + * + * *
      * The Network has been provisioned.
      * 
@@ -413,7 +473,6 @@ public enum State */ public static final int PROVISIONED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -438,49 +497,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONING; - case 2: return PROVISIONED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return PROVISIONED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -500,6 +559,8 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 5; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -509,6 +570,7 @@ private State(int value) {
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -517,14 +579,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; } } /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -534,16 +597,15 @@ public java.lang.String getName() {
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -554,11 +616,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ @java.lang.Override @@ -567,29 +632,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; } } /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @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 { @@ -600,38 +665,52 @@ public java.lang.String getId() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The type. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } public static final int IP_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object ipAddress_; /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ @java.lang.Override @@ -640,29 +719,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -673,34 +752,42 @@ public java.lang.String getIpAddress() { public static final int MAC_ADDRESS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList macAddress_; /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return A list containing the macAddress. */ - public com.google.protobuf.ProtocolStringList - getMacAddressList() { + public com.google.protobuf.ProtocolStringList getMacAddressList() { return macAddress_; } /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return The count of macAddress. */ public int getMacAddressCount() { return macAddress_.size(); } /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the element to return. * @return The macAddress at the given index. */ @@ -708,54 +795,70 @@ public java.lang.String getMacAddress(int index) { return macAddress_.get(index); } /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - public com.google.protobuf.ByteString - getMacAddressBytes(int index) { + public com.google.protobuf.ByteString getMacAddressBytes(int index) { return macAddress_.getByteString(index); } public static final int STATE_FIELD_NUMBER = 6; private int state_; /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.State result = + com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED + : result; } public static final int VLAN_ID_FIELD_NUMBER = 7; private volatile java.lang.Object vlanId_; /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The vlanId. */ @java.lang.Override @@ -764,29 +867,29 @@ public java.lang.String getVlanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vlanId_ = s; return s; } } /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The bytes for vlanId. */ @java.lang.Override - public com.google.protobuf.ByteString - getVlanIdBytes() { + public com.google.protobuf.ByteString getVlanIdBytes() { java.lang.Object ref = vlanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vlanId_ = b; return b; } else { @@ -797,11 +900,14 @@ public java.lang.String getVlanId() { public static final int CIDR_FIELD_NUMBER = 8; private volatile java.lang.Object cidr_; /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The cidr. */ @java.lang.Override @@ -810,29 +916,29 @@ public java.lang.String getCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; } } /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The bytes for cidr. */ @java.lang.Override - public com.google.protobuf.ByteString - getCidrBytes() { + public com.google.protobuf.ByteString getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidr_ = b; return b; } else { @@ -843,11 +949,14 @@ public java.lang.String getCidr() { public static final int VRF_FIELD_NUMBER = 9; private com.google.cloud.baremetalsolution.v2.VRF vrf_; /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return Whether the vrf field is set. */ @java.lang.Override @@ -855,11 +964,14 @@ public boolean hasVrf() { return vrf_ != null; } /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return The vrf. */ @java.lang.Override @@ -867,6 +979,8 @@ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; } /** + * + * *
    * The vrf for the Network.
    * 
@@ -879,24 +993,23 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 11; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -905,28 +1018,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -934,11 +1049,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 11; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -946,16 +1062,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -963,12 +1079,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -978,11 +1093,14 @@ public java.lang.String getLabelsOrThrow( public static final int SERVICES_CIDR_FIELD_NUMBER = 12; private volatile java.lang.Object servicesCidr_; /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The servicesCidr. */ @java.lang.Override @@ -991,29 +1109,29 @@ public java.lang.String getServicesCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servicesCidr_ = s; return s; } } /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The bytes for servicesCidr. */ @java.lang.Override - public com.google.protobuf.ByteString - getServicesCidrBytes() { + public com.google.protobuf.ByteString getServicesCidrBytes() { java.lang.Object ref = servicesCidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); servicesCidr_ = b; return b; } else { @@ -1022,76 +1140,96 @@ public java.lang.String getServicesCidr() { } public static final int RESERVATIONS_FIELD_NUMBER = 13; - private java.util.List reservations_; + private java.util.List + reservations_; /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public java.util.List getReservationsList() { + public java.util.List + getReservationsList() { return reservations_; } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> getReservationsOrBuilderList() { return reservations_; } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override public int getReservationsCount() { return reservations_.size(); } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations( + int index) { return reservations_.get(index); } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder + getReservationsOrBuilder(int index) { return reservations_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1103,8 +1241,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } @@ -1117,7 +1254,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { @@ -1132,12 +1270,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, id_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 11); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, servicesCidr_); } @@ -1154,8 +1288,7 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); @@ -1171,9 +1304,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vlanId_); @@ -1182,28 +1315,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cidr_); } if (vrf_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getVrf()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getVrf()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, id_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, servicesCidr_); } for (int i = 0; i < reservations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, reservations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, reservations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1213,38 +1344,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Network)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Network other = (com.google.cloud.baremetalsolution.v2.Network) obj; + com.google.cloud.baremetalsolution.v2.Network other = + (com.google.cloud.baremetalsolution.v2.Network) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (type_ != other.type_) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (!getMacAddressList() - .equals(other.getMacAddressList())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getMacAddressList().equals(other.getMacAddressList())) return false; if (state_ != other.state_) return false; - if (!getVlanId() - .equals(other.getVlanId())) return false; - if (!getCidr() - .equals(other.getCidr())) return false; + if (!getVlanId().equals(other.getVlanId())) return false; + if (!getCidr().equals(other.getCidr())) return false; if (hasVrf() != other.hasVrf()) return false; if (hasVrf()) { - if (!getVrf() - .equals(other.getVrf())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getServicesCidr() - .equals(other.getServicesCidr())) return false; - if (!getReservationsList() - .equals(other.getReservationsList())) return false; + if (!getVrf().equals(other.getVrf())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getServicesCidr().equals(other.getServicesCidr())) return false; + if (!getReservationsList().equals(other.getReservationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1293,140 +1415,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Network parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network 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.baremetalsolution.v2.Network parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Network prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Network) com.google.cloud.baremetalsolution.v2.NetworkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 11: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 11: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); + com.google.cloud.baremetalsolution.v2.Network.class, + com.google.cloud.baremetalsolution.v2.Network.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Network.newBuilder() @@ -1434,17 +1563,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) { getReservationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1483,9 +1612,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; } @java.lang.Override @@ -1504,7 +1633,8 @@ public com.google.cloud.baremetalsolution.v2.Network build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network buildPartial() { - com.google.cloud.baremetalsolution.v2.Network result = new com.google.cloud.baremetalsolution.v2.Network(this); + com.google.cloud.baremetalsolution.v2.Network result = + new com.google.cloud.baremetalsolution.v2.Network(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -1543,38 +1673,39 @@ public com.google.cloud.baremetalsolution.v2.Network buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Network) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Network)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Network) other); } else { super.mergeFrom(other); return this; @@ -1622,8 +1753,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { if (other.hasVrf()) { mergeVrf(other.getVrf()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getServicesCidr().isEmpty()) { servicesCidr_ = other.servicesCidr_; onChanged(); @@ -1646,9 +1776,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { reservationsBuilder_ = null; reservations_ = other.reservations_; bitField0_ = (bitField0_ & ~0x00000004); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReservationsFieldBuilder() : null; + reservationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReservationsFieldBuilder() + : null; } else { reservationsBuilder_.addAllMessages(other.reservations_); } @@ -1682,10 +1813,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1695,13 +1829,13 @@ public Builder mergeFrom(
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1710,6 +1844,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1719,15 +1855,14 @@ public java.lang.String getName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1735,6 +1870,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1744,20 +1881,22 @@ public java.lang.String getName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1767,15 +1906,18 @@ public Builder setName(
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1785,16 +1927,16 @@ public Builder clearName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1802,18 +1944,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1822,20 +1966,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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 { @@ -1843,54 +1988,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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; } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1898,51 +2050,67 @@ public Builder setIdBytes( private int type_ = 0; /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The type. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1950,21 +2118,24 @@ public Builder setType(com.google.cloud.baremetalsolution.v2.Network.Type value) if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1972,18 +2143,20 @@ public Builder clearType() { private java.lang.Object ipAddress_ = ""; /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -1992,20 +2165,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -2013,95 +2187,112 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList macAddress_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMacAddressIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { macAddress_ = new com.google.protobuf.LazyStringArrayList(macAddress_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @return A list containing the macAddress. */ - public com.google.protobuf.ProtocolStringList - getMacAddressList() { + public com.google.protobuf.ProtocolStringList getMacAddressList() { return macAddress_.getUnmodifiableView(); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @return The count of macAddress. */ public int getMacAddressCount() { return macAddress_.size(); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param index The index of the element to return. * @return The macAddress at the given index. */ @@ -2109,80 +2300,90 @@ public java.lang.String getMacAddress(int index) { return macAddress_.get(index); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - public com.google.protobuf.ByteString - getMacAddressBytes(int index) { + public com.google.protobuf.ByteString getMacAddressBytes(int index) { return macAddress_.getByteString(index); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param index The index to set the value at. * @param value The macAddress to set. * @return This builder for chaining. */ - public Builder setMacAddress( - int index, java.lang.String value) { + public Builder setMacAddress(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); macAddress_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param value The macAddress to add. * @return This builder for chaining. */ - public Builder addMacAddress( - java.lang.String value) { + public Builder addMacAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); macAddress_.add(value); onChanged(); return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param values The macAddress to add. * @return This builder for chaining. */ - public Builder addAllMacAddress( - java.lang.Iterable values) { + public Builder addAllMacAddress(java.lang.Iterable values) { ensureMacAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, macAddress_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, macAddress_); onChanged(); return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @return This builder for chaining. */ public Builder clearMacAddress() { @@ -2192,20 +2393,22 @@ public Builder clearMacAddress() { return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param value The bytes of the macAddress to add. * @return This builder for chaining. */ - public Builder addMacAddressBytes( - com.google.protobuf.ByteString value) { + public Builder addMacAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMacAddressIsMutable(); macAddress_.add(value); onChanged(); @@ -2214,51 +2417,67 @@ public Builder addMacAddressBytes( private int state_ = 0; /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.State result = + com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED + : result; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2266,21 +2485,24 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Network.State valu if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2288,18 +2510,20 @@ public Builder clearState() { private java.lang.Object vlanId_ = ""; /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @return The vlanId. */ public java.lang.String getVlanId() { java.lang.Object ref = vlanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vlanId_ = s; return s; @@ -2308,20 +2532,21 @@ public java.lang.String getVlanId() { } } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @return The bytes for vlanId. */ - public com.google.protobuf.ByteString - getVlanIdBytes() { + public com.google.protobuf.ByteString getVlanIdBytes() { java.lang.Object ref = vlanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vlanId_ = b; return b; } else { @@ -2329,54 +2554,61 @@ public java.lang.String getVlanId() { } } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @param value The vlanId to set. * @return This builder for chaining. */ - public Builder setVlanId( - java.lang.String value) { + public Builder setVlanId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vlanId_ = value; onChanged(); return this; } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @return This builder for chaining. */ public Builder clearVlanId() { - + vlanId_ = getDefaultInstance().getVlanId(); onChanged(); return this; } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @param value The bytes for vlanId to set. * @return This builder for chaining. */ - public Builder setVlanIdBytes( - com.google.protobuf.ByteString value) { + public Builder setVlanIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vlanId_ = value; onChanged(); return this; @@ -2384,18 +2616,20 @@ public Builder setVlanIdBytes( private java.lang.Object cidr_ = ""; /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @return The cidr. */ public java.lang.String getCidr() { java.lang.Object ref = cidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; @@ -2404,20 +2638,21 @@ public java.lang.String getCidr() { } } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @return The bytes for cidr. */ - public com.google.protobuf.ByteString - getCidrBytes() { + public com.google.protobuf.ByteString getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidr_ = b; return b; } else { @@ -2425,54 +2660,61 @@ public java.lang.String getCidr() { } } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @param value The cidr to set. * @return This builder for chaining. */ - public Builder setCidr( - java.lang.String value) { + public Builder setCidr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cidr_ = value; onChanged(); return this; } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @return This builder for chaining. */ public Builder clearCidr() { - + cidr_ = getDefaultInstance().getCidr(); onChanged(); return this; } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @param value The bytes for cidr to set. * @return This builder for chaining. */ - public Builder setCidrBytes( - com.google.protobuf.ByteString value) { + public Builder setCidrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidr_ = value; onChanged(); return this; @@ -2480,24 +2722,33 @@ public Builder setCidrBytes( private com.google.cloud.baremetalsolution.v2.VRF vrf_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> vrfBuilder_; + com.google.cloud.baremetalsolution.v2.VRF, + com.google.cloud.baremetalsolution.v2.VRF.Builder, + com.google.cloud.baremetalsolution.v2.VRFOrBuilder> + vrfBuilder_; /** + * + * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return Whether the vrf field is set. */ public boolean hasVrf() { return vrfBuilder_ != null || vrf_ != null; } /** + * + * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return The vrf. */ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { @@ -2508,6 +2759,8 @@ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { } } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2528,14 +2781,15 @@ public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF value) { return this; } /** + * + * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ - public Builder setVrf( - com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { + public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { if (vrfBuilder_ == null) { vrf_ = builderForValue.build(); onChanged(); @@ -2546,6 +2800,8 @@ public Builder setVrf( return this; } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2556,7 +2812,14 @@ public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { if (vrfBuilder_ == null) { if (vrf_ != null) { vrf_ = - com.google.cloud.baremetalsolution.v2.VRF.newBuilder(vrf_).mergeFrom(value).buildPartial(); + com.google + .cloud + .baremetalsolution + .v2 + .VRF + .newBuilder(vrf_) + .mergeFrom(value) + .buildPartial(); } else { vrf_ = value; } @@ -2568,6 +2831,8 @@ public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { return this; } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2586,6 +2851,8 @@ public Builder clearVrf() { return this; } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2593,11 +2860,13 @@ public Builder clearVrf() { * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ public com.google.cloud.baremetalsolution.v2.VRF.Builder getVrfBuilder() { - + onChanged(); return getVrfFieldBuilder().getBuilder(); } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2608,11 +2877,12 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { if (vrfBuilder_ != null) { return vrfBuilder_.getMessageOrBuilder(); } else { - return vrf_ == null ? - com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; + return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; } } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2620,35 +2890,37 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF, + com.google.cloud.baremetalsolution.v2.VRF.Builder, + com.google.cloud.baremetalsolution.v2.VRFOrBuilder> getVrfFieldBuilder() { if (vrfBuilder_ == null) { - vrfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( - getVrf(), - getParentForChildren(), - isClean()); + vrfBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF, + com.google.cloud.baremetalsolution.v2.VRF.Builder, + com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( + getVrf(), getParentForChildren(), isClean()); vrf_ = null; } return vrfBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2660,28 +2932,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2689,11 +2963,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 11; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2701,16 +2976,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2718,12 +2994,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2731,81 +3006,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.lang.Object servicesCidr_ = ""; /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @return The servicesCidr. */ public java.lang.String getServicesCidr() { java.lang.Object ref = servicesCidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servicesCidr_ = s; return s; @@ -2814,20 +3088,21 @@ public java.lang.String getServicesCidr() { } } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @return The bytes for servicesCidr. */ - public com.google.protobuf.ByteString - getServicesCidrBytes() { + public com.google.protobuf.ByteString getServicesCidrBytes() { java.lang.Object ref = servicesCidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); servicesCidr_ = b; return b; } else { @@ -2835,81 +3110,99 @@ public java.lang.String getServicesCidr() { } } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @param value The servicesCidr to set. * @return This builder for chaining. */ - public Builder setServicesCidr( - java.lang.String value) { + public Builder setServicesCidr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + servicesCidr_ = value; onChanged(); return this; } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @return This builder for chaining. */ public Builder clearServicesCidr() { - + servicesCidr_ = getDefaultInstance().getServicesCidr(); onChanged(); return this; } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @param value The bytes for servicesCidr to set. * @return This builder for chaining. */ - public Builder setServicesCidrBytes( - com.google.protobuf.ByteString value) { + public Builder setServicesCidrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesCidr_ = value; onChanged(); return this; } - private java.util.List reservations_ = - java.util.Collections.emptyList(); + private java.util.List + reservations_ = java.util.Collections.emptyList(); + private void ensureReservationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - reservations_ = new java.util.ArrayList(reservations_); + reservations_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>(reservations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> reservationsBuilder_; + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + reservationsBuilder_; /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public java.util.List getReservationsList() { + public java.util.List + getReservationsList() { if (reservationsBuilder_ == null) { return java.util.Collections.unmodifiableList(reservations_); } else { @@ -2917,13 +3210,17 @@ public java.util.List * List of IP address reservations in this network. * When updating this field, an error will be generated if a reservation * conflicts with an IP address already allocated to a physical server. *
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public int getReservationsCount() { if (reservationsBuilder_ == null) { @@ -2933,15 +3230,20 @@ public int getReservationsCount() { } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations( + int index) { if (reservationsBuilder_ == null) { return reservations_.get(index); } else { @@ -2949,13 +3251,17 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReserv } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder setReservations( int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { @@ -2972,16 +3278,21 @@ public Builder setReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder setReservations( - int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.set(index, builderForValue.build()); @@ -2992,15 +3303,20 @@ public Builder setReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public Builder addReservations(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { + public Builder addReservations( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { if (reservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3014,13 +3330,17 @@ public Builder addReservations(com.google.cloud.baremetalsolution.v2.NetworkAddr return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addReservations( int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { @@ -3037,13 +3357,17 @@ public Builder addReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addReservations( com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { @@ -3057,16 +3381,21 @@ public Builder addReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addReservations( - int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.add(index, builderForValue.build()); @@ -3077,20 +3406,25 @@ public Builder addReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addAllReservations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservation> + values) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reservations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservations_); onChanged(); } else { reservationsBuilder_.addAllMessages(values); @@ -3098,13 +3432,17 @@ public Builder addAllReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder clearReservations() { if (reservationsBuilder_ == null) { @@ -3117,13 +3455,17 @@ public Builder clearReservations() { return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder removeReservations(int index) { if (reservationsBuilder_ == null) { @@ -3136,45 +3478,59 @@ public Builder removeReservations(int index) { return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder getReservationsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder + getReservationsBuilder(int index) { return getReservationsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder + getReservationsOrBuilder(int index) { if (reservationsBuilder_ == null) { - return reservations_.get(index); } else { + return reservations_.get(index); + } else { return reservationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public java.util.List - getReservationsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + getReservationsOrBuilderList() { if (reservationsBuilder_ != null) { return reservationsBuilder_.getMessageOrBuilderList(); } else { @@ -3182,62 +3538,81 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder() { - return getReservationsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder + addReservationsBuilder() { + return getReservationsFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder( - int index) { - return getReservationsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder + addReservationsBuilder(int index) { + return getReservationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public java.util.List - getReservationsBuilderList() { + public java.util.List + getReservationsBuilderList() { return getReservationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> getReservationsFieldBuilder() { if (reservationsBuilder_ == null) { - reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( - reservations_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + reservationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( + reservations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); reservations_ = null; } return reservationsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3247,12 +3622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Network) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Network) private static final com.google.cloud.baremetalsolution.v2.Network DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Network(); } @@ -3261,16 +3636,16 @@ public static com.google.cloud.baremetalsolution.v2.Network getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Network parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Network(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Network parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Network(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3285,6 +3660,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Network getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java index 30e66f8..fa6c9b0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A reservation of one or more addresses in a network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} */ -public final class NetworkAddressReservation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkAddressReservation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) NetworkAddressReservationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkAddressReservation.newBuilder() to construct. private NetworkAddressReservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkAddressReservation() { startAddress_ = ""; endAddress_ = ""; @@ -27,16 +45,15 @@ private NetworkAddressReservation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkAddressReservation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NetworkAddressReservation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private NetworkAddressReservation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - startAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + startAddress_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - endAddress_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + endAddress_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - note_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + note_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,35 +107,40 @@ private NetworkAddressReservation( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); } public static final int START_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object startAddress_; /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The startAddress. */ @java.lang.Override @@ -124,30 +149,30 @@ public java.lang.String getStartAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startAddress_ = s; return s; } } /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The bytes for startAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getStartAddressBytes() { + public com.google.protobuf.ByteString getStartAddressBytes() { java.lang.Object ref = startAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); startAddress_ = b; return b; } else { @@ -158,6 +183,8 @@ public java.lang.String getStartAddress() { public static final int END_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object endAddress_; /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -166,6 +193,7 @@ public java.lang.String getStartAddress() {
    * 
* * string end_address = 2; + * * @return The endAddress. */ @java.lang.Override @@ -174,14 +202,15 @@ public java.lang.String getEndAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endAddress_ = s; return s; } } /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -190,16 +219,15 @@ public java.lang.String getEndAddress() {
    * 
* * string end_address = 2; + * * @return The bytes for endAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getEndAddressBytes() { + public com.google.protobuf.ByteString getEndAddressBytes() { java.lang.Object ref = endAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endAddress_ = b; return b; } else { @@ -210,11 +238,14 @@ public java.lang.String getEndAddress() { public static final int NOTE_FIELD_NUMBER = 3; private volatile java.lang.Object note_; /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The note. */ @java.lang.Override @@ -223,29 +254,29 @@ public java.lang.String getNote() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); note_ = s; return s; } } /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The bytes for note. */ @java.lang.Override - public com.google.protobuf.ByteString - getNoteBytes() { + public com.google.protobuf.ByteString getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); note_ = b; return b; } else { @@ -254,6 +285,7 @@ public java.lang.String getNote() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startAddress_); } @@ -302,19 +333,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.baremetalsolution.v2.NetworkAddressReservation)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = + (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; - if (!getStartAddress() - .equals(other.getStartAddress())) return false; - if (!getEndAddress() - .equals(other.getEndAddress())) return false; - if (!getNote() - .equals(other.getNote())) return false; + if (!getStartAddress().equals(other.getStartAddress())) return false; + if (!getEndAddress().equals(other.getEndAddress())) return false; + if (!getNote().equals(other.getNote())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,117 +367,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 reservation of one or more addresses in a network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.newBuilder() @@ -456,16 +495,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,13 +517,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance(); } @@ -500,7 +539,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPartial() { - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = + new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); result.startAddress_ = startAddress_; result.endAddress_ = endAddress_; result.note_ = note_; @@ -512,46 +552,50 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { - if (other == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { + if (other + == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) + return this; if (!other.getStartAddress().isEmpty()) { startAddress_ = other.startAddress_; onChanged(); @@ -583,7 +627,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,19 +641,21 @@ public Builder mergeFrom( private java.lang.Object startAddress_ = ""; /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @return The startAddress. */ public java.lang.String getStartAddress() { java.lang.Object ref = startAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startAddress_ = s; return s; @@ -616,21 +664,22 @@ public java.lang.String getStartAddress() { } } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @return The bytes for startAddress. */ - public com.google.protobuf.ByteString - getStartAddressBytes() { + public com.google.protobuf.ByteString getStartAddressBytes() { java.lang.Object ref = startAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); startAddress_ = b; return b; } else { @@ -638,57 +687,64 @@ public java.lang.String getStartAddress() { } } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @param value The startAddress to set. * @return This builder for chaining. */ - public Builder setStartAddress( - java.lang.String value) { + public Builder setStartAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + startAddress_ = value; onChanged(); return this; } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @return This builder for chaining. */ public Builder clearStartAddress() { - + startAddress_ = getDefaultInstance().getStartAddress(); onChanged(); return this; } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @param value The bytes for startAddress to set. * @return This builder for chaining. */ - public Builder setStartAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setStartAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + startAddress_ = value; onChanged(); return this; @@ -696,6 +752,8 @@ public Builder setStartAddressBytes( private java.lang.Object endAddress_ = ""; /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -704,13 +762,13 @@ public Builder setStartAddressBytes(
      * 
* * string end_address = 2; + * * @return The endAddress. */ public java.lang.String getEndAddress() { java.lang.Object ref = endAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endAddress_ = s; return s; @@ -719,6 +777,8 @@ public java.lang.String getEndAddress() { } } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -727,15 +787,14 @@ public java.lang.String getEndAddress() {
      * 
* * string end_address = 2; + * * @return The bytes for endAddress. */ - public com.google.protobuf.ByteString - getEndAddressBytes() { + public com.google.protobuf.ByteString getEndAddressBytes() { java.lang.Object ref = endAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endAddress_ = b; return b; } else { @@ -743,6 +802,8 @@ public java.lang.String getEndAddress() { } } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -751,20 +812,22 @@ public java.lang.String getEndAddress() {
      * 
* * string end_address = 2; + * * @param value The endAddress to set. * @return This builder for chaining. */ - public Builder setEndAddress( - java.lang.String value) { + public Builder setEndAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endAddress_ = value; onChanged(); return this; } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -773,15 +836,18 @@ public Builder setEndAddress(
      * 
* * string end_address = 2; + * * @return This builder for chaining. */ public Builder clearEndAddress() { - + endAddress_ = getDefaultInstance().getEndAddress(); onChanged(); return this; } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -790,16 +856,16 @@ public Builder clearEndAddress() {
      * 
* * string end_address = 2; + * * @param value The bytes for endAddress to set. * @return This builder for chaining. */ - public Builder setEndAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setEndAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endAddress_ = value; onChanged(); return this; @@ -807,18 +873,20 @@ public Builder setEndAddressBytes( private java.lang.Object note_ = ""; /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @return The note. */ public java.lang.String getNote() { java.lang.Object ref = note_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); note_ = s; return s; @@ -827,20 +895,21 @@ public java.lang.String getNote() { } } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @return The bytes for note. */ - public com.google.protobuf.ByteString - getNoteBytes() { + public com.google.protobuf.ByteString getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); note_ = b; return b; } else { @@ -848,61 +917,68 @@ public java.lang.String getNote() { } } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @param value The note to set. * @return This builder for chaining. */ - public Builder setNote( - java.lang.String value) { + public Builder setNote(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + note_ = value; onChanged(); return this; } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @return This builder for chaining. */ public Builder clearNote() { - + note_ = getDefaultInstance().getNote(); onChanged(); return this; } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @param value The bytes for note to set. * @return This builder for chaining. */ - public Builder setNoteBytes( - com.google.protobuf.ByteString value) { + public Builder setNoteBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + note_ = 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,30 +988,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) - private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkAddressReservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkAddressReservation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkAddressReservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkAddressReservation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,9 +1025,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java index 9f27f17..a9839c9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkAddressReservationOrBuilder extends +public interface NetworkAddressReservationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkAddressReservation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The startAddress. */ java.lang.String getStartAddress(); /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The bytes for startAddress. */ - com.google.protobuf.ByteString - getStartAddressBytes(); + com.google.protobuf.ByteString getStartAddressBytes(); /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -38,10 +61,13 @@ public interface NetworkAddressReservationOrBuilder extends
    * 
* * string end_address = 2; + * * @return The endAddress. */ java.lang.String getEndAddress(); /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -50,28 +76,33 @@ public interface NetworkAddressReservationOrBuilder extends
    * 
* * string end_address = 2; + * * @return The bytes for endAddress. */ - com.google.protobuf.ByteString - getEndAddressBytes(); + com.google.protobuf.ByteString getEndAddressBytes(); /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The note. */ java.lang.String getNote(); /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The bytes for note. */ - com.google.protobuf.ByteString - getNoteBytes(); + com.google.protobuf.ByteString getNoteBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java index a9ee27f..8f4c764 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkOrBuilder extends +public interface NetworkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Network) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -17,10 +35,13 @@ public interface NetworkOrBuilder extends
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -30,189 +51,239 @@ public interface NetworkOrBuilder extends
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The type. */ com.google.cloud.baremetalsolution.v2.Network.Type getType(); /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return A list containing the macAddress. */ - java.util.List - getMacAddressList(); + java.util.List getMacAddressList(); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return The count of macAddress. */ int getMacAddressCount(); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the element to return. * @return The macAddress at the given index. */ java.lang.String getMacAddress(int index); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - com.google.protobuf.ByteString - getMacAddressBytes(int index); + com.google.protobuf.ByteString getMacAddressBytes(int index); /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Network.State getState(); /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The vlanId. */ java.lang.String getVlanId(); /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The bytes for vlanId. */ - com.google.protobuf.ByteString - getVlanIdBytes(); + com.google.protobuf.ByteString getVlanIdBytes(); /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The cidr. */ java.lang.String getCidr(); /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The bytes for cidr. */ - com.google.protobuf.ByteString - getCidrBytes(); + com.google.protobuf.ByteString getCidrBytes(); /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return Whether the vrf field is set. */ boolean hasVrf(); /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return The vrf. */ com.google.cloud.baremetalsolution.v2.VRF getVrf(); /** + * + * *
    * The vrf for the Network.
    * 
@@ -222,6 +293,8 @@ public interface NetworkOrBuilder extends com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -230,30 +303,31 @@ public interface NetworkOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -262,91 +336,111 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The servicesCidr. */ java.lang.String getServicesCidr(); /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The bytes for servicesCidr. */ - com.google.protobuf.ByteString - getServicesCidrBytes(); + com.google.protobuf.ByteString getServicesCidrBytes(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - java.util.List + java.util.List getReservationsList(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ int getReservationsCount(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - java.util.List + java.util.List getReservationsOrBuilderList(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( int index); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java new file mode 100644 index 0000000..06274bd --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java @@ -0,0 +1,327 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NetworkProto { + private NetworkProto() {} + + 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_baremetalsolution_v2_Network_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" + + "ork.proto\022!google.cloud.baremetalsolutio" + + "n.v2\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032 google/protobu" + + "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" + + " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" + + "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" + + "metalsolution.v2.Network.State\022\017\n\007vlan_i" + + "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" + + "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" + + "bels\030\013 \003(\01326.google.cloud.baremetalsolut" + + "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" + + "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" + + ".cloud.baremetalsolution.v2.NetworkAddre" + + "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" + + "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" + + "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" + + "lution.googleapis.com/Network\022:projects/" + + "{project}/locations/{location}/networks/" + + "{network}\"U\n\031NetworkAddressReservation\022\025" + + "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" + + "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" + + "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" + + "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" + + "0.google.cloud.baremetalsolution.v2.VRF." + + "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" + + "ogle.cloud.baremetalsolution.v2.VRF.Vlan" + + "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" + + "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" + + "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " + + "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" + + "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" + + "alInterface\022o\n\032logical_network_interface" + + "s\030\001 \003(\0132K.google.cloud.baremetalsolution" + + ".v2.LogicalInterface.LogicalNetworkInter" + + "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " + + "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" + + "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" + + "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" + + "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" + + "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" + + "(\0132*.google.cloud.baremetalsolution.v2.N" + + "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" + + "\007network\030\001 \001(\0132*.google.cloud.baremetals" + + "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" + + "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" + + ".baremetalsolution.v2.Network\022\020\n\010used_ip" + + "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" + + "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\"]\n\030ListNetworkUsageRespo" + + "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" + + "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" + + "oogle.cloud.baremetalsolution.v2B\014Networ" + + "kProtoP\001ZRgoogle.golang.org/genproto/goo" + + "gleapis/cloud/baremetalsolution/v2;barem" + + "etalsolution\252\002!Google.Cloud.BareMetalSol" + + "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" + + "n\\V2\352\002$Google::Cloud::BareMetalSolution:" + + ":V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, + new java.lang.String[] { + "Name", + "Id", + "Type", + "IpAddress", + "MacAddress", + "State", + "VlanId", + "Cidr", + "Vrf", + "Labels", + "ServicesCidr", + "Reservations", + }); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, + new java.lang.String[] { + "StartAddress", "EndAddress", "Note", + }); + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, + new java.lang.String[] { + "Name", "State", "QosPolicy", "VlanAttachments", + }); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, + new java.lang.String[] { + "BandwidthGbps", + }); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, + new java.lang.String[] { + "PeerVlanId", "PeerIp", "RouterIp", + }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, + new java.lang.String[] { + "LogicalNetworkInterfaces", "Name", "InterfaceIndex", + }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, + new java.lang.String[] { + "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", + }); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, + new java.lang.String[] { + "Networks", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, + new java.lang.String[] { + "Network", "UpdateMask", + }); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, + new java.lang.String[] { + "Network", "UsedIps", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, + new java.lang.String[] { + "Location", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, + new java.lang.String[] { + "Networks", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java index 3ffd7b9..19550dd 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Network with all used IP addresses.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} */ -public final class NetworkUsage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkUsage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkUsage) NetworkUsageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkUsage.newBuilder() to construct. private NetworkUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkUsage() { usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkUsage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NetworkUsage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,35 +71,39 @@ private NetworkUsage( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; - if (network_ != null) { - subBuilder = network_.toBuilder(); - } - network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(network_); - network_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - usedIps_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + usedIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + usedIps_.add(s); + break; } - usedIps_.add(s); - 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) { @@ -90,8 +111,7 @@ private NetworkUsage( } 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)) { usedIps_ = usedIps_.getUnmodifiableView(); @@ -100,27 +120,33 @@ private NetworkUsage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Network network_; /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return Whether the network field is set. */ @java.lang.Override @@ -128,18 +154,25 @@ public boolean hasNetwork() { return network_ != null; } /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return The network. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network getNetwork() { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } /** + * + * *
    * Network.
    * 
@@ -154,34 +187,42 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde public static final int USED_IPS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList usedIps_; /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return A list containing the usedIps. */ - public com.google.protobuf.ProtocolStringList - getUsedIpsList() { + public com.google.protobuf.ProtocolStringList getUsedIpsList() { return usedIps_; } /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return The count of usedIps. */ public int getUsedIpsCount() { return usedIps_.size(); } /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the element to return. * @return The usedIps at the given index. */ @@ -189,20 +230,23 @@ public java.lang.String getUsedIps(int index) { return usedIps_.get(index); } /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - public com.google.protobuf.ByteString - getUsedIpsBytes(int index) { + public com.google.protobuf.ByteString getUsedIpsBytes(int index) { return usedIps_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,8 +258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (network_ != null) { output.writeMessage(1, getNetwork()); } @@ -232,8 +275,7 @@ public int getSerializedSize() { size = 0; if (network_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNetwork()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetwork()); } { int dataSize = 0; @@ -251,20 +293,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.baremetalsolution.v2.NetworkUsage)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NetworkUsage other = (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; + com.google.cloud.baremetalsolution.v2.NetworkUsage other = + (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; if (hasNetwork() != other.hasNetwork()) return false; if (hasNetwork()) { - if (!getNetwork() - .equals(other.getNetwork())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; } - if (!getUsedIpsList() - .equals(other.getUsedIpsList())) return false; + if (!getUsedIpsList().equals(other.getUsedIpsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,117 +331,126 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Network with all used IP addresses.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkUsage) com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkUsage.newBuilder() @@ -408,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(); @@ -433,9 +482,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override @@ -454,7 +503,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { - com.google.cloud.baremetalsolution.v2.NetworkUsage result = new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); + com.google.cloud.baremetalsolution.v2.NetworkUsage result = + new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); int from_bitField0_ = bitField0_; if (networkBuilder_ == null) { result.network_ = network_; @@ -474,38 +524,39 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkUsage) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage) other); } else { super.mergeFrom(other); return this; @@ -513,7 +564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkUsage other) { - if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) + return this; if (other.hasNetwork()) { mergeNetwork(other.getNetwork()); } @@ -546,7 +598,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -555,38 +608,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.baremetalsolution.v2.Network network_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networkBuilder_; /** + * + * *
      * Network.
      * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** + * + * *
      * Network.
      * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return The network. */ public com.google.cloud.baremetalsolution.v2.Network getNetwork() { if (networkBuilder_ == null) { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } else { return networkBuilder_.getMessage(); } } /** + * + * *
      * Network.
      * 
@@ -607,6 +674,8 @@ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { return this; } /** + * + * *
      * Network.
      * 
@@ -625,6 +694,8 @@ public Builder setNetwork( return this; } /** + * + * *
      * Network.
      * 
@@ -635,7 +706,9 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_) + .mergeFrom(value) + .buildPartial(); } else { network_ = value; } @@ -647,6 +720,8 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * Network.
      * 
@@ -665,6 +740,8 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Network.
      * 
@@ -672,11 +749,13 @@ public Builder clearNetwork() { * .google.cloud.baremetalsolution.v2.Network network = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** + * + * *
      * Network.
      * 
@@ -687,11 +766,14 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilder(); } else { - return network_ == null ? - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } } /** + * + * *
      * Network.
      * 
@@ -699,55 +781,68 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde * .google.cloud.baremetalsolution.v2.Network network = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { - networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - getNetwork(), - getParentForChildren(), - isClean()); + networkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), getParentForChildren(), isClean()); network_ = null; } return networkBuilder_; } - private com.google.protobuf.LazyStringList usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList usedIps_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUsedIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { usedIps_ = new com.google.protobuf.LazyStringArrayList(usedIps_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @return A list containing the usedIps. */ - public com.google.protobuf.ProtocolStringList - getUsedIpsList() { + public com.google.protobuf.ProtocolStringList getUsedIpsList() { return usedIps_.getUnmodifiableView(); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @return The count of usedIps. */ public int getUsedIpsCount() { return usedIps_.size(); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param index The index of the element to return. * @return The usedIps at the given index. */ @@ -755,80 +850,90 @@ public java.lang.String getUsedIps(int index) { return usedIps_.get(index); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - public com.google.protobuf.ByteString - getUsedIpsBytes(int index) { + public com.google.protobuf.ByteString getUsedIpsBytes(int index) { return usedIps_.getByteString(index); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param index The index to set the value at. * @param value The usedIps to set. * @return This builder for chaining. */ - public Builder setUsedIps( - int index, java.lang.String value) { + public Builder setUsedIps(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUsedIpsIsMutable(); + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); usedIps_.set(index, value); onChanged(); return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param value The usedIps to add. * @return This builder for chaining. */ - public Builder addUsedIps( - java.lang.String value) { + public Builder addUsedIps(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUsedIpsIsMutable(); + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); usedIps_.add(value); onChanged(); return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param values The usedIps to add. * @return This builder for chaining. */ - public Builder addAllUsedIps( - java.lang.Iterable values) { + public Builder addAllUsedIps(java.lang.Iterable values) { ensureUsedIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, usedIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, usedIps_); onChanged(); return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @return This builder for chaining. */ public Builder clearUsedIps() { @@ -838,28 +943,30 @@ public Builder clearUsedIps() { return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param value The bytes of the usedIps to add. * @return This builder for chaining. */ - public Builder addUsedIpsBytes( - com.google.protobuf.ByteString value) { + public Builder addUsedIpsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUsedIpsIsMutable(); usedIps_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -869,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkUsage) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkUsage) private static final com.google.cloud.baremetalsolution.v2.NetworkUsage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkUsage(); } @@ -883,16 +990,16 @@ public static com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkUsage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkUsage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkUsage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -907,6 +1014,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java index ea45772..60acf99 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkUsageOrBuilder extends +public interface NetworkUsageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkUsage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return Whether the network field is set. */ boolean hasNetwork(); /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return The network. */ com.google.cloud.baremetalsolution.v2.Network getNetwork(); /** + * + * *
    * Network.
    * 
@@ -35,43 +59,53 @@ public interface NetworkUsageOrBuilder extends com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return A list containing the usedIps. */ - java.util.List - getUsedIpsList(); + java.util.List getUsedIpsList(); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return The count of usedIps. */ int getUsedIpsCount(); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the element to return. * @return The usedIps at the given index. */ java.lang.String getUsedIps(int index); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - com.google.protobuf.ByteString - getUsedIpsBytes(int index); + com.google.protobuf.ByteString getUsedIpsBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java index 7be4d09..b8bb184 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * An NFS share.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} */ -public final class NfsShare extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NfsShare extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare) NfsShareOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NfsShare.newBuilder() to construct. private NfsShare(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NfsShare() { name_ = ""; nfsShareId_ = ""; @@ -29,16 +47,15 @@ private NfsShare() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NfsShare(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NfsShare( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,59 +75,68 @@ private NfsShare( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nfsShareId_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + nfsShareId_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - volume_ = s; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedClients_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + volume_ = s; + break; } - allowedClients_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedClients_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient>(); + mutable_bitField0_ |= 0x00000001; + } + allowedClients_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), + extensionRegistry)); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,8 +144,7 @@ private NfsShare( } 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)) { allowedClients_ = java.util.Collections.unmodifiableList(allowedClients_); @@ -128,41 +153,46 @@ private NfsShare( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.class, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); } /** + * + * *
    * The possible states for this NFS share.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The share is in an unknown state.
      * 
@@ -171,6 +201,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The share has been provisioned.
      * 
@@ -182,6 +214,8 @@ public enum State ; /** + * + * *
      * The share is in an unknown state.
      * 
@@ -190,6 +224,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The share has been provisioned.
      * 
@@ -198,7 +234,6 @@ public enum State */ public static final int PROVISIONED_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -223,48 +258,47 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -282,15 +316,18 @@ private State(int value) { } /** + * + * *
    * The possible mount permissions.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.MountPermissions} */ - public enum MountPermissions - implements com.google.protobuf.ProtocolMessageEnum { + public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Permissions were not specified.
      * 
@@ -299,6 +336,8 @@ public enum MountPermissions */ MOUNT_PERMISSIONS_UNSPECIFIED(0), /** + * + * *
      * NFS share can be mount with read-only permissions.
      * 
@@ -307,6 +346,8 @@ public enum MountPermissions */ READ(1), /** + * + * *
      * NFS share can be mount with read-write permissions.
      * 
@@ -318,6 +359,8 @@ public enum MountPermissions ; /** + * + * *
      * Permissions were not specified.
      * 
@@ -326,6 +369,8 @@ public enum MountPermissions */ public static final int MOUNT_PERMISSIONS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * NFS share can be mount with read-only permissions.
      * 
@@ -334,6 +379,8 @@ public enum MountPermissions */ public static final int READ_VALUE = 1; /** + * + * *
      * NFS share can be mount with read-write permissions.
      * 
@@ -342,7 +389,6 @@ public enum MountPermissions */ public static final int READ_WRITE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -367,39 +413,42 @@ public static MountPermissions valueOf(int value) { */ public static MountPermissions forNumber(int value) { switch (value) { - case 0: return MOUNT_PERMISSIONS_UNSPECIFIED; - case 1: return READ; - case 2: return READ_WRITE; - default: return null; + case 0: + return MOUNT_PERMISSIONS_UNSPECIFIED; + case 1: + return READ; + case 2: + return READ_WRITE; + 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< - MountPermissions> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MountPermissions findValueByNumber(int number) { - return MountPermissions.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 MountPermissions findValueByNumber(int number) { + return MountPermissions.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.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(1); } @@ -408,8 +457,7 @@ public MountPermissions findValueByNumber(int number) { public static MountPermissions 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; @@ -426,110 +474,142 @@ private MountPermissions(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.NfsShare.MountPermissions) } - public interface AllowedClientOrBuilder extends + public interface AllowedClientOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The shareIp. */ java.lang.String getShareIp(); /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The bytes for shareIp. */ - com.google.protobuf.ByteString - getShareIpBytes(); + com.google.protobuf.ByteString getShareIpBytes(); /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The allowedClientsCidr. */ java.lang.String getAllowedClientsCidr(); /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The bytes for allowedClientsCidr. */ - com.google.protobuf.ByteString - getAllowedClientsCidrBytes(); + com.google.protobuf.ByteString getAllowedClientsCidrBytes(); /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The enum numeric value on the wire for mountPermissions. */ int getMountPermissionsValue(); /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The mountPermissions. */ com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions(); /** + * + * *
      * Allow dev flag.  Which controls whether to allow creation of devices.
      * 
* * bool allow_dev = 5; + * * @return The allowDev. */ boolean getAllowDev(); /** + * + * *
      * Allow the setuid flag.
      * 
* * bool allow_suid = 6; + * * @return The allowSuid. */ boolean getAllowSuid(); /** + * + * *
      * Disable root squashing, which is a feature of NFS.
      * Root squash is a special mapping of the remote superuser (root) identity
@@ -537,26 +617,30 @@ public interface AllowedClientOrBuilder extends
      * 
* * bool no_root_squash = 7; + * * @return The noRootSquash. */ boolean getNoRootSquash(); } /** + * + * *
    * Represents an 'access point' for the share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} */ - public static final class AllowedClient extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AllowedClient extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) AllowedClientOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowedClient.newBuilder() to construct. private AllowedClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AllowedClient() { network_ = ""; shareIp_ = ""; @@ -566,16 +650,15 @@ private AllowedClient() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AllowedClient(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AllowedClient( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -594,52 +677,56 @@ private AllowedClient( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - shareIp_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - allowedClientsCidr_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - mountPermissions_ = rawValue; - break; - } - case 40: { + network_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - allowDev_ = input.readBool(); - break; - } - case 48: { + shareIp_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - allowSuid_ = input.readBool(); - break; - } - case 56: { + allowedClientsCidr_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); - noRootSquash_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mountPermissions_ = rawValue; + break; + } + case 40: + { + allowDev_ = input.readBool(); + break; + } + case 48: + { + allowSuid_ = input.readBool(); + break; + } + case 56: + { + noRootSquash_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -647,34 +734,39 @@ private AllowedClient( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The network. */ @java.lang.Override @@ -683,29 +775,29 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -716,11 +808,14 @@ public java.lang.String getNetwork() { public static final int SHARE_IP_FIELD_NUMBER = 2; private volatile java.lang.Object shareIp_; /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The shareIp. */ @java.lang.Override @@ -729,29 +824,29 @@ public java.lang.String getShareIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareIp_ = s; return s; } } /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The bytes for shareIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getShareIpBytes() { + public com.google.protobuf.ByteString getShareIpBytes() { java.lang.Object ref = shareIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareIp_ = b; return b; } else { @@ -762,11 +857,14 @@ public java.lang.String getShareIp() { public static final int ALLOWED_CLIENTS_CIDR_FIELD_NUMBER = 3; private volatile java.lang.Object allowedClientsCidr_; /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The allowedClientsCidr. */ @java.lang.Override @@ -775,29 +873,29 @@ public java.lang.String getAllowedClientsCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClientsCidr_ = s; return s; } } /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The bytes for allowedClientsCidr. */ @java.lang.Override - public com.google.protobuf.ByteString - getAllowedClientsCidrBytes() { + public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { java.lang.Object ref = allowedClientsCidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); allowedClientsCidr_ = b; return b; } else { @@ -808,38 +906,55 @@ public java.lang.String getAllowedClientsCidr() { public static final int MOUNT_PERMISSIONS_FIELD_NUMBER = 4; private int mountPermissions_; /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The enum numeric value on the wire for mountPermissions. */ - @java.lang.Override public int getMountPermissionsValue() { + @java.lang.Override + public int getMountPermissionsValue() { return mountPermissions_; } /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The mountPermissions. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf( + mountPermissions_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED + : result; } public static final int ALLOW_DEV_FIELD_NUMBER = 5; private boolean allowDev_; /** + * + * *
      * Allow dev flag.  Which controls whether to allow creation of devices.
      * 
* * bool allow_dev = 5; + * * @return The allowDev. */ @java.lang.Override @@ -850,11 +965,14 @@ public boolean getAllowDev() { public static final int ALLOW_SUID_FIELD_NUMBER = 6; private boolean allowSuid_; /** + * + * *
      * Allow the setuid flag.
      * 
* * bool allow_suid = 6; + * * @return The allowSuid. */ @java.lang.Override @@ -865,6 +983,8 @@ public boolean getAllowSuid() { public static final int NO_ROOT_SQUASH_FIELD_NUMBER = 7; private boolean noRootSquash_; /** + * + * *
      * Disable root squashing, which is a feature of NFS.
      * Root squash is a special mapping of the remote superuser (root) identity
@@ -872,6 +992,7 @@ public boolean getAllowSuid() {
      * 
* * bool no_root_squash = 7; + * * @return The noRootSquash. */ @java.lang.Override @@ -880,6 +1001,7 @@ public boolean getNoRootSquash() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -891,8 +1013,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -902,7 +1023,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allowedClientsCidr_); } - if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { + if (mountPermissions_ + != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions + .MOUNT_PERMISSIONS_UNSPECIFIED + .getNumber()) { output.writeEnum(4, mountPermissions_); } if (allowDev_ != false) { @@ -932,21 +1056,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, allowedClientsCidr_); } - if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, mountPermissions_); + if (mountPermissions_ + != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions + .MOUNT_PERMISSIONS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, mountPermissions_); } if (allowDev_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, allowDev_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowDev_); } if (allowSuid_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, allowSuid_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowSuid_); } if (noRootSquash_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, noRootSquash_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, noRootSquash_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -956,26 +1079,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.baremetalsolution.v2.NfsShare.AllowedClient)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = + (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getShareIp() - .equals(other.getShareIp())) return false; - if (!getAllowedClientsCidr() - .equals(other.getAllowedClientsCidr())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getShareIp().equals(other.getShareIp())) return false; + if (!getAllowedClientsCidr().equals(other.getAllowedClientsCidr())) return false; if (mountPermissions_ != other.mountPermissions_) return false; - if (getAllowDev() - != other.getAllowDev()) return false; - if (getAllowSuid() - != other.getAllowSuid()) return false; - if (getNoRootSquash() - != other.getNoRootSquash()) return false; + if (getAllowDev() != other.getAllowDev()) return false; + if (getAllowSuid() != other.getAllowSuid()) return false; + if (getNoRootSquash() != other.getNoRootSquash()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -996,101 +1114,105 @@ public int hashCode() { hash = (37 * hash) + MOUNT_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + mountPermissions_; hash = (37 * hash) + ALLOW_DEV_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowDev()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowDev()); hash = (37 * hash) + ALLOW_SUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowSuid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowSuid()); hash = (37 * hash) + NO_ROOT_SQUASH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNoRootSquash()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoRootSquash()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1100,27 +1222,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Represents an 'access point' for the share.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.newBuilder() @@ -1128,16 +1255,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(); @@ -1159,13 +1285,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance(); } @@ -1180,7 +1307,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial() { - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = + new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); result.network_ = network_; result.shareIp_ = shareIp_; result.allowedClientsCidr_ = allowedClientsCidr_; @@ -1196,38 +1324,41 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) other); } else { super.mergeFrom(other); return this; @@ -1235,7 +1366,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other) { - if (other == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) return this; + if (other + == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) + return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -1279,7 +1412,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1291,18 +1426,20 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1311,20 +1448,21 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1332,54 +1470,61 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -1387,18 +1532,20 @@ public Builder setNetworkBytes( private java.lang.Object shareIp_ = ""; /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @return The shareIp. */ public java.lang.String getShareIp() { java.lang.Object ref = shareIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareIp_ = s; return s; @@ -1407,20 +1554,21 @@ public java.lang.String getShareIp() { } } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @return The bytes for shareIp. */ - public com.google.protobuf.ByteString - getShareIpBytes() { + public com.google.protobuf.ByteString getShareIpBytes() { java.lang.Object ref = shareIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareIp_ = b; return b; } else { @@ -1428,54 +1576,61 @@ public java.lang.String getShareIp() { } } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @param value The shareIp to set. * @return This builder for chaining. */ - public Builder setShareIp( - java.lang.String value) { + public Builder setShareIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + shareIp_ = value; onChanged(); return this; } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @return This builder for chaining. */ public Builder clearShareIp() { - + shareIp_ = getDefaultInstance().getShareIp(); onChanged(); return this; } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @param value The bytes for shareIp to set. * @return This builder for chaining. */ - public Builder setShareIpBytes( - com.google.protobuf.ByteString value) { + public Builder setShareIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shareIp_ = value; onChanged(); return this; @@ -1483,18 +1638,20 @@ public Builder setShareIpBytes( private java.lang.Object allowedClientsCidr_ = ""; /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @return The allowedClientsCidr. */ public java.lang.String getAllowedClientsCidr() { java.lang.Object ref = allowedClientsCidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClientsCidr_ = s; return s; @@ -1503,20 +1660,21 @@ public java.lang.String getAllowedClientsCidr() { } } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @return The bytes for allowedClientsCidr. */ - public com.google.protobuf.ByteString - getAllowedClientsCidrBytes() { + public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { java.lang.Object ref = allowedClientsCidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); allowedClientsCidr_ = b; return b; } else { @@ -1524,54 +1682,61 @@ public java.lang.String getAllowedClientsCidr() { } } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @param value The allowedClientsCidr to set. * @return This builder for chaining. */ - public Builder setAllowedClientsCidr( - java.lang.String value) { + public Builder setAllowedClientsCidr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + allowedClientsCidr_ = value; onChanged(); return this; } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @return This builder for chaining. */ public Builder clearAllowedClientsCidr() { - + allowedClientsCidr_ = getDefaultInstance().getAllowedClientsCidr(); onChanged(); return this; } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @param value The bytes for allowedClientsCidr to set. * @return This builder for chaining. */ - public Builder setAllowedClientsCidrBytes( - com.google.protobuf.ByteString value) { + public Builder setAllowedClientsCidrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowedClientsCidr_ = value; onChanged(); return this; @@ -1579,85 +1744,114 @@ public Builder setAllowedClientsCidrBytes( private int mountPermissions_ = 0; /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The enum numeric value on the wire for mountPermissions. */ - @java.lang.Override public int getMountPermissionsValue() { + @java.lang.Override + public int getMountPermissionsValue() { return mountPermissions_; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @param value The enum numeric value on the wire for mountPermissions to set. * @return This builder for chaining. */ public Builder setMountPermissionsValue(int value) { - + mountPermissions_ = value; onChanged(); return this; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The mountPermissions. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf( + mountPermissions_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED + : result; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @param value The mountPermissions to set. * @return This builder for chaining. */ - public Builder setMountPermissions(com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { + public Builder setMountPermissions( + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { if (value == null) { throw new NullPointerException(); } - + mountPermissions_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return This builder for chaining. */ public Builder clearMountPermissions() { - + mountPermissions_ = 0; onChanged(); return this; } - private boolean allowDev_ ; + private boolean allowDev_; /** + * + * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; + * * @return The allowDev. */ @java.lang.Override @@ -1665,42 +1859,51 @@ public boolean getAllowDev() { return allowDev_; } /** + * + * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; + * * @param value The allowDev to set. * @return This builder for chaining. */ public Builder setAllowDev(boolean value) { - + allowDev_ = value; onChanged(); return this; } /** + * + * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; + * * @return This builder for chaining. */ public Builder clearAllowDev() { - + allowDev_ = false; onChanged(); return this; } - private boolean allowSuid_ ; + private boolean allowSuid_; /** + * + * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; + * * @return The allowSuid. */ @java.lang.Override @@ -1708,37 +1911,45 @@ public boolean getAllowSuid() { return allowSuid_; } /** + * + * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; + * * @param value The allowSuid to set. * @return This builder for chaining. */ public Builder setAllowSuid(boolean value) { - + allowSuid_ = value; onChanged(); return this; } /** + * + * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; + * * @return This builder for chaining. */ public Builder clearAllowSuid() { - + allowSuid_ = false; onChanged(); return this; } - private boolean noRootSquash_ ; + private boolean noRootSquash_; /** + * + * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1746,6 +1957,7 @@ public Builder clearAllowSuid() {
        * 
* * bool no_root_squash = 7; + * * @return The noRootSquash. */ @java.lang.Override @@ -1753,6 +1965,8 @@ public boolean getNoRootSquash() { return noRootSquash_; } /** + * + * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1760,16 +1974,19 @@ public boolean getNoRootSquash() {
        * 
* * bool no_root_squash = 7; + * * @param value The noRootSquash to set. * @return This builder for chaining. */ public Builder setNoRootSquash(boolean value) { - + noRootSquash_ = value; onChanged(); return this; } /** + * + * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1777,14 +1994,16 @@ public Builder setNoRootSquash(boolean value) {
        * 
* * bool no_root_squash = 7; + * * @return This builder for chaining. */ public Builder clearNoRootSquash() { - + noRootSquash_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1797,30 +2016,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) - private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedClient parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedClient(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedClient parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedClient(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1832,20 +2053,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1854,29 +2078,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1887,11 +2111,14 @@ public java.lang.String getName() { public static final int NFS_SHARE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nfsShareId_; /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nfsShareId. */ @java.lang.Override @@ -1900,29 +2127,29 @@ public java.lang.String getNfsShareId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nfsShareId_ = s; return s; } } /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nfsShareId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNfsShareIdBytes() { + public com.google.protobuf.ByteString getNfsShareIdBytes() { java.lang.Object ref = nfsShareId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nfsShareId_ = b; return b; } else { @@ -1933,38 +2160,52 @@ public java.lang.String getNfsShareId() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.State result = + com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED + : result; } public static final int VOLUME_FIELD_NUMBER = 4; private volatile java.lang.Object volume_; /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The volume. */ @java.lang.Override @@ -1973,29 +2214,29 @@ public java.lang.String getVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; } } /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for volume. */ @java.lang.Override - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -2004,84 +2245,101 @@ public java.lang.String getVolume() { } public static final int ALLOWED_CLIENTS_FIELD_NUMBER = 5; - private java.util.List allowedClients_; + private java.util.List + allowedClients_; /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override - public java.util.List getAllowedClientsList() { + public java.util.List + getAllowedClientsList() { return allowedClients_; } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> getAllowedClientsOrBuilderList() { return allowedClients_; } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override public int getAllowedClientsCount() { return allowedClients_.size(); } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { return allowedClients_.get(index); } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder + getAllowedClientsOrBuilder(int index) { return allowedClients_.get(index); } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -2090,28 +2348,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -2119,11 +2379,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -2131,16 +2392,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -2148,12 +2409,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2161,6 +2421,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2172,15 +2433,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nfsShareId_); } - if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { @@ -2189,12 +2450,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < allowedClients_.size(); i++) { output.writeMessage(5, allowedClients_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); unknownFields.writeTo(output); } @@ -2210,26 +2467,25 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nfsShareId_); } - if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volume_); } for (int i = 0; i < allowedClients_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, allowedClients_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, allowedClients_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2239,24 +2495,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.baremetalsolution.v2.NfsShare)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NfsShare other = (com.google.cloud.baremetalsolution.v2.NfsShare) obj; + com.google.cloud.baremetalsolution.v2.NfsShare other = + (com.google.cloud.baremetalsolution.v2.NfsShare) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getNfsShareId() - .equals(other.getNfsShareId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getNfsShareId().equals(other.getNfsShareId())) return false; if (state_ != other.state_) return false; - if (!getVolume() - .equals(other.getVolume())) return false; - if (!getAllowedClientsList() - .equals(other.getAllowedClientsList())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getVolume().equals(other.getVolume())) return false; + if (!getAllowedClientsList().equals(other.getAllowedClientsList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2289,140 +2541,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare 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.baremetalsolution.v2.NfsShare parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An NFS share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare) com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.class, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder() @@ -2430,17 +2689,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) { getAllowedClientsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2463,9 +2722,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @java.lang.Override @@ -2484,7 +2743,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShare build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { - com.google.cloud.baremetalsolution.v2.NfsShare result = new com.google.cloud.baremetalsolution.v2.NfsShare(this); + com.google.cloud.baremetalsolution.v2.NfsShare result = + new com.google.cloud.baremetalsolution.v2.NfsShare(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.nfsShareId_ = nfsShareId_; @@ -2509,38 +2769,39 @@ public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare) other); } else { super.mergeFrom(other); return this; @@ -2582,16 +2843,16 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare other) { allowedClientsBuilder_ = null; allowedClients_ = other.allowedClients_; bitField0_ = (bitField0_ & ~0x00000001); - allowedClientsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAllowedClientsFieldBuilder() : null; + allowedClientsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAllowedClientsFieldBuilder() + : null; } else { allowedClientsBuilder_.addAllMessages(other.allowedClients_); } } } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2620,22 +2881,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2644,20 +2908,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2665,54 +2930,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2720,18 +2992,20 @@ public Builder setNameBytes( private java.lang.Object nfsShareId_ = ""; /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nfsShareId. */ public java.lang.String getNfsShareId() { java.lang.Object ref = nfsShareId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nfsShareId_ = s; return s; @@ -2740,20 +3014,21 @@ public java.lang.String getNfsShareId() { } } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nfsShareId. */ - public com.google.protobuf.ByteString - getNfsShareIdBytes() { + public com.google.protobuf.ByteString getNfsShareIdBytes() { java.lang.Object ref = nfsShareId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nfsShareId_ = b; return b; } else { @@ -2761,54 +3036,61 @@ public java.lang.String getNfsShareId() { } } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nfsShareId to set. * @return This builder for chaining. */ - public Builder setNfsShareId( - java.lang.String value) { + public Builder setNfsShareId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nfsShareId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNfsShareId() { - + nfsShareId_ = getDefaultInstance().getNfsShareId(); onChanged(); return this; } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nfsShareId to set. * @return This builder for chaining. */ - public Builder setNfsShareIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNfsShareIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nfsShareId_ = value; onChanged(); return this; @@ -2816,51 +3098,67 @@ public Builder setNfsShareIdBytes( private int state_ = 0; /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.State result = + com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2868,21 +3166,24 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.NfsShare.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2890,18 +3191,20 @@ public Builder clearState() { private java.lang.Object volume_ = ""; /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The volume. */ public java.lang.String getVolume() { java.lang.Object ref = volume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; @@ -2910,20 +3213,21 @@ public java.lang.String getVolume() { } } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for volume. */ - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -2931,79 +3235,96 @@ public java.lang.String getVolume() { } } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @param value The volume to set. * @return This builder for chaining. */ - public Builder setVolume( - java.lang.String value) { + public Builder setVolume(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volume_ = value; onChanged(); return this; } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearVolume() { - + volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for volume to set. * @return This builder for chaining. */ - public Builder setVolumeBytes( - com.google.protobuf.ByteString value) { + public Builder setVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volume_ = value; onChanged(); return this; } - private java.util.List allowedClients_ = - java.util.Collections.emptyList(); + private java.util.List + allowedClients_ = java.util.Collections.emptyList(); + private void ensureAllowedClientsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedClients_ = new java.util.ArrayList(allowedClients_); + allowedClients_ = + new java.util.ArrayList( + allowedClients_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> allowedClientsBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + allowedClientsBuilder_; /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public java.util.List getAllowedClientsList() { + public java.util.List + getAllowedClientsList() { if (allowedClientsBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedClients_); } else { @@ -3011,11 +3332,14 @@ public java.util.List * List of allowed access points. *
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public int getAllowedClientsCount() { if (allowedClientsBuilder_ == null) { @@ -3025,13 +3349,17 @@ public int getAllowedClientsCount() { } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients( + int index) { if (allowedClientsBuilder_ == null) { return allowedClients_.get(index); } else { @@ -3039,11 +3367,14 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedCl } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder setAllowedClients( int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { @@ -3060,14 +3391,18 @@ public Builder setAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder setAllowedClients( - int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); allowedClients_.set(index, builderForValue.build()); @@ -3078,13 +3413,17 @@ public Builder setAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public Builder addAllowedClients(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { + public Builder addAllowedClients( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { if (allowedClientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3098,11 +3437,14 @@ public Builder addAllowedClients(com.google.cloud.baremetalsolution.v2.NfsShare. return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllowedClients( int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { @@ -3119,11 +3461,14 @@ public Builder addAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllowedClients( com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { @@ -3137,14 +3482,18 @@ public Builder addAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllowedClients( - int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); allowedClients_.add(index, builderForValue.build()); @@ -3155,18 +3504,21 @@ public Builder addAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllAllowedClients( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedClients_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedClients_); onChanged(); } else { allowedClientsBuilder_.addAllMessages(values); @@ -3174,11 +3526,14 @@ public Builder addAllAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder clearAllowedClients() { if (allowedClientsBuilder_ == null) { @@ -3191,11 +3546,14 @@ public Builder clearAllowedClients() { return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder removeAllowedClients(int index) { if (allowedClientsBuilder_ == null) { @@ -3208,39 +3566,50 @@ public Builder removeAllowedClients(int index) { return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder getAllowedClientsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder + getAllowedClientsBuilder(int index) { return getAllowedClientsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder + getAllowedClientsOrBuilder(int index) { if (allowedClientsBuilder_ == null) { - return allowedClients_.get(index); } else { + return allowedClients_.get(index); + } else { return allowedClientsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public java.util.List - getAllowedClientsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + getAllowedClientsOrBuilderList() { if (allowedClientsBuilder_ != null) { return allowedClientsBuilder_.getMessageOrBuilderList(); } else { @@ -3248,45 +3617,64 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder get } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder() { - return getAllowedClientsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder + addAllowedClientsBuilder() { + return getAllowedClientsFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder( - int index) { - return getAllowedClientsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder + addAllowedClientsBuilder(int index) { + return getAllowedClientsFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public java.util.List - getAllowedClientsBuilderList() { + public java.util.List + getAllowedClientsBuilderList() { return getAllowedClientsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> getAllowedClientsFieldBuilder() { if (allowedClientsBuilder_ == null) { - allowedClientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( + allowedClientsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( allowedClients_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3296,22 +3684,21 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addA return allowedClientsBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3323,28 +3710,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3352,11 +3741,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3364,16 +3754,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3381,12 +3772,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3394,69 +3784,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3466,12 +3853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare) private static final com.google.cloud.baremetalsolution.v2.NfsShare DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare(); } @@ -3480,16 +3867,16 @@ public static com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsShare parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NfsShare(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsShare parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NfsShare(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3504,6 +3891,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java index b7ebe95..89eba99 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java @@ -1,136 +1,190 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface NfsShareOrBuilder extends +public interface NfsShareOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nfsShareId. */ java.lang.String getNfsShareId(); /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nfsShareId. */ - com.google.protobuf.ByteString - getNfsShareIdBytes(); + com.google.protobuf.ByteString getNfsShareIdBytes(); /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.NfsShare.State getState(); /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The volume. */ java.lang.String getVolume(); /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for volume. */ - com.google.protobuf.ByteString - getVolumeBytes(); + com.google.protobuf.ByteString getVolumeBytes(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - java.util.List + java.util.List getAllowedClientsList(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ int getAllowedClientsCount(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - java.util.List + java.util.List getAllowedClientsOrBuilderList(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( int index); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -139,30 +193,31 @@ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowed */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -171,18 +226,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java new file mode 100644 index 0000000..b476bcc --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java @@ -0,0 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NfsShareProto { + private NfsShareProto() {} + + 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_baremetalsolution_v2_NfsShare_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/baremetalsolution/v2/nfs_" + + "share.proto\022!google.cloud.baremetalsolut" + + "ion.v2\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032 google/proto" + + "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" + + "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" + + "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" + + "\tB,\372A)\n\'baremetalsolution.googleapis.com" + + "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" + + "e.cloud.baremetalsolution.v2.NfsShare.Al" + + "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" + + "ud.baremetalsolution.v2.NfsShare.LabelsE" + + "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" + + "-\372A*\n(baremetalsolution.googleapis.com/N" + + "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" + + "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" + + "\0162<.google.cloud.baremetalsolution.v2.Nf" + + "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" + + "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" + + "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" + + "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" + + "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" + + "olution.googleapis.com/NFSShare\022=project" + + "s/{project}/locations/{location}/nfsShar" + + "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" + + "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" + + "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" + + "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" + + "\030\001 \003(\0132+.google.cloud.baremetalsolution." + + "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" + + "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" + + "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\373\001\n%com.google.cloud.baremetalsolution" + + ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" + + "genproto/googleapis/cloud/baremetalsolut" + + "ion/v2;baremetalsolution\252\002!Google.Cloud." + + "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" + + "MetalSolution\\V2\352\002$Google::Cloud::BareMe" + + "talSolution::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, + new java.lang.String[] { + "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, + new java.lang.String[] { + "Network", + "ShareIp", + "AllowedClientsCidr", + "MountPermissions", + "AllowDev", + "AllowSuid", + "NoRootSquash", + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, + new java.lang.String[] { + "NfsShares", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, + new java.lang.String[] { + "NfsShare", "UpdateMask", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java index ce84b7e..a5cd605 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Represents the metadata from a long-running operation.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusMessage_ = s; + break; + } + case 48: + { + requestedCancellation_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +150,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, + com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -160,11 +191,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -172,11 +207,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -186,11 +224,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -198,11 +240,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -210,11 +256,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -224,11 +273,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -237,29 +289,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -270,11 +322,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -283,29 +338,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -316,11 +371,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -329,29 +387,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -362,6 +420,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -370,6 +430,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -380,11 +441,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -393,29 +457,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -424,6 +488,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -468,12 +532,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -485,8 +547,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -499,33 +560,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.OperationMetadata other = (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; + com.google.cloud.baremetalsolution.v2.OperationMetadata other = + (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -552,8 +607,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -562,117 +616,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata from a long-running operation.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.cloud.baremetalsolution.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, + com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.OperationMetadata.newBuilder() @@ -680,16 +744,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -719,9 +782,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -740,7 +803,8 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { - com.google.cloud.baremetalsolution.v2.OperationMetadata result = new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); + com.google.cloud.baremetalsolution.v2.OperationMetadata result = + new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -764,38 +828,39 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -803,7 +868,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.OperationMetadata other) { - if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -848,7 +914,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -860,39 +927,58 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -908,14 +994,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -926,17 +1015,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -948,11 +1041,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -966,48 +1063,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1015,24 +1128,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1043,11 +1167,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1063,14 +1190,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1081,17 +1210,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1103,11 +1235,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1121,48 +1256,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1170,18 +1316,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1190,20 +1338,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1211,54 +1360,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1266,18 +1422,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1286,20 +1444,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1307,54 +1466,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1362,18 +1528,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1382,20 +1550,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1403,61 +1572,70 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1466,6 +1644,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1473,6 +1652,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1481,16 +1662,19 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** + * + * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1499,10 +1683,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1510,18 +1695,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1530,20 +1717,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1551,61 +1739,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1615,12 +1810,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.OperationMetadata) private static final com.google.cloud.baremetalsolution.v2.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.OperationMetadata(); } @@ -1629,16 +1824,16 @@ public static com.google.cloud.baremetalsolution.v2.OperationMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1653,6 +1848,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java index 28fd6c5..5d598a7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java index f4cba4a..bebcfd2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to reset a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ -public final class ResetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) ResetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResetInstanceRequest.newBuilder() to construct. private ResetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ResetInstanceRequest( 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,34 +91,41 @@ private ResetInstanceRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message requesting to reset a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) com.google.cloud.baremetalsolution.v2.ResetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..1f953fe --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java index 4fc6068..8c117cb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.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/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message from resetting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ -public final class ResetInstanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResetInstanceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) ResetInstanceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResetInstanceResponse.newBuilder() to construct. private ResetInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResetInstanceResponse() { - } + + private ResetInstanceResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResetInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResetInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private ResetInstanceResponse( 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 ResetInstanceResponse( } 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.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.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.baremetalsolution.v2.ResetInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = + (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message from resetting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) com.google.cloud.baremetalsolution.v2.ResetInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override @@ -297,7 +325,8 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = + new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); onBuilt(); return result; } @@ -306,38 +335,39 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +375,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,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 +418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(); } @@ -400,16 +432,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java new file mode 100644 index 0000000..6123d2c --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java index c6bff70..44bea73 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Request for emergency resize Volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} */ -public final class ResizeVolumeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResizeVolumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) ResizeVolumeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResizeVolumeRequest.newBuilder() to construct. private ResizeVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResizeVolumeRequest() { volume_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResizeVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResizeVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,24 +70,25 @@ private ResizeVolumeRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - volume_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sizeGib_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + volume_ = s; + break; + } + case 16: + { + sizeGib_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,34 +96,41 @@ private ResizeVolumeRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private volatile java.lang.Object volume_; /** + * + * *
    * Required. Volume to resize.
    * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The volume. */ @java.lang.Override @@ -114,29 +139,31 @@ public java.lang.String getVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; } } /** + * + * *
    * Required. Volume to resize.
    * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for volume. */ @java.lang.Override - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -147,11 +174,14 @@ public java.lang.String getVolume() { public static final int SIZE_GIB_FIELD_NUMBER = 2; private long sizeGib_; /** + * + * *
    * New Volume size, in GiB.
    * 
* * int64 size_gib = 2; + * * @return The sizeGib. */ @java.lang.Override @@ -160,6 +190,7 @@ public long getSizeGib() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volume_); } @@ -192,8 +222,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volume_); } if (sizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, sizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeGib_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -203,17 +232,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.baremetalsolution.v2.ResizeVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = + (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; - if (!getVolume() - .equals(other.getVolume())) return false; - if (getSizeGib() - != other.getSizeGib()) return false; + if (!getVolume().equals(other.getVolume())) return false; + if (getSizeGib() != other.getSizeGib()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,125 +256,134 @@ public int hashCode() { hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + getVolume().hashCode(); hash = (37 * hash) + SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGib()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 emergency resize Volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) com.google.cloud.baremetalsolution.v2.ResizeVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.newBuilder() @@ -354,16 +391,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(); @@ -375,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override @@ -396,7 +432,8 @@ public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = + new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); result.volume_ = volume_; result.sizeGib_ = sizeGib_; onBuilt(); @@ -407,38 +444,39 @@ public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) other); } else { super.mergeFrom(other); return this; @@ -446,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) + return this; if (!other.getVolume().isEmpty()) { volume_ = other.volume_; onChanged(); @@ -473,7 +512,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,18 +525,22 @@ public Builder mergeFrom( private java.lang.Object volume_ = ""; /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The volume. */ public java.lang.String getVolume() { java.lang.Object ref = volume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; @@ -505,20 +549,23 @@ public java.lang.String getVolume() { } } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for volume. */ - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -526,66 +573,82 @@ public java.lang.String getVolume() { } } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The volume to set. * @return This builder for chaining. */ - public Builder setVolume( - java.lang.String value) { + public Builder setVolume(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volume_ = value; onChanged(); return this; } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearVolume() { - + volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for volume to set. * @return This builder for chaining. */ - public Builder setVolumeBytes( - com.google.protobuf.ByteString value) { + public Builder setVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volume_ = value; onChanged(); return this; } - private long sizeGib_ ; + private long sizeGib_; /** + * + * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; + * * @return The sizeGib. */ @java.lang.Override @@ -593,37 +656,43 @@ public long getSizeGib() { return sizeGib_; } /** + * + * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; + * * @param value The sizeGib to set. * @return This builder for chaining. */ public Builder setSizeGib(long value) { - + sizeGib_ = value; onChanged(); return this; } /** + * + * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; + * * @return This builder for chaining. */ public Builder clearSizeGib() { - + sizeGib_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(); } @@ -647,16 +716,16 @@ public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResizeVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResizeVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResizeVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResizeVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,6 +740,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java new file mode 100644 index 0000000..072aeb8 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResizeVolumeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Volume to resize.
+   * 
+ * + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The volume. + */ + java.lang.String getVolume(); + /** + * + * + *
+   * Required. Volume to resize.
+   * 
+ * + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for volume. + */ + com.google.protobuf.ByteString getVolumeBytes(); + + /** + * + * + *
+   * New Volume size, in GiB.
+   * 
+ * + * int64 size_gib = 2; + * + * @return The sizeGib. + */ + long getSizeGib(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java index 694ee3d..6992d46 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Network template.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} */ -public final class ServerNetworkTemplate extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ServerNetworkTemplate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) ServerNetworkTemplateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ServerNetworkTemplate.newBuilder() to construct. private ServerNetworkTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ServerNetworkTemplate() { name_ = ""; applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private ServerNetworkTemplate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ServerNetworkTemplate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ServerNetworkTemplate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,46 @@ private ServerNetworkTemplate( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - applicableInstanceTypes_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + applicableInstanceTypes_.add(s); + break; } - logicalInterfaces_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + logicalInterfaces_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterface>(); + mutable_bitField0_ |= 0x00000002; + } + logicalInterfaces_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +120,7 @@ private ServerNetworkTemplate( } 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)) { applicableInstanceTypes_ = applicableInstanceTypes_.getUnmodifiableView(); @@ -107,24 +132,30 @@ private ServerNetworkTemplate( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); } - public interface LogicalInterfaceOrBuilder extends + public interface LogicalInterfaceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -134,10 +165,13 @@ public interface LogicalInterfaceOrBuilder extends
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -147,56 +181,73 @@ public interface LogicalInterfaceOrBuilder extends
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The type. */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType(); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + getType(); /** + * + * *
      * If true, interface must have network connected.
      * 
* * bool required = 3; + * * @return The required. */ boolean getRequired(); } /** + * + * *
    * Logical interface.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} */ - public static final class LogicalInterface extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LogicalInterface extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) LogicalInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogicalInterface.newBuilder() to construct. private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LogicalInterface() { name_ = ""; type_ = 0; @@ -204,16 +255,15 @@ private LogicalInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogicalInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LogicalInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -232,30 +282,32 @@ private LogicalInterface( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 24: { + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - required_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + type_ = rawValue; + break; + } + case 24: + { + required_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -263,36 +315,43 @@ private LogicalInterface( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + .class); } /** + * + * *
      * Interface type.
      * 
* - * Protobuf enum {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} + * Protobuf enum {@code + * google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} */ - public enum InterfaceType - implements com.google.protobuf.ProtocolMessageEnum { + public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified value.
        * 
@@ -301,6 +360,8 @@ public enum InterfaceType */ INTERFACE_TYPE_UNSPECIFIED(0), /** + * + * *
        * Bond interface type.
        * 
@@ -309,6 +370,8 @@ public enum InterfaceType */ BOND(1), /** + * + * *
        * NIC interface type.
        * 
@@ -320,6 +383,8 @@ public enum InterfaceType ; /** + * + * *
        * Unspecified value.
        * 
@@ -328,6 +393,8 @@ public enum InterfaceType */ public static final int INTERFACE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Bond interface type.
        * 
@@ -336,6 +403,8 @@ public enum InterfaceType */ public static final int BOND_VALUE = 1; /** + * + * *
        * NIC interface type.
        * 
@@ -344,7 +413,6 @@ public enum InterfaceType */ public static final int NIC_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -369,40 +437,46 @@ public static InterfaceType valueOf(int value) { */ public static InterfaceType forNumber(int value) { switch (value) { - case 0: return INTERFACE_TYPE_UNSPECIFIED; - case 1: return BOND; - case 2: return NIC; - default: return null; + case 0: + return INTERFACE_TYPE_UNSPECIFIED; + case 1: + return BOND; + case 2: + return NIC; + 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< - InterfaceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InterfaceType findValueByNumber(int number) { - return InterfaceType.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 InterfaceType findValueByNumber(int number) { + return InterfaceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDescriptor() + .getEnumTypes() + .get(0); } private static final InterfaceType[] VALUES = values(); @@ -410,8 +484,7 @@ public InterfaceType findValueByNumber(int number) { public static InterfaceType 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; @@ -431,6 +504,8 @@ private InterfaceType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -440,6 +515,7 @@ private InterfaceType(int value) {
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -448,14 +524,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; } } /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -465,16 +542,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @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 { @@ -485,38 +561,61 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType + getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + result = + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.UNRECOGNIZED + : result; } public static final int REQUIRED_FIELD_NUMBER = 3; private boolean required_; /** + * + * *
      * If true, interface must have network connected.
      * 
* * bool required = 3; + * * @return The required. */ @java.lang.Override @@ -525,6 +624,7 @@ public boolean getRequired() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -536,12 +636,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.INTERFACE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } if (required_ != false) { @@ -559,13 +661,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.INTERFACE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (required_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, required_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, required_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -575,18 +678,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.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { + if (!(obj + instanceof + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; - if (getRequired() - != other.getRequired()) return false; + if (getRequired() != other.getRequired()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -603,95 +707,107 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequired()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -701,44 +817,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Logical interface.
      * 
* - * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} + * Protobuf type {@code + * google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + .class); } - // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() + // Construct using + // com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -752,19 +875,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface build() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = buildPartial(); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -772,8 +898,10 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface buildPartial() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + buildPartial() { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = + new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); result.name_ = name_; result.type_ = type_; result.required_ = required_; @@ -785,46 +913,55 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)other); + if (other + instanceof + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { + return mergeFrom( + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { - if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { + if (other + == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -850,11 +987,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = null; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -866,6 +1006,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -875,13 +1017,13 @@ public Builder mergeFrom(
        * 
* * string name = 1; + * * @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; @@ -890,6 +1032,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -899,15 +1043,14 @@ public java.lang.String getName() {
        * 
* * string name = 1; + * * @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 { @@ -915,6 +1058,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -924,20 +1069,22 @@ public java.lang.String getName() {
        * 
* * string name = 1; + * * @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; } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -947,15 +1094,18 @@ public Builder setName(
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -965,16 +1115,16 @@ public Builder clearName() {
        * 
* * string name = 1; + * * @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; @@ -982,85 +1132,124 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The type. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType + getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + result = + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.UNRECOGNIZED + : result; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType value) { + public Builder setType( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean required_ ; + private boolean required_; /** + * + * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; + * * @return The required. */ @java.lang.Override @@ -1068,34 +1257,41 @@ public boolean getRequired() { return required_; } /** + * + * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; + * * @param value The required to set. * @return This builder for chaining. */ public Builder setRequired(boolean value) { - + required_ = value; onChanged(); return this; } /** + * + * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; + * * @return This builder for chaining. */ public Builder clearRequired() { - + required_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1108,30 +1304,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) - private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterface + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); + DEFAULT_INSTANCE = + new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,15 +1343,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1160,6 +1362,7 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1168,14 +1371,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; } } /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1184,16 +1388,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1204,34 +1407,42 @@ public java.lang.String getName() { public static final int APPLICABLE_INSTANCE_TYPES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList applicableInstanceTypes_; /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return A list containing the applicableInstanceTypes. */ - public com.google.protobuf.ProtocolStringList - getApplicableInstanceTypesList() { + public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList() { return applicableInstanceTypes_; } /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return The count of applicableInstanceTypes. */ public int getApplicableInstanceTypesCount() { return applicableInstanceTypes_.size(); } /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ @@ -1239,80 +1450,110 @@ public java.lang.String getApplicableInstanceTypes(int index) { return applicableInstanceTypes_.get(index); } /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - public com.google.protobuf.ByteString - getApplicableInstanceTypesBytes(int index) { + public com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index) { return applicableInstanceTypes_.getByteString(index); } public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 3; - private java.util.List logicalInterfaces_; + private java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + logicalInterfaces_; /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public java.util.List getLogicalInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + getLogicalInterfacesList() { return logicalInterfaces_; } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesOrBuilderList() { return logicalInterfaces_; } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override public int getLogicalInterfacesCount() { return logicalInterfaces_.size(); } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getLogicalInterfaces(int index) { return logicalInterfaces_.get(index); } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { return logicalInterfaces_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1324,13 +1565,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < applicableInstanceTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicableInstanceTypes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, applicableInstanceTypes_.getRaw(i)); } for (int i = 0; i < logicalInterfaces_.size(); i++) { output.writeMessage(3, logicalInterfaces_.get(i)); @@ -1356,8 +1597,8 @@ public int getSerializedSize() { size += 1 * getApplicableInstanceTypesList().size(); } for (int i = 0; i < logicalInterfaces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, logicalInterfaces_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, logicalInterfaces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1367,19 +1608,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.baremetalsolution.v2.ServerNetworkTemplate)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getApplicableInstanceTypesList() - .equals(other.getApplicableInstanceTypesList())) return false; - if (!getLogicalInterfacesList() - .equals(other.getLogicalInterfacesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getApplicableInstanceTypesList().equals(other.getApplicableInstanceTypesList())) + return false; + if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1407,117 +1647,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Network template.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) com.google.cloud.baremetalsolution.v2.ServerNetworkTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.newBuilder() @@ -1525,17 +1775,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) { getLogicalInterfacesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1553,9 +1803,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override @@ -1574,7 +1824,8 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = + new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1599,38 +1850,39 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) other); } else { super.mergeFrom(other); return this; @@ -1638,7 +1890,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other) { - if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1671,9 +1924,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemp logicalInterfacesBuilder_ = null; logicalInterfaces_ = other.logicalInterfaces_; bitField0_ = (bitField0_ & ~0x00000002); - logicalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogicalInterfacesFieldBuilder() : null; + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogicalInterfacesFieldBuilder() + : null; } else { logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); } @@ -1698,7 +1952,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1707,10 +1962,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1719,13 +1977,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1734,6 +1992,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1742,15 +2002,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1758,6 +2017,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1766,20 +2027,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1788,15 +2051,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1805,57 +2071,68 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList applicableInstanceTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureApplicableInstanceTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); + applicableInstanceTypes_ = + new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @return A list containing the applicableInstanceTypes. */ - public com.google.protobuf.ProtocolStringList - getApplicableInstanceTypesList() { + public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList() { return applicableInstanceTypes_.getUnmodifiableView(); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @return The count of applicableInstanceTypes. */ public int getApplicableInstanceTypesCount() { return applicableInstanceTypes_.size(); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ @@ -1863,80 +2140,90 @@ public java.lang.String getApplicableInstanceTypes(int index) { return applicableInstanceTypes_.get(index); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - public com.google.protobuf.ByteString - getApplicableInstanceTypesBytes(int index) { + public com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index) { return applicableInstanceTypes_.getByteString(index); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param index The index to set the value at. * @param value The applicableInstanceTypes to set. * @return This builder for chaining. */ - public Builder setApplicableInstanceTypes( - int index, java.lang.String value) { + public Builder setApplicableInstanceTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureApplicableInstanceTypesIsMutable(); + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param value The applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addApplicableInstanceTypes( - java.lang.String value) { + public Builder addApplicableInstanceTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureApplicableInstanceTypesIsMutable(); + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.add(value); onChanged(); return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param values The applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addAllApplicableInstanceTypes( - java.lang.Iterable values) { + public Builder addAllApplicableInstanceTypes(java.lang.Iterable values) { ensureApplicableInstanceTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, applicableInstanceTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicableInstanceTypes_); onChanged(); return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @return This builder for chaining. */ public Builder clearApplicableInstanceTypes() { @@ -1946,46 +2233,62 @@ public Builder clearApplicableInstanceTypes() { return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param value The bytes of the applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addApplicableInstanceTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addApplicableInstanceTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.add(value); onChanged(); return this; } - private java.util.List logicalInterfaces_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + logicalInterfaces_ = java.util.Collections.emptyList(); + private void ensureLogicalInterfacesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); + logicalInterfaces_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface>( + logicalInterfaces_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + logicalInterfacesBuilder_; /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public java.util.List getLogicalInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + getLogicalInterfacesList() { if (logicalInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalInterfaces_); } else { @@ -1993,11 +2296,15 @@ public java.util.List * Logical interfaces. *
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public int getLogicalInterfacesCount() { if (logicalInterfacesBuilder_ == null) { @@ -2007,13 +2314,18 @@ public int getLogicalInterfacesCount() { } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { return logicalInterfaces_.get(index); } else { @@ -2021,14 +2333,19 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder setLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2042,14 +2359,20 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder setLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.set(index, builderForValue.build()); @@ -2060,13 +2383,18 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + public Builder addLogicalInterfaces( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2080,14 +2408,19 @@ public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.Server return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2101,14 +2434,19 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addLogicalInterfaces( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.add(builderForValue.build()); @@ -2119,14 +2457,20 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.add(index, builderForValue.build()); @@ -2137,18 +2481,24 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addAllLogicalInterfaces( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + values) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logicalInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalInterfaces_); onChanged(); } else { logicalInterfacesBuilder_.addAllMessages(values); @@ -2156,11 +2506,15 @@ public Builder addAllLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder clearLogicalInterfaces() { if (logicalInterfacesBuilder_ == null) { @@ -2173,11 +2527,15 @@ public Builder clearLogicalInterfaces() { return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder removeLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -2190,39 +2548,55 @@ public Builder removeLogicalInterfaces(int index) { return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder getLogicalInterfacesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + getLogicalInterfacesBuilder(int index) { return getLogicalInterfacesFieldBuilder().getBuilder(index); } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { if (logicalInterfacesBuilder_ == null) { - return logicalInterfaces_.get(index); } else { + return logicalInterfaces_.get(index); + } else { return logicalInterfacesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public java.util.List - getLogicalInterfacesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterfaceOrBuilder> + getLogicalInterfacesOrBuilderList() { if (logicalInterfacesBuilder_ != null) { return logicalInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -2230,45 +2604,72 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder() { - return getLogicalInterfacesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance()); } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder( - int index) { - return getLogicalInterfacesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + addLogicalInterfacesBuilder(int index) { + return getLogicalInterfacesFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance()); } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public java.util.List - getLogicalInterfacesBuilderList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder> + getLogicalInterfacesBuilderList() { return getLogicalInterfacesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesFieldBuilder() { if (logicalInterfacesBuilder_ == null) { - logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder>( + logicalInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .Builder, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterfaceOrBuilder>( logicalInterfaces_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2277,9 +2678,9 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } return logicalInterfacesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2289,12 +2690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(); } @@ -2303,16 +2704,16 @@ public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServerNetworkTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerNetworkTemplate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerNetworkTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerNetworkTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2327,6 +2728,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java similarity index 61% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java index 7c1339a..f038bd7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ServerNetworkTemplateOrBuilder extends +public interface ServerNetworkTemplateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -16,10 +34,13 @@ public interface ServerNetworkTemplateOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -28,93 +49,126 @@ public interface ServerNetworkTemplateOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return A list containing the applicableInstanceTypes. */ - java.util.List - getApplicableInstanceTypesList(); + java.util.List getApplicableInstanceTypesList(); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return The count of applicableInstanceTypes. */ int getApplicableInstanceTypesCount(); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ java.lang.String getApplicableInstanceTypes(int index); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - com.google.protobuf.ByteString - getApplicableInstanceTypesBytes(int index); + com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - java.util.List + java.util.List getLogicalInterfacesList(); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces( + int index); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ int getLogicalInterfacesCount(); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesOrBuilderList(); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java index 693c5f0..bde5537 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to start a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} */ -public final class StartInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) StartInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartInstanceRequest.newBuilder() to construct. private StartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StartInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StartInstanceRequest( 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,34 +91,41 @@ private StartInstanceRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message requesting to start a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) com.google.cloud.baremetalsolution.v2.StartInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.StartInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java new file mode 100644 index 0000000..4cb55b2 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java index 5c0a6d8..c708c7e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message from starting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} */ -public final class StartInstanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartInstanceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) StartInstanceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartInstanceResponse.newBuilder() to construct. private StartInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartInstanceResponse() { - } + + private StartInstanceResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StartInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private StartInstanceResponse( 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 StartInstanceResponse( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.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.baremetalsolution.v2.StartInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = + (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message from starting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) com.google.cloud.baremetalsolution.v2.StartInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override @@ -297,7 +325,8 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = + new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); onBuilt(); return result; } @@ -306,38 +335,39 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +375,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,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 +418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.StartInstanceResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(); } @@ -400,16 +432,16 @@ public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java new file mode 100644 index 0000000..a4673c6 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.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/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java index 664e09a..ca5b555 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to stop a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} */ -public final class StopInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) StopInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopInstanceRequest.newBuilder() to construct. private StopInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StopInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StopInstanceRequest( 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,34 +91,41 @@ private StopInstanceRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message requesting to stop a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) com.google.cloud.baremetalsolution.v2.StopInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.StopInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java new file mode 100644 index 0000000..4b93ef8 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java index ef520a4..182ad22 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message from stopping a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} */ -public final class StopInstanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopInstanceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) StopInstanceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopInstanceResponse.newBuilder() to construct. private StopInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopInstanceResponse() { - } + + private StopInstanceResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StopInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private StopInstanceResponse( 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 StopInstanceResponse( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.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.baremetalsolution.v2.StopInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = + (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message from stopping a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) com.google.cloud.baremetalsolution.v2.StopInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override @@ -297,7 +325,8 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = + new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); onBuilt(); return result; } @@ -306,38 +335,39 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +375,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,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 +418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.StopInstanceResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(); } @@ -400,16 +432,16 @@ public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java new file mode 100644 index 0000000..0e0f7b9 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.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/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java index 19dde2e..867bf65 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to updating a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateInstanceRequest() { - } + + private UpdateInstanceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateInstanceRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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 UpdateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Instance instance_; /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance getInstance() { - return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -168,6 +209,7 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -175,6 +217,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -184,6 +228,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -191,6 +236,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -207,6 +254,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -218,8 +266,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (instance_ != null) {
       output.writeMessage(1, getInstance());
     }
@@ -236,12 +283,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (instance_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getInstance());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance());
     }
     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 +296,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.baremetalsolution.v2.UpdateInstanceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj;
 
     if (hasInstance() != other.hasInstance()) return false;
     if (hasInstance()) {
-      if (!getInstance()
-          .equals(other.getInstance())) return false;
+      if (!getInstance().equals(other.getInstance())) 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 +337,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message requesting to updating a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) com.google.cloud.baremetalsolution.v2.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.newBuilder() @@ -411,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(); @@ -440,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -461,7 +514,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); if (instanceBuilder_ == null) { result.instance_ = instance_; } else { @@ -480,38 +534,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) + return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } @@ -545,7 +601,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -557,45 +614,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.baremetalsolution.v2.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) { if (instanceBuilder_ == null) { @@ -611,13 +687,17 @@ public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance( com.google.cloud.baremetalsolution.v2.Instance.Builder builderForValue) { @@ -631,19 +711,25 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -655,13 +741,17 @@ public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance valu return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -675,54 +765,70 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; @@ -730,8 +836,13 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil 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_; /** + * + * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -741,12 +852,15 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -756,16 +870,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -790,6 +909,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -800,8 +921,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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 +932,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -826,7 +948,7 @@ 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 +960,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -860,6 +984,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -871,11 +997,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -890,11 +1018,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -906,21 +1037,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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 +1064,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest();
   }
@@ -944,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateInstanceRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateInstanceRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateInstanceRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateInstanceRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -968,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
similarity index 65%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
index 61fb3c1..90f5ce9 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.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/baremetalsolution/v2/instance.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateInstanceRequestOrBuilder extends
+public interface UpdateInstanceRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.baremetalsolution.v2.Instance getInstance(); /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -50,10 +82,13 @@ public interface UpdateInstanceRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -63,10 +98,13 @@ public interface UpdateInstanceRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
similarity index 67%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
index 448e185..70529ea 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * Message requesting to updating a network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} */ -public final class UpdateNetworkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) UpdateNetworkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNetworkRequest.newBuilder() to construct. private UpdateNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNetworkRequest() { - } + + private UpdateNetworkRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateNetworkRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; - if (network_ != null) { - subBuilder = network_.toBuilder(); - } - network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(network_); - network_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = 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 UpdateNetworkRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Network network_; /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the network field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasNetwork() { return network_ != null; } /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The network. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network getNetwork() { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -166,6 +207,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,6 +215,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -180,6 +224,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -187,6 +232,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -201,6 +248,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,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 (network_ != null) {
       output.writeMessage(1, getNetwork());
     }
@@ -230,12 +277,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (network_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getNetwork());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetwork());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -245,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.baremetalsolution.v2.UpdateNetworkRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj;
 
     if (hasNetwork() != other.hasNetwork()) return false;
     if (hasNetwork()) {
-      if (!getNetwork()
-          .equals(other.getNetwork())) return false;
+      if (!getNetwork().equals(other.getNetwork())) 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;
@@ -287,117 +331,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message requesting to updating a network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) com.google.cloud.baremetalsolution.v2.UpdateNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.newBuilder() @@ -405,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override @@ -455,7 +508,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); if (networkBuilder_ == null) { result.network_ = network_; } else { @@ -474,38 +528,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) + return this; if (other.hasNetwork()) { mergeNetwork(other.getNetwork()); } @@ -539,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,45 +608,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Network network_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networkBuilder_; /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The network. */ public com.google.cloud.baremetalsolution.v2.Network getNetwork() { if (networkBuilder_ == null) { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } else { return networkBuilder_.getMessage(); } } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { if (networkBuilder_ == null) { @@ -605,13 +681,17 @@ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNetwork( com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { @@ -625,19 +705,25 @@ public Builder setNetwork( return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) { if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_) + .mergeFrom(value) + .buildPartial(); } else { network_ = value; } @@ -649,13 +735,17 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNetwork() { if (networkBuilder_ == null) { @@ -669,54 +759,70 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilder(); } else { - return network_ == null ? - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { - networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - getNetwork(), - getParentForChildren(), - isClean()); + networkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), getParentForChildren(), isClean()); network_ = null; } return networkBuilder_; @@ -724,8 +830,13 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde 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_; /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -733,12 +844,15 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -746,16 +860,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -778,6 +897,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -786,8 +907,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -798,6 +918,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -810,7 +932,7 @@ 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;
         }
@@ -822,6 +944,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -842,6 +966,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -851,11 +977,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -868,11 +996,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -882,21 +1013,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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);
     }
 
@@ -906,12 +1040,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest();
   }
@@ -920,16 +1054,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateNetworkRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateNetworkRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateNetworkRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateNetworkRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -944,6 +1078,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
index c43d1e2..fa34464 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateNetworkRequestOrBuilder extends
+public interface UpdateNetworkRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the network field is set. */ boolean hasNetwork(); /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The network. */ com.google.cloud.baremetalsolution.v2.Network getNetwork(); /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -48,10 +80,13 @@ public interface UpdateNetworkRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -59,10 +94,13 @@ public interface UpdateNetworkRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
similarity index 67%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
index 81f29d7..eef8a54 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.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/baremetalsolution/v2/nfs_share.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * Message requesting to updating a NFS share.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} */ -public final class UpdateNfsShareRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNfsShareRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) UpdateNfsShareRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNfsShareRequest.newBuilder() to construct. private UpdateNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNfsShareRequest() { - } + + private UpdateNfsShareRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNfsShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateNfsShareRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateNfsShareRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; - if (nfsShare_ != null) { - subBuilder = nfsShare_.toBuilder(); - } - nfsShare_ = input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nfsShare_); - nfsShare_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; + if (nfsShare_ != null) { + subBuilder = nfsShare_.toBuilder(); + } + nfsShare_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nfsShare_); + nfsShare_ = 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 UpdateNfsShareRequest( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); } public static final int NFS_SHARE_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nfsShare field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasNfsShare() { return nfsShare_ != null; } /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nfsShare. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { - return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + return nfsShare_ == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() + : nfsShare_; } /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -166,6 +207,7 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,6 +215,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -180,6 +224,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -187,6 +232,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -201,6 +248,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,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 (nfsShare_ != null) {
       output.writeMessage(1, getNfsShare());
     }
@@ -230,12 +277,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (nfsShare_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getNfsShare());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNfsShare());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -245,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.baremetalsolution.v2.UpdateNfsShareRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj;
 
     if (hasNfsShare() != other.hasNfsShare()) return false;
     if (hasNfsShare()) {
-      if (!getNfsShare()
-          .equals(other.getNfsShare())) return false;
+      if (!getNfsShare().equals(other.getNfsShare())) 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;
@@ -287,117 +331,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message requesting to updating a NFS share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.newBuilder() @@ -405,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override @@ -455,7 +508,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); if (nfsShareBuilder_ == null) { result.nfsShare_ = nfsShare_; } else { @@ -474,38 +528,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) + return this; if (other.hasNfsShare()) { mergeNfsShare(other.getNfsShare()); } @@ -539,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,45 +608,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsShareBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + nfsShareBuilder_; /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nfsShare field is set. */ public boolean hasNfsShare() { return nfsShareBuilder_ != null || nfsShare_ != null; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nfsShare. */ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { if (nfsShareBuilder_ == null) { - return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + return nfsShare_ == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() + : nfsShare_; } else { return nfsShareBuilder_.getMessage(); } } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsShareBuilder_ == null) { @@ -605,13 +681,17 @@ public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNfsShare( com.google.cloud.baremetalsolution.v2.NfsShare.Builder builderForValue) { @@ -625,19 +705,25 @@ public Builder setNfsShare( return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsShareBuilder_ == null) { if (nfsShare_ != null) { nfsShare_ = - com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_) + .mergeFrom(value) + .buildPartial(); } else { nfsShare_ = value; } @@ -649,13 +735,17 @@ public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare valu return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNfsShare() { if (nfsShareBuilder_ == null) { @@ -669,54 +759,70 @@ public Builder clearNfsShare() { return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsShareBuilder() { - + onChanged(); return getNfsShareFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { if (nfsShareBuilder_ != null) { return nfsShareBuilder_.getMessageOrBuilder(); } else { - return nfsShare_ == null ? - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + return nfsShare_ == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() + : nfsShare_; } } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> getNfsShareFieldBuilder() { if (nfsShareBuilder_ == null) { - nfsShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( - getNfsShare(), - getParentForChildren(), - isClean()); + nfsShareBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + getNfsShare(), getParentForChildren(), isClean()); nfsShare_ = null; } return nfsShareBuilder_; @@ -724,8 +830,13 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil 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_; /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -733,12 +844,15 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -746,16 +860,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -778,6 +897,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -786,8 +907,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -798,6 +918,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -810,7 +932,7 @@ 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;
         }
@@ -822,6 +944,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -842,6 +966,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -851,11 +977,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -868,11 +996,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -882,21 +1013,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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);
     }
 
@@ -906,12 +1040,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest();
   }
@@ -920,16 +1054,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateNfsShareRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateNfsShareRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateNfsShareRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateNfsShareRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -944,6 +1078,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
index 76b8f82..64a6b99 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.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/baremetalsolution/v2/nfs_share.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateNfsShareRequestOrBuilder extends
+public interface UpdateNfsShareRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nfsShare field is set. */ boolean hasNfsShare(); /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nfsShare. */ com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(); /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -48,10 +80,13 @@ public interface UpdateNfsShareRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -59,10 +94,13 @@ public interface UpdateNfsShareRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
similarity index 68%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
index 53ee6b0..38d881f 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.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/baremetalsolution/v2/volume.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * Message for updating a volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ -public final class UpdateVolumeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateVolumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) UpdateVolumeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateVolumeRequest.newBuilder() to construct. private UpdateVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateVolumeRequest() { - } + + private UpdateVolumeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateVolumeRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; - if (volume_ != null) { - subBuilder = volume_.toBuilder(); - } - volume_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(volume_); - volume_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; + if (volume_ != null) { + subBuilder = volume_.toBuilder(); + } + volume_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(volume_); + volume_ = 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 UpdateVolumeRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Volume volume_; /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the volume field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasVolume() { return volume_ != null; } /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The volume. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume getVolume() { - return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; + return volume_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() + : volume_; } /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -170,6 +211,7 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -177,6 +219,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -188,6 +232,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -195,6 +240,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -213,6 +260,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -224,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 (volume_ != null) {
       output.writeMessage(1, getVolume());
     }
@@ -242,12 +289,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (volume_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getVolume());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVolume());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -257,22 +302,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.baremetalsolution.v2.UpdateVolumeRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj;
 
     if (hasVolume() != other.hasVolume()) return false;
     if (hasVolume()) {
-      if (!getVolume()
-          .equals(other.getVolume())) return false;
+      if (!getVolume().equals(other.getVolume())) 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;
@@ -299,117 +343,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message for updating a volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) com.google.cloud.baremetalsolution.v2.UpdateVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.newBuilder() @@ -417,16 +471,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override @@ -467,7 +520,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); if (volumeBuilder_ == null) { result.volume_ = volume_; } else { @@ -486,38 +540,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +580,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) + return this; if (other.hasVolume()) { mergeVolume(other.getVolume()); } @@ -551,7 +607,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,45 +620,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Volume volume_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumeBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + volumeBuilder_; /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the volume field is set. */ public boolean hasVolume() { return volumeBuilder_ != null || volume_ != null; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The volume. */ public com.google.cloud.baremetalsolution.v2.Volume getVolume() { if (volumeBuilder_ == null) { - return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; + return volume_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() + : volume_; } else { return volumeBuilder_.getMessage(); } } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { @@ -617,16 +693,19 @@ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setVolume( - com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { + public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { if (volumeBuilder_ == null) { volume_ = builderForValue.build(); onChanged(); @@ -637,19 +716,25 @@ public Builder setVolume( return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { if (volume_ != null) { volume_ = - com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_) + .mergeFrom(value) + .buildPartial(); } else { volume_ = value; } @@ -661,13 +746,17 @@ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearVolume() { if (volumeBuilder_ == null) { @@ -681,54 +770,70 @@ public Builder clearVolume() { return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumeBuilder() { - + onChanged(); return getVolumeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { if (volumeBuilder_ != null) { return volumeBuilder_.getMessageOrBuilder(); } else { - return volume_ == null ? - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; + return volume_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() + : volume_; } } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumeFieldBuilder() { if (volumeBuilder_ == null) { - volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - getVolume(), - getParentForChildren(), - isClean()); + volumeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + getVolume(), getParentForChildren(), isClean()); volume_ = null; } return volumeBuilder_; @@ -736,8 +841,13 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( 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_; /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -749,12 +859,15 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -766,16 +879,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -802,6 +920,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -814,8 +934,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -826,6 +945,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -842,7 +963,7 @@ 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;
         }
@@ -854,6 +975,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -878,6 +1001,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -891,11 +1016,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -912,11 +1039,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -930,21 +1060,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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);
     }
 
@@ -954,12 +1087,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest();
   }
@@ -968,16 +1101,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateVolumeRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateVolumeRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateVolumeRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateVolumeRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -992,6 +1125,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
index 345ca45..a1d2271 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.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/baremetalsolution/v2/volume.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateVolumeRequestOrBuilder extends
+public interface UpdateVolumeRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the volume field is set. */ boolean hasVolume(); /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The volume. */ com.google.cloud.baremetalsolution.v2.Volume getVolume(); /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -52,10 +84,13 @@ public interface UpdateVolumeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -67,10 +102,13 @@ public interface UpdateVolumeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
similarity index 72%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
index 4209331..e47ad61 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * A network VRF.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ -public final class VRF extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VRF extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF) VRFOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VRF.newBuilder() to construct. private VRF(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VRF() { name_ = ""; state_ = 0; @@ -27,16 +45,15 @@ private VRF() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VRF(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VRF( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,47 +73,58 @@ private VRF( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 50: { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; - if (qosPolicy_ != null) { - subBuilder = qosPolicy_.toBuilder(); + name_ = s; + break; } - qosPolicy_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qosPolicy_); - qosPolicy_ = subBuilder.buildPartial(); + case 40: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; } + case 50: + { + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; + if (qosPolicy_ != null) { + subBuilder = qosPolicy_.toBuilder(); + } + qosPolicy_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qosPolicy_); + qosPolicy_ = subBuilder.buildPartial(); + } - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - vlanAttachments_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vlanAttachments_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment>(); + mutable_bitField0_ |= 0x00000001; + } + vlanAttachments_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,8 +132,7 @@ private VRF( } 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)) { vlanAttachments_ = java.util.Collections.unmodifiableList(vlanAttachments_); @@ -114,29 +141,35 @@ private VRF( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, + com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } /** + * + * *
    * The possible states for this VRF.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.VRF.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The unspecified state.
      * 
@@ -145,6 +178,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The vrf is provisioning.
      * 
@@ -153,6 +188,8 @@ public enum State */ PROVISIONING(1), /** + * + * *
      * The vrf is provisioned.
      * 
@@ -164,6 +201,8 @@ public enum State ; /** + * + * *
      * The unspecified state.
      * 
@@ -172,6 +211,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The vrf is provisioning.
      * 
@@ -180,6 +221,8 @@ public enum State */ public static final int PROVISIONING_VALUE = 1; /** + * + * *
      * The vrf is provisioned.
      * 
@@ -188,7 +231,6 @@ public enum State */ public static final int PROVISIONED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -213,49 +255,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONING; - case 2: return PROVISIONED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return PROVISIONED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.VRF.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -272,51 +314,56 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.VRF.State) } - public interface QosPolicyOrBuilder extends + public interface QosPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; + * * @return The bandwidthGbps. */ double getBandwidthGbps(); } /** + * + * *
    * QOS policy parameters.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class QosPolicy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class QosPolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) QosPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QosPolicy.newBuilder() to construct. private QosPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QosPolicy() { - } + + private QosPolicy() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QosPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private QosPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -335,18 +382,18 @@ private QosPolicy( case 0: done = true; break; - case 9: { - - bandwidthGbps_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 9: + { + bandwidthGbps_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -354,34 +401,39 @@ private QosPolicy( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } public static final int BANDWIDTH_GBPS_FIELD_NUMBER = 1; private double bandwidthGbps_; /** + * + * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; + * * @return The bandwidthGbps. */ @java.lang.Override @@ -390,6 +442,7 @@ public double getBandwidthGbps() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -401,8 +454,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { output.writeDouble(1, bandwidthGbps_); } @@ -416,8 +468,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, bandwidthGbps_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, bandwidthGbps_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -427,16 +478,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.baremetalsolution.v2.VRF.QosPolicy)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = + (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; if (java.lang.Double.doubleToLongBits(getBandwidthGbps()) - != java.lang.Double.doubleToLongBits( - other.getBandwidthGbps())) return false; + != java.lang.Double.doubleToLongBits(other.getBandwidthGbps())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -449,95 +500,104 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BANDWIDTH_GBPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBandwidthGbps())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBandwidthGbps())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -547,27 +607,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * QOS policy parameters.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder() @@ -575,16 +640,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(); @@ -594,9 +658,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override @@ -615,7 +679,8 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = + new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); result.bandwidthGbps_ = bandwidthGbps_; onBuilt(); return result; @@ -625,38 +690,41 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) other); } else { super.mergeFrom(other); return this; @@ -664,7 +732,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) + return this; if (other.getBandwidthGbps() != 0D) { setBandwidthGbps(other.getBandwidthGbps()); } @@ -687,7 +756,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -697,13 +767,16 @@ public Builder mergeFrom( return this; } - private double bandwidthGbps_ ; + private double bandwidthGbps_; /** + * + * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; + * * @return The bandwidthGbps. */ @java.lang.Override @@ -711,34 +784,41 @@ public double getBandwidthGbps() { return bandwidthGbps_; } /** + * + * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; + * * @param value The bandwidthGbps to set. * @return This builder for chaining. */ public Builder setBandwidthGbps(double value) { - + bandwidthGbps_ = value; onChanged(); return this; } /** + * + * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; + * * @return This builder for chaining. */ public Builder clearBandwidthGbps() { - + bandwidthGbps_ = 0D; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -751,12 +831,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) private static final com.google.cloud.baremetalsolution.v2.VRF.QosPolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(); } @@ -765,16 +845,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QosPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QosPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QosPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QosPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -789,79 +869,95 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface VlanAttachmentOrBuilder extends + public interface VlanAttachmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; + * * @return The peerVlanId. */ long getPeerVlanId(); /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The peerIp. */ java.lang.String getPeerIp(); /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The bytes for peerIp. */ - com.google.protobuf.ByteString - getPeerIpBytes(); + com.google.protobuf.ByteString getPeerIpBytes(); /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The routerIp. */ java.lang.String getRouterIp(); /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The bytes for routerIp. */ - com.google.protobuf.ByteString - getRouterIpBytes(); + com.google.protobuf.ByteString getRouterIpBytes(); } /** + * + * *
    * VLAN attachment details.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class VlanAttachment extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class VlanAttachment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) VlanAttachmentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VlanAttachment.newBuilder() to construct. private VlanAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VlanAttachment() { peerIp_ = ""; routerIp_ = ""; @@ -869,16 +965,15 @@ private VlanAttachment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VlanAttachment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VlanAttachment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -897,30 +992,32 @@ private VlanAttachment( case 0: done = true; break; - case 8: { - - peerVlanId_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + peerVlanId_ = input.readInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - peerIp_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + peerIp_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - routerIp_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + routerIp_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -928,34 +1025,39 @@ private VlanAttachment( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } public static final int PEER_VLAN_ID_FIELD_NUMBER = 1; private long peerVlanId_; /** + * + * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; + * * @return The peerVlanId. */ @java.lang.Override @@ -966,11 +1068,14 @@ public long getPeerVlanId() { public static final int PEER_IP_FIELD_NUMBER = 2; private volatile java.lang.Object peerIp_; /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The peerIp. */ @java.lang.Override @@ -979,29 +1084,29 @@ public java.lang.String getPeerIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; } } /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The bytes for peerIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getPeerIpBytes() { + public com.google.protobuf.ByteString getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1012,11 +1117,14 @@ public java.lang.String getPeerIp() { public static final int ROUTER_IP_FIELD_NUMBER = 3; private volatile java.lang.Object routerIp_; /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The routerIp. */ @java.lang.Override @@ -1025,29 +1133,29 @@ public java.lang.String getRouterIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; } } /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The bytes for routerIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getRouterIpBytes() { + public com.google.protobuf.ByteString getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1056,6 +1164,7 @@ public java.lang.String getRouterIp() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1067,8 +1176,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (peerVlanId_ != 0L) { output.writeInt64(1, peerVlanId_); } @@ -1088,8 +1196,7 @@ public int getSerializedSize() { size = 0; if (peerVlanId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, peerVlanId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, peerVlanId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerIp_); @@ -1105,19 +1212,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.baremetalsolution.v2.VRF.VlanAttachment)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = + (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; - if (getPeerVlanId() - != other.getPeerVlanId()) return false; - if (!getPeerIp() - .equals(other.getPeerIp())) return false; - if (!getRouterIp() - .equals(other.getRouterIp())) return false; + if (getPeerVlanId() != other.getPeerVlanId()) return false; + if (!getPeerIp().equals(other.getPeerIp())) return false; + if (!getRouterIp().equals(other.getRouterIp())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1130,8 +1235,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PEER_VLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPeerVlanId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPeerVlanId()); hash = (37 * hash) + PEER_IP_FIELD_NUMBER; hash = (53 * hash) + getPeerIp().hashCode(); hash = (37 * hash) + ROUTER_IP_FIELD_NUMBER; @@ -1142,87 +1246,94 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1232,27 +1343,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * VLAN attachment details.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.newBuilder() @@ -1260,16 +1376,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(); @@ -1283,9 +1398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override @@ -1304,7 +1419,8 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = + new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); result.peerVlanId_ = peerVlanId_; result.peerIp_ = peerIp_; result.routerIp_ = routerIp_; @@ -1316,38 +1432,41 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) other); } else { super.mergeFrom(other); return this; @@ -1355,7 +1474,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) + return this; if (other.getPeerVlanId() != 0L) { setPeerVlanId(other.getPeerVlanId()); } @@ -1386,7 +1506,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1396,13 +1517,16 @@ public Builder mergeFrom( return this; } - private long peerVlanId_ ; + private long peerVlanId_; /** + * + * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; + * * @return The peerVlanId. */ @java.lang.Override @@ -1410,30 +1534,36 @@ public long getPeerVlanId() { return peerVlanId_; } /** + * + * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; + * * @param value The peerVlanId to set. * @return This builder for chaining. */ public Builder setPeerVlanId(long value) { - + peerVlanId_ = value; onChanged(); return this; } /** + * + * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; + * * @return This builder for chaining. */ public Builder clearPeerVlanId() { - + peerVlanId_ = 0L; onChanged(); return this; @@ -1441,18 +1571,20 @@ public Builder clearPeerVlanId() { private java.lang.Object peerIp_ = ""; /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @return The peerIp. */ public java.lang.String getPeerIp() { java.lang.Object ref = peerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; @@ -1461,20 +1593,21 @@ public java.lang.String getPeerIp() { } } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @return The bytes for peerIp. */ - public com.google.protobuf.ByteString - getPeerIpBytes() { + public com.google.protobuf.ByteString getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1482,54 +1615,61 @@ public java.lang.String getPeerIp() { } } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @param value The peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIp( - java.lang.String value) { + public Builder setPeerIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + peerIp_ = value; onChanged(); return this; } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @return This builder for chaining. */ public Builder clearPeerIp() { - + peerIp_ = getDefaultInstance().getPeerIp(); onChanged(); return this; } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @param value The bytes for peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIpBytes( - com.google.protobuf.ByteString value) { + public Builder setPeerIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerIp_ = value; onChanged(); return this; @@ -1537,18 +1677,20 @@ public Builder setPeerIpBytes( private java.lang.Object routerIp_ = ""; /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @return The routerIp. */ public java.lang.String getRouterIp() { java.lang.Object ref = routerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; @@ -1557,20 +1699,21 @@ public java.lang.String getRouterIp() { } } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @return The bytes for routerIp. */ - public com.google.protobuf.ByteString - getRouterIpBytes() { + public com.google.protobuf.ByteString getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1578,58 +1721,66 @@ public java.lang.String getRouterIp() { } } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @param value The routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIp( - java.lang.String value) { + public Builder setRouterIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + routerIp_ = value; onChanged(); return this; } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @return This builder for chaining. */ public Builder clearRouterIp() { - + routerIp_ = getDefaultInstance().getRouterIp(); onChanged(); return this; } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @param value The bytes for routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIpBytes( - com.google.protobuf.ByteString value) { + public Builder setRouterIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routerIp_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1642,12 +1793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) private static final com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(); } @@ -1656,16 +1807,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VlanAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VlanAttachment(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VlanAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VlanAttachment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1680,17 +1831,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1699,29 +1852,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @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 { @@ -1732,38 +1885,50 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = + com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } public static final int QOS_POLICY_FIELD_NUMBER = 6; private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return Whether the qosPolicy field is set. */ @java.lang.Override @@ -1771,18 +1936,25 @@ public boolean hasQosPolicy() { return qosPolicy_ != null; } /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return The qosPolicy. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { - return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; + return qosPolicy_ == null + ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() + : qosPolicy_; } /** + * + * *
    * The QOS policy applied to this VRF.
    * 
@@ -1797,64 +1969,81 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy public static final int VLAN_ATTACHMENTS_FIELD_NUMBER = 7; private java.util.List vlanAttachments_; /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override - public java.util.List getVlanAttachmentsList() { + public java.util.List + getVlanAttachmentsList() { return vlanAttachments_; } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override - public java.util.List + public java.util.List getVlanAttachmentsOrBuilderList() { return vlanAttachments_; } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override public int getVlanAttachmentsCount() { return vlanAttachments_.size(); } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { return vlanAttachments_.get(index); } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder + getVlanAttachmentsOrBuilder(int index) { return vlanAttachments_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1866,8 +2055,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1893,16 +2081,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.VRF.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (qosPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getQosPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getQosPolicy()); } for (int i = 0; i < vlanAttachments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, vlanAttachments_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, vlanAttachments_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1912,23 +2097,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.baremetalsolution.v2.VRF)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF other = (com.google.cloud.baremetalsolution.v2.VRF) obj; + com.google.cloud.baremetalsolution.v2.VRF other = + (com.google.cloud.baremetalsolution.v2.VRF) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasQosPolicy() != other.hasQosPolicy()) return false; if (hasQosPolicy()) { - if (!getQosPolicy() - .equals(other.getQosPolicy())) return false; + if (!getQosPolicy().equals(other.getQosPolicy())) return false; } - if (!getVlanAttachmentsList() - .equals(other.getVlanAttachmentsList())) return false; + if (!getVlanAttachmentsList().equals(other.getVlanAttachmentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1957,118 +2140,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF 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.baremetalsolution.v2.VRF parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 network VRF.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF) com.google.cloud.baremetalsolution.v2.VRFOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, + com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.newBuilder() @@ -2076,17 +2268,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) { getVlanAttachmentsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2110,9 +2302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override @@ -2131,7 +2323,8 @@ public com.google.cloud.baremetalsolution.v2.VRF build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF result = new com.google.cloud.baremetalsolution.v2.VRF(this); + com.google.cloud.baremetalsolution.v2.VRF result = + new com.google.cloud.baremetalsolution.v2.VRF(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.state_ = state_; @@ -2157,38 +2350,39 @@ public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF) other); } else { super.mergeFrom(other); return this; @@ -2225,9 +2419,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF other) { vlanAttachmentsBuilder_ = null; vlanAttachments_ = other.vlanAttachments_; bitField0_ = (bitField0_ & ~0x00000001); - vlanAttachmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVlanAttachmentsFieldBuilder() : null; + vlanAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVlanAttachmentsFieldBuilder() + : null; } else { vlanAttachmentsBuilder_.addAllMessages(other.vlanAttachments_); } @@ -2261,22 +2456,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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; @@ -2285,20 +2483,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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 { @@ -2306,54 +2505,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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 name of the VRF.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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; @@ -2361,51 +2567,65 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = + com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2413,21 +2633,24 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.VRF.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2435,34 +2658,47 @@ public Builder clearState() { private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> qosPolicyBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> + qosPolicyBuilder_; /** + * + * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return Whether the qosPolicy field is set. */ public boolean hasQosPolicy() { return qosPolicyBuilder_ != null || qosPolicy_ != null; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return The qosPolicy. */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { if (qosPolicyBuilder_ == null) { - return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; + return qosPolicy_ == null + ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() + : qosPolicy_; } else { return qosPolicyBuilder_.getMessage(); } } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2483,6 +2719,8 @@ public Builder setQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2501,6 +2739,8 @@ public Builder setQosPolicy( return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2511,7 +2751,9 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic if (qosPolicyBuilder_ == null) { if (qosPolicy_ != null) { qosPolicy_ = - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_) + .mergeFrom(value) + .buildPartial(); } else { qosPolicy_ = value; } @@ -2523,6 +2765,8 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2541,6 +2785,8 @@ public Builder clearQosPolicy() { return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2548,11 +2794,13 @@ public Builder clearQosPolicy() { * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder getQosPolicyBuilder() { - + onChanged(); return getQosPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2563,11 +2811,14 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy if (qosPolicyBuilder_ != null) { return qosPolicyBuilder_.getMessageOrBuilder(); } else { - return qosPolicy_ == null ? - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; + return qosPolicy_ == null + ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() + : qosPolicy_; } } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2575,39 +2826,52 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> getQosPolicyFieldBuilder() { if (qosPolicyBuilder_ == null) { - qosPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( - getQosPolicy(), - getParentForChildren(), - isClean()); + qosPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( + getQosPolicy(), getParentForChildren(), isClean()); qosPolicy_ = null; } return qosPolicyBuilder_; } - private java.util.List vlanAttachments_ = - java.util.Collections.emptyList(); + private java.util.List + vlanAttachments_ = java.util.Collections.emptyList(); + private void ensureVlanAttachmentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = new java.util.ArrayList(vlanAttachments_); + vlanAttachments_ = + new java.util.ArrayList( + vlanAttachments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> vlanAttachmentsBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + vlanAttachmentsBuilder_; /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public java.util.List getVlanAttachmentsList() { + public java.util.List + getVlanAttachmentsList() { if (vlanAttachmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(vlanAttachments_); } else { @@ -2615,11 +2879,14 @@ public java.util.List } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public int getVlanAttachmentsCount() { if (vlanAttachmentsBuilder_ == null) { @@ -2629,11 +2896,14 @@ public int getVlanAttachmentsCount() { } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -2643,11 +2913,14 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachmen } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder setVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -2664,14 +2937,18 @@ public Builder setVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder setVlanAttachments( - int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.set(index, builderForValue.build()); @@ -2682,13 +2959,17 @@ public Builder setVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public Builder addVlanAttachments(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { + public Builder addVlanAttachments( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { if (vlanAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2702,11 +2983,14 @@ public Builder addVlanAttachments(com.google.cloud.baremetalsolution.v2.VRF.Vlan return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -2723,11 +3007,14 @@ public Builder addVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addVlanAttachments( com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { @@ -2741,14 +3028,18 @@ public Builder addVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addVlanAttachments( - int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(index, builderForValue.build()); @@ -2759,18 +3050,21 @@ public Builder addVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addAllVlanAttachments( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vlanAttachments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vlanAttachments_); onChanged(); } else { vlanAttachmentsBuilder_.addAllMessages(values); @@ -2778,11 +3072,14 @@ public Builder addAllVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder clearVlanAttachments() { if (vlanAttachmentsBuilder_ == null) { @@ -2795,11 +3092,14 @@ public Builder clearVlanAttachments() { return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder removeVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -2812,39 +3112,50 @@ public Builder removeVlanAttachments(int index) { return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder getVlanAttachmentsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder + getVlanAttachmentsBuilder(int index) { return getVlanAttachmentsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder + getVlanAttachmentsOrBuilder(int index) { if (vlanAttachmentsBuilder_ == null) { - return vlanAttachments_.get(index); } else { + return vlanAttachments_.get(index); + } else { return vlanAttachmentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public java.util.List - getVlanAttachmentsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + getVlanAttachmentsOrBuilderList() { if (vlanAttachmentsBuilder_ != null) { return vlanAttachmentsBuilder_.getMessageOrBuilderList(); } else { @@ -2852,45 +3163,63 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlan } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder() { - return getVlanAttachmentsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder + addVlanAttachmentsBuilder() { + return getVlanAttachmentsFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder( - int index) { - return getVlanAttachmentsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder + addVlanAttachmentsBuilder(int index) { + return getVlanAttachmentsFieldBuilder() + .addBuilder( + index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public java.util.List - getVlanAttachmentsBuilderList() { + public java.util.List + getVlanAttachmentsBuilderList() { return getVlanAttachmentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> getVlanAttachmentsFieldBuilder() { if (vlanAttachmentsBuilder_ == null) { - vlanAttachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( + vlanAttachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( vlanAttachments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2899,9 +3228,9 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanA } return vlanAttachmentsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2911,12 +3240,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF) private static final com.google.cloud.baremetalsolution.v2.VRF DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF(); } @@ -2925,16 +3254,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VRF parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VRF(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VRF parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VRF(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2949,6 +3278,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java index deba571..fb8d57d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface VRFOrBuilder extends +public interface VRFOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.VRF.State getState(); /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return Whether the qosPolicy field is set. */ boolean hasQosPolicy(); /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return The qosPolicy. */ com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy(); /** + * + * *
    * The QOS policy applied to this VRF.
    * 
@@ -74,45 +109,59 @@ public interface VRFOrBuilder extends com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicyOrBuilder(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - java.util.List - getVlanAttachmentsList(); + java.util.List getVlanAttachmentsList(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ int getVlanAttachmentsCount(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - java.util.List + java.util.List getVlanAttachmentsOrBuilderList(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( int index); diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java index 926e0a1..bdd0c0b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A storage volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ -public final class Volume extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Volume extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume) VolumeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Volume() { name_ = ""; id_ = ""; @@ -30,16 +48,15 @@ private Volume() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Volume(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Volume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,105 +76,117 @@ private Volume( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - storageType_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 32: { - - requestedSizeGib_ = input.readInt64(); - break; - } - case 40: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - currentSizeGib_ = input.readInt64(); - break; - } - case 48: { + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - autoGrownSizeGib_ = input.readInt64(); - break; - } - case 56: { + storageType_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); - remainingSpaceGib_ = input.readInt64(); - break; - } - case 66: { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder subBuilder = null; - if (snapshotReservationDetail_ != null) { - subBuilder = snapshotReservationDetail_.toBuilder(); + state_ = rawValue; + break; } - snapshotReservationDetail_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshotReservationDetail_); - snapshotReservationDetail_ = subBuilder.buildPartial(); + case 32: + { + requestedSizeGib_ = input.readInt64(); + break; } + case 40: + { + currentSizeGib_ = input.readInt64(); + break; + } + case 48: + { + autoGrownSizeGib_ = input.readInt64(); + break; + } + case 56: + { + remainingSpaceGib_ = input.readInt64(); + break; + } + case 66: + { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + subBuilder = null; + if (snapshotReservationDetail_ != null) { + subBuilder = snapshotReservationDetail_.toBuilder(); + } + snapshotReservationDetail_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshotReservationDetail_); + snapshotReservationDetail_ = subBuilder.buildPartial(); + } - break; - } - case 72: { - int rawValue = input.readEnum(); - - snapshotAutoDeleteBehavior_ = rawValue; - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 104: { + case 72: + { + int rawValue = input.readEnum(); - snapshotEnabled_ = input.readBool(); - break; - } - case 112: { + snapshotAutoDeleteBehavior_ = rawValue; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - emergencySizeGib_ = input.readInt64(); - break; - } - case 122: { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 104: + { + snapshotEnabled_ = input.readBool(); + break; + } + case 112: + { + emergencySizeGib_ = input.readInt64(); + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pod_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -165,48 +194,52 @@ private Volume( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_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 12: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, + com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } /** + * + * *
    * The storage type for a volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.StorageType} */ - public enum StorageType - implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The storage type for this volume is unknown.
      * 
@@ -215,6 +248,8 @@ public enum StorageType */ STORAGE_TYPE_UNSPECIFIED(0), /** + * + * *
      * The storage type for this volume is SSD.
      * 
@@ -223,6 +258,8 @@ public enum StorageType */ SSD(1), /** + * + * *
      * This storage type for this volume is HDD.
      * 
@@ -234,6 +271,8 @@ public enum StorageType ; /** + * + * *
      * The storage type for this volume is unknown.
      * 
@@ -242,6 +281,8 @@ public enum StorageType */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The storage type for this volume is SSD.
      * 
@@ -250,6 +291,8 @@ public enum StorageType */ public static final int SSD_VALUE = 1; /** + * + * *
      * This storage type for this volume is HDD.
      * 
@@ -258,7 +301,6 @@ public enum StorageType */ public static final int HDD_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -283,49 +325,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: return STORAGE_TYPE_UNSPECIFIED; - case 1: return SSD; - case 2: return HDD; - default: return null; + case 0: + return STORAGE_TYPE_UNSPECIFIED; + case 1: + return SSD; + case 2: + return HDD; + 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< - StorageType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.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 StorageType findValueByNumber(int number) { + return StorageType.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.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(0); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -343,15 +385,18 @@ private StorageType(int value) { } /** + * + * *
    * The possible states for a storage volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The storage volume is in an unknown state.
      * 
@@ -360,6 +405,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The storage volume is being created.
      * 
@@ -368,6 +415,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The storage volume is ready for use.
      * 
@@ -376,6 +425,8 @@ public enum State */ READY(2), /** + * + * *
      * The storage volume has been requested to be deleted.
      * 
@@ -387,6 +438,8 @@ public enum State ; /** + * + * *
      * The storage volume is in an unknown state.
      * 
@@ -395,6 +448,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The storage volume is being created.
      * 
@@ -403,6 +458,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The storage volume is ready for use.
      * 
@@ -411,6 +468,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * The storage volume has been requested to be deleted.
      * 
@@ -419,7 +478,6 @@ public enum State */ public static final int DELETING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -444,50 +502,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 3: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -505,6 +564,8 @@ private State(int value) { } /** + * + * *
    * The kinds of auto delete behavior to use when snapshot reserved space is
    * full.
@@ -512,9 +573,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior}
    */
-  public enum SnapshotAutoDeleteBehavior
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * The unspecified behavior.
      * 
@@ -523,6 +585,8 @@ public enum SnapshotAutoDeleteBehavior */ SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED(0), /** + * + * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -532,6 +596,8 @@ public enum SnapshotAutoDeleteBehavior
      */
     DISABLED(1),
     /**
+     *
+     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -540,6 +606,8 @@ public enum SnapshotAutoDeleteBehavior */ OLDEST_FIRST(2), /** + * + * *
      * Delete the newest snapshots first.
      * 
@@ -551,6 +619,8 @@ public enum SnapshotAutoDeleteBehavior ; /** + * + * *
      * The unspecified behavior.
      * 
@@ -559,6 +629,8 @@ public enum SnapshotAutoDeleteBehavior */ public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -568,6 +640,8 @@ public enum SnapshotAutoDeleteBehavior
      */
     public static final int DISABLED_VALUE = 1;
     /**
+     *
+     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -576,6 +650,8 @@ public enum SnapshotAutoDeleteBehavior */ public static final int OLDEST_FIRST_VALUE = 2; /** + * + * *
      * Delete the newest snapshots first.
      * 
@@ -584,7 +660,6 @@ public enum SnapshotAutoDeleteBehavior */ public static final int NEWEST_FIRST_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -609,11 +684,16 @@ public static SnapshotAutoDeleteBehavior valueOf(int value) { */ public static SnapshotAutoDeleteBehavior forNumber(int value) { switch (value) { - case 0: return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; - case 1: return DISABLED; - case 2: return OLDEST_FIRST; - case 3: return NEWEST_FIRST; - default: return null; + case 0: + return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return OLDEST_FIRST; + case 3: + return NEWEST_FIRST; + default: + return null; } } @@ -621,28 +701,28 @@ public static SnapshotAutoDeleteBehavior forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SnapshotAutoDeleteBehavior> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SnapshotAutoDeleteBehavior findValueByNumber(int number) { - return SnapshotAutoDeleteBehavior.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 SnapshotAutoDeleteBehavior findValueByNumber(int number) { + return SnapshotAutoDeleteBehavior.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.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(2); } @@ -651,8 +731,7 @@ public SnapshotAutoDeleteBehavior findValueByNumber(int number) { public static SnapshotAutoDeleteBehavior 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; @@ -669,21 +748,27 @@ private SnapshotAutoDeleteBehavior(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior) } - public interface SnapshotReservationDetailOrBuilder extends + public interface SnapshotReservationDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; + * * @return The reservedSpaceGib. */ long getReservedSpaceGib(); /** + * + * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -692,22 +777,28 @@ public interface SnapshotReservationDetailOrBuilder extends
      * 
* * int32 reserved_space_used_percent = 2; + * * @return The reservedSpaceUsedPercent. */ int getReservedSpaceUsedPercent(); /** + * + * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; + * * @return The reservedSpaceRemainingGib. */ long getReservedSpaceRemainingGib(); /** + * + * *
      * Percent of the total Volume size reserved for snapshot copies.
      * Enabling snapshots requires reserving 20% or more of
@@ -717,41 +808,43 @@ public interface SnapshotReservationDetailOrBuilder extends
      * 
* * int32 reserved_space_percent = 4; + * * @return The reservedSpacePercent. */ int getReservedSpacePercent(); } /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class SnapshotReservationDetail extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SnapshotReservationDetail extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) SnapshotReservationDetailOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SnapshotReservationDetail.newBuilder() to construct. private SnapshotReservationDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SnapshotReservationDetail() { - } + + private SnapshotReservationDetail() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SnapshotReservationDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SnapshotReservationDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -770,33 +863,33 @@ private SnapshotReservationDetail( case 0: done = true; break; - case 8: { - - reservedSpaceGib_ = input.readInt64(); - break; - } - case 16: { - - reservedSpaceUsedPercent_ = input.readInt32(); - break; - } - case 24: { - - reservedSpaceRemainingGib_ = input.readInt64(); - break; - } - case 32: { - - reservedSpacePercent_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + reservedSpaceGib_ = input.readInt64(); + break; + } + case 16: + { + reservedSpaceUsedPercent_ = input.readInt32(); + break; + } + case 24: + { + reservedSpaceRemainingGib_ = input.readInt64(); + break; + } + case 32: + { + reservedSpacePercent_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -804,34 +897,39 @@ private SnapshotReservationDetail( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); } public static final int RESERVED_SPACE_GIB_FIELD_NUMBER = 1; private long reservedSpaceGib_; /** + * + * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; + * * @return The reservedSpaceGib. */ @java.lang.Override @@ -842,6 +940,8 @@ public long getReservedSpaceGib() { public static final int RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER = 2; private int reservedSpaceUsedPercent_; /** + * + * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -850,6 +950,7 @@ public long getReservedSpaceGib() {
      * 
* * int32 reserved_space_used_percent = 2; + * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -860,12 +961,15 @@ public int getReservedSpaceUsedPercent() { public static final int RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER = 3; private long reservedSpaceRemainingGib_; /** + * + * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; + * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -876,6 +980,8 @@ public long getReservedSpaceRemainingGib() { public static final int RESERVED_SPACE_PERCENT_FIELD_NUMBER = 4; private int reservedSpacePercent_; /** + * + * *
      * Percent of the total Volume size reserved for snapshot copies.
      * Enabling snapshots requires reserving 20% or more of
@@ -885,6 +991,7 @@ public long getReservedSpaceRemainingGib() {
      * 
* * int32 reserved_space_percent = 4; + * * @return The reservedSpacePercent. */ @java.lang.Override @@ -893,6 +1000,7 @@ public int getReservedSpacePercent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -904,8 +1012,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reservedSpaceGib_ != 0L) { output.writeInt64(1, reservedSpaceGib_); } @@ -928,20 +1035,18 @@ public int getSerializedSize() { size = 0; if (reservedSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, reservedSpaceGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, reservedSpaceGib_); } if (reservedSpaceUsedPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, reservedSpaceUsedPercent_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(2, reservedSpaceUsedPercent_); } if (reservedSpaceRemainingGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, reservedSpaceRemainingGib_); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(3, reservedSpaceRemainingGib_); } if (reservedSpacePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, reservedSpacePercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, reservedSpacePercent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -951,21 +1056,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.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { + if (!(obj + instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = + (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; - if (getReservedSpaceGib() - != other.getReservedSpaceGib()) return false; - if (getReservedSpaceUsedPercent() - != other.getReservedSpaceUsedPercent()) return false; - if (getReservedSpaceRemainingGib() - != other.getReservedSpaceRemainingGib()) return false; - if (getReservedSpacePercent() - != other.getReservedSpacePercent()) return false; + if (getReservedSpaceGib() != other.getReservedSpaceGib()) return false; + if (getReservedSpaceUsedPercent() != other.getReservedSpaceUsedPercent()) return false; + if (getReservedSpaceRemainingGib() != other.getReservedSpaceRemainingGib()) return false; + if (getReservedSpacePercent() != other.getReservedSpacePercent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -978,13 +1081,11 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESERVED_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReservedSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceGib()); hash = (37 * hash) + RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpaceUsedPercent(); hash = (37 * hash) + RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReservedSpaceRemainingGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceRemainingGib()); hash = (37 * hash) + RESERVED_SPACE_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpacePercent(); hash = (29 * hash) + unknownFields.hashCode(); @@ -993,87 +1094,95 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1083,44 +1192,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + .class); } - // Construct using com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() + // Construct using + // com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1136,19 +1251,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail build() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1157,7 +1275,8 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = + new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); result.reservedSpaceGib_ = reservedSpaceGib_; result.reservedSpaceUsedPercent_ = reservedSpaceUsedPercent_; result.reservedSpaceRemainingGib_ = reservedSpaceRemainingGib_; @@ -1170,46 +1289,54 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)other); + if (other + instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { + return mergeFrom( + (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { - if (other == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { + if (other + == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance()) return this; if (other.getReservedSpaceGib() != 0L) { setReservedSpaceGib(other.getReservedSpaceGib()); } @@ -1241,7 +1368,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1251,13 +1380,16 @@ public Builder mergeFrom( return this; } - private long reservedSpaceGib_ ; + private long reservedSpaceGib_; /** + * + * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; + * * @return The reservedSpaceGib. */ @java.lang.Override @@ -1265,37 +1397,45 @@ public long getReservedSpaceGib() { return reservedSpaceGib_; } /** + * + * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; + * * @param value The reservedSpaceGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceGib(long value) { - + reservedSpaceGib_ = value; onChanged(); return this; } /** + * + * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; + * * @return This builder for chaining. */ public Builder clearReservedSpaceGib() { - + reservedSpaceGib_ = 0L; onChanged(); return this; } - private int reservedSpaceUsedPercent_ ; + private int reservedSpaceUsedPercent_; /** + * + * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1304,6 +1444,7 @@ public Builder clearReservedSpaceGib() {
        * 
* * int32 reserved_space_used_percent = 2; + * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -1311,6 +1452,8 @@ public int getReservedSpaceUsedPercent() { return reservedSpaceUsedPercent_; } /** + * + * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1319,16 +1462,19 @@ public int getReservedSpaceUsedPercent() {
        * 
* * int32 reserved_space_used_percent = 2; + * * @param value The reservedSpaceUsedPercent to set. * @return This builder for chaining. */ public Builder setReservedSpaceUsedPercent(int value) { - + reservedSpaceUsedPercent_ = value; onChanged(); return this; } /** + * + * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1337,23 +1483,27 @@ public Builder setReservedSpaceUsedPercent(int value) {
        * 
* * int32 reserved_space_used_percent = 2; + * * @return This builder for chaining. */ public Builder clearReservedSpaceUsedPercent() { - + reservedSpaceUsedPercent_ = 0; onChanged(); return this; } - private long reservedSpaceRemainingGib_ ; + private long reservedSpaceRemainingGib_; /** + * + * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; + * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -1361,39 +1511,47 @@ public long getReservedSpaceRemainingGib() { return reservedSpaceRemainingGib_; } /** + * + * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; + * * @param value The reservedSpaceRemainingGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceRemainingGib(long value) { - + reservedSpaceRemainingGib_ = value; onChanged(); return this; } /** + * + * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; + * * @return This builder for chaining. */ public Builder clearReservedSpaceRemainingGib() { - + reservedSpaceRemainingGib_ = 0L; onChanged(); return this; } - private int reservedSpacePercent_ ; + private int reservedSpacePercent_; /** + * + * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1403,6 +1561,7 @@ public Builder clearReservedSpaceRemainingGib() {
        * 
* * int32 reserved_space_percent = 4; + * * @return The reservedSpacePercent. */ @java.lang.Override @@ -1410,6 +1569,8 @@ public int getReservedSpacePercent() { return reservedSpacePercent_; } /** + * + * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1419,16 +1580,19 @@ public int getReservedSpacePercent() {
        * 
* * int32 reserved_space_percent = 4; + * * @param value The reservedSpacePercent to set. * @return This builder for chaining. */ public Builder setReservedSpacePercent(int value) { - + reservedSpacePercent_ = value; onChanged(); return this; } /** + * + * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1438,14 +1602,16 @@ public Builder setReservedSpacePercent(int value) {
        * 
* * int32 reserved_space_percent = 4; + * * @return This builder for chaining. */ public Builder clearReservedSpacePercent() { - + reservedSpacePercent_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1458,30 +1624,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) - private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); + DEFAULT_INSTANCE = + new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotReservationDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotReservationDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotReservationDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotReservationDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1493,15 +1662,17 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1511,6 +1682,7 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail ge
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1519,14 +1691,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; } } /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1536,16 +1709,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1556,11 +1728,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 11; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ @java.lang.Override @@ -1569,29 +1744,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; } } /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @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 { @@ -1602,65 +1777,90 @@ public java.lang.String getId() { public static final int STORAGE_TYPE_FIELD_NUMBER = 2; private int storageType_; /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The storageType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = + com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED + : result; } public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = + com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED + : result; } public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER = 4; private long requestedSizeGib_; /** + * + * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; + * * @return The requestedSizeGib. */ @java.lang.Override @@ -1671,6 +1871,8 @@ public long getRequestedSizeGib() { public static final int CURRENT_SIZE_GIB_FIELD_NUMBER = 5; private long currentSizeGib_; /** + * + * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -1678,6 +1880,7 @@ public long getRequestedSizeGib() {
    * 
* * int64 current_size_gib = 5; + * * @return The currentSizeGib. */ @java.lang.Override @@ -1688,12 +1891,15 @@ public long getCurrentSizeGib() { public static final int EMERGENCY_SIZE_GIB_FIELD_NUMBER = 14; private long emergencySizeGib_; /** + * + * *
    * Additional emergency size that was requested for this Volume, in GiB.
    * current_size_gib includes this value.
    * 
* * int64 emergency_size_gib = 14; + * * @return The emergencySizeGib. */ @java.lang.Override @@ -1704,12 +1910,15 @@ public long getEmergencySizeGib() { public static final int AUTO_GROWN_SIZE_GIB_FIELD_NUMBER = 6; private long autoGrownSizeGib_; /** + * + * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; + * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -1720,12 +1929,15 @@ public long getAutoGrownSizeGib() { public static final int REMAINING_SPACE_GIB_FIELD_NUMBER = 7; private long remainingSpaceGib_; /** + * + * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; + * * @return The remainingSpaceGib. */ @java.lang.Override @@ -1734,13 +1946,19 @@ public long getRemainingSpaceGib() { } public static final int SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER = 8; - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + snapshotReservationDetail_; /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return Whether the snapshotReservationDetail field is set. */ @java.lang.Override @@ -1748,75 +1966,105 @@ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetail_ != null; } /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return The snapshotReservationDetail. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { - return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getSnapshotReservationDetail() { + return snapshotReservationDetail_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance() + : snapshotReservationDetail_; } /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder + getSnapshotReservationDetailOrBuilder() { return getSnapshotReservationDetail(); } public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER = 9; private int snapshotAutoDeleteBehavior_; /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override + public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The snapshotAutoDeleteBehavior. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( + snapshotAutoDeleteBehavior_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED + : result; } public static final int LABELS_FIELD_NUMBER = 12; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1825,28 +2073,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -1854,11 +2104,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 12; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -1866,16 +2117,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -1883,12 +2134,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 12; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1898,11 +2148,14 @@ public java.lang.String getLabelsOrThrow( public static final int SNAPSHOT_ENABLED_FIELD_NUMBER = 13; private boolean snapshotEnabled_; /** + * + * *
    * Whether snapshots are enabled.
    * 
* * bool snapshot_enabled = 13; + * * @return The snapshotEnabled. */ @java.lang.Override @@ -1913,11 +2166,14 @@ public boolean getSnapshotEnabled() { public static final int POD_FIELD_NUMBER = 15; private volatile java.lang.Object pod_; /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ @java.lang.Override @@ -1926,29 +2182,29 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -1957,6 +2213,7 @@ public java.lang.String getPod() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1968,15 +2225,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, storageType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (requestedSizeGib_ != 0L) { @@ -1994,18 +2253,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (snapshotReservationDetail_ != null) { output.writeMessage(8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { + if (snapshotAutoDeleteBehavior_ + != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED + .getNumber()) { output.writeEnum(9, snapshotAutoDeleteBehavior_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, id_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 12); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); if (snapshotEnabled_ != false) { output.writeBool(13, snapshotEnabled_); } @@ -2027,58 +2285,56 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, storageType_); + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, storageType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (requestedSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, requestedSizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, requestedSizeGib_); } if (currentSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, currentSizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, currentSizeGib_); } if (autoGrownSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, autoGrownSizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, autoGrownSizeGib_); } if (remainingSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, remainingSpaceGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, remainingSpaceGib_); } if (snapshotReservationDetail_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSnapshotReservationDetail()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, snapshotAutoDeleteBehavior_); + if (snapshotAutoDeleteBehavior_ + != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, snapshotAutoDeleteBehavior_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, labels__); } if (snapshotEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, snapshotEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, snapshotEnabled_); } if (emergencySizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, emergencySizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, emergencySizeGib_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, pod_); @@ -2091,41 +2347,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Volume)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume other = (com.google.cloud.baremetalsolution.v2.Volume) obj; + com.google.cloud.baremetalsolution.v2.Volume other = + (com.google.cloud.baremetalsolution.v2.Volume) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (storageType_ != other.storageType_) return false; if (state_ != other.state_) return false; - if (getRequestedSizeGib() - != other.getRequestedSizeGib()) return false; - if (getCurrentSizeGib() - != other.getCurrentSizeGib()) return false; - if (getEmergencySizeGib() - != other.getEmergencySizeGib()) return false; - if (getAutoGrownSizeGib() - != other.getAutoGrownSizeGib()) return false; - if (getRemainingSpaceGib() - != other.getRemainingSpaceGib()) return false; + if (getRequestedSizeGib() != other.getRequestedSizeGib()) return false; + if (getCurrentSizeGib() != other.getCurrentSizeGib()) return false; + if (getEmergencySizeGib() != other.getEmergencySizeGib()) return false; + if (getAutoGrownSizeGib() != other.getAutoGrownSizeGib()) return false; + if (getRemainingSpaceGib() != other.getRemainingSpaceGib()) return false; if (hasSnapshotReservationDetail() != other.hasSnapshotReservationDetail()) return false; if (hasSnapshotReservationDetail()) { - if (!getSnapshotReservationDetail() - .equals(other.getSnapshotReservationDetail())) return false; + if (!getSnapshotReservationDetail().equals(other.getSnapshotReservationDetail())) + return false; } if (snapshotAutoDeleteBehavior_ != other.snapshotAutoDeleteBehavior_) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getSnapshotEnabled() - != other.getSnapshotEnabled()) return false; - if (!getPod() - .equals(other.getPod())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getSnapshotEnabled() != other.getSnapshotEnabled()) return false; + if (!getPod().equals(other.getPod())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2146,20 +2393,15 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + REQUESTED_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestedSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestedSizeGib()); hash = (37 * hash) + CURRENT_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurrentSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurrentSizeGib()); hash = (37 * hash) + EMERGENCY_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEmergencySizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEmergencySizeGib()); hash = (37 * hash) + AUTO_GROWN_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAutoGrownSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAutoGrownSizeGib()); hash = (37 * hash) + REMAINING_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRemainingSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRemainingSpaceGib()); if (hasSnapshotReservationDetail()) { hash = (37 * hash) + SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getSnapshotReservationDetail().hashCode(); @@ -2171,8 +2413,7 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + SNAPSHOT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSnapshotEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSnapshotEnabled()); hash = (37 * hash) + POD_FIELD_NUMBER; hash = (53 * hash) + getPod().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -2180,140 +2421,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume 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.baremetalsolution.v2.Volume parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume) com.google.cloud.baremetalsolution.v2.VolumeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 12: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 12: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, + com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Volume.newBuilder() @@ -2321,16 +2569,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(); @@ -2369,9 +2616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @java.lang.Override @@ -2390,7 +2637,8 @@ public com.google.cloud.baremetalsolution.v2.Volume build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume result = new com.google.cloud.baremetalsolution.v2.Volume(this); + com.google.cloud.baremetalsolution.v2.Volume result = + new com.google.cloud.baremetalsolution.v2.Volume(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -2419,38 +2667,39 @@ public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Volume) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume) other); } else { super.mergeFrom(other); return this; @@ -2494,8 +2743,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume other) { if (other.snapshotAutoDeleteBehavior_ != 0) { setSnapshotAutoDeleteBehaviorValue(other.getSnapshotAutoDeleteBehaviorValue()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.getSnapshotEnabled() != false) { setSnapshotEnabled(other.getSnapshotEnabled()); } @@ -2531,10 +2779,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2544,13 +2795,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2559,6 +2810,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2568,15 +2821,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2584,6 +2836,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2593,20 +2847,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2616,15 +2872,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2634,16 +2893,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2651,18 +2910,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -2671,20 +2932,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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 { @@ -2692,54 +2954,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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; } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -2747,51 +3016,67 @@ public Builder setIdBytes( private int storageType_ = 0; /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = + com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED + : result; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @param value The storageType to set. * @return This builder for chaining. */ @@ -2799,21 +3084,24 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Volume.Stora if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -2821,51 +3109,67 @@ public Builder clearStorageType() { private int state_ = 0; /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = + com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2873,33 +3177,39 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Volume.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long requestedSizeGib_ ; + private long requestedSizeGib_; /** + * + * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; + * * @return The requestedSizeGib. */ @java.lang.Override @@ -2907,37 +3217,45 @@ public long getRequestedSizeGib() { return requestedSizeGib_; } /** + * + * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; + * * @param value The requestedSizeGib to set. * @return This builder for chaining. */ public Builder setRequestedSizeGib(long value) { - + requestedSizeGib_ = value; onChanged(); return this; } /** + * + * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; + * * @return This builder for chaining. */ public Builder clearRequestedSizeGib() { - + requestedSizeGib_ = 0L; onChanged(); return this; } - private long currentSizeGib_ ; + private long currentSizeGib_; /** + * + * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2945,6 +3263,7 @@ public Builder clearRequestedSizeGib() {
      * 
* * int64 current_size_gib = 5; + * * @return The currentSizeGib. */ @java.lang.Override @@ -2952,6 +3271,8 @@ public long getCurrentSizeGib() { return currentSizeGib_; } /** + * + * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2959,16 +3280,19 @@ public long getCurrentSizeGib() {
      * 
* * int64 current_size_gib = 5; + * * @param value The currentSizeGib to set. * @return This builder for chaining. */ public Builder setCurrentSizeGib(long value) { - + currentSizeGib_ = value; onChanged(); return this; } /** + * + * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2976,23 +3300,27 @@ public Builder setCurrentSizeGib(long value) {
      * 
* * int64 current_size_gib = 5; + * * @return This builder for chaining. */ public Builder clearCurrentSizeGib() { - + currentSizeGib_ = 0L; onChanged(); return this; } - private long emergencySizeGib_ ; + private long emergencySizeGib_; /** + * + * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; + * * @return The emergencySizeGib. */ @java.lang.Override @@ -3000,45 +3328,54 @@ public long getEmergencySizeGib() { return emergencySizeGib_; } /** + * + * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; + * * @param value The emergencySizeGib to set. * @return This builder for chaining. */ public Builder setEmergencySizeGib(long value) { - + emergencySizeGib_ = value; onChanged(); return this; } /** + * + * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; + * * @return This builder for chaining. */ public Builder clearEmergencySizeGib() { - + emergencySizeGib_ = 0L; onChanged(); return this; } - private long autoGrownSizeGib_ ; + private long autoGrownSizeGib_; /** + * + * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; + * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -3046,45 +3383,54 @@ public long getAutoGrownSizeGib() { return autoGrownSizeGib_; } /** + * + * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; + * * @param value The autoGrownSizeGib to set. * @return This builder for chaining. */ public Builder setAutoGrownSizeGib(long value) { - + autoGrownSizeGib_ = value; onChanged(); return this; } /** + * + * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; + * * @return This builder for chaining. */ public Builder clearAutoGrownSizeGib() { - + autoGrownSizeGib_ = 0L; onChanged(); return this; } - private long remainingSpaceGib_ ; + private long remainingSpaceGib_; /** + * + * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; + * * @return The remainingSpaceGib. */ @java.lang.Override @@ -3092,74 +3438,103 @@ public long getRemainingSpaceGib() { return remainingSpaceGib_; } /** + * + * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; + * * @param value The remainingSpaceGib to set. * @return This builder for chaining. */ public Builder setRemainingSpaceGib(long value) { - + remainingSpaceGib_ = value; onChanged(); return this; } /** + * + * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; + * * @return This builder for chaining. */ public Builder clearRemainingSpaceGib() { - + remainingSpaceGib_ = 0L; onChanged(); return this; } - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + snapshotReservationDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> snapshotReservationDetailBuilder_; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> + snapshotReservationDetailBuilder_; /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return Whether the snapshotReservationDetail field is set. */ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetailBuilder_ != null || snapshotReservationDetail_ != null; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return The snapshotReservationDetail. */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { - return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; + return snapshotReservationDetail_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance() + : snapshotReservationDetail_; } else { return snapshotReservationDetailBuilder_.getMessage(); } } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public Builder setSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder setSnapshotReservationDetail( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3173,14 +3548,19 @@ public Builder setSnapshotReservationDetail(com.google.cloud.baremetalsolution.v return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ public Builder setSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder builderForValue) { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + builderForValue) { if (snapshotReservationDetailBuilder_ == null) { snapshotReservationDetail_ = builderForValue.build(); onChanged(); @@ -3191,17 +3571,25 @@ public Builder setSnapshotReservationDetail( return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public Builder mergeSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder mergeSnapshotReservationDetail( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (snapshotReservationDetail_ != null) { snapshotReservationDetail_ = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder(snapshotReservationDetail_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder( + snapshotReservationDetail_) + .mergeFrom(value) + .buildPartial(); } else { snapshotReservationDetail_ = value; } @@ -3213,11 +3601,15 @@ public Builder mergeSnapshotReservationDetail(com.google.cloud.baremetalsolution return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ public Builder clearSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { @@ -3231,48 +3623,67 @@ public Builder clearSnapshotReservationDetail() { return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder getSnapshotReservationDetailBuilder() { - + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + getSnapshotReservationDetailBuilder() { + onChanged(); return getSnapshotReservationDetailFieldBuilder().getBuilder(); } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder + getSnapshotReservationDetailOrBuilder() { if (snapshotReservationDetailBuilder_ != null) { return snapshotReservationDetailBuilder_.getMessageOrBuilder(); } else { - return snapshotReservationDetail_ == null ? - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; + return snapshotReservationDetail_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance() + : snapshotReservationDetail_; } } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> getSnapshotReservationDetailFieldBuilder() { if (snapshotReservationDetailBuilder_ == null) { - snapshotReservationDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( - getSnapshotReservationDetail(), - getParentForChildren(), - isClean()); + snapshotReservationDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( + getSnapshotReservationDetail(), getParentForChildren(), isClean()); snapshotReservationDetail_ = null; } return snapshotReservationDetailBuilder_; @@ -3280,94 +3691,125 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrB private int snapshotAutoDeleteBehavior_ = 0; /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override + public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @param value The enum numeric value on the wire for snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ public Builder setSnapshotAutoDeleteBehaviorValue(int value) { - + snapshotAutoDeleteBehavior_ = value; onChanged(); return this; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The snapshotAutoDeleteBehavior. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( + snapshotAutoDeleteBehavior_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED + : result; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @param value The snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ - public Builder setSnapshotAutoDeleteBehavior(com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { + public Builder setSnapshotAutoDeleteBehavior( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { if (value == null) { throw new NullPointerException(); } - + snapshotAutoDeleteBehavior_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return This builder for chaining. */ public Builder clearSnapshotAutoDeleteBehavior() { - + snapshotAutoDeleteBehavior_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3379,28 +3821,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3408,11 +3852,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 12; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3420,16 +3865,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3437,12 +3883,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 12; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3450,74 +3895,74 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private boolean snapshotEnabled_ ; + private boolean snapshotEnabled_; /** + * + * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; + * * @return The snapshotEnabled. */ @java.lang.Override @@ -3525,30 +3970,36 @@ public boolean getSnapshotEnabled() { return snapshotEnabled_; } /** + * + * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; + * * @param value The snapshotEnabled to set. * @return This builder for chaining. */ public Builder setSnapshotEnabled(boolean value) { - + snapshotEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; + * * @return This builder for chaining. */ public Builder clearSnapshotEnabled() { - + snapshotEnabled_ = false; onChanged(); return this; @@ -3556,18 +4007,20 @@ public Builder clearSnapshotEnabled() { private java.lang.Object pod_ = ""; /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -3576,20 +4029,21 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -3597,61 +4051,68 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod( - java.lang.String value) { + public Builder setPod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes( - com.google.protobuf.ByteString value) { + public Builder setPodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = 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); } @@ -3661,12 +4122,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume) private static final com.google.cloud.baremetalsolution.v2.Volume DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume(); } @@ -3675,16 +4136,16 @@ public static com.google.cloud.baremetalsolution.v2.Volume getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Volume parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Volume(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Volume parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Volume(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3699,6 +4160,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Volume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java index a2d3039..2946abb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface VolumeOrBuilder extends +public interface VolumeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -17,10 +35,13 @@ public interface VolumeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -30,80 +51,102 @@ public interface VolumeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Volume.State getState(); /** + * + * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; + * * @return The requestedSizeGib. */ long getRequestedSizeGib(); /** + * + * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -111,90 +154,129 @@ public interface VolumeOrBuilder extends
    * 
* * int64 current_size_gib = 5; + * * @return The currentSizeGib. */ long getCurrentSizeGib(); /** + * + * *
    * Additional emergency size that was requested for this Volume, in GiB.
    * current_size_gib includes this value.
    * 
* * int64 emergency_size_gib = 14; + * * @return The emergencySizeGib. */ long getEmergencySizeGib(); /** + * + * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; + * * @return The autoGrownSizeGib. */ long getAutoGrownSizeGib(); /** + * + * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; + * * @return The remainingSpaceGib. */ long getRemainingSpaceGib(); /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return Whether the snapshotReservationDetail field is set. */ boolean hasSnapshotReservationDetail(); /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return The snapshotReservationDetail. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getSnapshotReservationDetail(); /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder + getSnapshotReservationDetailOrBuilder(); /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ int getSnapshotAutoDeleteBehaviorValue(); /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The snapshotAutoDeleteBehavior. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + getSnapshotAutoDeleteBehavior(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -203,30 +285,31 @@ public interface VolumeOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -235,48 +318,56 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Whether snapshots are enabled.
    * 
* * bool snapshot_enabled = 13; + * * @return The snapshotEnabled. */ boolean getSnapshotEnabled(); /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ java.lang.String getPod(); /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - com.google.protobuf.ByteString - getPodBytes(); + com.google.protobuf.ByteString getPodBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java new file mode 100644 index 0000000..0ec60b4 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java @@ -0,0 +1,230 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class VolumeProto { + private VolumeProto() {} + + 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_baremetalsolution_v2_Volume_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" + + "me.proto\022!google.cloud.baremetalsolution" + + ".v2\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032 google/protobuf" + + "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" + + "\01625.google.cloud.baremetalsolution.v2.Vo" + + "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" + + ".cloud.baremetalsolution.v2.Volume.State" + + "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" + + "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" + + "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" + + "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" + + "tion_detail\030\010 \001(\0132C.google.cloud.baremet" + + "alsolution.v2.Volume.SnapshotReservation" + + "Detail\022k\n\035snapshot_auto_delete_behavior\030" + + "\t \001(\0162D.google.cloud.baremetalsolution.v" + + "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" + + "abels\030\014 \003(\01325.google.cloud.baremetalsolu" + + "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" + + "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" + + "hotReservationDetail\022\032\n\022reserved_space_g" + + "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" + + "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " + + "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" + + "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" + + "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" + + "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" + + "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" + + "olution.googleapis.com/Volume\0228projects/" + + "{project}/locations/{location}/volumes/{" + + "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" + + "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." + + "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" + + "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" + + "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" + + "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" + + "oogle.cloud.baremetalsolution.v2.VolumeB" + + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" + + "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." + + "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" + + "\371\001\n%com.google.cloud.baremetalsolution.v" + + "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" + + "roto/googleapis/cloud/baremetalsolution/" + + "v2;baremetalsolution\252\002!Google.Cloud.Bare" + + "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" + + "lSolution\\V2\352\002$Google::Cloud::BareMetalS" + + "olution::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, + new java.lang.String[] { + "Name", + "Id", + "StorageType", + "State", + "RequestedSizeGib", + "CurrentSizeGib", + "EmergencySizeGib", + "AutoGrownSizeGib", + "RemainingSpaceGib", + "SnapshotReservationDetail", + "SnapshotAutoDeleteBehavior", + "Labels", + "SnapshotEnabled", + "Pod", + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, + new java.lang.String[] { + "ReservedSpaceGib", + "ReservedSpaceUsedPercent", + "ReservedSpaceRemainingGib", + "ReservedSpacePercent", + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, + new java.lang.String[] { + "Volumes", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, + new java.lang.String[] { + "Volume", "UpdateMask", + }); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, + new java.lang.String[] { + "Volume", "SizeGib", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 87% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java index 564e794..0935bcf 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.Instance; import com.google.protobuf.FieldMask; @@ -37,4 +38,5 @@ public static void syncUpdateInstanceInstanceFieldmask() throws Exception { } } } -// [END baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +// [END +// baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java similarity index 93% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java index dcb0b17..9747c60 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.Network; import com.google.protobuf.FieldMask; diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java similarity index 87% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java index b825ac2..f7da42b 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.NfsShare; import com.google.protobuf.FieldMask; @@ -37,4 +38,5 @@ public static void syncUpdateNfsShareNfsshareFieldmask() throws Exception { } } } -// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +// [END +// baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java From 80c43e4e39d3eb6a0d2907037837a0b2c4ab025c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:00:19 +0000 Subject: [PATCH 3/7] 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 --- .../v2/BareMetalSolutionGrpc.java | 2624 ----------------- .../v2/BareMetalSolutionClient.java | 84 +- .../v2/BareMetalSolutionSettings.java | 30 +- .../baremetalsolution/v2/gapic_metadata.json | 0 .../baremetalsolution/v2/package-info.java | 0 .../v2/stub/BareMetalSolutionStub.java | 6 +- .../stub/BareMetalSolutionStubSettings.java | 59 +- .../GrpcBareMetalSolutionCallableFactory.java | 0 .../v2/stub/GrpcBareMetalSolutionStub.java | 1 + ...pJsonBareMetalSolutionCallableFactory.java | 105 + .../stub/HttpJsonBareMetalSolutionStub.java | 1424 +++++++++ .../BareMetalSolutionClientHttpJsonTest.java | 2187 ++++++++++++++ .../v2/BareMetalSolutionClientTest.java | 0 .../v2/MockBareMetalSolution.java | 0 .../v2/MockBareMetalSolutionImpl.java | 0 .../v2/BareMetalSolutionGrpc.java | 1975 +++++++++++++ .../v2/BareMetalSolutionProto.java | 218 ++ .../v2/DetachLunRequest.java | 449 ++- .../v2/DetachLunRequestOrBuilder.java | 49 + .../v2/GetInstanceRequest.java | 342 +-- .../v2/GetInstanceRequestOrBuilder.java | 29 + .../baremetalsolution/v2/GetLunRequest.java | 339 +-- .../v2/GetLunRequestOrBuilder.java | 29 + .../v2/GetNetworkRequest.java | 342 +-- .../v2/GetNetworkRequestOrBuilder.java | 29 + .../v2/GetNfsShareRequest.java | 342 +-- .../v2/GetNfsShareRequestOrBuilder.java | 29 + .../v2/GetVolumeRequest.java | 342 +-- .../v2/GetVolumeRequestOrBuilder.java | 29 + .../cloud/baremetalsolution/v2/Instance.java | 1991 +++++-------- .../baremetalsolution/v2/InstanceName.java | 0 .../v2/InstanceOrBuilder.java | 215 +- .../baremetalsolution/v2/InstanceProto.java | 283 ++ .../v2/ListInstancesRequest.java | 534 ++-- .../v2/ListInstancesRequestOrBuilder.java | 56 +- .../v2/ListInstancesResponse.java | 571 ++-- .../v2/ListInstancesResponseOrBuilder.java | 63 +- .../baremetalsolution/v2/ListLunsRequest.java | 455 ++- .../v2/ListLunsRequestOrBuilder.java | 47 +- .../v2/ListLunsResponse.java | 572 ++-- .../v2/ListLunsResponseOrBuilder.java | 63 +- .../v2/ListNetworkUsageRequest.java | 350 +-- .../v2/ListNetworkUsageRequestOrBuilder.java | 29 + .../v2/ListNetworkUsageResponse.java | 387 +-- .../v2/ListNetworkUsageResponseOrBuilder.java | 36 +- .../v2/ListNetworksRequest.java | 534 ++-- .../v2/ListNetworksRequestOrBuilder.java | 56 +- .../v2/ListNetworksResponse.java | 574 ++-- .../v2/ListNetworksResponseOrBuilder.java | 63 +- .../v2/ListNfsSharesRequest.java | 534 ++-- .../v2/ListNfsSharesRequestOrBuilder.java | 56 +- .../v2/ListNfsSharesResponse.java | 571 ++-- .../v2/ListNfsSharesResponseOrBuilder.java | 63 +- .../v2/ListVolumesRequest.java | 534 ++-- .../v2/ListVolumesRequestOrBuilder.java | 56 +- .../v2/ListVolumesResponse.java | 570 ++-- .../v2/ListVolumesResponseOrBuilder.java | 63 +- .../baremetalsolution/v2/LocationName.java | 0 .../v2/LogicalInterface.java | 1369 ++++----- .../v2/LogicalInterfaceOrBuilder.java | 74 +- .../cloud/baremetalsolution/v2/Lun.java | 1048 +++---- .../cloud/baremetalsolution/v2/LunName.java | 0 .../baremetalsolution/v2/LunOrBuilder.java | 81 +- .../cloud/baremetalsolution/v2/LunProto.java | 126 + .../baremetalsolution/v2/NFSShareName.java | 0 .../cloud/baremetalsolution/v2/Network.java | 1705 +++++------ .../v2/NetworkAddressReservation.java | 493 ++-- .../NetworkAddressReservationOrBuilder.java | 45 +- .../baremetalsolution/v2/NetworkName.java | 0 .../v2/NetworkOrBuilder.java | 170 +- .../baremetalsolution/v2/NetworkProto.java | 283 ++ .../baremetalsolution/v2/NetworkUsage.java | 443 ++- .../v2/NetworkUsageOrBuilder.java | 44 +- .../cloud/baremetalsolution/v2/NfsShare.java | 1891 +++++------- .../v2/NfsShareOrBuilder.java | 111 +- .../baremetalsolution/v2/NfsShareProto.java | 171 ++ .../v2/OperationMetadata.java | 855 +++--- .../v2/OperationMetadataOrBuilder.java | 91 +- .../v2/ResetInstanceRequest.java | 342 +-- .../v2/ResetInstanceRequestOrBuilder.java | 29 + .../v2/ResetInstanceResponse.java | 238 +- .../v2/ResetInstanceResponseOrBuilder.java | 9 + .../v2/ResizeVolumeRequest.java | 379 +-- .../v2/ResizeVolumeRequestOrBuilder.java | 39 + .../v2/ServerNetworkTemplate.java | 1387 ++++----- .../v2/ServerNetworkTemplateOrBuilder.java | 88 +- .../v2/StartInstanceRequest.java | 342 +-- .../v2/StartInstanceRequestOrBuilder.java | 29 + .../v2/StartInstanceResponse.java | 238 +- .../v2/StartInstanceResponseOrBuilder.java | 9 + .../v2/StopInstanceRequest.java | 342 +-- .../v2/StopInstanceRequestOrBuilder.java | 29 + .../v2/StopInstanceResponse.java | 238 +- .../v2/StopInstanceResponseOrBuilder.java | 9 + .../v2/UpdateInstanceRequest.java | 480 ++- .../v2/UpdateInstanceRequestOrBuilder.java | 46 +- .../v2/UpdateNetworkRequest.java | 480 ++- .../v2/UpdateNetworkRequestOrBuilder.java | 46 +- .../v2/UpdateNfsShareRequest.java | 480 ++- .../v2/UpdateNfsShareRequestOrBuilder.java | 46 +- .../v2/UpdateVolumeRequest.java | 483 ++- .../v2/UpdateVolumeRequestOrBuilder.java | 46 +- .../cloud/baremetalsolution/v2/VRF.java | 1457 ++++----- .../baremetalsolution/v2/VRFOrBuilder.java | 71 +- .../cloud/baremetalsolution/v2/Volume.java | 2005 +++++-------- .../baremetalsolution/v2/VolumeName.java | 0 .../baremetalsolution/v2/VolumeOrBuilder.java | 149 +- .../baremetalsolution/v2/VolumeProto.java | 192 ++ .../v2/baremetalsolution.proto | 0 .../cloud/baremetalsolution/v2/instance.proto | 0 .../cloud/baremetalsolution/v2/lun.proto | 0 .../cloud/baremetalsolution/v2/network.proto | 0 .../baremetalsolution/v2/nfs_share.proto | 0 .../cloud/baremetalsolution/v2/volume.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 0 .../detachlun/AsyncDetachLun.java | 0 .../detachlun/AsyncDetachLunLRO.java | 0 .../detachlun/SyncDetachLun.java | 0 .../SyncDetachLunInstancenameLunname.java | 0 .../SyncDetachLunInstancenameString.java | 0 .../detachlun/SyncDetachLunStringLunname.java | 0 .../detachlun/SyncDetachLunStringString.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../getlun/AsyncGetLun.java | 0 .../getlun/SyncGetLun.java | 0 .../getlun/SyncGetLunLunname.java | 0 .../getlun/SyncGetLunString.java | 0 .../getnetwork/AsyncGetNetwork.java | 0 .../getnetwork/SyncGetNetwork.java | 0 .../getnetwork/SyncGetNetworkNetworkname.java | 0 .../getnetwork/SyncGetNetworkString.java | 0 .../getnfsshare/AsyncGetNfsShare.java | 0 .../getnfsshare/SyncGetNfsShare.java | 0 .../SyncGetNfsShareNfssharename.java | 0 .../getnfsshare/SyncGetNfsShareString.java | 0 .../getvolume/AsyncGetVolume.java | 0 .../getvolume/SyncGetVolume.java | 0 .../getvolume/SyncGetVolumeString.java | 0 .../getvolume/SyncGetVolumeVolumename.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../listluns/AsyncListLuns.java | 0 .../listluns/AsyncListLunsPaged.java | 0 .../listluns/SyncListLuns.java | 0 .../listluns/SyncListLunsString.java | 0 .../listluns/SyncListLunsVolumename.java | 0 .../listnetworks/AsyncListNetworks.java | 0 .../listnetworks/AsyncListNetworksPaged.java | 0 .../listnetworks/SyncListNetworks.java | 0 .../SyncListNetworksLocationname.java | 0 .../listnetworks/SyncListNetworksString.java | 0 .../AsyncListNetworkUsage.java | 0 .../SyncListNetworkUsage.java | 0 .../SyncListNetworkUsageLocationname.java | 0 .../SyncListNetworkUsageString.java | 0 .../listnfsshares/AsyncListNfsShares.java | 0 .../AsyncListNfsSharesPaged.java | 0 .../listnfsshares/SyncListNfsShares.java | 0 .../SyncListNfsSharesLocationname.java | 0 .../SyncListNfsSharesString.java | 0 .../listvolumes/AsyncListVolumes.java | 0 .../listvolumes/AsyncListVolumesPaged.java | 0 .../listvolumes/SyncListVolumes.java | 0 .../SyncListVolumesLocationname.java | 0 .../listvolumes/SyncListVolumesString.java | 0 .../resetinstance/AsyncResetInstance.java | 0 .../resetinstance/AsyncResetInstanceLRO.java | 0 .../resetinstance/SyncResetInstance.java | 0 .../SyncResetInstanceInstancename.java | 0 .../SyncResetInstanceString.java | 0 .../resizevolume/AsyncResizeVolume.java | 0 .../resizevolume/AsyncResizeVolumeLRO.java | 0 .../resizevolume/SyncResizeVolume.java | 0 .../SyncResizeVolumeStringLong.java | 0 .../SyncResizeVolumeVolumenameLong.java | 0 .../startinstance/AsyncStartInstance.java | 0 .../startinstance/AsyncStartInstanceLRO.java | 0 .../startinstance/SyncStartInstance.java | 0 .../SyncStartInstanceInstancename.java | 0 .../SyncStartInstanceString.java | 0 .../stopinstance/AsyncStopInstance.java | 0 .../stopinstance/AsyncStopInstanceLRO.java | 0 .../stopinstance/SyncStopInstance.java | 0 .../SyncStopInstanceInstancename.java | 0 .../stopinstance/SyncStopInstanceString.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 6 +- .../updatenetwork/AsyncUpdateNetwork.java | 0 .../updatenetwork/AsyncUpdateNetworkLRO.java | 0 .../updatenetwork/SyncUpdateNetwork.java | 0 .../SyncUpdateNetworkNetworkFieldmask.java | 3 +- .../updatenfsshare/AsyncUpdateNfsShare.java | 0 .../AsyncUpdateNfsShareLRO.java | 0 .../updatenfsshare/SyncUpdateNfsShare.java | 0 .../SyncUpdateNfsShareNfsshareFieldmask.java | 6 +- .../updatevolume/AsyncUpdateVolume.java | 0 .../updatevolume/AsyncUpdateVolumeLRO.java | 0 .../updatevolume/SyncUpdateVolume.java | 0 .../SyncUpdateVolumeVolumeFieldmask.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../v2/BareMetalSolutionProto.java | 238 -- .../v2/DetachLunRequestOrBuilder.java | 83 - .../v2/GetInstanceRequestOrBuilder.java | 54 - .../v2/GetLunRequestOrBuilder.java | 54 - .../v2/GetNetworkRequestOrBuilder.java | 54 - .../v2/GetNfsShareRequestOrBuilder.java | 54 - .../v2/GetVolumeRequestOrBuilder.java | 54 - .../baremetalsolution/v2/InstanceProto.java | 325 -- .../v2/ListNetworkUsageRequestOrBuilder.java | 54 - .../cloud/baremetalsolution/v2/LunProto.java | 153 - .../baremetalsolution/v2/NetworkProto.java | 327 -- .../baremetalsolution/v2/NfsShareProto.java | 202 -- .../v2/ResetInstanceRequestOrBuilder.java | 54 - .../v2/ResetInstanceResponseOrBuilder.java | 24 - .../v2/ResizeVolumeRequestOrBuilder.java | 67 - .../v2/StartInstanceRequestOrBuilder.java | 54 - .../v2/StartInstanceResponseOrBuilder.java | 24 - .../v2/StopInstanceRequestOrBuilder.java | 54 - .../v2/StopInstanceResponseOrBuilder.java | 24 - .../baremetalsolution/v2/VolumeProto.java | 230 -- 231 files changed, 18431 insertions(+), 22925 deletions(-) delete mode 100644 grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java (97%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java (95%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java (98%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java (96%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java (99%) create mode 100644 owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java create mode 100644 owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java create mode 100644 owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java (100%) create mode 100644 owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java (74%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java (83%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java (56%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java (67%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java (52%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java (71%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java (64%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java (56%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java (56%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java (74%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java (56%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java (65%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java (51%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java (78%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java (78%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java (69%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java (67%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java (71%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java (70%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java (71%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java (74%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java (67%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java (65%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java (61%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java (67%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java (65%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java (67%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java (64%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java (67%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java (64%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java (69%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java (73%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/network.proto (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java (100%) create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (87%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java (93%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java (87%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java (100%) delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java diff --git a/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java deleted file mode 100644 index cf4ba73..0000000 --- a/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java +++ /dev/null @@ -1,2624 +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.baremetalsolution.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Performs management operations on Bare Metal Solution servers.
- * The `baremetalsolution.googleapis.com` service provides management
- * capabilities for Bare Metal Solution servers. To access the API methods, you
- * must assign Bare Metal Solution IAM roles containing the desired permissions
- * to your staff in your Google Cloud project. You must also enable the Bare
- * Metal Solution API. Once enabled, the methods act
- * upon specific servers in your Bare Metal Solution environment.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BareMetalSolutionGrpc { - - private BareMetalSolutionGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - getListInstancesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - getListInstancesMethod; - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - BareMetalSolutionGrpc.getListInstancesMethod = - getListInstancesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance> - getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance> - getGetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance> - getGetInstanceMethod; - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - BareMetalSolutionGrpc.getGetInstanceMethod = - getGetInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { - BareMetalSolutionGrpc.getUpdateInstanceMethod = - getUpdateInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation> - getResetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetInstance", - requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation> - getResetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation> - getResetInstanceMethod; - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - BareMetalSolutionGrpc.getResetInstanceMethod = - getResetInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) - .build(); - } - } - } - return getResetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation> - getStartInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartInstance", - requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation> - getStartInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation> - getStartInstanceMethod; - if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { - BareMetalSolutionGrpc.getStartInstanceMethod = - getStartInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) - .build(); - } - } - } - return getStartInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation> - getStopInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopInstance", - requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation> - getStopInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation> - getStopInstanceMethod; - if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { - BareMetalSolutionGrpc.getStopInstanceMethod = - getStopInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) - .build(); - } - } - } - return getStopInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, com.google.longrunning.Operation> - getDetachLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetachLun", - requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, com.google.longrunning.Operation> - getDetachLunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, - com.google.longrunning.Operation> - getDetachLunMethod; - if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { - BareMetalSolutionGrpc.getDetachLunMethod = - getDetachLunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.DetachLunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) - .build(); - } - } - } - return getDetachLunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - getListVolumesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumes", - requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - getListVolumesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - getListVolumesMethod; - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - BareMetalSolutionGrpc.getListVolumesMethod = - getListVolumesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) - .build(); - } - } - } - return getListVolumesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume> - getGetVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolume", - requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Volume.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume> - getGetVolumeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume> - getGetVolumeMethod; - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - BareMetalSolutionGrpc.getGetVolumeMethod = - getGetVolumeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) - .build(); - } - } - } - return getGetVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation> - getUpdateVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", - requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation> - getUpdateVolumeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation> - getUpdateVolumeMethod; - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - BareMetalSolutionGrpc.getUpdateVolumeMethod = - getUpdateVolumeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) - .build(); - } - } - } - return getUpdateVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation> - getResizeVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", - requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation> - getResizeVolumeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation> - getResizeVolumeMethod; - if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { - BareMetalSolutionGrpc.getResizeVolumeMethod = - getResizeVolumeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) - .build(); - } - } - } - return getResizeVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - getListNetworksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworks", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - getListNetworksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - getListNetworksMethod; - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - BareMetalSolutionGrpc.getListNetworksMethod = - getListNetworksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) - .build(); - } - } - } - return getListNetworksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> - getListNetworkUsageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> - getListNetworkUsageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> - getListNetworkUsageMethod; - if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { - BareMetalSolutionGrpc.getListNetworkUsageMethod = - getListNetworkUsageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) - .build(); - } - } - } - return getListNetworkUsageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network> - getGetNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNetwork", - requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Network.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network> - getGetNetworkMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network> - getGetNetworkMethod; - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - BareMetalSolutionGrpc.getGetNetworkMethod = - getGetNetworkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) - .build(); - } - } - } - return getGetNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation> - getUpdateNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", - requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation> - getUpdateNetworkMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation> - getUpdateNetworkMethod; - if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { - BareMetalSolutionGrpc.getUpdateNetworkMethod = - getUpdateNetworkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) - .build(); - } - } - } - return getUpdateNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun> - getGetLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLun", - requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Lun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun> - getGetLunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun> - getGetLunMethod; - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - BareMetalSolutionGrpc.getGetLunMethod = - getGetLunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetLunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) - .build(); - } - } - } - return getGetLunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - getListLunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLuns", - requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - getListLunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - getListLunsMethod; - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - BareMetalSolutionGrpc.getListLunsMethod = - getListLunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) - .build(); - } - } - } - return getListLunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare> - getGetNfsShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", - requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare> - getGetNfsShareMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare> - getGetNfsShareMethod; - if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { - BareMetalSolutionGrpc.getGetNfsShareMethod = - getGetNfsShareMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) - .build(); - } - } - } - return getGetNfsShareMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> - getListNfsSharesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", - requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> - getListNfsSharesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> - getListNfsSharesMethod; - if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { - BareMetalSolutionGrpc.getListNfsSharesMethod = - getListNfsSharesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) - .build(); - } - } - } - return getListNfsSharesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation> - getUpdateNfsShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", - requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation> - getUpdateNfsShareMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation> - getUpdateNfsShareMethod; - if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { - BareMetalSolutionGrpc.getUpdateNfsShareMethod = - getUpdateNfsShareMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) - .build(); - } - } - } - return getUpdateNfsShareMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - }; - return BareMetalSolutionStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BareMetalSolutionBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - }; - return BareMetalSolutionBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BareMetalSolutionFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - }; - return BareMetalSolutionFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public abstract static class BareMetalSolutionImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Update details of a single server.
-     * 
- */ - public void updateInstance( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResetInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts a server that was shutdown.
-     * 
- */ - public void startInstance( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Stop a running server.
-     * 
- */ - public void stopInstance( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Detach LUN from Instance.
-     * 
- */ - public void detachLun( - com.google.cloud.baremetalsolution.v2.DetachLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListVolumesMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateVolumeMethod(), responseObserver); - } - - /** - * - * - *
-     * Emergency Volume resize.
-     * 
- */ - public void resizeVolume( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResizeVolumeMethod(), responseObserver); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNetworksMethod(), responseObserver); - } - - /** - * - * - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public void listNetworkUsage( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNetworkUsageMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); - } - - /** - * - * - *
-     * Update details of a single network.
-     * 
- */ - public void updateNetwork( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateNetworkMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single NFS share.
-     * 
- */ - public void getNfsShare( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNfsShareMethod(), responseObserver); - } - - /** - * - * - *
-     * List NFS shares.
-     * 
- */ - public void listNfsShares( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNfsSharesMethod(), responseObserver); - } - - /** - * - * - *
-     * Update details of a single NFS share.
-     * 
- */ - public void updateNfsShare( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateNfsShareMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance>(this, METHODID_GET_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getResetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_RESET_INSTANCE))) - .addMethod( - getStartInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_START_INSTANCE))) - .addMethod( - getStopInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_STOP_INSTANCE))) - .addMethod( - getDetachLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, - com.google.longrunning.Operation>(this, METHODID_DETACH_LUN))) - .addMethod( - getListVolumesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( - this, METHODID_LIST_VOLUMES))) - .addMethod( - getGetVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume>(this, METHODID_GET_VOLUME))) - .addMethod( - getUpdateVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_VOLUME))) - .addMethod( - getResizeVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation>(this, METHODID_RESIZE_VOLUME))) - .addMethod( - getListNetworksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( - this, METHODID_LIST_NETWORKS))) - .addMethod( - getListNetworkUsageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( - this, METHODID_LIST_NETWORK_USAGE))) - .addMethod( - getGetNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network>(this, METHODID_GET_NETWORK))) - .addMethod( - getUpdateNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_NETWORK))) - .addMethod( - getGetLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun>(this, METHODID_GET_LUN))) - .addMethod( - getListLunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse>( - this, METHODID_LIST_LUNS))) - .addMethod( - getGetNfsShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare>( - this, METHODID_GET_NFS_SHARE))) - .addMethod( - getListNfsSharesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( - this, METHODID_LIST_NFS_SHARES))) - .addMethod( - getUpdateNfsShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_NFS_SHARE))) - .build(); - } - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionStub - extends io.grpc.stub.AbstractAsyncStub { - private BareMetalSolutionStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update details of a single server.
-     * 
- */ - public void updateInstance( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Starts a server that was shutdown.
-     * 
- */ - public void startInstance( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stop a running server.
-     * 
- */ - public void stopInstance( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Detach LUN from Instance.
-     * 
- */ - public void detachLun( - com.google.cloud.baremetalsolution.v2.DetachLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Emergency Volume resize.
-     * 
- */ - public void resizeVolume( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public void listNetworkUsage( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Update details of a single network.
-     * 
- */ - public void updateNetwork( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Get details of a single NFS share.
-     * 
- */ - public void getNfsShare( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List NFS shares.
-     * 
- */ - public void listNfsShares( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update details of a single NFS share.
-     * 
- */ - public void updateNfsShare( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BareMetalSolutionBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Instance getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update details of a single server.
-     * 
- */ - public com.google.longrunning.Operation updateInstance( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.longrunning.Operation resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts a server that was shutdown.
-     * 
- */ - public com.google.longrunning.Operation startInstance( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stop a running server.
-     * 
- */ - public com.google.longrunning.Operation stopInstance( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Detach LUN from Instance.
-     * 
- */ - public com.google.longrunning.Operation detachLun( - com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetachLunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Volume getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.longrunning.Operation updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Emergency Volume resize.
-     * 
- */ - public com.google.longrunning.Operation resizeVolume( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResizeVolumeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Network getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNetworkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update details of a single network.
-     * 
- */ - public com.google.longrunning.Operation updateNetwork( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Lun getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single NFS share.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNfsShareMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List NFS shares.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNfsSharesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update details of a single NFS share.
-     * 
- */ - public com.google.longrunning.Operation updateNfsShare( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BareMetalSolutionFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Instance> - getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update details of a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts a server that was shutdown.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stop a running server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Detach LUN from Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Volume> - getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Emergency Volume resize.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> - listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Network> - getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Lun> - getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single NFS share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.NfsShare> - getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List NFS shares.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> - listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update details of a single NFS share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_UPDATE_INSTANCE = 2; - private static final int METHODID_RESET_INSTANCE = 3; - private static final int METHODID_START_INSTANCE = 4; - private static final int METHODID_STOP_INSTANCE = 5; - private static final int METHODID_DETACH_LUN = 6; - private static final int METHODID_LIST_VOLUMES = 7; - private static final int METHODID_GET_VOLUME = 8; - private static final int METHODID_UPDATE_VOLUME = 9; - private static final int METHODID_RESIZE_VOLUME = 10; - private static final int METHODID_LIST_NETWORKS = 11; - private static final int METHODID_LIST_NETWORK_USAGE = 12; - private static final int METHODID_GET_NETWORK = 13; - private static final int METHODID_UPDATE_NETWORK = 14; - private static final int METHODID_GET_LUN = 15; - private static final int METHODID_LIST_LUNS = 16; - private static final int METHODID_GET_NFS_SHARE = 17; - private static final int METHODID_LIST_NFS_SHARES = 18; - private static final int METHODID_UPDATE_NFS_SHARE = 19; - - 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 BareMetalSolutionImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances( - (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListInstancesResponse>) - responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance( - (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESET_INSTANCE: - serviceImpl.resetInstance( - (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_INSTANCE: - serviceImpl.startInstance( - (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_INSTANCE: - serviceImpl.stopInstance( - (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DETACH_LUN: - serviceImpl.detachLun( - (com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VOLUMES: - serviceImpl.listVolumes( - (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListVolumesResponse>) - responseObserver); - break; - case METHODID_GET_VOLUME: - serviceImpl.getVolume( - (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_VOLUME: - serviceImpl.updateVolume( - (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESIZE_VOLUME: - serviceImpl.resizeVolume( - (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NETWORKS: - serviceImpl.listNetworks( - (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListNetworksResponse>) - responseObserver); - break; - case METHODID_LIST_NETWORK_USAGE: - serviceImpl.listNetworkUsage( - (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>) - responseObserver); - break; - case METHODID_GET_NETWORK: - serviceImpl.getNetwork( - (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_NETWORK: - serviceImpl.updateNetwork( - (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LUN: - serviceImpl.getLun( - (com.google.cloud.baremetalsolution.v2.GetLunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_LUNS: - serviceImpl.listLuns( - (com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_NFS_SHARE: - serviceImpl.getNfsShare( - (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_NFS_SHARES: - serviceImpl.listNfsShares( - (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>) - responseObserver); - break; - case METHODID_UPDATE_NFS_SHARE: - serviceImpl.updateNfsShare( - (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BareMetalSolutionBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BareMetalSolution"); - } - } - - private static final class BareMetalSolutionFileDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier { - BareMetalSolutionFileDescriptorSupplier() {} - } - - private static final class BareMetalSolutionMethodDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getResetInstanceMethod()) - .addMethod(getStartInstanceMethod()) - .addMethod(getStopInstanceMethod()) - .addMethod(getDetachLunMethod()) - .addMethod(getListVolumesMethod()) - .addMethod(getGetVolumeMethod()) - .addMethod(getUpdateVolumeMethod()) - .addMethod(getResizeVolumeMethod()) - .addMethod(getListNetworksMethod()) - .addMethod(getListNetworkUsageMethod()) - .addMethod(getGetNetworkMethod()) - .addMethod(getUpdateNetworkMethod()) - .addMethod(getGetLunMethod()) - .addMethod(getListLunsMethod()) - .addMethod(getGetNfsShareMethod()) - .addMethod(getListNfsSharesMethod()) - .addMethod(getUpdateNfsShareMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java similarity index 97% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java index b618b60..860fdee 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java @@ -19,6 +19,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -30,7 +31,6 @@ import com.google.cloud.baremetalsolution.v2.stub.BareMetalSolutionStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; @@ -67,13 +67,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. *
* @@ -110,13 +110,29 @@ * BareMetalSolutionClient.create(bareMetalSolutionSettings); * }
* + *

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.
+ * BareMetalSolutionSettings bareMetalSolutionSettings =
+ *     BareMetalSolutionSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             BareMetalSolutionSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * BareMetalSolutionClient bareMetalSolutionClient =
+ *     BareMetalSolutionClient.create(bareMetalSolutionSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class BareMetalSolutionClient implements BackgroundResource { private final BareMetalSolutionSettings settings; private final BareMetalSolutionStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of BareMetalSolutionClient with default settings. */ public static final BareMetalSolutionClient create() throws IOException { @@ -148,13 +164,17 @@ public static final BareMetalSolutionClient create(BareMetalSolutionStub stub) { protected BareMetalSolutionClient(BareMetalSolutionSettings settings) throws IOException { this.settings = settings; this.stub = ((BareMetalSolutionStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected BareMetalSolutionClient(BareMetalSolutionStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final BareMetalSolutionSettings getSettings() { @@ -169,10 +189,18 @@ public BareMetalSolutionStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * List servers in a given project and location. @@ -2695,10 +2723,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListInstancesPagedResponse extends AbstractPagedListResponse< - ListInstancesRequest, - ListInstancesResponse, - Instance, - ListInstancesPage, + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, ListInstancesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2748,10 +2773,7 @@ public ApiFuture createPageAsync( public static class ListInstancesFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstancesRequest, - ListInstancesResponse, - Instance, - ListInstancesPage, + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, ListInstancesFixedSizeCollection> { private ListInstancesFixedSizeCollection(List pages, int collectionSize) { @@ -2771,10 +2793,7 @@ protected ListInstancesFixedSizeCollection createCollection( public static class ListVolumesPagedResponse extends AbstractPagedListResponse< - ListVolumesRequest, - ListVolumesResponse, - Volume, - ListVolumesPage, + ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, ListVolumesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2821,10 +2840,7 @@ public ApiFuture createPageAsync( public static class ListVolumesFixedSizeCollection extends AbstractFixedSizeCollection< - ListVolumesRequest, - ListVolumesResponse, - Volume, - ListVolumesPage, + ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, ListVolumesFixedSizeCollection> { private ListVolumesFixedSizeCollection(List pages, int collectionSize) { @@ -2844,10 +2860,7 @@ protected ListVolumesFixedSizeCollection createCollection( public static class ListNetworksPagedResponse extends AbstractPagedListResponse< - ListNetworksRequest, - ListNetworksResponse, - Network, - ListNetworksPage, + ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, ListNetworksFixedSizeCollection> { public static ApiFuture createAsync( @@ -2896,10 +2909,7 @@ public ApiFuture createPageAsync( public static class ListNetworksFixedSizeCollection extends AbstractFixedSizeCollection< - ListNetworksRequest, - ListNetworksResponse, - Network, - ListNetworksPage, + ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, ListNetworksFixedSizeCollection> { private ListNetworksFixedSizeCollection(List pages, int collectionSize) { @@ -2982,10 +2992,7 @@ protected ListLunsFixedSizeCollection createCollection( public static class ListNfsSharesPagedResponse extends AbstractPagedListResponse< - ListNfsSharesRequest, - ListNfsSharesResponse, - NfsShare, - ListNfsSharesPage, + ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3035,10 +3042,7 @@ public ApiFuture createPageAsync( public static class ListNfsSharesFixedSizeCollection extends AbstractFixedSizeCollection< - ListNfsSharesRequest, - ListNfsSharesResponse, - NfsShare, - ListNfsSharesPage, + ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { private ListNfsSharesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java similarity index 95% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java index 26d7b05..b5ada0f 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java @@ -27,11 +27,13 @@ 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.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.baremetalsolution.v2.stub.BareMetalSolutionStubSettings; @@ -47,10 +49,10 @@ *

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

    - *
  • The default service address (baremetalsolution.googleapis.com) and default port (443) are + *
  • The default service address (baremetalsolution.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. + *
  • 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 @@ -263,11 +265,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return BareMetalSolutionStubSettings.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 BareMetalSolutionStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return BareMetalSolutionStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return BareMetalSolutionStubSettings.defaultTransportChannelProvider(); } @@ -277,11 +286,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return BareMetalSolutionStubSettings.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); @@ -319,6 +334,11 @@ private static Builder createDefault() { return new Builder(BareMetalSolutionStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(BareMetalSolutionStubSettings.newHttpJsonBuilder()); + } + public BareMetalSolutionStubSettings.Builder getStubSettingsBuilder() { return ((BareMetalSolutionStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json similarity index 100% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java similarity index 100% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java similarity index 98% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java index 98f1261..f1cf70d 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java @@ -74,7 +74,11 @@ public abstract class BareMetalSolutionStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java similarity index 96% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java index 8fe9ece..5ddb3e8 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java @@ -32,6 +32,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -100,10 +103,10 @@ *

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

    - *
  • The default service address (baremetalsolution.googleapis.com) and default port (443) are + *
  • The default service address (baremetalsolution.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. + *
  • 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 @@ -615,6 +618,11 @@ public BareMetalSolutionStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcBareMetalSolutionStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonBareMetalSolutionStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -647,18 +655,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(BareMetalSolutionStubSettings.class)) @@ -666,11 +681,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(BareMetalSolutionStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BareMetalSolutionStubSettings.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); @@ -931,6 +965,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 .listInstancesSettings() diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java similarity index 100% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java similarity index 99% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java index 0e6e0e1..b55630f 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java @@ -70,6 +70,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java new file mode 100644 index 0000000..d9ca500 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.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.baremetalsolution.v2.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 BareMetalSolution service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonBareMetalSolutionCallableFactory + 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/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java new file mode 100644 index 0000000..3b99d89 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java @@ -0,0 +1,1424 @@ +/* + * 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.baremetalsolution.v2.stub; + +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListInstancesPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListLunsPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNetworksPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNfsSharesPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumesPagedResponse; + +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.HttpJsonOperationSnapshot; +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.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.baremetalsolution.v2.DetachLunRequest; +import com.google.cloud.baremetalsolution.v2.GetInstanceRequest; +import com.google.cloud.baremetalsolution.v2.GetLunRequest; +import com.google.cloud.baremetalsolution.v2.GetNetworkRequest; +import com.google.cloud.baremetalsolution.v2.GetNfsShareRequest; +import com.google.cloud.baremetalsolution.v2.GetVolumeRequest; +import com.google.cloud.baremetalsolution.v2.Instance; +import com.google.cloud.baremetalsolution.v2.ListInstancesRequest; +import com.google.cloud.baremetalsolution.v2.ListInstancesResponse; +import com.google.cloud.baremetalsolution.v2.ListLunsRequest; +import com.google.cloud.baremetalsolution.v2.ListLunsResponse; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest; +import com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse; +import com.google.cloud.baremetalsolution.v2.ListNetworksRequest; +import com.google.cloud.baremetalsolution.v2.ListNetworksResponse; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest; +import com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse; +import com.google.cloud.baremetalsolution.v2.ListVolumesRequest; +import com.google.cloud.baremetalsolution.v2.ListVolumesResponse; +import com.google.cloud.baremetalsolution.v2.Lun; +import com.google.cloud.baremetalsolution.v2.Network; +import com.google.cloud.baremetalsolution.v2.NfsShare; +import com.google.cloud.baremetalsolution.v2.OperationMetadata; +import com.google.cloud.baremetalsolution.v2.ResetInstanceRequest; +import com.google.cloud.baremetalsolution.v2.ResetInstanceResponse; +import com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest; +import com.google.cloud.baremetalsolution.v2.StartInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StartInstanceResponse; +import com.google.cloud.baremetalsolution.v2.StopInstanceRequest; +import com.google.cloud.baremetalsolution.v2.StopInstanceResponse; +import com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest; +import com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest; +import com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest; +import com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest; +import com.google.cloud.baremetalsolution.v2.Volume; +import com.google.longrunning.Operation; +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 BareMetalSolution service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonBareMetalSolutionStub extends BareMetalSolutionStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(StartInstanceResponse.getDescriptor()) + .add(ResetInstanceResponse.getDescriptor()) + .add(Volume.getDescriptor()) + .add(StopInstanceResponse.getDescriptor()) + .add(NfsShare.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(Instance.getDescriptor()) + .add(Network.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listInstancesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/ListInstances") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/instances", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListInstancesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getInstanceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/GetInstance") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/instances/*}", + 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(Instance.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateInstanceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/UpdateInstance") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{instance.name=projects/*/locations/*/instances/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instance.name", request.getInstance().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("instance", request.getInstance())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateInstanceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + resetInstanceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/ResetInstance") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/instances/*}:reset", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ResetInstanceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + startInstanceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/StartInstance") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/instances/*}:start", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (StartInstanceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + stopInstanceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/StopInstance") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/instances/*}:stop", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (StopInstanceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor detachLunMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/DetachLun") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{instance=projects/*/locations/*/instances/*}:detachLun", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "instance", request.getInstance()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearInstance().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DetachLunRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listVolumesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/ListVolumes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/volumes", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListVolumesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getVolumeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/GetVolume") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/volumes/*}", + 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(Volume.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateVolumeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/UpdateVolume") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{volume.name=projects/*/locations/*/volumes/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "volume.name", request.getVolume().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("volume", request.getVolume())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateVolumeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + resizeVolumeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/ResizeVolume") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{volume=projects/*/locations/*/volumes/*}:resize", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "volume", request.getVolume()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearVolume().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ResizeVolumeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listNetworksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/ListNetworks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/networks", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListNetworksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listNetworkUsageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/ListNetworkUsage") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{location=projects/*/locations/*}/networks:listNetworkUsage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "location", request.getLocation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListNetworkUsageResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getNetworkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/GetNetwork") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/networks/*}", + 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(Network.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateNetworkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/UpdateNetwork") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{network.name=projects/*/locations/*/networks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "network.name", request.getNetwork().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("network", request.getNetwork())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateNetworkRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getLunMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/GetLun") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/volumes/*/luns/*}", + 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(Lun.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLunsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/ListLuns") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*/volumes/*}/luns", + 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(ListLunsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getNfsShareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.baremetalsolution.v2.BareMetalSolution/GetNfsShare") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/nfsShares/*}", + 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(NfsShare.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listNfsSharesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/ListNfsShares") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/nfsShares", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListNfsSharesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateNfsShareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.baremetalsolution.v2.BareMetalSolution/UpdateNfsShare") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{nfsShare.name=projects/*/locations/*/nfsShares/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "nfsShare.name", request.getNfsShare().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("nfsShare", request.getNfsShare())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateNfsShareRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable listInstancesCallable; + private final UnaryCallable + listInstancesPagedCallable; + private final UnaryCallable getInstanceCallable; + private final UnaryCallable updateInstanceCallable; + private final OperationCallable + updateInstanceOperationCallable; + private final UnaryCallable resetInstanceCallable; + private final OperationCallable + resetInstanceOperationCallable; + private final UnaryCallable startInstanceCallable; + private final OperationCallable + startInstanceOperationCallable; + private final UnaryCallable stopInstanceCallable; + private final OperationCallable + stopInstanceOperationCallable; + private final UnaryCallable detachLunCallable; + private final OperationCallable + detachLunOperationCallable; + private final UnaryCallable listVolumesCallable; + private final UnaryCallable + listVolumesPagedCallable; + private final UnaryCallable getVolumeCallable; + private final UnaryCallable updateVolumeCallable; + private final OperationCallable + updateVolumeOperationCallable; + private final UnaryCallable resizeVolumeCallable; + private final OperationCallable + resizeVolumeOperationCallable; + private final UnaryCallable listNetworksCallable; + private final UnaryCallable + listNetworksPagedCallable; + private final UnaryCallable + listNetworkUsageCallable; + private final UnaryCallable getNetworkCallable; + private final UnaryCallable updateNetworkCallable; + private final OperationCallable + updateNetworkOperationCallable; + private final UnaryCallable getLunCallable; + private final UnaryCallable listLunsCallable; + private final UnaryCallable listLunsPagedCallable; + private final UnaryCallable getNfsShareCallable; + private final UnaryCallable listNfsSharesCallable; + private final UnaryCallable + listNfsSharesPagedCallable; + private final UnaryCallable updateNfsShareCallable; + private final OperationCallable + updateNfsShareOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonBareMetalSolutionStub create(BareMetalSolutionStubSettings settings) + throws IOException { + return new HttpJsonBareMetalSolutionStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonBareMetalSolutionStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonBareMetalSolutionStub( + BareMetalSolutionStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonBareMetalSolutionStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonBareMetalSolutionStub( + BareMetalSolutionStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonBareMetalSolutionStub, 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 HttpJsonBareMetalSolutionStub( + BareMetalSolutionStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonBareMetalSolutionCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonBareMetalSolutionStub, 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 HttpJsonBareMetalSolutionStub( + BareMetalSolutionStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings + listInstancesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listInstancesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getInstanceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getInstanceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateInstanceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateInstanceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings resetInstanceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(resetInstanceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings startInstanceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(startInstanceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings stopInstanceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(stopInstanceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings detachLunTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(detachLunMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listVolumesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listVolumesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getVolumeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getVolumeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateVolumeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateVolumeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings resizeVolumeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(resizeVolumeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listNetworksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listNetworksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listNetworkUsageTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listNetworkUsageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getNetworkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNetworkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateNetworkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateNetworkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getLunTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLunMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listLunsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLunsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getNfsShareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNfsShareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listNfsSharesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listNfsSharesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateNfsShareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateNfsShareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.listInstancesCallable = + callableFactory.createUnaryCallable( + listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.listInstancesPagedCallable = + callableFactory.createPagedCallable( + listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.getInstanceCallable = + callableFactory.createUnaryCallable( + getInstanceTransportSettings, settings.getInstanceSettings(), clientContext); + this.updateInstanceCallable = + callableFactory.createUnaryCallable( + updateInstanceTransportSettings, settings.updateInstanceSettings(), clientContext); + this.updateInstanceOperationCallable = + callableFactory.createOperationCallable( + updateInstanceTransportSettings, + settings.updateInstanceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.resetInstanceCallable = + callableFactory.createUnaryCallable( + resetInstanceTransportSettings, settings.resetInstanceSettings(), clientContext); + this.resetInstanceOperationCallable = + callableFactory.createOperationCallable( + resetInstanceTransportSettings, + settings.resetInstanceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.startInstanceCallable = + callableFactory.createUnaryCallable( + startInstanceTransportSettings, settings.startInstanceSettings(), clientContext); + this.startInstanceOperationCallable = + callableFactory.createOperationCallable( + startInstanceTransportSettings, + settings.startInstanceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.stopInstanceCallable = + callableFactory.createUnaryCallable( + stopInstanceTransportSettings, settings.stopInstanceSettings(), clientContext); + this.stopInstanceOperationCallable = + callableFactory.createOperationCallable( + stopInstanceTransportSettings, + settings.stopInstanceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.detachLunCallable = + callableFactory.createUnaryCallable( + detachLunTransportSettings, settings.detachLunSettings(), clientContext); + this.detachLunOperationCallable = + callableFactory.createOperationCallable( + detachLunTransportSettings, + settings.detachLunOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listVolumesCallable = + callableFactory.createUnaryCallable( + listVolumesTransportSettings, settings.listVolumesSettings(), clientContext); + this.listVolumesPagedCallable = + callableFactory.createPagedCallable( + listVolumesTransportSettings, settings.listVolumesSettings(), clientContext); + this.getVolumeCallable = + callableFactory.createUnaryCallable( + getVolumeTransportSettings, settings.getVolumeSettings(), clientContext); + this.updateVolumeCallable = + callableFactory.createUnaryCallable( + updateVolumeTransportSettings, settings.updateVolumeSettings(), clientContext); + this.updateVolumeOperationCallable = + callableFactory.createOperationCallable( + updateVolumeTransportSettings, + settings.updateVolumeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.resizeVolumeCallable = + callableFactory.createUnaryCallable( + resizeVolumeTransportSettings, settings.resizeVolumeSettings(), clientContext); + this.resizeVolumeOperationCallable = + callableFactory.createOperationCallable( + resizeVolumeTransportSettings, + settings.resizeVolumeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listNetworksCallable = + callableFactory.createUnaryCallable( + listNetworksTransportSettings, settings.listNetworksSettings(), clientContext); + this.listNetworksPagedCallable = + callableFactory.createPagedCallable( + listNetworksTransportSettings, settings.listNetworksSettings(), clientContext); + this.listNetworkUsageCallable = + callableFactory.createUnaryCallable( + listNetworkUsageTransportSettings, settings.listNetworkUsageSettings(), clientContext); + this.getNetworkCallable = + callableFactory.createUnaryCallable( + getNetworkTransportSettings, settings.getNetworkSettings(), clientContext); + this.updateNetworkCallable = + callableFactory.createUnaryCallable( + updateNetworkTransportSettings, settings.updateNetworkSettings(), clientContext); + this.updateNetworkOperationCallable = + callableFactory.createOperationCallable( + updateNetworkTransportSettings, + settings.updateNetworkOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getLunCallable = + callableFactory.createUnaryCallable( + getLunTransportSettings, settings.getLunSettings(), clientContext); + this.listLunsCallable = + callableFactory.createUnaryCallable( + listLunsTransportSettings, settings.listLunsSettings(), clientContext); + this.listLunsPagedCallable = + callableFactory.createPagedCallable( + listLunsTransportSettings, settings.listLunsSettings(), clientContext); + this.getNfsShareCallable = + callableFactory.createUnaryCallable( + getNfsShareTransportSettings, settings.getNfsShareSettings(), clientContext); + this.listNfsSharesCallable = + callableFactory.createUnaryCallable( + listNfsSharesTransportSettings, settings.listNfsSharesSettings(), clientContext); + this.listNfsSharesPagedCallable = + callableFactory.createPagedCallable( + listNfsSharesTransportSettings, settings.listNfsSharesSettings(), clientContext); + this.updateNfsShareCallable = + callableFactory.createUnaryCallable( + updateNfsShareTransportSettings, settings.updateNfsShareSettings(), clientContext); + this.updateNfsShareOperationCallable = + callableFactory.createOperationCallable( + updateNfsShareTransportSettings, + settings.updateNfsShareOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listInstancesMethodDescriptor); + methodDescriptors.add(getInstanceMethodDescriptor); + methodDescriptors.add(updateInstanceMethodDescriptor); + methodDescriptors.add(resetInstanceMethodDescriptor); + methodDescriptors.add(startInstanceMethodDescriptor); + methodDescriptors.add(stopInstanceMethodDescriptor); + methodDescriptors.add(detachLunMethodDescriptor); + methodDescriptors.add(listVolumesMethodDescriptor); + methodDescriptors.add(getVolumeMethodDescriptor); + methodDescriptors.add(updateVolumeMethodDescriptor); + methodDescriptors.add(resizeVolumeMethodDescriptor); + methodDescriptors.add(listNetworksMethodDescriptor); + methodDescriptors.add(listNetworkUsageMethodDescriptor); + methodDescriptors.add(getNetworkMethodDescriptor); + methodDescriptors.add(updateNetworkMethodDescriptor); + methodDescriptors.add(getLunMethodDescriptor); + methodDescriptors.add(listLunsMethodDescriptor); + methodDescriptors.add(getNfsShareMethodDescriptor); + methodDescriptors.add(listNfsSharesMethodDescriptor); + methodDescriptors.add(updateNfsShareMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable listInstancesCallable() { + return listInstancesCallable; + } + + @Override + public UnaryCallable + listInstancesPagedCallable() { + return listInstancesPagedCallable; + } + + @Override + public UnaryCallable getInstanceCallable() { + return getInstanceCallable; + } + + @Override + public UnaryCallable updateInstanceCallable() { + return updateInstanceCallable; + } + + @Override + public OperationCallable + updateInstanceOperationCallable() { + return updateInstanceOperationCallable; + } + + @Override + public UnaryCallable resetInstanceCallable() { + return resetInstanceCallable; + } + + @Override + public OperationCallable + resetInstanceOperationCallable() { + return resetInstanceOperationCallable; + } + + @Override + public UnaryCallable startInstanceCallable() { + return startInstanceCallable; + } + + @Override + public OperationCallable + startInstanceOperationCallable() { + return startInstanceOperationCallable; + } + + @Override + public UnaryCallable stopInstanceCallable() { + return stopInstanceCallable; + } + + @Override + public OperationCallable + stopInstanceOperationCallable() { + return stopInstanceOperationCallable; + } + + @Override + public UnaryCallable detachLunCallable() { + return detachLunCallable; + } + + @Override + public OperationCallable + detachLunOperationCallable() { + return detachLunOperationCallable; + } + + @Override + public UnaryCallable listVolumesCallable() { + return listVolumesCallable; + } + + @Override + public UnaryCallable listVolumesPagedCallable() { + return listVolumesPagedCallable; + } + + @Override + public UnaryCallable getVolumeCallable() { + return getVolumeCallable; + } + + @Override + public UnaryCallable updateVolumeCallable() { + return updateVolumeCallable; + } + + @Override + public OperationCallable + updateVolumeOperationCallable() { + return updateVolumeOperationCallable; + } + + @Override + public UnaryCallable resizeVolumeCallable() { + return resizeVolumeCallable; + } + + @Override + public OperationCallable + resizeVolumeOperationCallable() { + return resizeVolumeOperationCallable; + } + + @Override + public UnaryCallable listNetworksCallable() { + return listNetworksCallable; + } + + @Override + public UnaryCallable listNetworksPagedCallable() { + return listNetworksPagedCallable; + } + + @Override + public UnaryCallable + listNetworkUsageCallable() { + return listNetworkUsageCallable; + } + + @Override + public UnaryCallable getNetworkCallable() { + return getNetworkCallable; + } + + @Override + public UnaryCallable updateNetworkCallable() { + return updateNetworkCallable; + } + + @Override + public OperationCallable + updateNetworkOperationCallable() { + return updateNetworkOperationCallable; + } + + @Override + public UnaryCallable getLunCallable() { + return getLunCallable; + } + + @Override + public UnaryCallable listLunsCallable() { + return listLunsCallable; + } + + @Override + public UnaryCallable listLunsPagedCallable() { + return listLunsPagedCallable; + } + + @Override + public UnaryCallable getNfsShareCallable() { + return getNfsShareCallable; + } + + @Override + public UnaryCallable listNfsSharesCallable() { + return listNfsSharesCallable; + } + + @Override + public UnaryCallable + listNfsSharesPagedCallable() { + return listNfsSharesPagedCallable; + } + + @Override + public UnaryCallable updateNfsShareCallable() { + return updateNfsShareCallable; + } + + @Override + public OperationCallable + updateNfsShareOperationCallable() { + return updateNfsShareOperationCallable; + } + + @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/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java new file mode 100644 index 0000000..1b2e0c4 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java @@ -0,0 +1,2187 @@ +/* + * 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.baremetalsolution.v2; + +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListInstancesPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListLunsPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNetworksPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListNfsSharesPagedResponse; +import static com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient.ListVolumesPagedResponse; + +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.cloud.baremetalsolution.v2.stub.HttpJsonBareMetalSolutionStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BareMetalSolutionClientHttpJsonTest { + private static MockHttpService mockService; + private static BareMetalSolutionClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonBareMetalSolutionStub.getMethodDescriptors(), + BareMetalSolutionSettings.getDefaultEndpoint()); + BareMetalSolutionSettings settings = + BareMetalSolutionSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + BareMetalSolutionSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BareMetalSolutionClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listInstancesTest() throws Exception { + Instance responsesElement = Instance.newBuilder().build(); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken("") + .addAllInstances(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().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 listInstancesExceptionTest() 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.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listInstancesTest2() throws Exception { + Instance responsesElement = Instance.newBuilder().build(); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken("") + .addAllInstances(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().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 listInstancesExceptionTest2() 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.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + Instance actualResponse = client.getInstance(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 getInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getInstanceTest2() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9412/locations/location-9412/instances/instance-9412"; + + Instance actualResponse = client.getInstance(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 getInstanceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9412/locations/location-9412/instances/instance-9412"; + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateInstanceTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Instance instance = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Instance actualResponse = client.updateInstanceAsync(instance, updateMask).get(); + 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 updateInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Instance instance = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateInstanceAsync(instance, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resetInstanceTest() throws Exception { + ResetInstanceResponse expectedResponse = ResetInstanceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ResetInstanceResponse actualResponse = client.resetInstanceAsync(name).get(); + 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 resetInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.resetInstanceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resetInstanceTest2() throws Exception { + ResetInstanceResponse expectedResponse = ResetInstanceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-9412/locations/location-9412/instances/instance-9412"; + + ResetInstanceResponse actualResponse = client.resetInstanceAsync(name).get(); + 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 resetInstanceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9412/locations/location-9412/instances/instance-9412"; + client.resetInstanceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void startInstanceTest() throws Exception { + StartInstanceResponse expectedResponse = StartInstanceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + StartInstanceResponse actualResponse = client.startInstanceAsync(name).get(); + 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 startInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.startInstanceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void startInstanceTest2() throws Exception { + StartInstanceResponse expectedResponse = StartInstanceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-9412/locations/location-9412/instances/instance-9412"; + + StartInstanceResponse actualResponse = client.startInstanceAsync(name).get(); + 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 startInstanceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9412/locations/location-9412/instances/instance-9412"; + client.startInstanceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void stopInstanceTest() throws Exception { + StopInstanceResponse expectedResponse = StopInstanceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("stopInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + StopInstanceResponse actualResponse = client.stopInstanceAsync(name).get(); + 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 stopInstanceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.stopInstanceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void stopInstanceTest2() throws Exception { + StopInstanceResponse expectedResponse = StopInstanceResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("stopInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-9412/locations/location-9412/instances/instance-9412"; + + StopInstanceResponse actualResponse = client.stopInstanceAsync(name).get(); + 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 stopInstanceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9412/locations/location-9412/instances/instance-9412"; + client.stopInstanceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void detachLunTest() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("detachLunTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + + Instance actualResponse = client.detachLunAsync(instance, lun).get(); + 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 detachLunExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + client.detachLunAsync(instance, lun).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void detachLunTest2() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("detachLunTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + String lun = "lun107525"; + + Instance actualResponse = client.detachLunAsync(instance, lun).get(); + 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 detachLunExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + String lun = "lun107525"; + client.detachLunAsync(instance, lun).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void detachLunTest3() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("detachLunTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String instance = "projects/project-2526/locations/location-2526/instances/instance-2526"; + LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + + Instance actualResponse = client.detachLunAsync(instance, lun).get(); + 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 detachLunExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String instance = "projects/project-2526/locations/location-2526/instances/instance-2526"; + LunName lun = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + client.detachLunAsync(instance, lun).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void detachLunTest4() throws Exception { + Instance expectedResponse = + Instance.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setId("id3355") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMachineType("machineType-218117087") + .setHyperthreadingEnabled(true) + .putAllLabels(new HashMap()) + .addAllLuns(new ArrayList()) + .addAllNetworks(new ArrayList()) + .setInteractiveSerialConsoleEnabled(true) + .setOsImage("osImage-1203193385") + .setPod("pod111173") + .setNetworkTemplate("networkTemplate1699249352") + .addAllLogicalInterfaces(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("detachLunTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String instance = "projects/project-2526/locations/location-2526/instances/instance-2526"; + String lun = "lun107525"; + + Instance actualResponse = client.detachLunAsync(instance, lun).get(); + 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 detachLunExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String instance = "projects/project-2526/locations/location-2526/instances/instance-2526"; + String lun = "lun107525"; + client.detachLunAsync(instance, lun).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listVolumesTest() throws Exception { + Volume responsesElement = Volume.newBuilder().build(); + ListVolumesResponse expectedResponse = + ListVolumesResponse.newBuilder() + .setNextPageToken("") + .addAllVolumes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListVolumesPagedResponse pagedListResponse = client.listVolumes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVolumesList().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 listVolumesExceptionTest() 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.listVolumes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVolumesTest2() throws Exception { + Volume responsesElement = Volume.newBuilder().build(); + ListVolumesResponse expectedResponse = + ListVolumesResponse.newBuilder() + .setNextPageToken("") + .addAllVolumes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListVolumesPagedResponse pagedListResponse = client.listVolumes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVolumesList().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 listVolumesExceptionTest2() 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.listVolumes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVolumeTest() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") + .build(); + mockService.addResponse(expectedResponse); + + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + + Volume actualResponse = client.getVolume(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 getVolumeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VolumeName name = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + client.getVolume(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVolumeTest2() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4193/locations/location-4193/volumes/volume-4193"; + + Volume actualResponse = client.getVolume(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 getVolumeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4193/locations/location-4193/volumes/volume-4193"; + client.getVolume(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateVolumeTest() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVolumeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Volume volume = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Volume actualResponse = client.updateVolumeAsync(volume, updateMask).get(); + 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 updateVolumeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Volume volume = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVolumeAsync(volume, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resizeVolumeTest() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resizeVolumeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + VolumeName volume = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + long sizeGib = 847296130; + + Volume actualResponse = client.resizeVolumeAsync(volume, sizeGib).get(); + 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 resizeVolumeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VolumeName volume = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + long sizeGib = 847296130; + client.resizeVolumeAsync(volume, sizeGib).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resizeVolumeTest2() throws Exception { + Volume expectedResponse = + Volume.newBuilder() + .setName(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setId("id3355") + .setRequestedSizeGib(525454387) + .setCurrentSizeGib(72696456) + .setEmergencySizeGib(1936971120) + .setAutoGrownSizeGib(1245638678) + .setRemainingSpaceGib(1423108606) + .setSnapshotReservationDetail(Volume.SnapshotReservationDetail.newBuilder().build()) + .putAllLabels(new HashMap()) + .setSnapshotEnabled(true) + .setPod("pod111173") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resizeVolumeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String volume = "projects/project-6830/locations/location-6830/volumes/volume-6830"; + long sizeGib = 847296130; + + Volume actualResponse = client.resizeVolumeAsync(volume, sizeGib).get(); + 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 resizeVolumeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String volume = "projects/project-6830/locations/location-6830/volumes/volume-6830"; + long sizeGib = 847296130; + client.resizeVolumeAsync(volume, sizeGib).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listNetworksTest() throws Exception { + Network responsesElement = Network.newBuilder().build(); + ListNetworksResponse expectedResponse = + ListNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllNetworks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNetworksPagedResponse pagedListResponse = client.listNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworksList().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 listNetworksExceptionTest() 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.listNetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworksTest2() throws Exception { + Network responsesElement = Network.newBuilder().build(); + ListNetworksResponse expectedResponse = + ListNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllNetworks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListNetworksPagedResponse pagedListResponse = client.listNetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworksList().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 listNetworksExceptionTest2() 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.listNetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkUsageTest() throws Exception { + ListNetworkUsageResponse expectedResponse = + ListNetworkUsageResponse.newBuilder().addAllNetworks(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNetworkUsageResponse actualResponse = client.listNetworkUsage(location); + 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 listNetworkUsageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listNetworkUsage(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNetworkUsageTest2() throws Exception { + ListNetworkUsageResponse expectedResponse = + ListNetworkUsageResponse.newBuilder().addAllNetworks(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String location = "projects/project-7132/locations/location-7132"; + + ListNetworkUsageResponse actualResponse = client.listNetworkUsage(location); + 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 listNetworkUsageExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String location = "projects/project-7132/locations/location-7132"; + client.listNetworkUsage(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNetworkTest() throws Exception { + Network expectedResponse = + Network.newBuilder() + .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + .setId("id3355") + .setIpAddress("ipAddress1634032845") + .addAllMacAddress(new ArrayList()) + .setVlanId("vlanId-813989410") + .setCidr("cidr3053428") + .setVrf(VRF.newBuilder().build()) + .putAllLabels(new HashMap()) + .setServicesCidr("servicesCidr377076978") + .addAllReservations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]"); + + Network actualResponse = client.getNetwork(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 getNetworkExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName name = NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]"); + client.getNetwork(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNetworkTest2() throws Exception { + Network expectedResponse = + Network.newBuilder() + .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + .setId("id3355") + .setIpAddress("ipAddress1634032845") + .addAllMacAddress(new ArrayList()) + .setVlanId("vlanId-813989410") + .setCidr("cidr3053428") + .setVrf(VRF.newBuilder().build()) + .putAllLabels(new HashMap()) + .setServicesCidr("servicesCidr377076978") + .addAllReservations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6795/locations/location-6795/networks/network-6795"; + + Network actualResponse = client.getNetwork(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 getNetworkExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6795/locations/location-6795/networks/network-6795"; + client.getNetwork(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateNetworkTest() throws Exception { + Network expectedResponse = + Network.newBuilder() + .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + .setId("id3355") + .setIpAddress("ipAddress1634032845") + .addAllMacAddress(new ArrayList()) + .setVlanId("vlanId-813989410") + .setCidr("cidr3053428") + .setVrf(VRF.newBuilder().build()) + .putAllLabels(new HashMap()) + .setServicesCidr("servicesCidr377076978") + .addAllReservations(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Network network = + Network.newBuilder() + .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + .setId("id3355") + .setIpAddress("ipAddress1634032845") + .addAllMacAddress(new ArrayList()) + .setVlanId("vlanId-813989410") + .setCidr("cidr3053428") + .setVrf(VRF.newBuilder().build()) + .putAllLabels(new HashMap()) + .setServicesCidr("servicesCidr377076978") + .addAllReservations(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Network actualResponse = client.updateNetworkAsync(network, updateMask).get(); + 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 updateNetworkExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Network network = + Network.newBuilder() + .setName(NetworkName.of("[PROJECT]", "[LOCATION]", "[NETWORK]").toString()) + .setId("id3355") + .setIpAddress("ipAddress1634032845") + .addAllMacAddress(new ArrayList()) + .setVlanId("vlanId-813989410") + .setCidr("cidr3053428") + .setVrf(VRF.newBuilder().build()) + .putAllLabels(new HashMap()) + .setServicesCidr("servicesCidr377076978") + .addAllReservations(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNetworkAsync(network, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getLunTest() throws Exception { + Lun expectedResponse = + Lun.newBuilder() + .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + .setId("id3355") + .setSizeGb(2105542105) + .setStorageVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setShareable(true) + .setBootLun(true) + .setWwid("wwid3662843") + .build(); + mockService.addResponse(expectedResponse); + + LunName name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + + Lun actualResponse = client.getLun(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 getLunExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LunName name = LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]"); + client.getLun(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLunTest2() throws Exception { + Lun expectedResponse = + Lun.newBuilder() + .setName(LunName.of("[PROJECT]", "[LOCATION]", "[VOLUME]", "[LUN]").toString()) + .setId("id3355") + .setSizeGb(2105542105) + .setStorageVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .setShareable(true) + .setBootLun(true) + .setWwid("wwid3662843") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5639/locations/location-5639/volumes/volume-5639/luns/lun-5639"; + + Lun actualResponse = client.getLun(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 getLunExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5639/locations/location-5639/volumes/volume-5639/luns/lun-5639"; + client.getLun(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLunsTest() throws Exception { + Lun responsesElement = Lun.newBuilder().build(); + ListLunsResponse expectedResponse = + ListLunsResponse.newBuilder() + .setNextPageToken("") + .addAllLuns(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + + ListLunsPagedResponse pagedListResponse = client.listLuns(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLunsList().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 listLunsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VolumeName parent = VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]"); + client.listLuns(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLunsTest2() throws Exception { + Lun responsesElement = Lun.newBuilder().build(); + ListLunsResponse expectedResponse = + ListLunsResponse.newBuilder() + .setNextPageToken("") + .addAllLuns(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-402/locations/location-402/volumes/volume-402"; + + ListLunsPagedResponse pagedListResponse = client.listLuns(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLunsList().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 listLunsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-402/locations/location-402/volumes/volume-402"; + client.listLuns(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNfsShareTest() throws Exception { + NfsShare expectedResponse = + NfsShare.newBuilder() + .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) + .setNfsShareId("nfsShareId-1834781921") + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .addAllAllowedClients(new ArrayList()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + NFSShareName name = NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"); + + NfsShare actualResponse = client.getNfsShare(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 getNfsShareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NFSShareName name = NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]"); + client.getNfsShare(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNfsShareTest2() throws Exception { + NfsShare expectedResponse = + NfsShare.newBuilder() + .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) + .setNfsShareId("nfsShareId-1834781921") + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .addAllAllowedClients(new ArrayList()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1365/locations/location-1365/nfsShares/nfsShare-1365"; + + NfsShare actualResponse = client.getNfsShare(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 getNfsShareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1365/locations/location-1365/nfsShares/nfsShare-1365"; + client.getNfsShare(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNfsSharesTest() throws Exception { + NfsShare responsesElement = NfsShare.newBuilder().build(); + ListNfsSharesResponse expectedResponse = + ListNfsSharesResponse.newBuilder() + .setNextPageToken("") + .addAllNfsShares(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListNfsSharesPagedResponse pagedListResponse = client.listNfsShares(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNfsSharesList().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 listNfsSharesExceptionTest() 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.listNfsShares(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNfsSharesTest2() throws Exception { + NfsShare responsesElement = NfsShare.newBuilder().build(); + ListNfsSharesResponse expectedResponse = + ListNfsSharesResponse.newBuilder() + .setNextPageToken("") + .addAllNfsShares(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListNfsSharesPagedResponse pagedListResponse = client.listNfsShares(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNfsSharesList().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 listNfsSharesExceptionTest2() 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.listNfsShares(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateNfsShareTest() throws Exception { + NfsShare expectedResponse = + NfsShare.newBuilder() + .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) + .setNfsShareId("nfsShareId-1834781921") + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .addAllAllowedClients(new ArrayList()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateNfsShareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + NfsShare nfsShare = + NfsShare.newBuilder() + .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) + .setNfsShareId("nfsShareId-1834781921") + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .addAllAllowedClients(new ArrayList()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + NfsShare actualResponse = client.updateNfsShareAsync(nfsShare, updateMask).get(); + 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 updateNfsShareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NfsShare nfsShare = + NfsShare.newBuilder() + .setName(NFSShareName.of("[PROJECT]", "[LOCATION]", "[NFS_SHARE]").toString()) + .setNfsShareId("nfsShareId-1834781921") + .setVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) + .addAllAllowedClients(new ArrayList()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNfsShareAsync(nfsShare, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java similarity index 100% rename from google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java diff --git a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java similarity index 100% rename from google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java diff --git a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java similarity index 100% rename from google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java diff --git a/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java new file mode 100644 index 0000000..d21be35 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java @@ -0,0 +1,1975 @@ +package com.google.cloud.baremetalsolution.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Performs management operations on Bare Metal Solution servers.
+ * The `baremetalsolution.googleapis.com` service provides management
+ * capabilities for Bare Metal Solution servers. To access the API methods, you
+ * must assign Bare Metal Solution IAM roles containing the desired permissions
+ * to your staff in your Google Cloud project. You must also enable the Bare
+ * Metal Solution API. Once enabled, the methods act
+ * upon specific servers in your Bare Metal Solution environment.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BareMetalSolutionGrpc { + + private BareMetalSolutionGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListInstancesMethod() { + io.grpc.MethodDescriptor getListInstancesMethod; + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + BareMetalSolutionGrpc.getListInstancesMethod = getListInstancesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetInstanceMethod() { + io.grpc.MethodDescriptor getGetInstanceMethod; + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + BareMetalSolutionGrpc.getGetInstanceMethod = getGetInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { + io.grpc.MethodDescriptor getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + BareMetalSolutionGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getResetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetInstance", + requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getResetInstanceMethod() { + io.grpc.MethodDescriptor getResetInstanceMethod; + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + BareMetalSolutionGrpc.getResetInstanceMethod = getResetInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) + .build(); + } + } + } + return getResetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartInstance", + requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartInstanceMethod() { + io.grpc.MethodDescriptor getStartInstanceMethod; + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + BareMetalSolutionGrpc.getStartInstanceMethod = getStartInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) + .build(); + } + } + } + return getStartInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopInstance", + requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopInstanceMethod() { + io.grpc.MethodDescriptor getStopInstanceMethod; + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + BareMetalSolutionGrpc.getStopInstanceMethod = getStopInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) + .build(); + } + } + } + return getStopInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getDetachLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetachLun", + requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDetachLunMethod() { + io.grpc.MethodDescriptor getDetachLunMethod; + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + BareMetalSolutionGrpc.getDetachLunMethod = getDetachLunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) + .build(); + } + } + } + return getDetachLunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListVolumesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVolumes", + requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListVolumesMethod() { + io.grpc.MethodDescriptor getListVolumesMethod; + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + BareMetalSolutionGrpc.getListVolumesMethod = getListVolumesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) + .build(); + } + } + } + return getListVolumesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVolume", + requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Volume.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetVolumeMethod() { + io.grpc.MethodDescriptor getGetVolumeMethod; + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + BareMetalSolutionGrpc.getGetVolumeMethod = getGetVolumeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) + .build(); + } + } + } + return getGetVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", + requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateVolumeMethod() { + io.grpc.MethodDescriptor getUpdateVolumeMethod; + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + BareMetalSolutionGrpc.getUpdateVolumeMethod = getUpdateVolumeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) + .build(); + } + } + } + return getUpdateVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor getResizeVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", + requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getResizeVolumeMethod() { + io.grpc.MethodDescriptor getResizeVolumeMethod; + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + BareMetalSolutionGrpc.getResizeVolumeMethod = getResizeVolumeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) + .build(); + } + } + } + return getResizeVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNetworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworks", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNetworksMethod() { + io.grpc.MethodDescriptor getListNetworksMethod; + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + BareMetalSolutionGrpc.getListNetworksMethod = getListNetworksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) + .build(); + } + } + } + return getListNetworksMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNetworkUsageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNetworkUsageMethod() { + io.grpc.MethodDescriptor getListNetworkUsageMethod; + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + BareMetalSolutionGrpc.getListNetworkUsageMethod = getListNetworkUsageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) + .build(); + } + } + } + return getListNetworkUsageMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNetwork", + requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Network.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNetworkMethod() { + io.grpc.MethodDescriptor getGetNetworkMethod; + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + BareMetalSolutionGrpc.getGetNetworkMethod = getGetNetworkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) + .build(); + } + } + } + return getGetNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateNetworkMethod() { + io.grpc.MethodDescriptor getUpdateNetworkMethod; + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + BareMetalSolutionGrpc.getUpdateNetworkMethod = getUpdateNetworkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) + .build(); + } + } + } + return getUpdateNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLun", + requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Lun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLunMethod() { + io.grpc.MethodDescriptor getGetLunMethod; + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + BareMetalSolutionGrpc.getGetLunMethod = getGetLunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) + .build(); + } + } + } + return getGetLunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListLunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLuns", + requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListLunsMethod() { + io.grpc.MethodDescriptor getListLunsMethod; + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + BareMetalSolutionGrpc.getListLunsMethod = getListLunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) + .build(); + } + } + } + return getListLunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNfsShareMethod() { + io.grpc.MethodDescriptor getGetNfsShareMethod; + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + BareMetalSolutionGrpc.getGetNfsShareMethod = getGetNfsShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) + .build(); + } + } + } + return getGetNfsShareMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNfsSharesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", + requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNfsSharesMethod() { + io.grpc.MethodDescriptor getListNfsSharesMethod; + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + BareMetalSolutionGrpc.getListNfsSharesMethod = getListNfsSharesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) + .build(); + } + } + } + return getListNfsSharesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateNfsShareMethod() { + io.grpc.MethodDescriptor getUpdateNfsShareMethod; + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + BareMetalSolutionGrpc.getUpdateNfsShareMethod = getUpdateNfsShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) + .build(); + } + } + } + return getUpdateNfsShareMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + }; + return BareMetalSolutionStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BareMetalSolutionBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + }; + return BareMetalSolutionBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static BareMetalSolutionFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + }; + return BareMetalSolutionFutureStub.newStub(factory, channel); + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static abstract class BareMetalSolutionImplBase implements io.grpc.BindableService { + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetInstanceMethod(), responseObserver); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartInstanceMethod(), responseObserver); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopInstanceMethod(), responseObserver); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVolumesMethod(), responseObserver); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateVolumeMethod(), responseObserver); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResizeVolumeMethod(), responseObserver); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworksMethod(), responseObserver); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworkUsageMethod(), responseObserver); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNetworkMethod(), responseObserver); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNfsShareMethod(), responseObserver); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNfsSharesMethod(), responseObserver); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNfsShareMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance>( + this, METHODID_GET_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getResetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_RESET_INSTANCE))) + .addMethod( + getStartInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_START_INSTANCE))) + .addMethod( + getStopInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_STOP_INSTANCE))) + .addMethod( + getDetachLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, + com.google.longrunning.Operation>( + this, METHODID_DETACH_LUN))) + .addMethod( + getListVolumesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( + this, METHODID_LIST_VOLUMES))) + .addMethod( + getGetVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume>( + this, METHODID_GET_VOLUME))) + .addMethod( + getUpdateVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_VOLUME))) + .addMethod( + getResizeVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation>( + this, METHODID_RESIZE_VOLUME))) + .addMethod( + getListNetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( + this, METHODID_LIST_NETWORKS))) + .addMethod( + getListNetworkUsageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( + this, METHODID_LIST_NETWORK_USAGE))) + .addMethod( + getGetNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network>( + this, METHODID_GET_NETWORK))) + .addMethod( + getUpdateNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_NETWORK))) + .addMethod( + getGetLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun>( + this, METHODID_GET_LUN))) + .addMethod( + getListLunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse>( + this, METHODID_LIST_LUNS))) + .addMethod( + getGetNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare>( + this, METHODID_GET_NFS_SHARE))) + .addMethod( + getListNfsSharesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( + this, METHODID_LIST_NFS_SHARES))) + .addMethod( + getUpdateNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_NFS_SHARE))) + .build(); + } + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionStub extends io.grpc.stub.AbstractAsyncStub { + private BareMetalSolutionStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BareMetalSolutionBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Instance getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.longrunning.Operation resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.longrunning.Operation startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public com.google.longrunning.Operation stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.longrunning.Operation detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetachLunMethod(), getCallOptions(), request); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVolumesMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Volume getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVolumeMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.longrunning.Operation updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.longrunning.Operation resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResizeVolumeMethod(), getCallOptions(), request); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworksMethod(), getCallOptions(), request); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Network getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNetworkMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.longrunning.Operation updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Lun getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLunMethod(), getCallOptions(), request); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNfsShareMethod(), getCallOptions(), request); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNfsSharesMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.longrunning.Operation updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionFutureStub extends io.grpc.stub.AbstractFutureStub { + private BareMetalSolutionFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_UPDATE_INSTANCE = 2; + private static final int METHODID_RESET_INSTANCE = 3; + private static final int METHODID_START_INSTANCE = 4; + private static final int METHODID_STOP_INSTANCE = 5; + private static final int METHODID_DETACH_LUN = 6; + private static final int METHODID_LIST_VOLUMES = 7; + private static final int METHODID_GET_VOLUME = 8; + private static final int METHODID_UPDATE_VOLUME = 9; + private static final int METHODID_RESIZE_VOLUME = 10; + private static final int METHODID_LIST_NETWORKS = 11; + private static final int METHODID_LIST_NETWORK_USAGE = 12; + private static final int METHODID_GET_NETWORK = 13; + private static final int METHODID_UPDATE_NETWORK = 14; + private static final int METHODID_GET_LUN = 15; + private static final int METHODID_LIST_LUNS = 16; + private static final int METHODID_GET_NFS_SHARE = 17; + private static final int METHODID_LIST_NFS_SHARES = 18; + private static final int METHODID_UPDATE_NFS_SHARE = 19; + + 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 BareMetalSolutionImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_INSTANCE: + serviceImpl.resetInstance((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_INSTANCE: + serviceImpl.startInstance((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_INSTANCE: + serviceImpl.stopInstance((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETACH_LUN: + serviceImpl.detachLun((com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOLUMES: + serviceImpl.listVolumes((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_VOLUME: + serviceImpl.getVolume((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_VOLUME: + serviceImpl.updateVolume((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESIZE_VOLUME: + serviceImpl.resizeVolume((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NETWORKS: + serviceImpl.listNetworks((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NETWORK_USAGE: + serviceImpl.listNetworkUsage((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NETWORK: + serviceImpl.getNetwork((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NETWORK: + serviceImpl.updateNetwork((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LUN: + serviceImpl.getLun((com.google.cloud.baremetalsolution.v2.GetLunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LUNS: + serviceImpl.listLuns((com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NFS_SHARE: + serviceImpl.getNfsShare((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NFS_SHARES: + serviceImpl.listNfsShares((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NFS_SHARE: + serviceImpl.updateNfsShare((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BareMetalSolutionBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BareMetalSolution"); + } + } + + private static final class BareMetalSolutionFileDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier { + BareMetalSolutionFileDescriptorSupplier() {} + } + + private static final class BareMetalSolutionMethodDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getResetInstanceMethod()) + .addMethod(getStartInstanceMethod()) + .addMethod(getStopInstanceMethod()) + .addMethod(getDetachLunMethod()) + .addMethod(getListVolumesMethod()) + .addMethod(getGetVolumeMethod()) + .addMethod(getUpdateVolumeMethod()) + .addMethod(getResizeVolumeMethod()) + .addMethod(getListNetworksMethod()) + .addMethod(getListNetworkUsageMethod()) + .addMethod(getGetNetworkMethod()) + .addMethod(getUpdateNetworkMethod()) + .addMethod(getGetLunMethod()) + .addMethod(getListLunsMethod()) + .addMethod(getGetNfsShareMethod()) + .addMethod(getListNfsSharesMethod()) + .addMethod(getUpdateNfsShareMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java new file mode 100644 index 0000000..2ce6b05 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java @@ -0,0 +1,218 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class BareMetalSolutionProto { + private BareMetalSolutionProto() {} + 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_baremetalsolution_v2_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/baremetalsolution/v2/bare" + + "metalsolution.proto\022!google.cloud.bareme" + + "talsolution.v2\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\0320google/cloud/bar" + + "emetalsolution/v2/instance.proto\032+google" + + "/cloud/baremetalsolution/v2/lun.proto\032/g" + + "oogle/cloud/baremetalsolution/v2/network" + + ".proto\0321google/cloud/baremetalsolution/v" + + "2/nfs_share.proto\032.google/cloud/baremeta" + + "lsolution/v2/volume.proto\032#google/longru" + + "nning/operations.proto\032\037google/protobuf/" + + "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" + + "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " + + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" + + "setInstanceResponse2\335 \n\021BareMetalSolutio" + + "n\022\302\001\n\rListInstances\0227.google.cloud.barem" + + "etalsolution.v2.ListInstancesRequest\0328.g" + + "oogle.cloud.baremetalsolution.v2.ListIns" + + "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" + + "ects/*/locations/*}/instances\332A\006parent\022\257" + + "\001\n\013GetInstance\0225.google.cloud.baremetals" + + "olution.v2.GetInstanceRequest\032+.google.c" + + "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" + + "\002/\022-/v2/{name=projects/*/locations/*/ins" + + "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" + + "ogle.cloud.baremetalsolution.v2.UpdateIn" + + "stanceRequest\032\035.google.longrunning.Opera" + + "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" + + "s/*/locations/*/instances/*}:\010instance\332A" + + "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" + + "ationMetadata\022\333\001\n\rResetInstance\0227.google" + + ".cloud.baremetalsolution.v2.ResetInstanc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" + + "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" + + "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" + + "StartInstance\0227.google.cloud.baremetalso" + + "lution.v2.StartInstanceRequest\032\035.google." + + "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" + + "=projects/*/locations/*/instances/*}:sta" + + "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" + + "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" + + "gle.cloud.baremetalsolution.v2.StopInsta" + + "nceRequest\032\035.google.longrunning.Operatio" + + "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" + + "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" + + "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" + + "DetachLun\0223.google.cloud.baremetalsoluti" + + "on.v2.DetachLunRequest\032\035.google.longrunn" + + "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" + + "jects/*/locations/*/instances/*}:detachL" + + "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" + + "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" + + "oud.baremetalsolution.v2.ListVolumesRequ" + + "est\0326.google.cloud.baremetalsolution.v2." + + "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" + + "=projects/*/locations/*}/volumes\332A\006paren" + + "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" + + "solution.v2.GetVolumeRequest\032).google.cl" + + "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" + + "+/v2/{name=projects/*/locations/*/volume" + + "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" + + "oud.baremetalsolution.v2.UpdateVolumeReq" + + "uest\032\035.google.longrunning.Operation\"u\202\323\344" + + "\223\002<22/v2/{volume.name=projects/*/locatio" + + "ns/*/volumes/*}:\006volume\332A\022volume,update_" + + "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" + + "esizeVolume\0226.google.cloud.baremetalsolu" + + "tion.v2.ResizeVolumeRequest\032\035.google.lon" + + "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" + + "projects/*/locations/*/volumes/*}:resize" + + ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" + + "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" + + "oud.baremetalsolution.v2.ListNetworksReq" + + "uest\0327.google.cloud.baremetalsolution.v2" + + ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" + + "nt=projects/*/locations/*}/networks\332A\006pa" + + "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" + + ".baremetalsolution.v2.ListNetworkUsageRe" + + "quest\032;.google.cloud.baremetalsolution.v" + + "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" + + "{location=projects/*/locations/*}/networ" + + "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" + + "twork\0224.google.cloud.baremetalsolution.v" + + "2.GetNetworkRequest\032*.google.cloud.barem" + + "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" + + "me=projects/*/locations/*/networks/*}\332A\004" + + "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" + + "remetalsolution.v2.UpdateNetworkRequest\032" + + "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" + + "/v2/{network.name=projects/*/locations/*" + + "/networks/*}:\007network\332A\023network,update_m" + + "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" + + "etLun\0220.google.cloud.baremetalsolution.v" + + "2.GetLunRequest\032&.google.cloud.baremetal" + + "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" + + "cts/*/locations/*/volumes/*/luns/*}\332A\004na" + + "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" + + "solution.v2.ListLunsRequest\0323.google.clo" + + "ud.baremetalsolution.v2.ListLunsResponse" + + "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" + + "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" + + "Share\0225.google.cloud.baremetalsolution.v" + + "2.GetNfsShareRequest\032+.google.cloud.bare" + + "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" + + "name=projects/*/locations/*/nfsShares/*}" + + "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" + + ".baremetalsolution.v2.ListNfsSharesReque" + + "st\0328.google.cloud.baremetalsolution.v2.L" + + "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" + + "t=projects/*/locations/*}/nfsShares\332A\006pa" + + "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" + + "aremetalsolution.v2.UpdateNfsShareReques" + + "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" + + "D27/v2/{nfs_share.name=projects/*/locati" + + "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" + + "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" + + "adata\032T\312A baremetalsolution.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\204\002\n%com.google.cloud.baremet" + + "alsolution.v2B\026BareMetalSolutionProtoP\001Z" + + "Rgoogle.golang.org/genproto/googleapis/c" + + "loud/baremetalsolution/v2;baremetalsolut" + + "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" + + "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" + + "ogle::Cloud::BareMetalSolution::V2b\006prot" + + "o3" + }; + 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java similarity index 63% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java index ec51b3a..6074780 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for detach specific LUN from an Instance.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} */ -public final class DetachLunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetachLunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) DetachLunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetachLunRequest.newBuilder() to construct. private DetachLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetachLunRequest() { instance_ = ""; lun_ = ""; @@ -44,15 +26,16 @@ private DetachLunRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetachLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetachLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private DetachLunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - instance_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instance_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - lun_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + lun_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,41 +80,34 @@ private DetachLunRequest( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, - com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private volatile java.lang.Object instance_; /** - * - * *
    * Required. Name of the instance.
    * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The instance. */ @java.lang.Override @@ -142,31 +116,29 @@ public java.lang.String getInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; } } /** - * - * *
    * Required. Name of the instance.
    * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for instance. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceBytes() { + public com.google.protobuf.ByteString + getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instance_ = b; return b; } else { @@ -177,16 +149,11 @@ public com.google.protobuf.ByteString getInstanceBytes() { public static final int LUN_FIELD_NUMBER = 2; private volatile java.lang.Object lun_; /** - * - * *
    * Required. Name of the Lun to detach.
    * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The lun. */ @java.lang.Override @@ -195,31 +162,29 @@ public java.lang.String getLun() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lun_ = s; return s; } } /** - * - * *
    * Required. Name of the Lun to detach.
    * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for lun. */ @java.lang.Override - public com.google.protobuf.ByteString getLunBytes() { + public com.google.protobuf.ByteString + getLunBytes() { java.lang.Object ref = lun_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lun_ = b; return b; } else { @@ -228,7 +193,6 @@ public com.google.protobuf.ByteString getLunBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); } @@ -270,16 +235,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.DetachLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.DetachLunRequest other = - (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; + com.google.cloud.baremetalsolution.v2.DetachLunRequest other = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; - if (!getInstance().equals(other.getInstance())) return false; - if (!getLun().equals(other.getLun())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; + if (!getLun() + .equals(other.getLun())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,127 +267,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for detach specific LUN from an Instance.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) com.google.cloud.baremetalsolution.v2.DetachLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, - com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.DetachLunRequest.newBuilder() @@ -429,15 +385,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override @@ -470,8 +427,7 @@ public com.google.cloud.baremetalsolution.v2.DetachLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.DetachLunRequest result = - new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); + com.google.cloud.baremetalsolution.v2.DetachLunRequest result = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); result.instance_ = instance_; result.lun_ = lun_; onBuilt(); @@ -482,39 +438,38 @@ public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.DetachLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest)other); } else { super.mergeFrom(other); return this; @@ -522,8 +477,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.DetachLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) return this; if (!other.getInstance().isEmpty()) { instance_ = other.instance_; onChanged(); @@ -551,8 +505,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,22 +517,18 @@ public Builder mergeFrom( private java.lang.Object instance_ = ""; /** - * - * *
      * Required. Name of the instance.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The instance. */ public java.lang.String getInstance() { java.lang.Object ref = instance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; @@ -588,23 +537,20 @@ public java.lang.String getInstance() { } } /** - * - * *
      * Required. Name of the instance.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for instance. */ - public com.google.protobuf.ByteString getInstanceBytes() { + public com.google.protobuf.ByteString + getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instance_ = b; return b; } else { @@ -612,67 +558,54 @@ public com.google.protobuf.ByteString getInstanceBytes() { } } /** - * - * *
      * Required. Name of the instance.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The instance to set. * @return This builder for chaining. */ - public Builder setInstance(java.lang.String value) { + public Builder setInstance( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instance_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the instance.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearInstance() { - + instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /** - * - * *
      * Required. Name of the instance.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for instance to set. * @return This builder for chaining. */ - public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; onChanged(); return this; @@ -680,22 +613,18 @@ public Builder setInstanceBytes(com.google.protobuf.ByteString value) { private java.lang.Object lun_ = ""; /** - * - * *
      * Required. Name of the Lun to detach.
      * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The lun. */ public java.lang.String getLun() { java.lang.Object ref = lun_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lun_ = s; return s; @@ -704,23 +633,20 @@ public java.lang.String getLun() { } } /** - * - * *
      * Required. Name of the Lun to detach.
      * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for lun. */ - public com.google.protobuf.ByteString getLunBytes() { + public com.google.protobuf.ByteString + getLunBytes() { java.lang.Object ref = lun_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lun_ = b; return b; } else { @@ -728,74 +654,61 @@ public com.google.protobuf.ByteString getLunBytes() { } } /** - * - * *
      * Required. Name of the Lun to detach.
      * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The lun to set. * @return This builder for chaining. */ - public Builder setLun(java.lang.String value) { + public Builder setLun( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lun_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the Lun to detach.
      * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLun() { - + lun_ = getDefaultInstance().getLun(); onChanged(); return this; } /** - * - * *
      * Required. Name of the Lun to detach.
      * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for lun to set. * @return This builder for chaining. */ - public Builder setLunBytes(com.google.protobuf.ByteString value) { + public Builder setLunBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lun_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) private static final com.google.cloud.baremetalsolution.v2.DetachLunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(); } @@ -819,16 +732,16 @@ public static com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetachLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetachLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetachLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetachLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java new file mode 100644 index 0000000..5ac8a36 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface DetachLunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the instance.
+   * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The instance. + */ + java.lang.String getInstance(); + /** + *
+   * Required. Name of the instance.
+   * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for instance. + */ + com.google.protobuf.ByteString + getInstanceBytes(); + + /** + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The lun. + */ + java.lang.String getLun(); + /** + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for lun. + */ + com.google.protobuf.ByteString + getLunBytes(); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java index 5990f0f..03dcb9d 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting server information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ -public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) GetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetInstanceRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private GetInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = - (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting server information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) com.google.cloud.baremetalsolution.v2.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetInstanceRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..e956437 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java index 4f0939b..32ab528 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting storage lun information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ -public final class GetLunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetLunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetLunRequest) GetLunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetLunRequest.newBuilder() to construct. private GetLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetLunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetLunRequest( 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,41 +73,34 @@ private GetLunRequest( } 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.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetLunRequest other = - (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; + com.google.cloud.baremetalsolution.v2.GetLunRequest other = (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting storage lun information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetLunRequest) com.google.cloud.baremetalsolution.v2.GetLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetLunRequest.newBuilder() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetLunRequest result = - new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); + com.google.cloud.baremetalsolution.v2.GetLunRequest result = new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest)other); } else { super.mergeFrom(other); return this; @@ -448,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -473,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -510,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -534,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -611,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetLunRequest) private static final com.google.cloud.baremetalsolution.v2.GetLunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetLunRequest(); } @@ -625,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java new file mode 100644 index 0000000..d320c48 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetLunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java index c7048ac..8b4f73a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting network information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ -public final class GetNetworkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNetworkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) GetNetworkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNetworkRequest.newBuilder() to construct. private GetNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNetworkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetNetworkRequest( 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,41 +73,34 @@ private GetNetworkRequest( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = - (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting network information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) com.google.cloud.baremetalsolution.v2.GetNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNetworkRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = - new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) private static final com.google.cloud.baremetalsolution.v2.GetNetworkRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNetworkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNetworkRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNetworkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNetworkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java new file mode 100644 index 0000000..59b3157 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNetworkRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java index 30fffbf..888e6a6 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting NFS share information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} */ -public final class GetNfsShareRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNfsShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) GetNfsShareRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNfsShareRequest.newBuilder() to construct. private GetNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNfsShareRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNfsShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetNfsShareRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetNfsShareRequest( 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,41 +73,34 @@ private GetNfsShareRequest( } 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.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = - (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting NFS share information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) com.google.cloud.baremetalsolution.v2.GetNfsShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = - new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) private static final com.google.cloud.baremetalsolution.v2.GetNfsShareRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNfsShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNfsShareRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNfsShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNfsShareRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java new file mode 100644 index 0000000..f17088b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNfsShareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java index 1a670e5..01d7345 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting storage volume information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ -public final class GetVolumeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetVolumeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) GetVolumeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetVolumeRequest.newBuilder() to construct. private GetVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetVolumeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetVolumeRequest( 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,41 +73,34 @@ private GetVolumeRequest( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = - (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting storage volume information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) com.google.cloud.baremetalsolution.v2.GetVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetVolumeRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = - new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.GetVolumeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java new file mode 100644 index 0000000..ed4c7ee --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetVolumeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java similarity index 74% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java index 66c8eeb..293d61c 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Instance) InstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Instance() { name_ = ""; id_ = ""; @@ -52,15 +34,16 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Instance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -80,152 +63,131 @@ private Instance( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 40: - { - int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 48: - { - hyperthreadingEnabled_ = input.readBool(); - break; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - luns_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + machineType_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 48: { + + hyperthreadingEnabled_ = input.readBool(); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - networks_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - networks_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 80: - { - interactiveSerialConsoleEnabled_ = input.readBool(); - break; + luns_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + networks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); + networks_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; + } + case 80: { - id_ = s; - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); + interactiveSerialConsoleEnabled_ = input.readBool(); + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); - osImage_ = s; - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; - } - case 114: - { - java.lang.String s = input.readStringRequireUtf8(); + osImage_ = s; + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); - networkTemplate_ = s; - break; - } - case 122: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - logicalInterfaces_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.LogicalInterface>(); - mutable_bitField0_ |= 0x00000008; - } - logicalInterfaces_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), - extensionRegistry)); - break; + pod_ = s; + break; + } + case 114: { + java.lang.String s = input.readStringRequireUtf8(); + + networkTemplate_ = s; + break; + } + case 122: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + logicalInterfaces_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + logicalInterfaces_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -233,7 +195,8 @@ private Instance( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -248,46 +211,41 @@ private Instance( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, - com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); } /** - * - * *
    * The possible states for this server.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The server is in an unknown state.
      * 
@@ -296,8 +254,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The server is being provisioned.
      * 
@@ -306,8 +262,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROVISIONING(1), /** - * - * *
      * The server is running.
      * 
@@ -316,8 +270,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The server has been deleted.
      * 
@@ -329,8 +281,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The server is in an unknown state.
      * 
@@ -339,8 +289,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The server is being provisioned.
      * 
@@ -349,8 +297,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONING_VALUE = 1; /** - * - * *
      * The server is running.
      * 
@@ -359,8 +305,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The server has been deleted.
      * 
@@ -369,6 +313,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -393,51 +338,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return RUNNING; - case 3: - return DELETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return RUNNING; + case 3: return DELETED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Instance.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -457,8 +401,6 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -468,7 +410,6 @@ private State(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -477,15 +418,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; } } /** - * - * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -495,15 +435,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,14 +455,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ID_FIELD_NUMBER = 11; private volatile java.lang.Object id_; /** - * - * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; - * * @return The id. */ @java.lang.Override @@ -530,29 +468,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; } } /** - * - * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; - * * @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 { @@ -563,15 +501,11 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -579,15 +513,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -595,14 +525,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -612,15 +539,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -628,15 +551,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -644,14 +563,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -661,8 +577,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MACHINE_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object machineType_; /** - * - * *
    * The server type.
    * [Available server
@@ -670,7 +584,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string machine_type = 4; - * * @return The machineType. */ @java.lang.Override @@ -679,15 +592,14 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** - * - * *
    * The server type.
    * [Available server
@@ -695,15 +607,16 @@ public java.lang.String getMachineType() {
    * 
* * string machine_type = 4; - * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -714,53 +627,39 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** - * - * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Instance.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = - com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; } public static final int HYPERTHREADING_ENABLED_FIELD_NUMBER = 6; private boolean hyperthreadingEnabled_; /** - * - * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; - * * @return The hyperthreadingEnabled. */ @java.lang.Override @@ -769,23 +668,24 @@ public boolean getHyperthreadingEnabled() { } public static final int LABELS_FIELD_NUMBER = 7; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -794,30 +694,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -825,12 +723,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 7; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -838,16 +735,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -855,11 +752,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -869,8 +767,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int LUNS_FIELD_NUMBER = 8; private java.util.List luns_; /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -882,8 +778,6 @@ public java.util.List getLunsList() { return luns_; } /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -891,13 +785,11 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -909,8 +801,6 @@ public int getLunsCount() { return luns_.size(); } /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -922,8 +812,6 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -931,15 +819,14 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { return luns_.get(index); } public static final int NETWORKS_FIELD_NUMBER = 9; private java.util.List networks_; /** - * - * *
    * List of networks associated with this server.
    * 
@@ -951,8 +838,6 @@ public java.util.List getNetworks return networks_; } /** - * - * *
    * List of networks associated with this server.
    * 
@@ -960,13 +845,11 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** - * - * *
    * List of networks associated with this server.
    * 
@@ -978,8 +861,6 @@ public int getNetworksCount() { return networks_.size(); } /** - * - * *
    * List of networks associated with this server.
    * 
@@ -991,8 +872,6 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** - * - * *
    * List of networks associated with this server.
    * 
@@ -1000,15 +879,14 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { return networks_.get(index); } public static final int INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER = 10; private boolean interactiveSerialConsoleEnabled_; /** - * - * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -1016,7 +894,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild
    * 
* * bool interactive_serial_console_enabled = 10; - * * @return The interactiveSerialConsoleEnabled. */ @java.lang.Override @@ -1027,14 +904,11 @@ public boolean getInteractiveSerialConsoleEnabled() { public static final int OS_IMAGE_FIELD_NUMBER = 12; private volatile java.lang.Object osImage_; /** - * - * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; - * * @return The osImage. */ @java.lang.Override @@ -1043,29 +917,29 @@ public java.lang.String getOsImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osImage_ = s; return s; } } /** - * - * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; - * * @return The bytes for osImage. */ @java.lang.Override - public com.google.protobuf.ByteString getOsImageBytes() { + public com.google.protobuf.ByteString + getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); osImage_ = b; return b; } else { @@ -1076,8 +950,6 @@ public com.google.protobuf.ByteString getOsImageBytes() { public static final int POD_FIELD_NUMBER = 13; private volatile java.lang.Object pod_; /** - * - * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -1086,7 +958,6 @@ public com.google.protobuf.ByteString getOsImageBytes() {
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ @java.lang.Override @@ -1095,15 +966,14 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** - * - * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -1112,15 +982,16 @@ public java.lang.String getPod() {
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString getPodBytes() { + public com.google.protobuf.ByteString + getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pod_ = b; return b; } else { @@ -1131,8 +1002,6 @@ public com.google.protobuf.ByteString getPodBytes() { public static final int NETWORK_TEMPLATE_FIELD_NUMBER = 14; private volatile java.lang.Object networkTemplate_; /** - * - * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -1140,7 +1009,6 @@ public com.google.protobuf.ByteString getPodBytes() {
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The networkTemplate. */ @java.lang.Override @@ -1149,15 +1017,14 @@ public java.lang.String getNetworkTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkTemplate_ = s; return s; } } /** - * - * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -1165,15 +1032,16 @@ public java.lang.String getNetworkTemplate() {
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for networkTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkTemplateBytes() { + public com.google.protobuf.ByteString + getNetworkTemplateBytes() { java.lang.Object ref = networkTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkTemplate_ = b; return b; } else { @@ -1184,8 +1052,6 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() { public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 15; private java.util.List logicalInterfaces_; /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1196,17 +1062,13 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ @java.lang.Override - public java.util.List - getLogicalInterfacesList() { + public java.util.List getLogicalInterfacesList() { return logicalInterfaces_; } /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1217,17 +1079,14 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ @java.lang.Override - public java.util.List + public java.util.List getLogicalInterfacesOrBuilderList() { return logicalInterfaces_; } /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1238,16 +1097,13 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ @java.lang.Override public int getLogicalInterfacesCount() { return logicalInterfaces_.size(); } /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1258,16 +1114,13 @@ public int getLogicalInterfacesCount() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { return logicalInterfaces_.get(index); } /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1278,17 +1131,15 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder - getLogicalInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { return logicalInterfaces_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1300,7 +1151,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_); } @@ -1313,15 +1165,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineType_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (hyperthreadingEnabled_ != false) { output.writeBool(6, hyperthreadingEnabled_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 7); for (int i = 0; i < luns_.size(); i++) { output.writeMessage(8, luns_.get(i)); } @@ -1359,41 +1214,45 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineType_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (hyperthreadingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, hyperthreadingEnabled_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, hyperthreadingEnabled_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, labels__); } for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, luns_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, networks_.get(i)); } if (interactiveSerialConsoleEnabled_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 10, interactiveSerialConsoleEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, interactiveSerialConsoleEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); @@ -1408,8 +1267,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, networkTemplate_); } for (int i = 0; i < logicalInterfaces_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(15, logicalInterfaces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, logicalInterfaces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1419,36 +1278,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Instance)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Instance other = - (com.google.cloud.baremetalsolution.v2.Instance) obj; + com.google.cloud.baremetalsolution.v2.Instance other = (com.google.cloud.baremetalsolution.v2.Instance) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getMachineType().equals(other.getMachineType())) return false; + if (!getMachineType() + .equals(other.getMachineType())) return false; if (state_ != other.state_) return false; - if (getHyperthreadingEnabled() != other.getHyperthreadingEnabled()) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getLunsList().equals(other.getLunsList())) return false; - if (!getNetworksList().equals(other.getNetworksList())) return false; - if (getInteractiveSerialConsoleEnabled() != other.getInteractiveSerialConsoleEnabled()) - return false; - if (!getOsImage().equals(other.getOsImage())) return false; - if (!getPod().equals(other.getPod())) return false; - if (!getNetworkTemplate().equals(other.getNetworkTemplate())) return false; - if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false; + if (getHyperthreadingEnabled() + != other.getHyperthreadingEnabled()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getLunsList() + .equals(other.getLunsList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (getInteractiveSerialConsoleEnabled() + != other.getInteractiveSerialConsoleEnabled()) return false; + if (!getOsImage() + .equals(other.getOsImage())) return false; + if (!getPod() + .equals(other.getPod())) return false; + if (!getNetworkTemplate() + .equals(other.getNetworkTemplate())) return false; + if (!getLogicalInterfacesList() + .equals(other.getLogicalInterfacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1477,7 +1348,8 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + HYPERTHREADING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHyperthreadingEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHyperthreadingEnabled()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -1491,9 +1363,8 @@ public int hashCode() { hash = (53 * hash) + getNetworksList().hashCode(); } hash = (37 * hash) + INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getInteractiveSerialConsoleEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInteractiveSerialConsoleEnabled()); hash = (37 * hash) + OS_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getOsImage().hashCode(); hash = (37 * hash) + POD_FIELD_NUMBER; @@ -1509,147 +1380,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Instance) com.google.cloud.baremetalsolution.v2.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 7: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, - com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Instance.newBuilder() @@ -1657,19 +1521,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLunsFieldBuilder(); getNetworksFieldBuilder(); getLogicalInterfacesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1726,9 +1590,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @java.lang.Override @@ -1747,8 +1611,7 @@ public com.google.cloud.baremetalsolution.v2.Instance build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { - com.google.cloud.baremetalsolution.v2.Instance result = - new com.google.cloud.baremetalsolution.v2.Instance(this); + com.google.cloud.baremetalsolution.v2.Instance result = new com.google.cloud.baremetalsolution.v2.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -1806,39 +1669,38 @@ public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Instance) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance)other); } else { super.mergeFrom(other); return this; @@ -1871,7 +1733,8 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { if (other.getHyperthreadingEnabled() != false) { setHyperthreadingEnabled(other.getHyperthreadingEnabled()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -1890,10 +1753,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000002); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLunsFieldBuilder() - : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLunsFieldBuilder() : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -1917,10 +1779,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -1959,10 +1820,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { logicalInterfacesBuilder_ = null; logicalInterfaces_ = other.logicalInterfaces_; bitField0_ = (bitField0_ & ~0x00000008); - logicalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogicalInterfacesFieldBuilder() - : null; + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogicalInterfacesFieldBuilder() : null; } else { logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); } @@ -1996,13 +1856,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2012,13 +1869,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2027,8 +1884,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2038,14 +1893,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2053,8 +1909,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2064,22 +1918,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2089,18 +1941,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2110,16 +1959,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2127,20 +1976,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; - * * @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; @@ -2149,21 +1996,20 @@ public java.lang.String getId() { } } /** - * - * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; - * * @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 { @@ -2171,61 +2017,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; - * * @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; } /** - * - * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; - * * @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; @@ -2233,58 +2072,39 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2300,17 +2120,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2321,21 +2138,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2347,15 +2160,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2369,64 +2178,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2434,58 +2227,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2501,17 +2275,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2522,21 +2293,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2548,15 +2315,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2570,64 +2333,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2635,8 +2382,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object machineType_ = ""; /** - * - * *
      * The server type.
      * [Available server
@@ -2644,13 +2389,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string machine_type = 4; - * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -2659,8 +2404,6 @@ public java.lang.String getMachineType() { } } /** - * - * *
      * The server type.
      * [Available server
@@ -2668,14 +2411,15 @@ public java.lang.String getMachineType() {
      * 
* * string machine_type = 4; - * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -2683,8 +2427,6 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } } /** - * - * *
      * The server type.
      * [Available server
@@ -2692,22 +2434,20 @@ public com.google.protobuf.ByteString getMachineTypeBytes() {
      * 
* * string machine_type = 4; - * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType(java.lang.String value) { + public Builder setMachineType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** - * - * *
      * The server type.
      * [Available server
@@ -2715,18 +2455,15 @@ public Builder setMachineType(java.lang.String value) {
      * 
* * string machine_type = 4; - * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** - * - * *
      * The server type.
      * [Available server
@@ -2734,16 +2471,16 @@ public Builder clearMachineType() {
      * 
* * string machine_type = 4; - * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; @@ -2751,67 +2488,51 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = - com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2819,40 +2540,34 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Instance.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private boolean hyperthreadingEnabled_; + private boolean hyperthreadingEnabled_ ; /** - * - * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; - * * @return The hyperthreadingEnabled. */ @java.lang.Override @@ -2860,58 +2575,53 @@ public boolean getHyperthreadingEnabled() { return hyperthreadingEnabled_; } /** - * - * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; - * * @param value The hyperthreadingEnabled to set. * @return This builder for chaining. */ public Builder setHyperthreadingEnabled(boolean value) { - + hyperthreadingEnabled_ = value; onChanged(); return this; } /** - * - * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; - * * @return This builder for chaining. */ public Builder clearHyperthreadingEnabled() { - + hyperthreadingEnabled_ = false; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2923,30 +2633,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2954,12 +2662,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 7; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2967,17 +2674,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2985,11 +2691,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2997,83 +2704,80 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.util.List luns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> - lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3088,8 +2792,6 @@ public java.util.List getLunsList() { } } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3104,8 +2806,6 @@ public int getLunsCount() { } } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3120,15 +2820,14 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3142,8 +2841,6 @@ public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun valu return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3162,8 +2859,6 @@ public Builder setLuns( return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3184,15 +2879,14 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3206,15 +2900,14 @@ public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun valu return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns( + com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -3225,8 +2918,6 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builder return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3245,8 +2936,6 @@ public Builder addLuns( return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3257,7 +2946,8 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -3265,8 +2955,6 @@ public Builder addAllLuns( return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3284,8 +2972,6 @@ public Builder clearLuns() { return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3303,44 +2989,39 @@ public Builder removeLuns(int index) { return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( + int index) { return getLunsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { if (lunsBuilder_ == null) { - return luns_.get(index); - } else { + return luns_.get(index); } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -3348,8 +3029,6 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int i } } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3357,72 +3036,60 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int i * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { - return getLunsFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( + int index) { + return getLunsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public java.util.List getLunsBuilderList() { + public java.util.List + getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); luns_ = null; } return lunsBuilder_; } private java.util.List networks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - networks_ = - new java.util.ArrayList(networks_); + networks_ = new java.util.ArrayList(networks_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3437,8 +3104,6 @@ public java.util.List getNetworks } } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3453,8 +3118,6 @@ public int getNetworksCount() { } } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3469,15 +3132,14 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3491,8 +3153,6 @@ public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Netw return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3511,8 +3171,6 @@ public Builder setNetworks( return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3533,15 +3191,14 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3555,8 +3212,6 @@ public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Netw return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3575,8 +3230,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3595,8 +3248,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3607,7 +3258,8 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -3615,8 +3267,6 @@ public Builder addAllNetworks( return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3634,8 +3284,6 @@ public Builder clearNetworks() { return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3653,44 +3301,39 @@ public Builder removeNetworks(int index) { return this; } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( + int index) { return getNetworksFieldBuilder().getBuilder(index); } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { if (networksBuilder_ == null) { - return networks_.get(index); - } else { + return networks_.get(index); } else { return networksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -3698,8 +3341,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3707,57 +3348,49 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { - return getNetworksFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( + int index) { + return getNetworksFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); networks_ = null; } return networksBuilder_; } - private boolean interactiveSerialConsoleEnabled_; + private boolean interactiveSerialConsoleEnabled_ ; /** - * - * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3765,7 +3398,6 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(
      * 
* * bool interactive_serial_console_enabled = 10; - * * @return The interactiveSerialConsoleEnabled. */ @java.lang.Override @@ -3773,8 +3405,6 @@ public boolean getInteractiveSerialConsoleEnabled() { return interactiveSerialConsoleEnabled_; } /** - * - * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3782,19 +3412,16 @@ public boolean getInteractiveSerialConsoleEnabled() {
      * 
* * bool interactive_serial_console_enabled = 10; - * * @param value The interactiveSerialConsoleEnabled to set. * @return This builder for chaining. */ public Builder setInteractiveSerialConsoleEnabled(boolean value) { - + interactiveSerialConsoleEnabled_ = value; onChanged(); return this; } /** - * - * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3802,11 +3429,10 @@ public Builder setInteractiveSerialConsoleEnabled(boolean value) {
      * 
* * bool interactive_serial_console_enabled = 10; - * * @return This builder for chaining. */ public Builder clearInteractiveSerialConsoleEnabled() { - + interactiveSerialConsoleEnabled_ = false; onChanged(); return this; @@ -3814,20 +3440,18 @@ public Builder clearInteractiveSerialConsoleEnabled() { private java.lang.Object osImage_ = ""; /** - * - * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; - * * @return The osImage. */ public java.lang.String getOsImage() { java.lang.Object ref = osImage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osImage_ = s; return s; @@ -3836,21 +3460,20 @@ public java.lang.String getOsImage() { } } /** - * - * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; - * * @return The bytes for osImage. */ - public com.google.protobuf.ByteString getOsImageBytes() { + public com.google.protobuf.ByteString + getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); osImage_ = b; return b; } else { @@ -3858,61 +3481,54 @@ public com.google.protobuf.ByteString getOsImageBytes() { } } /** - * - * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; - * * @param value The osImage to set. * @return This builder for chaining. */ - public Builder setOsImage(java.lang.String value) { + public Builder setOsImage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + osImage_ = value; onChanged(); return this; } /** - * - * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; - * * @return This builder for chaining. */ public Builder clearOsImage() { - + osImage_ = getDefaultInstance().getOsImage(); onChanged(); return this; } /** - * - * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; - * * @param value The bytes for osImage to set. * @return This builder for chaining. */ - public Builder setOsImageBytes(com.google.protobuf.ByteString value) { + public Builder setOsImageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + osImage_ = value; onChanged(); return this; @@ -3920,8 +3536,6 @@ public Builder setOsImageBytes(com.google.protobuf.ByteString value) { private java.lang.Object pod_ = ""; /** - * - * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3930,13 +3544,13 @@ public Builder setOsImageBytes(com.google.protobuf.ByteString value) {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -3945,8 +3559,6 @@ public java.lang.String getPod() { } } /** - * - * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3955,14 +3567,15 @@ public java.lang.String getPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ - public com.google.protobuf.ByteString getPodBytes() { + public com.google.protobuf.ByteString + getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pod_ = b; return b; } else { @@ -3970,8 +3583,6 @@ public com.google.protobuf.ByteString getPodBytes() { } } /** - * - * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3980,22 +3591,20 @@ public com.google.protobuf.ByteString getPodBytes() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod(java.lang.String value) { + public Builder setPod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -4004,18 +3613,15 @@ public Builder setPod(java.lang.String value) {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** - * - * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -4024,16 +3630,16 @@ public Builder clearPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes(com.google.protobuf.ByteString value) { + public Builder setPodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = value; onChanged(); return this; @@ -4041,8 +3647,6 @@ public Builder setPodBytes(com.google.protobuf.ByteString value) { private java.lang.Object networkTemplate_ = ""; /** - * - * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -4050,13 +3654,13 @@ public Builder setPodBytes(com.google.protobuf.ByteString value) {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The networkTemplate. */ public java.lang.String getNetworkTemplate() { java.lang.Object ref = networkTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkTemplate_ = s; return s; @@ -4065,8 +3669,6 @@ public java.lang.String getNetworkTemplate() { } } /** - * - * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -4074,14 +3676,15 @@ public java.lang.String getNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for networkTemplate. */ - public com.google.protobuf.ByteString getNetworkTemplateBytes() { + public com.google.protobuf.ByteString + getNetworkTemplateBytes() { java.lang.Object ref = networkTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkTemplate_ = b; return b; } else { @@ -4089,8 +3692,6 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() { } } /** - * - * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -4098,22 +3699,20 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @param value The networkTemplate to set. * @return This builder for chaining. */ - public Builder setNetworkTemplate(java.lang.String value) { + public Builder setNetworkTemplate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + networkTemplate_ = value; onChanged(); return this; } /** - * - * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -4121,18 +3720,15 @@ public Builder setNetworkTemplate(java.lang.String value) {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearNetworkTemplate() { - + networkTemplate_ = getDefaultInstance().getNetworkTemplate(); onChanged(); return this; } /** - * - * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -4140,42 +3736,34 @@ public Builder clearNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for networkTemplate to set. * @return This builder for chaining. */ - public Builder setNetworkTemplateBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkTemplateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkTemplate_ = value; onChanged(); return this; } - private java.util.List - logicalInterfaces_ = java.util.Collections.emptyList(); - + private java.util.List logicalInterfaces_ = + java.util.Collections.emptyList(); private void ensureLogicalInterfacesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - logicalInterfaces_ = - new java.util.ArrayList( - logicalInterfaces_); + logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, - com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, - com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> - logicalInterfacesBuilder_; + com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4186,11 +3774,9 @@ private void ensureLogicalInterfacesIsMutable() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public java.util.List - getLogicalInterfacesList() { + public java.util.List getLogicalInterfacesList() { if (logicalInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalInterfaces_); } else { @@ -4198,8 +3784,6 @@ private void ensureLogicalInterfacesIsMutable() { } } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4210,8 +3794,7 @@ private void ensureLogicalInterfacesIsMutable() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public int getLogicalInterfacesCount() { if (logicalInterfacesBuilder_ == null) { @@ -4221,8 +3804,6 @@ public int getLogicalInterfacesCount() { } } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4233,8 +3814,7 @@ public int getLogicalInterfacesCount() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -4244,8 +3824,6 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac } } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4256,8 +3834,7 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder setLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { @@ -4274,8 +3851,6 @@ public Builder setLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4286,8 +3861,7 @@ public Builder setLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder setLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -4301,8 +3875,6 @@ public Builder setLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4313,11 +3885,9 @@ public Builder setLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public Builder addLogicalInterfaces( - com.google.cloud.baremetalsolution.v2.LogicalInterface value) { + public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4331,8 +3901,6 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4343,8 +3911,7 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder addLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { @@ -4361,8 +3928,6 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4373,8 +3938,7 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder addLogicalInterfaces( com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -4388,8 +3952,6 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4400,8 +3962,7 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder addLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -4415,8 +3976,6 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4427,15 +3986,14 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder addAllLogicalInterfaces( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalInterfaces_); onChanged(); } else { logicalInterfacesBuilder_.addAllMessages(values); @@ -4443,8 +4001,6 @@ public Builder addAllLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4455,8 +4011,7 @@ public Builder addAllLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder clearLogicalInterfaces() { if (logicalInterfacesBuilder_ == null) { @@ -4469,8 +4024,6 @@ public Builder clearLogicalInterfaces() { return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4481,8 +4034,7 @@ public Builder clearLogicalInterfaces() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder removeLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -4495,8 +4047,6 @@ public Builder removeLogicalInterfaces(int index) { return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4507,16 +4057,13 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder - getLogicalInterfacesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder getLogicalInterfacesBuilder( + int index) { return getLogicalInterfacesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4527,20 +4074,16 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder - getLogicalInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { if (logicalInterfacesBuilder_ == null) { - return logicalInterfaces_.get(index); - } else { + return logicalInterfaces_.get(index); } else { return logicalInterfacesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4551,11 +4094,10 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public java.util.List - getLogicalInterfacesOrBuilderList() { + public java.util.List + getLogicalInterfacesOrBuilderList() { if (logicalInterfacesBuilder_ != null) { return logicalInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -4563,8 +4105,6 @@ public Builder removeLogicalInterfaces(int index) { } } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4575,17 +4115,13 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder - addLogicalInterfacesBuilder() { - return getLogicalInterfacesFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4596,18 +4132,14 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder - addLogicalInterfacesBuilder(int index) { - return getLogicalInterfacesFieldBuilder() - .addBuilder( - index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder( + int index) { + return getLogicalInterfacesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4618,25 +4150,18 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public java.util.List - getLogicalInterfacesBuilderList() { + public java.util.List + getLogicalInterfacesBuilderList() { return getLogicalInterfacesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, - com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, - com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> getLogicalInterfacesFieldBuilder() { if (logicalInterfacesBuilder_ == null) { - logicalInterfacesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, - com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, - com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( + logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( logicalInterfaces_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -4645,9 +4170,9 @@ public Builder removeLogicalInterfaces(int index) { } return logicalInterfacesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4657,12 +4182,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Instance) private static final com.google.cloud.baremetalsolution.v2.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Instance(); } @@ -4671,16 +4196,16 @@ public static com.google.cloud.baremetalsolution.v2.Instance getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4695,4 +4220,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java similarity index 83% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java index d375ed9..eccecfd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -35,13 +17,10 @@ public interface InstanceOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -51,115 +30,86 @@ public interface InstanceOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * The server type.
    * [Available server
@@ -167,13 +117,10 @@ public interface InstanceOrBuilder
    * 
* * string machine_type = 4; - * * @return The machineType. */ java.lang.String getMachineType(); /** - * - * *
    * The server type.
    * [Available server
@@ -181,53 +128,42 @@ public interface InstanceOrBuilder
    * 
* * string machine_type = 4; - * * @return The bytes for machineType. */ - com.google.protobuf.ByteString getMachineTypeBytes(); + com.google.protobuf.ByteString + getMachineTypeBytes(); /** - * - * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Instance.State getState(); /** - * - * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; - * * @return The hyperthreadingEnabled. */ boolean getHyperthreadingEnabled(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -236,31 +172,30 @@ public interface InstanceOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -269,34 +204,31 @@ public interface InstanceOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List getLunsList(); + java.util.List + getLunsList(); /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -305,8 +237,6 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -315,40 +245,34 @@ java.lang.String getLabelsOrDefault( */ int getLunsCount(); /** - * - * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** - * - * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index); /** - * - * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List getNetworksList(); + java.util.List + getNetworksList(); /** - * - * *
    * List of networks associated with this server.
    * 
@@ -357,8 +281,6 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** - * - * *
    * List of networks associated with this server.
    * 
@@ -367,30 +289,25 @@ java.lang.String getLabelsOrDefault( */ int getNetworksCount(); /** - * - * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** - * - * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index); /** - * - * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -398,39 +315,31 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool interactive_serial_console_enabled = 10; - * * @return The interactiveSerialConsoleEnabled. */ boolean getInteractiveSerialConsoleEnabled(); /** - * - * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; - * * @return The osImage. */ java.lang.String getOsImage(); /** - * - * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; - * * @return The bytes for osImage. */ - com.google.protobuf.ByteString getOsImageBytes(); + com.google.protobuf.ByteString + getOsImageBytes(); /** - * - * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -439,13 +348,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ java.lang.String getPod(); /** - * - * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -454,14 +360,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ - com.google.protobuf.ByteString getPodBytes(); + com.google.protobuf.ByteString + getPodBytes(); /** - * - * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -469,13 +373,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The networkTemplate. */ java.lang.String getNetworkTemplate(); /** - * - * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -483,14 +384,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for networkTemplate. */ - com.google.protobuf.ByteString getNetworkTemplateBytes(); + com.google.protobuf.ByteString + getNetworkTemplateBytes(); /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -501,13 +400,11 @@ java.lang.String getLabelsOrDefault(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - java.util.List getLogicalInterfacesList(); + java.util.List + getLogicalInterfacesList(); /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -518,13 +415,10 @@ java.lang.String getLabelsOrDefault(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index); /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -535,13 +429,10 @@ java.lang.String getLabelsOrDefault(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ int getLogicalInterfacesCount(); /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -552,14 +443,11 @@ java.lang.String getLabelsOrDefault(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - java.util.List + java.util.List getLogicalInterfacesOrBuilderList(); /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -570,8 +458,7 @@ java.lang.String getLabelsOrDefault(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( int index); diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java new file mode 100644 index 0000000..1c4d7e3 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java @@ -0,0 +1,283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class InstanceProto { + private InstanceProto() {} + 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_baremetalsolution_v2_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/baremetalsolution/v2/inst" + + "ance.proto\022!google.cloud.baremetalsoluti" + + "on.v2\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032+google/cloud/" + + "baremetalsolution/v2/lun.proto\032/google/c" + + "loud/baremetalsolution/v2/network.proto\032" + + " google/protobuf/field_mask.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" + + "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" + + "solution.v2.Instance.State\022\036\n\026hyperthrea" + + "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" + + "gle.cloud.baremetalsolution.v2.Instance." + + "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" + + ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " + + "\003(\0132*.google.cloud.baremetalsolution.v2." + + "Network\022*\n\"interactive_serial_console_en" + + "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" + + "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" + + "baremetalsolution.googleapis.com/ServerN" + + "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" + + "(\01323.google.cloud.baremetalsolution.v2.L" + + "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" + + "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" + + "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" + + "+.google.cloud.baremetalsolution.v2.Inst" + + "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" + + "instance\030\001 \001(\0132+.google.cloud.baremetals" + + "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" + + "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")baremetalsolution.googleapis.com/Instan" + + "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" + + "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" + + "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" + + "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" + + "leapis.com/Instance\"\222\001\n\020DetachLunRequest" + + "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" + + "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" + + "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" + + ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" + + "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" + + "oogle.cloud.baremetalsolution.v2.ServerN" + + "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" + + "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" + + "2W.google.cloud.baremetalsolution.v2.Ser" + + "verNetworkTemplate.LogicalInterface.Inte" + + "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" + + "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" + + "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" + + "n.googleapis.com/ServerNetworkTemplate\022W" + + "projects/{project}/locations/{location}/" + + "serverNetworkTemplate/{server_network_te" + + "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" + + "InstanceResponseB\373\001\n%com.google.cloud.ba" + + "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/baremetalsolution/v2;baremetalsolution\252" + + "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" + + "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" + + "::Cloud::BareMetalSolution::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, + new java.lang.String[] { "Name", "Id", "CreateTime", "UpdateTime", "MachineType", "State", "HyperthreadingEnabled", "Labels", "Luns", "Networks", "InteractiveSerialConsoleEnabled", "OsImage", "Pod", "NetworkTemplate", "LogicalInterfaces", }); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "Instance", "UpdateMask", }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, + new java.lang.String[] { "Instance", "Lun", }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, + new java.lang.String[] { "Name", "ApplicableInstanceTypes", "LogicalInterfaces", }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, + new java.lang.String[] { "Name", "Type", "Required", }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, + new java.lang.String[] { }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java index 8419229..7c955f4 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ -public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) ListInstancesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstancesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListInstancesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,34 @@ private ListInstancesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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 @@ -155,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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 { @@ -190,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -225,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -258,14 +223,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -274,29 +236,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -305,7 +267,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +278,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_); } @@ -343,7 +305,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_); @@ -359,18 +322,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.baremetalsolution.v2.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = - (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.cloud.baremetalsolution.v2.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesRequest.newBuilder() @@ -524,15 +480,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override @@ -569,8 +526,7 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = - new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -583,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * - * string parent = 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; @@ -696,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * - * string parent = 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 { @@ -720,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * - * 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. Parent value for ListInstancesRequest.
      * 
* - * - * string 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. Parent value for ListInstancesRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -804,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -843,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -865,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -887,61 +808,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -949,20 +863,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -971,21 +883,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -993,68 +904,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1064,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) private static final com.google.cloud.baremetalsolution.v2.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(); } @@ -1078,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1102,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java index 10c9345..1d504fd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java @@ -1,118 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java index 69f116a..9d37ccd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message for the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ -public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) ListInstancesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstancesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,37 @@ private ListInstancesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instances_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instances_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,7 +94,8 @@ private ListInstancesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -128,27 +107,22 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** - * - * *
    * The list of servers.
    * 
@@ -160,8 +134,6 @@ public java.util.List getInstanc return instances_; } /** - * - * *
    * The list of servers.
    * 
@@ -169,13 +141,11 @@ public java.util.List getInstanc * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public java.util.List + public java.util.List getInstancesOrBuilderList() { return instances_; } /** - * - * *
    * The list of servers.
    * 
@@ -187,8 +157,6 @@ public int getInstancesCount() { return instances_.size(); } /** - * - * *
    * The list of servers.
    * 
@@ -200,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { return instances_.get(index); } /** - * - * *
    * The list of servers.
    * 
@@ -209,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( + int index) { return instances_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -265,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -308,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = - (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.cloud.baremetalsolution.v2.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesResponse.newBuilder() @@ -543,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getInstancesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override @@ -592,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = - new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -678,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResp instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -720,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,29 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList(instances_); + instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> - instancesBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instancesBuilder_; /** - * - * *
      * The list of servers.
      * 
@@ -767,8 +701,6 @@ public java.util.List getInstanc } } /** - * - * *
      * The list of servers.
      * 
@@ -783,8 +715,6 @@ public int getInstancesCount() { } } /** - * - * *
      * The list of servers.
      * 
@@ -799,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { } } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder setInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder setInstances( + int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setInstances(int index, com.google.cloud.baremetalsolution.v2.Ins return this; } /** - * - * *
      * The list of servers.
      * 
@@ -841,8 +768,6 @@ public Builder setInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -863,15 +788,14 @@ public Builder addInstances(com.google.cloud.baremetalsolution.v2.Instance value return this; } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder addInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder addInstances( + int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,8 +809,6 @@ public Builder addInstances(int index, com.google.cloud.baremetalsolution.v2.Ins return this; } /** - * - * *
      * The list of servers.
      * 
@@ -905,8 +827,6 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -925,8 +845,6 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -937,7 +855,8 @@ public Builder addAllInstances( java.lang.Iterable values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); @@ -945,8 +864,6 @@ public Builder addAllInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -964,8 +881,6 @@ public Builder clearInstances() { return this; } /** - * - * *
      * The list of servers.
      * 
@@ -983,20 +898,17 @@ public Builder removeInstances(int index) { return this; } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder( + int index) { return getInstancesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of servers.
      * 
@@ -1006,22 +918,19 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilde public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( int index) { if (instancesBuilder_ == null) { - return instances_.get(index); - } else { + return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -1029,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui } } /** - * - * *
      * The list of servers.
      * 
@@ -1038,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + return getInstancesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder(int index) { - return getInstancesFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + instances_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); instances_ = null; } return instancesBuilder_; @@ -1087,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1109,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1131,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1244,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1337,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1370,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) private static final com.google.cloud.baremetalsolution.v2.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(); } @@ -1384,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1408,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java index 65768d2..5523911 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List getInstancesList(); + java.util.List + getInstancesList(); /** - * - * *
    * The list of servers.
    * 
@@ -44,8 +25,6 @@ public interface ListInstancesResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Instance getInstances(int index); /** - * - * *
    * The list of servers.
    * 
@@ -54,100 +33,82 @@ public interface ListInstancesResponseOrBuilder */ int getInstancesCount(); /** - * - * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** - * - * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java similarity index 67% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java index 625cb29..78bf806 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ -public final class ListLunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) ListLunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLunsRequest.newBuilder() to construct. private ListLunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLunsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListLunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListLunsRequest( 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,41 +85,34 @@ private ListLunsRequest( } 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.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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 @@ -147,31 +121,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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 { @@ -182,15 +154,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -201,14 +170,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -217,29 +183,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -248,7 +214,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +225,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_); } @@ -283,7 +249,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_); @@ -296,17 +263,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.baremetalsolution.v2.ListLunsRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsRequest other = - (com.google.cloud.baremetalsolution.v2.ListLunsRequest) obj; + com.google.cloud.baremetalsolution.v2.ListLunsRequest other = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) 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; } @@ -330,127 +299,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.cloud.baremetalsolution.v2.ListLunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsRequest.newBuilder() @@ -458,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override @@ -501,8 +461,7 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsRequest result = - new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); + com.google.cloud.baremetalsolution.v2.ListLunsRequest result = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -514,39 +473,38 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest)other); } else { super.mergeFrom(other); return this; @@ -554,8 +512,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -586,8 +543,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,22 +555,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * - * string parent = 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; @@ -623,23 +575,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * - * string parent = 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 { @@ -647,83 +596,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * - * 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. Parent value for ListLunsRequest.
      * 
* - * - * string 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. Parent value for ListLunsRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -731,38 +664,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -770,20 +697,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -792,21 +717,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -814,68 +738,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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); } @@ -885,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) private static final com.google.cloud.baremetalsolution.v2.ListLunsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(); } @@ -899,16 +816,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java index c79ee15..633ab6f 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java @@ -1,93 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsRequestOrBuilder - extends +public interface ListLunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java index e1c0471..46512a7 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ -public final class ListLunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) ListLunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLunsResponse.newBuilder() to construct. private ListLunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLunsResponse() { luns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListLunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListLunsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - luns_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + luns_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListLunsResponse( } 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)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -127,27 +107,22 @@ private ListLunsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } public static final int LUNS_FIELD_NUMBER = 1; private java.util.List luns_; /** - * - * *
    * The list of luns.
    * 
@@ -159,8 +134,6 @@ public java.util.List getLunsList() { return luns_; } /** - * - * *
    * The list of luns.
    * 
@@ -168,13 +141,11 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** - * - * *
    * The list of luns.
    * 
@@ -186,8 +157,6 @@ public int getLunsCount() { return luns_.size(); } /** - * - * *
    * The list of luns.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** - * - * *
    * The list of luns.
    * 
@@ -208,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { return luns_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -264,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -307,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < luns_.size(); i++) { output.writeMessage(1, luns_.get(i)); } @@ -355,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, luns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -376,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsResponse other = - (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; + com.google.cloud.baremetalsolution.v2.ListLunsResponse other = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; - if (!getLunsList().equals(other.getLunsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getLunsList() + .equals(other.getLunsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.cloud.baremetalsolution.v2.ListLunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsResponse.newBuilder() @@ -542,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override @@ -591,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsResponse result = - new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); + com.google.cloud.baremetalsolution.v2.ListLunsResponse result = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); int from_bitField0_ = bitField0_; if (lunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -617,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse)other); } else { super.mergeFrom(other); return this; @@ -657,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) return this; if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -677,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000001); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLunsFieldBuilder() - : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLunsFieldBuilder() : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -719,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -729,28 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List luns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> - lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; /** - * - * *
      * The list of luns.
      * 
@@ -765,8 +701,6 @@ public java.util.List getLunsList() { } } /** - * - * *
      * The list of luns.
      * 
@@ -781,8 +715,6 @@ public int getLunsCount() { } } /** - * - * *
      * The list of luns.
      * 
@@ -797,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,8 +750,6 @@ public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun valu return this; } /** - * - * *
      * The list of luns.
      * 
@@ -839,8 +768,6 @@ public Builder setLuns( return this; } /** - * - * *
      * The list of luns.
      * 
@@ -861,15 +788,14 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -883,15 +809,14 @@ public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun valu return this; } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns( + com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -902,8 +827,6 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builder return this; } /** - * - * *
      * The list of luns.
      * 
@@ -922,8 +845,6 @@ public Builder addLuns( return this; } /** - * - * *
      * The list of luns.
      * 
@@ -934,7 +855,8 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -942,8 +864,6 @@ public Builder addAllLuns( return this; } /** - * - * *
      * The list of luns.
      * 
@@ -961,8 +881,6 @@ public Builder clearLuns() { return this; } /** - * - * *
      * The list of luns.
      * 
@@ -980,44 +898,39 @@ public Builder removeLuns(int index) { return this; } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( + int index) { return getLunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { if (lunsBuilder_ == null) { - return luns_.get(index); - } else { + return luns_.get(index); } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -1025,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int i } } /** - * - * *
      * The list of luns.
      * 
@@ -1034,47 +945,42 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int i * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { - return getLunsFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( + int index) { + return getLunsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List getLunsBuilderList() { + public java.util.List + getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); luns_ = null; } return lunsBuilder_; @@ -1082,20 +988,18 @@ public java.util.List getLuns private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1104,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1126,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1239,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1332,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1365,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) private static final com.google.cloud.baremetalsolution.v2.ListLunsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(); } @@ -1379,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1403,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java index 4e01c38..23a95a3 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsResponseOrBuilder - extends +public interface ListLunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List getLunsList(); + java.util.List + getLunsList(); /** - * - * *
    * The list of luns.
    * 
@@ -44,8 +25,6 @@ public interface ListLunsResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** - * - * *
    * The list of luns.
    * 
@@ -54,100 +33,82 @@ public interface ListLunsResponseOrBuilder */ int getLunsCount(); /** - * - * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** - * - * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java similarity index 63% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java index 98e6e14..4c7201a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Request to get networks with IPs.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} */ -public final class ListNetworkUsageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNetworkUsageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) ListNetworkUsageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNetworkUsageRequest.newBuilder() to construct. private ListNetworkUsageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNetworkUsageRequest() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNetworkUsageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNetworkUsageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ListNetworkUsageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + location_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private ListNetworkUsageRequest( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** - * - * *
    * Required. Parent value (project and location).
    * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The location. */ @java.lang.Override @@ -134,31 +109,29 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
    * Required. Parent value (project and location).
    * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = - (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; - if (!getLocation().equals(other.getLocation())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to get networks with IPs.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,14 +341,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance(); } @@ -399,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = - new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); result.location_ = location_; onBuilt(); return result; @@ -410,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)other); } else { super.mergeFrom(other); return this; @@ -450,9 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -476,9 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** - * - * *
      * Required. Parent value (project and location).
      * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -514,23 +467,20 @@ public java.lang.String getLocation() { } } /** - * - * *
      * Required. Parent value (project and location).
      * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -538,74 +488,61 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
      * Required. Parent value (project and location).
      * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
      * Required. Parent value (project and location).
      * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
      * Required. Parent value (project and location).
      * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = 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); } @@ -615,13 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(); } @@ -630,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworkUsageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworkUsageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java new file mode 100644 index 0000000..e4cb363 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ListNetworkUsageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent value (project and location).
+   * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The location. + */ + java.lang.String getLocation(); + /** + *
+   * Required. Parent value (project and location).
+   * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for location. + */ + com.google.protobuf.ByteString + getLocationBytes(); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java similarity index 71% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java index 78f0f77..470b090 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response with Networks with IPs
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} */ -public final class ListNetworkUsageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNetworkUsageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) ListNetworkUsageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNetworkUsageResponse.newBuilder() to construct. private ListNetworkUsageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNetworkUsageResponse() { networks_ = 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 ListNetworkUsageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNetworkUsageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,26 +54,22 @@ private ListNetworkUsageResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - networks_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.NetworkUsage.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + networks_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkUsage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,7 +77,8 @@ private ListNetworkUsageResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -107,27 +87,22 @@ private ListNetworkUsageResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** - * - * *
    * Networks with IPs.
    * 
@@ -139,8 +114,6 @@ public java.util.List getNet return networks_; } /** - * - * *
    * Networks with IPs.
    * 
@@ -148,13 +121,11 @@ public java.util.List getNet * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** - * - * *
    * Networks with IPs.
    * 
@@ -166,8 +137,6 @@ public int getNetworksCount() { return networks_.size(); } /** - * - * *
    * Networks with IPs.
    * 
@@ -179,8 +148,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) return networks_.get(index); } /** - * - * *
    * Networks with IPs.
    * 
@@ -194,7 +161,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +172,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 < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -220,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, networks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,15 +198,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.baremetalsolution.v2.ListNetworkUsageResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = - (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; - if (!getNetworksList().equals(other.getNetworksList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 with Networks with IPs
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.newBuilder() @@ -388,17 +346,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) { getNetworksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -412,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance(); } @@ -434,8 +391,7 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = - new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -454,39 +410,38 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse)other); } else { super.mergeFrom(other); return this; @@ -494,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other) { - if (other - == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -515,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageR networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -543,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,29 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = - new java.util.ArrayList(networks_); + networks_ = new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, - com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> - networksBuilder_; + com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> networksBuilder_; /** - * - * *
      * Networks with IPs.
      * 
@@ -591,8 +533,6 @@ public java.util.List getNet } } /** - * - * *
      * Networks with IPs.
      * 
@@ -607,8 +547,6 @@ public int getNetworksCount() { } } /** - * - * *
      * Networks with IPs.
      * 
@@ -623,8 +561,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) } } /** - * - * *
      * Networks with IPs.
      * 
@@ -646,8 +582,6 @@ public Builder setNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -666,8 +600,6 @@ public Builder setNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -688,8 +620,6 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.NetworkUsage va return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -711,8 +641,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -731,8 +659,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -751,8 +677,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -763,7 +687,8 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -771,8 +696,6 @@ public Builder addAllNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -790,8 +713,6 @@ public Builder clearNetworks() { return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -809,8 +730,6 @@ public Builder removeNetworks(int index) { return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -822,8 +741,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBui return getNetworksFieldBuilder().getBuilder(index); } /** - * - * *
      * Networks with IPs.
      * 
@@ -833,22 +750,19 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBui public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( int index) { if (networksBuilder_ == null) { - return networks_.get(index); - } else { + return networks_.get(index); } else { return networksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Networks with IPs.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -856,8 +770,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr } } /** - * - * *
      * Networks with IPs.
      * 
@@ -865,12 +777,10 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder() { - return getNetworksFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + return getNetworksFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); } /** - * - * *
      * Networks with IPs.
      * 
@@ -879,43 +789,37 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBui */ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder( int index) { - return getNetworksFieldBuilder() - .addBuilder( - index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + return getNetworksFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); } /** - * - * *
      * Networks with IPs.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, - com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> + com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, - com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( - networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( + networks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); networks_ = null; } return networksBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -925,32 +829,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) - private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworkUsageResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworkUsageResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,8 +864,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java index ef8a66b..6d55ac6 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworkUsageResponseOrBuilder - extends +public interface ListNetworkUsageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - java.util.List getNetworksList(); + java.util.List + getNetworksList(); /** - * - * *
    * Networks with IPs.
    * 
@@ -44,8 +25,6 @@ public interface ListNetworkUsageResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index); /** - * - * *
    * Networks with IPs.
    * 
@@ -54,24 +33,21 @@ public interface ListNetworkUsageResponseOrBuilder */ int getNetworksCount(); /** - * - * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** - * - * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( + int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java index 276a02f..02b44ee 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ -public final class ListNetworksRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNetworksRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) ListNetworksRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNetworksRequest.newBuilder() to construct. private ListNetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNetworksRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListNetworksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNetworksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNetworksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListNetworksRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,34 @@ private ListNetworksRequest( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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 @@ -155,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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 { @@ -190,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -225,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -258,14 +223,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -274,29 +236,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -305,7 +267,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +278,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_); } @@ -343,7 +305,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_); @@ -359,18 +322,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.baremetalsolution.v2.ListNetworksRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = - (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.cloud.baremetalsolution.v2.ListNetworksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksRequest.newBuilder() @@ -524,15 +480,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override @@ -569,8 +526,7 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = - new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -583,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * - * string parent = 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; @@ -696,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * - * string parent = 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 { @@ -720,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * - * 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. Parent value for ListNetworksRequest.
      * 
* - * - * string 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. Parent value for ListNetworksRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -804,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -843,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -865,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -887,61 +808,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -949,20 +863,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -971,21 +883,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -993,68 +904,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1064,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) private static final com.google.cloud.baremetalsolution.v2.ListNetworksRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(); } @@ -1078,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1102,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java index f0ccc2f..4c26a87 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java @@ -1,118 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksRequestOrBuilder - extends +public interface ListNetworksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java index ce6d426..f98c159 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ -public final class ListNetworksResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNetworksResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) ListNetworksResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNetworksResponse.newBuilder() to construct. private ListNetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNetworksResponse() { networks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListNetworksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNetworksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNetworksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,37 @@ private ListNetworksResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - networks_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + networks_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,7 +94,8 @@ private ListNetworksResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -128,27 +107,22 @@ private ListNetworksResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** - * - * *
    * The list of networks.
    * 
@@ -160,8 +134,6 @@ public java.util.List getNetworks return networks_; } /** - * - * *
    * The list of networks.
    * 
@@ -169,13 +141,11 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** - * - * *
    * The list of networks.
    * 
@@ -187,8 +157,6 @@ public int getNetworksCount() { return networks_.size(); } /** - * - * *
    * The list of networks.
    * 
@@ -200,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** - * - * *
    * The list of networks.
    * 
@@ -209,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { return networks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -265,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -308,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworksResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = - (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; - if (!getNetworksList().equals(other.getNetworksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.cloud.baremetalsolution.v2.ListNetworksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksResponse.newBuilder() @@ -543,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getNetworksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override @@ -592,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = - new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -678,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRespo networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -720,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,29 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = - new java.util.ArrayList(networks_); + networks_ = new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; /** - * - * *
      * The list of networks.
      * 
@@ -767,8 +701,6 @@ public java.util.List getNetworks } } /** - * - * *
      * The list of networks.
      * 
@@ -783,8 +715,6 @@ public int getNetworksCount() { } } /** - * - * *
      * The list of networks.
      * 
@@ -799,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Netw return this; } /** - * - * *
      * The list of networks.
      * 
@@ -841,8 +768,6 @@ public Builder setNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -863,15 +788,14 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,8 +809,6 @@ public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Netw return this; } /** - * - * *
      * The list of networks.
      * 
@@ -905,8 +827,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -925,8 +845,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -937,7 +855,8 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -945,8 +864,6 @@ public Builder addAllNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -964,8 +881,6 @@ public Builder clearNetworks() { return this; } /** - * - * *
      * The list of networks.
      * 
@@ -983,44 +898,39 @@ public Builder removeNetworks(int index) { return this; } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( + int index) { return getNetworksFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { if (networksBuilder_ == null) { - return networks_.get(index); - } else { + return networks_.get(index); } else { return networksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -1028,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** - * - * *
      * The list of networks.
      * 
@@ -1037,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { - return getNetworksFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( + int index) { + return getNetworksFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); networks_ = null; } return networksBuilder_; @@ -1086,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1108,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1130,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1243,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1336,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1369,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) private static final com.google.cloud.baremetalsolution.v2.ListNetworksResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(); } @@ -1383,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1407,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java index 8718101..8b09c36 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksResponseOrBuilder - extends +public interface ListNetworksResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List getNetworksList(); + java.util.List + getNetworksList(); /** - * - * *
    * The list of networks.
    * 
@@ -44,8 +25,6 @@ public interface ListNetworksResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** - * - * *
    * The list of networks.
    * 
@@ -54,100 +33,82 @@ public interface ListNetworksResponseOrBuilder */ int getNetworksCount(); /** - * - * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** - * - * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java index ff77931..27cd94f 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of NFS shares.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} */ -public final class ListNfsSharesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNfsSharesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) ListNfsSharesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNfsSharesRequest.newBuilder() to construct. private ListNfsSharesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNfsSharesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListNfsSharesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNfsSharesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNfsSharesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListNfsSharesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,34 @@ private ListNfsSharesRequest( } 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.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * - * string parent = 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 @@ -155,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * - * string parent = 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 { @@ -190,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -225,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -258,14 +223,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -274,29 +236,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -305,7 +267,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +278,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_); } @@ -343,7 +305,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_); @@ -359,18 +322,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.baremetalsolution.v2.ListNfsSharesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = - (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of NFS shares.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) com.google.cloud.baremetalsolution.v2.ListNfsSharesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.newBuilder() @@ -524,15 +480,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override @@ -569,8 +526,7 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = - new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -583,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * - * string parent = 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; @@ -696,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * - * string parent = 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 { @@ -720,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * - * 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. Parent value for ListNfsSharesRequest.
      * 
* - * - * string 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. Parent value for ListNfsSharesRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -804,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -843,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -865,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -887,61 +808,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -949,20 +863,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -971,21 +883,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -993,68 +904,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1064,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(); } @@ -1078,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNfsSharesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNfsSharesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1102,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java index 195f826..c1029fe 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java @@ -1,118 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNfsSharesRequestOrBuilder - extends +public interface ListNfsSharesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * - * string parent = 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. Parent value for ListNfsSharesRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java similarity index 74% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java index c9c1e94..95fe371 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of NFS shares.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} */ -public final class ListNfsSharesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNfsSharesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) ListNfsSharesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNfsSharesResponse.newBuilder() to construct. private ListNfsSharesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNfsSharesResponse() { nfsShares_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListNfsSharesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNfsSharesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNfsSharesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,37 @@ private ListNfsSharesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nfsShares_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nfsShares_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nfsShares_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + nfsShares_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,7 +94,8 @@ private ListNfsSharesResponse( } 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)) { nfsShares_ = java.util.Collections.unmodifiableList(nfsShares_); @@ -128,27 +107,22 @@ private ListNfsSharesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); } public static final int NFS_SHARES_FIELD_NUMBER = 1; private java.util.List nfsShares_; /** - * - * *
    * The list of NFS shares.
    * 
@@ -160,8 +134,6 @@ public java.util.List getNfsShar return nfsShares_; } /** - * - * *
    * The list of NFS shares.
    * 
@@ -169,13 +141,11 @@ public java.util.List getNfsShar * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNfsSharesOrBuilderList() { return nfsShares_; } /** - * - * *
    * The list of NFS shares.
    * 
@@ -187,8 +157,6 @@ public int getNfsSharesCount() { return nfsShares_.size(); } /** - * - * *
    * The list of NFS shares.
    * 
@@ -200,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { return nfsShares_.get(index); } /** - * - * *
    * The list of NFS shares.
    * 
@@ -209,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( + int index) { return nfsShares_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -265,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -308,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < nfsShares_.size(); i++) { output.writeMessage(1, nfsShares_.get(i)); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nfsShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nfsShares_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nfsShares_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = - (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; - if (!getNfsSharesList().equals(other.getNfsSharesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getNfsSharesList() + .equals(other.getNfsSharesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of NFS shares.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) com.google.cloud.baremetalsolution.v2.ListNfsSharesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.newBuilder() @@ -543,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getNfsSharesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override @@ -592,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = - new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); int from_bitField0_ = bitField0_; if (nfsSharesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) return this; if (nfsSharesBuilder_ == null) { if (!other.nfsShares_.isEmpty()) { if (nfsShares_.isEmpty()) { @@ -678,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResp nfsSharesBuilder_ = null; nfsShares_ = other.nfsShares_; bitField0_ = (bitField0_ & ~0x00000001); - nfsSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNfsSharesFieldBuilder() - : null; + nfsSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNfsSharesFieldBuilder() : null; } else { nfsSharesBuilder_.addAllMessages(other.nfsShares_); } @@ -720,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,29 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List nfsShares_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNfsSharesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsShares_ = - new java.util.ArrayList(nfsShares_); + nfsShares_ = new java.util.ArrayList(nfsShares_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> - nfsSharesBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsSharesBuilder_; /** - * - * *
      * The list of NFS shares.
      * 
@@ -767,8 +701,6 @@ public java.util.List getNfsShar } } /** - * - * *
      * The list of NFS shares.
      * 
@@ -783,8 +715,6 @@ public int getNfsSharesCount() { } } /** - * - * *
      * The list of NFS shares.
      * 
@@ -799,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { } } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public Builder setNfsShares(int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + public Builder setNfsShares( + int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setNfsShares(int index, com.google.cloud.baremetalsolution.v2.Nfs return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -841,8 +768,6 @@ public Builder setNfsShares( return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -863,15 +788,14 @@ public Builder addNfsShares(com.google.cloud.baremetalsolution.v2.NfsShare value return this; } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public Builder addNfsShares(int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + public Builder addNfsShares( + int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,8 +809,6 @@ public Builder addNfsShares(int index, com.google.cloud.baremetalsolution.v2.Nfs return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -905,8 +827,6 @@ public Builder addNfsShares( return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -925,8 +845,6 @@ public Builder addNfsShares( return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -937,7 +855,8 @@ public Builder addAllNfsShares( java.lang.Iterable values) { if (nfsSharesBuilder_ == null) { ensureNfsSharesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsShares_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nfsShares_); onChanged(); } else { nfsSharesBuilder_.addAllMessages(values); @@ -945,8 +864,6 @@ public Builder addAllNfsShares( return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -964,8 +881,6 @@ public Builder clearNfsShares() { return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -983,20 +898,17 @@ public Builder removeNfsShares(int index) { return this; } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder( + int index) { return getNfsSharesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of NFS shares.
      * 
@@ -1006,22 +918,19 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilde public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( int index) { if (nfsSharesBuilder_ == null) { - return nfsShares_.get(index); - } else { + return nfsShares_.get(index); } else { return nfsSharesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public java.util.List - getNfsSharesOrBuilderList() { + public java.util.List + getNfsSharesOrBuilderList() { if (nfsSharesBuilder_ != null) { return nfsSharesBuilder_.getMessageOrBuilderList(); } else { @@ -1029,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBui } } /** - * - * *
      * The list of NFS shares.
      * 
@@ -1038,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBui * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder() { - return getNfsSharesFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + return getNfsSharesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder(int index) { - return getNfsSharesFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder( + int index) { + return getNfsSharesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public java.util.List - getNfsSharesBuilderList() { + public java.util.List + getNfsSharesBuilderList() { return getNfsSharesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> getNfsSharesFieldBuilder() { if (nfsSharesBuilder_ == null) { - nfsSharesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( - nfsShares_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nfsSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + nfsShares_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); nfsShares_ = null; } return nfsSharesBuilder_; @@ -1087,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1109,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1131,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1244,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1337,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1370,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(); } @@ -1384,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNfsSharesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNfsSharesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1408,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java index 219771e..4e3cedd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNfsSharesResponseOrBuilder - extends +public interface ListNfsSharesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - java.util.List getNfsSharesList(); + java.util.List + getNfsSharesList(); /** - * - * *
    * The list of NFS shares.
    * 
@@ -44,8 +25,6 @@ public interface ListNfsSharesResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index); /** - * - * *
    * The list of NFS shares.
    * 
@@ -54,100 +33,82 @@ public interface ListNfsSharesResponseOrBuilder */ int getNfsSharesCount(); /** - * - * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - java.util.List + java.util.List getNfsSharesOrBuilderList(); /** - * - * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java index 31b65d9..3fb2e23 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ -public final class ListVolumesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVolumesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) ListVolumesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVolumesRequest.newBuilder() to construct. private ListVolumesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVolumesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListVolumesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVolumesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVolumesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListVolumesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,34 @@ private ListVolumesRequest( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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 @@ -155,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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 { @@ -190,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -225,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -258,14 +223,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -274,29 +236,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -305,7 +267,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +278,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_); } @@ -343,7 +305,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_); @@ -359,18 +322,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.baremetalsolution.v2.ListVolumesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = - (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.cloud.baremetalsolution.v2.ListVolumesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesRequest.newBuilder() @@ -524,15 +480,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override @@ -569,8 +526,7 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = - new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -583,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * - * string parent = 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; @@ -696,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * - * string parent = 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 { @@ -720,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * - * 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. Parent value for ListVolumesRequest.
      * 
* - * - * string 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. Parent value for ListVolumesRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -804,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -843,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -865,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -887,61 +808,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -949,20 +863,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -971,21 +883,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -993,68 +904,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1064,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) private static final com.google.cloud.baremetalsolution.v2.ListVolumesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(); } @@ -1078,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1102,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java index 6db8315..4b30dd3 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java @@ -1,118 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesRequestOrBuilder - extends +public interface ListVolumesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java index 06aba84..0af4bba 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ -public final class ListVolumesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVolumesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) ListVolumesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVolumesResponse.newBuilder() to construct. private ListVolumesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVolumesResponse() { volumes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListVolumesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVolumesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVolumesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListVolumesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - volumes_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + volumes_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListVolumesResponse( } 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)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); @@ -127,27 +107,22 @@ private ListVolumesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } public static final int VOLUMES_FIELD_NUMBER = 1; private java.util.List volumes_; /** - * - * *
    * The list of storage volumes.
    * 
@@ -159,8 +134,6 @@ public java.util.List getVolumesLi return volumes_; } /** - * - * *
    * The list of storage volumes.
    * 
@@ -168,13 +141,11 @@ public java.util.List getVolumesLi * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** - * - * *
    * The list of storage volumes.
    * 
@@ -186,8 +157,6 @@ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
    * The list of storage volumes.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** - * - * *
    * The list of storage volumes.
    * 
@@ -208,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { return volumes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -264,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -307,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(1, volumes_.get(i)); } @@ -355,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, volumes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -376,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = - (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; - if (!getVolumesList().equals(other.getVolumesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.cloud.baremetalsolution.v2.ListVolumesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesResponse.newBuilder() @@ -542,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getVolumesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override @@ -591,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = - new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); int from_bitField0_ = bitField0_; if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -617,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse)other); } else { super.mergeFrom(other); return this; @@ -657,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) return this; if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { @@ -677,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRespon volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); - volumesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVolumesFieldBuilder() - : null; + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVolumesFieldBuilder() : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } @@ -719,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -729,28 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List volumes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> - volumesBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumesBuilder_; /** - * - * *
      * The list of storage volumes.
      * 
@@ -765,8 +701,6 @@ public java.util.List getVolumesLi } } /** - * - * *
      * The list of storage volumes.
      * 
@@ -781,8 +715,6 @@ public int getVolumesCount() { } } /** - * - * *
      * The list of storage volumes.
      * 
@@ -797,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { } } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder setVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder setVolumes( + int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,8 +750,6 @@ public Builder setVolumes(int index, com.google.cloud.baremetalsolution.v2.Volum return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -839,8 +768,6 @@ public Builder setVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -861,15 +788,14 @@ public Builder addVolumes(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder addVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder addVolumes( + int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -883,8 +809,6 @@ public Builder addVolumes(int index, com.google.cloud.baremetalsolution.v2.Volum return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -903,8 +827,6 @@ public Builder addVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -923,8 +845,6 @@ public Builder addVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -935,7 +855,8 @@ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); @@ -943,8 +864,6 @@ public Builder addAllVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -962,8 +881,6 @@ public Builder clearVolumes() { return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -981,44 +898,39 @@ public Builder removeVolumes(int index) { return this; } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder( + int index) { return getVolumesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { if (volumesBuilder_ == null) { - return volumes_.get(index); - } else { + return volumes_.get(index); } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -1026,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder } } /** - * - * *
      * The list of storage volumes.
      * 
@@ -1035,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder(int index) { - return getVolumesFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder( + int index) { + return getVolumesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesBuilderList() { + public java.util.List + getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - volumes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + volumes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); volumes_ = null; } return volumesBuilder_; @@ -1084,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1106,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1128,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1241,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1334,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1367,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) private static final com.google.cloud.baremetalsolution.v2.ListVolumesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(); } @@ -1381,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1405,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java index 4d4b8f6..52657e8 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesResponseOrBuilder - extends +public interface ListVolumesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List getVolumesList(); + java.util.List + getVolumesList(); /** - * - * *
    * The list of storage volumes.
    * 
@@ -44,8 +25,6 @@ public interface ListVolumesResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index); /** - * - * *
    * The list of storage volumes.
    * 
@@ -54,100 +33,82 @@ public interface ListVolumesResponseOrBuilder */ int getVolumesCount(); /** - * - * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List + java.util.List getVolumesOrBuilderList(); /** - * - * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java index 2a49f8b..e418612 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Each logical interface represents a logical abstraction of the underlying
  * physical interface (for eg. bond, nic) of the instance. Each logical
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface}
  */
-public final class LogicalInterface extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LogicalInterface extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface)
     LogicalInterfaceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LogicalInterface.newBuilder() to construct.
   private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LogicalInterface() {
     logicalNetworkInterfaces_ = java.util.Collections.emptyList();
     name_ = "";
@@ -47,15 +29,16 @@ private LogicalInterface() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogicalInterface();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LogicalInterface(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,41 +58,33 @@ private LogicalInterface(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                logicalNetworkInterfaces_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.baremetalsolution.v2.LogicalInterface
-                            .LogicalNetworkInterface>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              logicalNetworkInterfaces_.add(
-                  input.readMessage(
-                      com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface
-                          .parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              logicalNetworkInterfaces_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            logicalNetworkInterfaces_.add(
+                input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 24:
-            {
-              interfaceIndex_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          case 24: {
+
+            interfaceIndex_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -117,171 +92,139 @@ private LogicalInterface(
     } 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)) {
-        logicalNetworkInterfaces_ =
-            java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
+        logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.baremetalsolution.v2.NetworkProto
-        .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.baremetalsolution.v2.NetworkProto
-        .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
+    return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.class,
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
   }
 
-  public interface LogicalNetworkInterfaceOrBuilder
-      extends
+  public interface LogicalNetworkInterfaceOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Name of the network
      * 
* * string network = 1; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
      * Name of the network
      * 
* * string network = 1; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
      * IP address in the network
      * 
* * string ip_address = 2; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
      * IP address in the network
      * 
* * string ip_address = 2; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); /** - * - * *
      * Whether this interface is the default gateway for the instance. Only
      * one interface can be the default gateway for the instance.
      * 
* * bool default_gateway = 3; - * * @return The defaultGateway. */ boolean getDefaultGateway(); /** - * - * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The enum numeric value on the wire for networkType. */ int getNetworkTypeValue(); /** - * - * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The networkType. */ com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType(); /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; - * * @return The id. */ java.lang.String getId(); /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); } /** - * - * *
    * Each logical network interface is effectively a network and IP pair.
    * 
* - * Protobuf type {@code - * google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} */ - public static final class LogicalNetworkInterface extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LogicalNetworkInterface extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) LogicalNetworkInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogicalNetworkInterface.newBuilder() to construct. private LogicalNetworkInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LogicalNetworkInterface() { network_ = ""; ipAddress_ = ""; @@ -291,15 +234,16 @@ private LogicalNetworkInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogicalNetworkInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LogicalNetworkInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -318,46 +262,42 @@ private LogicalNetworkInterface( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - network_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + network_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - ipAddress_ = s; - break; - } - case 24: - { - defaultGateway_ = input.readBool(); - break; - } - case 32: - { - int rawValue = input.readEnum(); + ipAddress_ = s; + break; + } + case 24: { - networkType_ = rawValue; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + defaultGateway_ = input.readBool(); + break; + } + case 32: { + int rawValue = input.readEnum(); - id_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + networkType_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -365,40 +305,34 @@ private LogicalNetworkInterface( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - .class); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** - * - * *
      * Name of the network
      * 
* * string network = 1; - * * @return The network. */ @java.lang.Override @@ -407,29 +341,29 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
      * Name of the network
      * 
* * string network = 1; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -440,14 +374,11 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int IP_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object ipAddress_; /** - * - * *
      * IP address in the network
      * 
* * string ip_address = 2; - * * @return The ipAddress. */ @java.lang.Override @@ -456,29 +387,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** - * - * *
      * IP address in the network
      * 
* * string ip_address = 2; - * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -489,15 +420,12 @@ public com.google.protobuf.ByteString getIpAddressBytes() { public static final int DEFAULT_GATEWAY_FIELD_NUMBER = 3; private boolean defaultGateway_; /** - * - * *
      * Whether this interface is the default gateway for the instance. Only
      * one interface can be the default gateway for the instance.
      * 
* * bool default_gateway = 3; - * * @return The defaultGateway. */ @java.lang.Override @@ -508,52 +436,38 @@ public boolean getDefaultGateway() { public static final int NETWORK_TYPE_FIELD_NUMBER = 4; private int networkType_; /** - * - * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The enum numeric value on the wire for networkType. */ - @java.lang.Override - public int getNetworkTypeValue() { + @java.lang.Override public int getNetworkTypeValue() { return networkType_; } /** - * - * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The networkType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = - com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; } public static final int ID_FIELD_NUMBER = 5; private volatile java.lang.Object id_; /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; - * * @return The id. */ @java.lang.Override @@ -562,29 +476,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; } } /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; - * * @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 { @@ -593,7 +507,6 @@ public com.google.protobuf.ByteString getIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -605,7 +518,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(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -615,8 +529,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (defaultGateway_ != false) { output.writeBool(3, defaultGateway_); } - if (networkType_ - != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, networkType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { @@ -638,11 +551,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_); } if (defaultGateway_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, defaultGateway_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, defaultGateway_); } - if (networkType_ - != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, networkType_); + if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, networkType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, id_); @@ -655,21 +569,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.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = - (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (getDefaultGateway() != other.getDefaultGateway()) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (getDefaultGateway() + != other.getDefaultGateway()) return false; if (networkType_ != other.networkType_) return false; - if (!getId().equals(other.getId())) return false; + if (!getId() + .equals(other.getId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -686,7 +601,8 @@ public int hashCode() { hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); hash = (37 * hash) + DEFAULT_GATEWAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultGateway()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDefaultGateway()); hash = (37 * hash) + NETWORK_TYPE_FIELD_NUMBER; hash = (53 * hash) + networkType_; hash = (37 * hash) + ID_FIELD_NUMBER; @@ -696,101 +612,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -800,52 +703,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Each logical network interface is effectively a network and IP pair.
      * 
* - * Protobuf type {@code - * google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .class, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .Builder.class); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); } - // Construct using - // com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() + // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -863,23 +758,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - build() { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = - buildPartial(); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface build() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -887,11 +778,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - buildPartial() { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = - new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface( - this); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface buildPartial() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(this); result.network_ = network_; result.ipAddress_ = ipAddress_; result.defaultGateway_ = defaultGateway_; @@ -905,56 +793,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) - other); + if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { - if (other - == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { + if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -988,14 +866,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parsedMessage = null; + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1007,20 +882,18 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** - * - * *
        * Name of the network
        * 
* * string network = 1; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1029,21 +902,20 @@ public java.lang.String getNetwork() { } } /** - * - * *
        * Name of the network
        * 
* * string network = 1; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -1051,61 +923,54 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
        * Name of the network
        * 
* * string network = 1; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
        * Name of the network
        * 
* * string network = 1; - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
        * Name of the network
        * 
* * string network = 1; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -1113,20 +978,18 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipAddress_ = ""; /** - * - * *
        * IP address in the network
        * 
* * string ip_address = 2; - * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -1135,21 +998,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
        * IP address in the network
        * 
* * string ip_address = 2; - * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -1157,77 +1019,67 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
        * IP address in the network
        * 
* * string ip_address = 2; - * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress(java.lang.String value) { + public Builder setIpAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** - * - * *
        * IP address in the network
        * 
* * string ip_address = 2; - * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** - * - * *
        * IP address in the network
        * 
* * string ip_address = 2; - * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private boolean defaultGateway_; + private boolean defaultGateway_ ; /** - * - * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; - * * @return The defaultGateway. */ @java.lang.Override @@ -1235,38 +1087,32 @@ public boolean getDefaultGateway() { return defaultGateway_; } /** - * - * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; - * * @param value The defaultGateway to set. * @return This builder for chaining. */ public Builder setDefaultGateway(boolean value) { - + defaultGateway_ = value; onChanged(); return this; } /** - * - * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; - * * @return This builder for chaining. */ public Builder clearDefaultGateway() { - + defaultGateway_ = false; onChanged(); return this; @@ -1274,67 +1120,51 @@ public Builder clearDefaultGateway() { private int networkType_ = 0; /** - * - * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The enum numeric value on the wire for networkType. */ - @java.lang.Override - public int getNetworkTypeValue() { + @java.lang.Override public int getNetworkTypeValue() { return networkType_; } /** - * - * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @param value The enum numeric value on the wire for networkType to set. * @return This builder for chaining. */ public Builder setNetworkTypeValue(int value) { - + networkType_ = value; onChanged(); return this; } /** - * - * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The networkType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = - com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; } /** - * - * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @param value The networkType to set. * @return This builder for chaining. */ @@ -1342,24 +1172,21 @@ public Builder setNetworkType(com.google.cloud.baremetalsolution.v2.Network.Type if (value == null) { throw new NullPointerException(); } - + networkType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return This builder for chaining. */ public Builder clearNetworkType() { - + networkType_ = 0; onChanged(); return this; @@ -1367,20 +1194,18 @@ public Builder clearNetworkType() { private java.lang.Object id_ = ""; /** - * - * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; - * * @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; @@ -1389,21 +1214,20 @@ public java.lang.String getId() { } } /** - * - * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; - * * @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 { @@ -1411,66 +1235,58 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; - * * @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; } /** - * - * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; - * * @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; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1483,34 +1299,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) - private static final com.google.cloud.baremetalsolution.v2.LogicalInterface - .LogicalNetworkInterface - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalNetworkInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalNetworkInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalNetworkInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalNetworkInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1522,112 +1334,81 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int LOGICAL_NETWORK_INTERFACES_FIELD_NUMBER = 1; - private java.util.List< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> - logicalNetworkInterfaces_; + private java.util.List logicalNetworkInterfaces_; /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> - getLogicalNetworkInterfacesList() { + public java.util.List getLogicalNetworkInterfacesList() { return logicalNetworkInterfaces_; } /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.LogicalInterface - .LogicalNetworkInterfaceOrBuilder> + public java.util.List getLogicalNetworkInterfacesOrBuilderList() { return logicalNetworkInterfaces_; } /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ @java.lang.Override public int getLogicalNetworkInterfacesCount() { return logicalNetworkInterfaces_.size(); } /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getLogicalNetworkInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { return logicalNetworkInterfaces_.get(index); } /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder - getLogicalNetworkInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( + int index) { return logicalNetworkInterfaces_.get(index); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -1636,30 +1417,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; } } /** - * - * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * 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 { @@ -1670,15 +1451,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INTERFACE_INDEX_FIELD_NUMBER = 3; private int interfaceIndex_; /** - * - * *
    * The index of the logical interface mapping to the index of the hardware
    * bond or nic on the chosen network template.
    * 
* * int32 interface_index = 3; - * * @return The interfaceIndex. */ @java.lang.Override @@ -1687,7 +1465,6 @@ public int getInterfaceIndex() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1699,7 +1476,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 < logicalNetworkInterfaces_.size(); i++) { output.writeMessage(1, logicalNetworkInterfaces_.get(i)); } @@ -1719,15 +1497,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < logicalNetworkInterfaces_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, logicalNetworkInterfaces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, logicalNetworkInterfaces_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (interfaceIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, interfaceIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, interfaceIndex_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1737,18 +1515,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.baremetalsolution.v2.LogicalInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.LogicalInterface other = - (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; + com.google.cloud.baremetalsolution.v2.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; - if (!getLogicalNetworkInterfacesList().equals(other.getLogicalNetworkInterfacesList())) - return false; - if (!getName().equals(other.getName())) return false; - if (getInterfaceIndex() != other.getInterfaceIndex()) return false; + if (!getLogicalNetworkInterfacesList() + .equals(other.getLogicalNetworkInterfacesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getInterfaceIndex() + != other.getInterfaceIndex()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1774,104 +1553,96 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Each logical interface represents a logical abstraction of the underlying
    * physical interface (for eg. bond, nic) of the instance. Each logical
@@ -1881,23 +1652,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface)
       com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto
-          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto
-          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
+      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.baremetalsolution.v2.LogicalInterface.class,
-              com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
+              com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
     }
 
     // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.newBuilder()
@@ -1905,17 +1674,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) {
         getLogicalNetworkInterfacesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1933,9 +1702,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto
-          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
     }
 
     @java.lang.Override
@@ -1954,13 +1723,11 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface build() {
 
     @java.lang.Override
     public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() {
-      com.google.cloud.baremetalsolution.v2.LogicalInterface result =
-          new com.google.cloud.baremetalsolution.v2.LogicalInterface(this);
+      com.google.cloud.baremetalsolution.v2.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface(this);
       int from_bitField0_ = bitField0_;
       if (logicalNetworkInterfacesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          logicalNetworkInterfaces_ =
-              java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
+          logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.logicalNetworkInterfaces_ = logicalNetworkInterfaces_;
@@ -1977,39 +1744,38 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface) {
-        return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface) other);
+        return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2017,8 +1783,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface other) {
-      if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()) return this;
       if (logicalNetworkInterfacesBuilder_ == null) {
         if (!other.logicalNetworkInterfaces_.isEmpty()) {
           if (logicalNetworkInterfaces_.isEmpty()) {
@@ -2037,10 +1802,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface
             logicalNetworkInterfacesBuilder_ = null;
             logicalNetworkInterfaces_ = other.logicalNetworkInterfaces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            logicalNetworkInterfacesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getLogicalNetworkInterfacesFieldBuilder()
-                    : null;
+            logicalNetworkInterfacesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getLogicalNetworkInterfacesFieldBuilder() : null;
           } else {
             logicalNetworkInterfacesBuilder_.addAllMessages(other.logicalNetworkInterfaces_);
           }
@@ -2072,8 +1836,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2082,43 +1845,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List<
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>
-        logicalNetworkInterfaces_ = java.util.Collections.emptyList();
-
+    private java.util.List logicalNetworkInterfaces_ =
+      java.util.Collections.emptyList();
     private void ensureLogicalNetworkInterfacesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        logicalNetworkInterfaces_ =
-            new java.util.ArrayList<
-                com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>(
-                logicalNetworkInterfaces_);
+        logicalNetworkInterfaces_ = new java.util.ArrayList(logicalNetworkInterfaces_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface,
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder,
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>
-        logicalNetworkInterfacesBuilder_;
+        com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> logicalNetworkInterfacesBuilder_;
 
     /**
-     *
-     *
      * 
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public java.util.List< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> - getLogicalNetworkInterfacesList() { + public java.util.List getLogicalNetworkInterfacesList() { if (logicalNetworkInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalNetworkInterfaces_); } else { @@ -2126,15 +1874,11 @@ private void ensureLogicalNetworkInterfacesIsMutable() { } } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public int getLogicalNetworkInterfacesCount() { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2144,18 +1888,13 @@ public int getLogicalNetworkInterfacesCount() { } } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getLogicalNetworkInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { if (logicalNetworkInterfacesBuilder_ == null) { return logicalNetworkInterfaces_.get(index); } else { @@ -2163,19 +1902,14 @@ public int getLogicalNetworkInterfacesCount() { } } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder setLogicalNetworkInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2189,20 +1923,14 @@ public Builder setLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder setLogicalNetworkInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.set(index, builderForValue.build()); @@ -2213,18 +1941,13 @@ public Builder setLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public Builder addLogicalNetworkInterfaces( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + public Builder addLogicalNetworkInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2238,19 +1961,14 @@ public Builder addLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder addLogicalNetworkInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2264,19 +1982,14 @@ public Builder addLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder addLogicalNetworkInterfaces( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - builderForValue) { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.add(builderForValue.build()); @@ -2287,20 +2000,14 @@ public Builder addLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder addLogicalNetworkInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.add(index, builderForValue.build()); @@ -2311,24 +2018,18 @@ public Builder addLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder addAllLogicalNetworkInterfaces( - java.lang.Iterable< - ? extends - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> - values) { + java.lang.Iterable values) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalNetworkInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalNetworkInterfaces_); onChanged(); } else { logicalNetworkInterfacesBuilder_.addAllMessages(values); @@ -2336,15 +2037,11 @@ public Builder addAllLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder clearLogicalNetworkInterfaces() { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2357,15 +2054,11 @@ public Builder clearLogicalNetworkInterfaces() { return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder removeLogicalNetworkInterfaces(int index) { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2378,55 +2071,39 @@ public Builder removeLogicalNetworkInterfaces(int index) { return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - getLogicalNetworkInterfacesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder getLogicalNetworkInterfacesBuilder( + int index) { return getLogicalNetworkInterfacesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder - getLogicalNetworkInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( + int index) { if (logicalNetworkInterfacesBuilder_ == null) { - return logicalNetworkInterfaces_.get(index); - } else { + return logicalNetworkInterfaces_.get(index); } else { return logicalNetworkInterfacesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.LogicalInterface - .LogicalNetworkInterfaceOrBuilder> - getLogicalNetworkInterfacesOrBuilderList() { + public java.util.List + getLogicalNetworkInterfacesOrBuilderList() { if (logicalNetworkInterfacesBuilder_ != null) { return logicalNetworkInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -2434,72 +2111,45 @@ public Builder removeLogicalNetworkInterfaces(int index) { } } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - addLogicalNetworkInterfacesBuilder() { - return getLogicalNetworkInterfacesFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder() { + return getLogicalNetworkInterfacesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - addLogicalNetworkInterfacesBuilder(int index) { - return getLogicalNetworkInterfacesFieldBuilder() - .addBuilder( - index, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder( + int index) { + return getLogicalNetworkInterfacesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public java.util.List< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder> - getLogicalNetworkInterfacesBuilderList() { + public java.util.List + getLogicalNetworkInterfacesBuilderList() { return getLogicalNetworkInterfacesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesFieldBuilder() { if (logicalNetworkInterfacesBuilder_ == null) { - logicalNetworkInterfacesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .Builder, - com.google.cloud.baremetalsolution.v2.LogicalInterface - .LogicalNetworkInterfaceOrBuilder>( + logicalNetworkInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>( logicalNetworkInterfaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2511,21 +2161,19 @@ public Builder removeLogicalNetworkInterfaces(int index) { private java.lang.Object name_ = ""; /** - * - * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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; @@ -2534,22 +2182,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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 { @@ -2557,80 +2204,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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; } /** - * - * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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 int interfaceIndex_; + private int interfaceIndex_ ; /** - * - * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; - * * @return The interfaceIndex. */ @java.lang.Override @@ -2638,45 +2275,39 @@ public int getInterfaceIndex() { return interfaceIndex_; } /** - * - * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; - * * @param value The interfaceIndex to set. * @return This builder for chaining. */ public Builder setInterfaceIndex(int value) { - + interfaceIndex_ = value; onChanged(); return this; } /** - * - * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; - * * @return This builder for chaining. */ public Builder clearInterfaceIndex() { - + interfaceIndex_ = 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); } @@ -2686,12 +2317,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface) private static final com.google.cloud.baremetalsolution.v2.LogicalInterface DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface(); } @@ -2700,16 +2331,16 @@ public static com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2724,4 +2355,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java similarity index 51% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java index f3faf3f..da8ff8e 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java @@ -1,133 +1,85 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface LogicalInterfaceOrBuilder - extends +public interface LogicalInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - java.util.List + java.util.List getLogicalNetworkInterfacesList(); /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getLogicalNetworkInterfaces(int index); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index); /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ int getLogicalNetworkInterfacesCount(); /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.LogicalInterface - .LogicalNetworkInterfaceOrBuilder> + java.util.List getLogicalNetworkInterfacesOrBuilderList(); /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder - getLogicalNetworkInterfacesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( + int index); /** - * - * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The index of the logical interface mapping to the index of the hardware
    * bond or nic on the chosen network template.
    * 
* * int32 interface_index = 3; - * * @return The interfaceIndex. */ int getInterfaceIndex(); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java index cbd6146..d586da5 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A storage volume logical unit number (LUN).
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ -public final class Lun extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Lun extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Lun) LunOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Lun.newBuilder() to construct. private Lun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Lun() { name_ = ""; id_ = ""; @@ -49,15 +31,16 @@ private Lun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Lun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Lun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,77 +59,70 @@ private Lun( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 24: - { - sizeGb_ = input.readInt64(); - break; - } - case 32: - { - int rawValue = input.readEnum(); + state_ = rawValue; + break; + } + case 24: { - multiprotocolType_ = rawValue; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + sizeGb_ = input.readInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); - storageVolume_ = s; - break; - } - case 48: - { - shareable_ = input.readBool(); - break; - } - case 56: - { - bootLun_ = input.readBool(); - break; - } - case 64: - { - int rawValue = input.readEnum(); + multiprotocolType_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - storageType_ = rawValue; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); + storageVolume_ = s; + break; + } + case 48: { - wwid_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + shareable_ = input.readBool(); + break; + } + case 56: { - id_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + bootLun_ = input.readBool(); + break; + } + case 64: { + int rawValue = input.readEnum(); + + storageType_ = rawValue; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + wwid_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -154,41 +130,36 @@ private Lun( } 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.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, - com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } /** - * - * *
    * The possible states for the LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The LUN is in an unknown state.
      * 
@@ -197,8 +168,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The LUN is being created.
      * 
@@ -207,8 +176,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The LUN is being updated.
      * 
@@ -217,8 +184,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(2), /** - * - * *
      * The LUN is ready for use.
      * 
@@ -227,8 +192,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * The LUN has been requested to be deleted.
      * 
@@ -240,8 +203,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The LUN is in an unknown state.
      * 
@@ -250,8 +211,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The LUN is being created.
      * 
@@ -260,8 +219,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The LUN is being updated.
      * 
@@ -270,8 +227,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 2; /** - * - * *
      * The LUN is ready for use.
      * 
@@ -280,8 +235,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * The LUN has been requested to be deleted.
      * 
@@ -290,6 +243,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -314,53 +268,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return UPDATING; - case 3: - return READY; - case 4: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return UPDATING; + case 3: return READY; + case 4: return DELETING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -378,18 +330,15 @@ private State(int value) { } /** - * - * *
    * Display the operating systems present for the LUN multiprotocol type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.MultiprotocolType} */ - public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum { + public enum MultiprotocolType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Server has no OS specified.
      * 
@@ -398,8 +347,6 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum */ MULTIPROTOCOL_TYPE_UNSPECIFIED(0), /** - * - * *
      * Server with Linux OS.
      * 
@@ -411,8 +358,6 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Server has no OS specified.
      * 
@@ -421,8 +366,6 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum */ public static final int MULTIPROTOCOL_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Server with Linux OS.
      * 
@@ -431,6 +374,7 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum */ public static final int LINUX_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -455,12 +399,9 @@ public static MultiprotocolType valueOf(int value) { */ public static MultiprotocolType forNumber(int value) { switch (value) { - case 0: - return MULTIPROTOCOL_TYPE_UNSPECIFIED; - case 1: - return LINUX; - default: - return null; + case 0: return MULTIPROTOCOL_TYPE_UNSPECIFIED; + case 1: return LINUX; + default: return null; } } @@ -468,28 +409,28 @@ public static MultiprotocolType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + MultiprotocolType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MultiprotocolType findValueByNumber(int number) { + return MultiprotocolType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MultiprotocolType findValueByNumber(int number) { - return MultiprotocolType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(1); } @@ -498,7 +439,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static MultiprotocolType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -516,18 +458,15 @@ private MultiprotocolType(int value) { } /** - * - * *
    * The storage types for a LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.StorageType} */ - public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The storage type for this LUN is unknown.
      * 
@@ -536,8 +475,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ STORAGE_TYPE_UNSPECIFIED(0), /** - * - * *
      * This storage type for this LUN is SSD.
      * 
@@ -546,8 +483,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ SSD(1), /** - * - * *
      * This storage type for this LUN is HDD.
      * 
@@ -559,8 +494,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The storage type for this LUN is unknown.
      * 
@@ -569,8 +502,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * This storage type for this LUN is SSD.
      * 
@@ -579,8 +510,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SSD_VALUE = 1; /** - * - * *
      * This storage type for this LUN is HDD.
      * 
@@ -589,6 +518,7 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HDD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -613,49 +543,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: - return STORAGE_TYPE_UNSPECIFIED; - case 1: - return SSD; - case 2: - return HDD; - default: - return null; + case 0: return STORAGE_TYPE_UNSPECIFIED; + case 1: return SSD; + case 2: return HDD; + 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< + StorageType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageType findValueByNumber(int number) { + return StorageType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(2); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -675,14 +605,11 @@ private StorageType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -691,29 +618,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -724,14 +651,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** - * - * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; - * * @return The id. */ @java.lang.Override @@ -740,29 +664,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; } } /** - * - * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; - * * @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 { @@ -773,50 +697,38 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Lun.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = - com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } public static final int SIZE_GB_FIELD_NUMBER = 3; private long sizeGb_; /** - * - * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; - * * @return The sizeGb. */ @java.lang.Override @@ -827,54 +739,40 @@ public long getSizeGb() { public static final int MULTIPROTOCOL_TYPE_FIELD_NUMBER = 4; private int multiprotocolType_; /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override - public int getMultiprotocolTypeValue() { + @java.lang.Override public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The multiprotocolType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; } public static final int STORAGE_VOLUME_FIELD_NUMBER = 5; private volatile java.lang.Object storageVolume_; /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The storageVolume. */ @java.lang.Override @@ -883,29 +781,29 @@ public java.lang.String getStorageVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; } } /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for storageVolume. */ @java.lang.Override - public com.google.protobuf.ByteString getStorageVolumeBytes() { + public com.google.protobuf.ByteString + getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -916,14 +814,11 @@ public com.google.protobuf.ByteString getStorageVolumeBytes() { public static final int SHAREABLE_FIELD_NUMBER = 6; private boolean shareable_; /** - * - * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; - * * @return The shareable. */ @java.lang.Override @@ -934,14 +829,11 @@ public boolean getShareable() { public static final int BOOT_LUN_FIELD_NUMBER = 7; private boolean bootLun_; /** - * - * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; - * * @return The bootLun. */ @java.lang.Override @@ -952,52 +844,38 @@ public boolean getBootLun() { public static final int STORAGE_TYPE_FIELD_NUMBER = 8; private int storageType_; /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The storageType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = - com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; } public static final int WWID_FIELD_NUMBER = 9; private volatile java.lang.Object wwid_; /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The wwid. */ @java.lang.Override @@ -1006,29 +884,29 @@ public java.lang.String getWwid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; } } /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The bytes for wwid. */ @java.lang.Override - public com.google.protobuf.ByteString getWwidBytes() { + public com.google.protobuf.ByteString + getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); wwid_ = b; return b; } else { @@ -1037,7 +915,6 @@ public com.google.protobuf.ByteString getWwidBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1049,7 +926,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_); } @@ -1059,10 +937,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sizeGb_ != 0L) { output.writeInt64(3, sizeGb_); } - if (multiprotocolType_ - != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType - .MULTIPROTOCOL_TYPE_UNSPECIFIED - .getNumber()) { + if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { @@ -1074,9 +949,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (bootLun_ != false) { output.writeBool(7, bootLun_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { + if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { @@ -1098,30 +971,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.Lun.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (sizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, sizeGb_); } - if (multiprotocolType_ - != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType - .MULTIPROTOCOL_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, multiprotocolType_); + if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageVolume_); } if (shareable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, shareable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, shareable_); } if (bootLun_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, bootLun_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, bootLun_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, storageType_); + if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, wwid_); @@ -1137,24 +1011,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Lun)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Lun other = - (com.google.cloud.baremetalsolution.v2.Lun) obj; + com.google.cloud.baremetalsolution.v2.Lun other = (com.google.cloud.baremetalsolution.v2.Lun) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; if (state_ != other.state_) return false; - if (getSizeGb() != other.getSizeGb()) return false; + if (getSizeGb() + != other.getSizeGb()) return false; if (multiprotocolType_ != other.multiprotocolType_) return false; - if (!getStorageVolume().equals(other.getStorageVolume())) return false; - if (getShareable() != other.getShareable()) return false; - if (getBootLun() != other.getBootLun()) return false; + if (!getStorageVolume() + .equals(other.getStorageVolume())) return false; + if (getShareable() + != other.getShareable()) return false; + if (getBootLun() + != other.getBootLun()) return false; if (storageType_ != other.storageType_) return false; - if (!getWwid().equals(other.getWwid())) return false; + if (!getWwid() + .equals(other.getWwid())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1173,15 +1053,18 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeGb()); hash = (37 * hash) + MULTIPROTOCOL_TYPE_FIELD_NUMBER; hash = (53 * hash) + multiprotocolType_; hash = (37 * hash) + STORAGE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getStorageVolume().hashCode(); hash = (37 * hash) + SHAREABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShareable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShareable()); hash = (37 * hash) + BOOT_LUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBootLun()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBootLun()); hash = (37 * hash) + STORAGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + storageType_; hash = (37 * hash) + WWID_FIELD_NUMBER; @@ -1191,127 +1074,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun 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.baremetalsolution.v2.Lun parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Lun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume logical unit number (LUN).
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Lun) com.google.cloud.baremetalsolution.v2.LunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, - com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Lun.newBuilder() @@ -1319,15 +1193,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(); @@ -1355,9 +1230,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override @@ -1376,8 +1251,7 @@ public com.google.cloud.baremetalsolution.v2.Lun build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { - com.google.cloud.baremetalsolution.v2.Lun result = - new com.google.cloud.baremetalsolution.v2.Lun(this); + com.google.cloud.baremetalsolution.v2.Lun result = new com.google.cloud.baremetalsolution.v2.Lun(this); result.name_ = name_; result.id_ = id_; result.state_ = state_; @@ -1396,39 +1270,38 @@ public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Lun) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun)other); } else { super.mergeFrom(other); return this; @@ -1502,20 +1375,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1524,21 +1395,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1546,61 +1416,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1608,20 +1471,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; - * * @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; @@ -1630,21 +1491,20 @@ public java.lang.String getId() { } } /** - * - * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; - * * @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 { @@ -1652,61 +1512,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; - * * @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; } /** - * - * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; - * * @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; @@ -1714,65 +1567,51 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = - com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1780,39 +1619,33 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Lun.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long sizeGb_; + private long sizeGb_ ; /** - * - * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; - * * @return The sizeGb. */ @java.lang.Override @@ -1820,36 +1653,30 @@ public long getSizeGb() { return sizeGb_; } /** - * - * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; - * * @param value The sizeGb to set. * @return This builder for chaining. */ public Builder setSizeGb(long value) { - + sizeGb_ = value; onChanged(); return this; } /** - * - * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; - * * @return This builder for chaining. */ public Builder clearSizeGb() { - + sizeGb_ = 0L; onChanged(); return this; @@ -1857,98 +1684,78 @@ public Builder clearSizeGb() { private int multiprotocolType_ = 0; /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override - public int getMultiprotocolTypeValue() { + @java.lang.Override public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @param value The enum numeric value on the wire for multiprotocolType to set. * @return This builder for chaining. */ public Builder setMultiprotocolTypeValue(int value) { - + multiprotocolType_ = value; onChanged(); return this; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The multiprotocolType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @param value The multiprotocolType to set. * @return This builder for chaining. */ - public Builder setMultiprotocolType( - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { + public Builder setMultiprotocolType(com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { if (value == null) { throw new NullPointerException(); } - + multiprotocolType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return This builder for chaining. */ public Builder clearMultiprotocolType() { - + multiprotocolType_ = 0; onChanged(); return this; @@ -1956,20 +1763,18 @@ public Builder clearMultiprotocolType() { private java.lang.Object storageVolume_ = ""; /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The storageVolume. */ public java.lang.String getStorageVolume() { java.lang.Object ref = storageVolume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; @@ -1978,21 +1783,20 @@ public java.lang.String getStorageVolume() { } } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for storageVolume. */ - public com.google.protobuf.ByteString getStorageVolumeBytes() { + public com.google.protobuf.ByteString + getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -2000,76 +1804,66 @@ public com.google.protobuf.ByteString getStorageVolumeBytes() { } } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @param value The storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolume(java.lang.String value) { + public Builder setStorageVolume( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + storageVolume_ = value; onChanged(); return this; } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearStorageVolume() { - + storageVolume_ = getDefaultInstance().getStorageVolume(); onChanged(); return this; } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolumeBytes(com.google.protobuf.ByteString value) { + public Builder setStorageVolumeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageVolume_ = value; onChanged(); return this; } - private boolean shareable_; + private boolean shareable_ ; /** - * - * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; - * * @return The shareable. */ @java.lang.Override @@ -2077,51 +1871,42 @@ public boolean getShareable() { return shareable_; } /** - * - * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; - * * @param value The shareable to set. * @return This builder for chaining. */ public Builder setShareable(boolean value) { - + shareable_ = value; onChanged(); return this; } /** - * - * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; - * * @return This builder for chaining. */ public Builder clearShareable() { - + shareable_ = false; onChanged(); return this; } - private boolean bootLun_; + private boolean bootLun_ ; /** - * - * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; - * * @return The bootLun. */ @java.lang.Override @@ -2129,36 +1914,30 @@ public boolean getBootLun() { return bootLun_; } /** - * - * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; - * * @param value The bootLun to set. * @return This builder for chaining. */ public Builder setBootLun(boolean value) { - + bootLun_ = value; onChanged(); return this; } /** - * - * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; - * * @return This builder for chaining. */ public Builder clearBootLun() { - + bootLun_ = false; onChanged(); return this; @@ -2166,67 +1945,51 @@ public Builder clearBootLun() { private int storageType_ = 0; /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = - com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @param value The storageType to set. * @return This builder for chaining. */ @@ -2234,24 +1997,21 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Lun.StorageT if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -2259,20 +2019,18 @@ public Builder clearStorageType() { private java.lang.Object wwid_ = ""; /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @return The wwid. */ public java.lang.String getWwid() { java.lang.Object ref = wwid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; @@ -2281,21 +2039,20 @@ public java.lang.String getWwid() { } } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @return The bytes for wwid. */ - public com.google.protobuf.ByteString getWwidBytes() { + public com.google.protobuf.ByteString + getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); wwid_ = b; return b; } else { @@ -2303,68 +2060,61 @@ public com.google.protobuf.ByteString getWwidBytes() { } } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @param value The wwid to set. * @return This builder for chaining. */ - public Builder setWwid(java.lang.String value) { + public Builder setWwid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + wwid_ = value; onChanged(); return this; } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @return This builder for chaining. */ public Builder clearWwid() { - + wwid_ = getDefaultInstance().getWwid(); onChanged(); return this; } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @param value The bytes for wwid to set. * @return This builder for chaining. */ - public Builder setWwidBytes(com.google.protobuf.ByteString value) { + public Builder setWwidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + wwid_ = 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); } @@ -2374,12 +2124,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Lun) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Lun) private static final com.google.cloud.baremetalsolution.v2.Lun DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Lun(); } @@ -2388,16 +2138,16 @@ public static com.google.cloud.baremetalsolution.v2.Lun getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Lun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Lun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Lun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Lun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2412,4 +2162,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Lun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java similarity index 78% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java index df63068..eae3681 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java @@ -1,241 +1,178 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface LunOrBuilder - extends +public interface LunOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Lun) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Lun.State getState(); /** - * - * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; - * * @return The sizeGb. */ long getSizeGb(); /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The enum numeric value on the wire for multiprotocolType. */ int getMultiprotocolTypeValue(); /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The multiprotocolType. */ com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType(); /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The storageVolume. */ java.lang.String getStorageVolume(); /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for storageVolume. */ - com.google.protobuf.ByteString getStorageVolumeBytes(); + com.google.protobuf.ByteString + getStorageVolumeBytes(); /** - * - * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; - * * @return The shareable. */ boolean getShareable(); /** - * - * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; - * * @return The bootLun. */ boolean getBootLun(); /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType(); /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The wwid. */ java.lang.String getWwid(); /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The bytes for wwid. */ - com.google.protobuf.ByteString getWwidBytes(); + com.google.protobuf.ByteString + getWwidBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java new file mode 100644 index 0000000..88b187e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class LunProto { + private LunProto() {} + 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_baremetalsolution_v2_Lun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." + + "proto\022!google.cloud.baremetalsolution.v2" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" + + "gle.cloud.baremetalsolution.v2.Lun.State" + + "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" + + "\004 \001(\01628.google.cloud.baremetalsolution.v" + + "2.Lun.MultiprotocolType\022D\n\016storage_volum" + + "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" + + "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" + + "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" + + "e.cloud.baremetalsolution.v2.Lun.Storage" + + "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" + + "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" + + "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" + + "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" + + "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" + + "$baremetalsolution.googleapis.com/Lun\022Cp" + + "rojects/{project}/locations/{location}/v" + + "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" + + "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" + + "tion.googleapis.com/Lun\"y\n\017ListLunsReque" + + "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" + + "ution.googleapis.com/Volume\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" + + "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" + + "metalsolution.v2.Lun\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" + + "e.cloud.baremetalsolution.v2B\010LunProtoP\001" + + "ZRgoogle.golang.org/genproto/googleapis/" + + "cloud/baremetalsolution/v2;baremetalsolu" + + "tion\252\002!Google.Cloud.BareMetalSolution.V2" + + "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" + + "oogle::Cloud::BareMetalSolution::V2b\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, + new java.lang.String[] { "Name", "Id", "State", "SizeGb", "MultiprotocolType", "StorageVolume", "Shareable", "BootLun", "StorageType", "Wwid", }); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, + new java.lang.String[] { "Luns", "NextPageToken", "Unreachable", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java index 3977086..26b360f 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A Network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} */ -public final class Network extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Network extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Network) NetworkOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Network.newBuilder() to construct. private Network(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Network() { name_ = ""; id_ = ""; @@ -52,15 +34,16 @@ private Network() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Network(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Network( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -80,122 +63,105 @@ private Network( case 0: done = true; break; - case 16: - { - int rawValue = input.readEnum(); + case 16: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - ipAddress_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - macAddress_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - macAddress_.add(s); - break; + ipAddress_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + macAddress_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + macAddress_.add(s); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 48: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - vlanId_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + vlanId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - cidr_ = s; - break; + cidr_ = s; + break; + } + case 74: { + com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; + if (vrf_ != null) { + subBuilder = vrf_.toBuilder(); } - case 74: - { - com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; - if (vrf_ != null) { - subBuilder = vrf_.toBuilder(); - } - vrf_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vrf_); - vrf_ = subBuilder.buildPartial(); - } - - break; + vrf_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(vrf_); + vrf_ = subBuilder.buildPartial(); } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); - servicesCidr_ = s; - break; + id_ = s; + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 106: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - reservations_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>(); - mutable_bitField0_ |= 0x00000004; - } - reservations_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), - extensionRegistry)); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesCidr_ = s; + break; + } + case 106: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + reservations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + reservations_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -203,7 +169,8 @@ private Network( } 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)) { macAddress_ = macAddress_.getUnmodifiableView(); @@ -215,46 +182,41 @@ private Network( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_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 11: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, - com.google.cloud.baremetalsolution.v2.Network.Builder.class); + com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); } /** - * - * *
    * Network type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified value.
      * 
@@ -263,8 +225,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Client network, a network peered to a Google Cloud VPC.
      * 
@@ -273,8 +233,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CLIENT(1), /** - * - * *
      * Private network, a network local to the Bare Metal Solution environment.
      * 
@@ -286,8 +244,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified value.
      * 
@@ -296,8 +252,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Client network, a network peered to a Google Cloud VPC.
      * 
@@ -306,8 +260,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLIENT_VALUE = 1; /** - * - * *
      * Private network, a network local to the Bare Metal Solution environment.
      * 
@@ -316,6 +268,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRIVATE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -340,49 +293,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return CLIENT; - case 2: - return PRIVATE; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return CLIENT; + case 2: return PRIVATE; + 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -400,18 +353,15 @@ private Type(int value) { } /** - * - * *
    * The possible states for this Network.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The Network is in an unknown state.
      * 
@@ -420,8 +370,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The Network is provisioning.
      * 
@@ -430,8 +378,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROVISIONING(1), /** - * - * *
      * The Network has been provisioned.
      * 
@@ -443,8 +389,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The Network is in an unknown state.
      * 
@@ -453,8 +397,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Network is provisioning.
      * 
@@ -463,8 +405,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONING_VALUE = 1; /** - * - * *
      * The Network has been provisioned.
      * 
@@ -473,6 +413,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -497,49 +438,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return PROVISIONED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return PROVISIONED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -559,8 +500,6 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 5; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -570,7 +509,6 @@ private State(int value) {
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -579,15 +517,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; } } /** - * - * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -597,15 +534,16 @@ public java.lang.String getName() {
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -616,14 +554,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** - * - * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; - * * @return The id. */ @java.lang.Override @@ -632,29 +567,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; } } /** - * - * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; - * * @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 { @@ -665,52 +600,38 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network.Type getType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = - com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; } public static final int IP_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object ipAddress_; /** - * - * *
    * IP address configured.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ @java.lang.Override @@ -719,29 +640,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** - * - * *
    * IP address configured.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -752,42 +673,34 @@ public com.google.protobuf.ByteString getIpAddressBytes() { public static final int MAC_ADDRESS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList macAddress_; /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @return A list containing the macAddress. */ - public com.google.protobuf.ProtocolStringList getMacAddressList() { + public com.google.protobuf.ProtocolStringList + getMacAddressList() { return macAddress_; } /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @return The count of macAddress. */ public int getMacAddressCount() { return macAddress_.size(); } /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @param index The index of the element to return. * @return The macAddress at the given index. */ @@ -795,70 +708,54 @@ public java.lang.String getMacAddress(int index) { return macAddress_.get(index); } /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - public com.google.protobuf.ByteString getMacAddressBytes(int index) { + public com.google.protobuf.ByteString + getMacAddressBytes(int index) { return macAddress_.getByteString(index); } public static final int STATE_FIELD_NUMBER = 6; private int state_; /** - * - * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = - com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; } public static final int VLAN_ID_FIELD_NUMBER = 7; private volatile java.lang.Object vlanId_; /** - * - * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; - * * @return The vlanId. */ @java.lang.Override @@ -867,29 +764,29 @@ public java.lang.String getVlanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vlanId_ = s; return s; } } /** - * - * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; - * * @return The bytes for vlanId. */ @java.lang.Override - public com.google.protobuf.ByteString getVlanIdBytes() { + public com.google.protobuf.ByteString + getVlanIdBytes() { java.lang.Object ref = vlanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vlanId_ = b; return b; } else { @@ -900,14 +797,11 @@ public com.google.protobuf.ByteString getVlanIdBytes() { public static final int CIDR_FIELD_NUMBER = 8; private volatile java.lang.Object cidr_; /** - * - * *
    * The cidr of the Network.
    * 
* * string cidr = 8; - * * @return The cidr. */ @java.lang.Override @@ -916,29 +810,29 @@ public java.lang.String getCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; } } /** - * - * *
    * The cidr of the Network.
    * 
* * string cidr = 8; - * * @return The bytes for cidr. */ @java.lang.Override - public com.google.protobuf.ByteString getCidrBytes() { + public com.google.protobuf.ByteString + getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cidr_ = b; return b; } else { @@ -949,14 +843,11 @@ public com.google.protobuf.ByteString getCidrBytes() { public static final int VRF_FIELD_NUMBER = 9; private com.google.cloud.baremetalsolution.v2.VRF vrf_; /** - * - * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return Whether the vrf field is set. */ @java.lang.Override @@ -964,14 +855,11 @@ public boolean hasVrf() { return vrf_ != null; } /** - * - * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return The vrf. */ @java.lang.Override @@ -979,8 +867,6 @@ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; } /** - * - * *
    * The vrf for the Network.
    * 
@@ -993,23 +879,24 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 11; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1018,30 +905,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -1049,12 +934,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 11; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -1062,16 +946,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -1079,11 +963,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1093,14 +978,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int SERVICES_CIDR_FIELD_NUMBER = 12; private volatile java.lang.Object servicesCidr_; /** - * - * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; - * * @return The servicesCidr. */ @java.lang.Override @@ -1109,29 +991,29 @@ public java.lang.String getServicesCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servicesCidr_ = s; return s; } } /** - * - * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; - * * @return The bytes for servicesCidr. */ @java.lang.Override - public com.google.protobuf.ByteString getServicesCidrBytes() { + public com.google.protobuf.ByteString + getServicesCidrBytes() { java.lang.Object ref = servicesCidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servicesCidr_ = b; return b; } else { @@ -1140,96 +1022,76 @@ public com.google.protobuf.ByteString getServicesCidrBytes() { } public static final int RESERVATIONS_FIELD_NUMBER = 13; - private java.util.List - reservations_; + private java.util.List reservations_; /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ @java.lang.Override - public java.util.List - getReservationsList() { + public java.util.List getReservationsList() { return reservations_; } /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + public java.util.List getReservationsOrBuilderList() { return reservations_; } /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ @java.lang.Override public int getReservationsCount() { return reservations_.size(); } /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { return reservations_.get(index); } /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder - getReservationsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( + int index) { return reservations_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1241,7 +1103,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 (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } @@ -1254,8 +1117,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { @@ -1270,8 +1132,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, id_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 11); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, servicesCidr_); } @@ -1288,7 +1154,8 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); @@ -1304,9 +1171,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vlanId_); @@ -1315,26 +1182,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cidr_); } if (vrf_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getVrf()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getVrf()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, id_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, servicesCidr_); } for (int i = 0; i < reservations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, reservations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, reservations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1344,29 +1213,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Network)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Network other = - (com.google.cloud.baremetalsolution.v2.Network) obj; + com.google.cloud.baremetalsolution.v2.Network other = (com.google.cloud.baremetalsolution.v2.Network) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; if (type_ != other.type_) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (!getMacAddressList().equals(other.getMacAddressList())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (!getMacAddressList() + .equals(other.getMacAddressList())) return false; if (state_ != other.state_) return false; - if (!getVlanId().equals(other.getVlanId())) return false; - if (!getCidr().equals(other.getCidr())) return false; + if (!getVlanId() + .equals(other.getVlanId())) return false; + if (!getCidr() + .equals(other.getCidr())) return false; if (hasVrf() != other.hasVrf()) return false; if (hasVrf()) { - if (!getVrf().equals(other.getVrf())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getServicesCidr().equals(other.getServicesCidr())) return false; - if (!getReservationsList().equals(other.getReservationsList())) return false; + if (!getVrf() + .equals(other.getVrf())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getServicesCidr() + .equals(other.getServicesCidr())) return false; + if (!getReservationsList() + .equals(other.getReservationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1415,147 +1293,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network 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.baremetalsolution.v2.Network parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Network prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Network) com.google.cloud.baremetalsolution.v2.NetworkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 11: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 11: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, - com.google.cloud.baremetalsolution.v2.Network.Builder.class); + com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Network.newBuilder() @@ -1563,17 +1434,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) { getReservationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1612,9 +1483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; } @java.lang.Override @@ -1633,8 +1504,7 @@ public com.google.cloud.baremetalsolution.v2.Network build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network buildPartial() { - com.google.cloud.baremetalsolution.v2.Network result = - new com.google.cloud.baremetalsolution.v2.Network(this); + com.google.cloud.baremetalsolution.v2.Network result = new com.google.cloud.baremetalsolution.v2.Network(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -1673,39 +1543,38 @@ public com.google.cloud.baremetalsolution.v2.Network buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Network) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Network) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Network)other); } else { super.mergeFrom(other); return this; @@ -1753,7 +1622,8 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { if (other.hasVrf()) { mergeVrf(other.getVrf()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getServicesCidr().isEmpty()) { servicesCidr_ = other.servicesCidr_; onChanged(); @@ -1776,10 +1646,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { reservationsBuilder_ = null; reservations_ = other.reservations_; bitField0_ = (bitField0_ & ~0x00000004); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReservationsFieldBuilder() - : null; + reservationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReservationsFieldBuilder() : null; } else { reservationsBuilder_.addAllMessages(other.reservations_); } @@ -1813,13 +1682,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1829,13 +1695,13 @@ public Builder mergeFrom(
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1844,8 +1710,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1855,14 +1719,15 @@ public java.lang.String getName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1870,8 +1735,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1881,22 +1744,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1906,18 +1767,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1927,16 +1785,16 @@ public Builder clearName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1944,20 +1802,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; - * * @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; @@ -1966,21 +1822,20 @@ public java.lang.String getId() { } } /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; - * * @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 { @@ -1988,61 +1843,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; - * * @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; } /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; - * * @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; @@ -2050,67 +1898,51 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The type. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = - com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; } /** - * - * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @param value The type to set. * @return This builder for chaining. */ @@ -2118,24 +1950,21 @@ public Builder setType(com.google.cloud.baremetalsolution.v2.Network.Type value) if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -2143,20 +1972,18 @@ public Builder clearType() { private java.lang.Object ipAddress_ = ""; /** - * - * *
      * IP address configured.
      * 
* * string ip_address = 3; - * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -2165,21 +1992,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
      * IP address configured.
      * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -2187,112 +2013,95 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
      * IP address configured.
      * 
* * string ip_address = 3; - * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress(java.lang.String value) { + public Builder setIpAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** - * - * *
      * IP address configured.
      * 
* * string ip_address = 3; - * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** - * - * *
      * IP address configured.
      * 
* * string ip_address = 3; - * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList macAddress_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMacAddressIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { macAddress_ = new com.google.protobuf.LazyStringArrayList(macAddress_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @return A list containing the macAddress. */ - public com.google.protobuf.ProtocolStringList getMacAddressList() { + public com.google.protobuf.ProtocolStringList + getMacAddressList() { return macAddress_.getUnmodifiableView(); } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @return The count of macAddress. */ public int getMacAddressCount() { return macAddress_.size(); } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param index The index of the element to return. * @return The macAddress at the given index. */ @@ -2300,90 +2109,80 @@ public java.lang.String getMacAddress(int index) { return macAddress_.get(index); } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - public com.google.protobuf.ByteString getMacAddressBytes(int index) { + public com.google.protobuf.ByteString + getMacAddressBytes(int index) { return macAddress_.getByteString(index); } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param index The index to set the value at. * @param value The macAddress to set. * @return This builder for chaining. */ - public Builder setMacAddress(int index, java.lang.String value) { + public Builder setMacAddress( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); macAddress_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param value The macAddress to add. * @return This builder for chaining. */ - public Builder addMacAddress(java.lang.String value) { + public Builder addMacAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); macAddress_.add(value); onChanged(); return this; } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param values The macAddress to add. * @return This builder for chaining. */ - public Builder addAllMacAddress(java.lang.Iterable values) { + public Builder addAllMacAddress( + java.lang.Iterable values) { ensureMacAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, macAddress_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, macAddress_); onChanged(); return this; } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @return This builder for chaining. */ public Builder clearMacAddress() { @@ -2393,22 +2192,20 @@ public Builder clearMacAddress() { return this; } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param value The bytes of the macAddress to add. * @return This builder for chaining. */ - public Builder addMacAddressBytes(com.google.protobuf.ByteString value) { + public Builder addMacAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMacAddressIsMutable(); macAddress_.add(value); onChanged(); @@ -2417,67 +2214,51 @@ public Builder addMacAddressBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = - com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; } /** - * - * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2485,24 +2266,21 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Network.State valu if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2510,20 +2288,18 @@ public Builder clearState() { private java.lang.Object vlanId_ = ""; /** - * - * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; - * * @return The vlanId. */ public java.lang.String getVlanId() { java.lang.Object ref = vlanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vlanId_ = s; return s; @@ -2532,21 +2308,20 @@ public java.lang.String getVlanId() { } } /** - * - * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; - * * @return The bytes for vlanId. */ - public com.google.protobuf.ByteString getVlanIdBytes() { + public com.google.protobuf.ByteString + getVlanIdBytes() { java.lang.Object ref = vlanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vlanId_ = b; return b; } else { @@ -2554,61 +2329,54 @@ public com.google.protobuf.ByteString getVlanIdBytes() { } } /** - * - * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; - * * @param value The vlanId to set. * @return This builder for chaining. */ - public Builder setVlanId(java.lang.String value) { + public Builder setVlanId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vlanId_ = value; onChanged(); return this; } /** - * - * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; - * * @return This builder for chaining. */ public Builder clearVlanId() { - + vlanId_ = getDefaultInstance().getVlanId(); onChanged(); return this; } /** - * - * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; - * * @param value The bytes for vlanId to set. * @return This builder for chaining. */ - public Builder setVlanIdBytes(com.google.protobuf.ByteString value) { + public Builder setVlanIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vlanId_ = value; onChanged(); return this; @@ -2616,20 +2384,18 @@ public Builder setVlanIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object cidr_ = ""; /** - * - * *
      * The cidr of the Network.
      * 
* * string cidr = 8; - * * @return The cidr. */ public java.lang.String getCidr() { java.lang.Object ref = cidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; @@ -2638,21 +2404,20 @@ public java.lang.String getCidr() { } } /** - * - * *
      * The cidr of the Network.
      * 
* * string cidr = 8; - * * @return The bytes for cidr. */ - public com.google.protobuf.ByteString getCidrBytes() { + public com.google.protobuf.ByteString + getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cidr_ = b; return b; } else { @@ -2660,61 +2425,54 @@ public com.google.protobuf.ByteString getCidrBytes() { } } /** - * - * *
      * The cidr of the Network.
      * 
* * string cidr = 8; - * * @param value The cidr to set. * @return This builder for chaining. */ - public Builder setCidr(java.lang.String value) { + public Builder setCidr( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cidr_ = value; onChanged(); return this; } /** - * - * *
      * The cidr of the Network.
      * 
* * string cidr = 8; - * * @return This builder for chaining. */ public Builder clearCidr() { - + cidr_ = getDefaultInstance().getCidr(); onChanged(); return this; } /** - * - * *
      * The cidr of the Network.
      * 
* * string cidr = 8; - * * @param value The bytes for cidr to set. * @return This builder for chaining. */ - public Builder setCidrBytes(com.google.protobuf.ByteString value) { + public Builder setCidrBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidr_ = value; onChanged(); return this; @@ -2722,33 +2480,24 @@ public Builder setCidrBytes(com.google.protobuf.ByteString value) { private com.google.cloud.baremetalsolution.v2.VRF vrf_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, - com.google.cloud.baremetalsolution.v2.VRF.Builder, - com.google.cloud.baremetalsolution.v2.VRFOrBuilder> - vrfBuilder_; + com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> vrfBuilder_; /** - * - * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return Whether the vrf field is set. */ public boolean hasVrf() { return vrfBuilder_ != null || vrf_ != null; } /** - * - * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return The vrf. */ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { @@ -2759,8 +2508,6 @@ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { } } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2781,15 +2528,14 @@ public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF value) { return this; } /** - * - * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ - public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { + public Builder setVrf( + com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { if (vrfBuilder_ == null) { vrf_ = builderForValue.build(); onChanged(); @@ -2800,8 +2546,6 @@ public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF.Builder builderF return this; } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2812,14 +2556,7 @@ public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { if (vrfBuilder_ == null) { if (vrf_ != null) { vrf_ = - com.google - .cloud - .baremetalsolution - .v2 - .VRF - .newBuilder(vrf_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.VRF.newBuilder(vrf_).mergeFrom(value).buildPartial(); } else { vrf_ = value; } @@ -2831,8 +2568,6 @@ public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { return this; } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2851,8 +2586,6 @@ public Builder clearVrf() { return this; } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2860,13 +2593,11 @@ public Builder clearVrf() { * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ public com.google.cloud.baremetalsolution.v2.VRF.Builder getVrfBuilder() { - + onChanged(); return getVrfFieldBuilder().getBuilder(); } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2877,12 +2608,11 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { if (vrfBuilder_ != null) { return vrfBuilder_.getMessageOrBuilder(); } else { - return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; + return vrf_ == null ? + com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; } } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2890,37 +2620,35 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, - com.google.cloud.baremetalsolution.v2.VRF.Builder, - com.google.cloud.baremetalsolution.v2.VRFOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> getVrfFieldBuilder() { if (vrfBuilder_ == null) { - vrfBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, - com.google.cloud.baremetalsolution.v2.VRF.Builder, - com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( - getVrf(), getParentForChildren(), isClean()); + vrfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( + getVrf(), + getParentForChildren(), + isClean()); vrf_ = null; } return vrfBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2932,30 +2660,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2963,12 +2689,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 11; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2976,17 +2701,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2994,11 +2718,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3006,80 +2731,81 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object servicesCidr_ = ""; /** - * - * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; - * * @return The servicesCidr. */ public java.lang.String getServicesCidr() { java.lang.Object ref = servicesCidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servicesCidr_ = s; return s; @@ -3088,21 +2814,20 @@ public java.lang.String getServicesCidr() { } } /** - * - * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; - * * @return The bytes for servicesCidr. */ - public com.google.protobuf.ByteString getServicesCidrBytes() { + public com.google.protobuf.ByteString + getServicesCidrBytes() { java.lang.Object ref = servicesCidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servicesCidr_ = b; return b; } else { @@ -3110,99 +2835,81 @@ public com.google.protobuf.ByteString getServicesCidrBytes() { } } /** - * - * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; - * * @param value The servicesCidr to set. * @return This builder for chaining. */ - public Builder setServicesCidr(java.lang.String value) { + public Builder setServicesCidr( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + servicesCidr_ = value; onChanged(); return this; } /** - * - * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; - * * @return This builder for chaining. */ public Builder clearServicesCidr() { - + servicesCidr_ = getDefaultInstance().getServicesCidr(); onChanged(); return this; } /** - * - * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; - * * @param value The bytes for servicesCidr to set. * @return This builder for chaining. */ - public Builder setServicesCidrBytes(com.google.protobuf.ByteString value) { + public Builder setServicesCidrBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesCidr_ = value; onChanged(); return this; } - private java.util.List - reservations_ = java.util.Collections.emptyList(); - + private java.util.List reservations_ = + java.util.Collections.emptyList(); private void ensureReservationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - reservations_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>(reservations_); + reservations_ = new java.util.ArrayList(reservations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> - reservationsBuilder_; + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> reservationsBuilder_; /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public java.util.List - getReservationsList() { + public java.util.List getReservationsList() { if (reservationsBuilder_ == null) { return java.util.Collections.unmodifiableList(reservations_); } else { @@ -3210,17 +2917,13 @@ private void ensureReservationsIsMutable() { } } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public int getReservationsCount() { if (reservationsBuilder_ == null) { @@ -3230,20 +2933,15 @@ public int getReservationsCount() { } } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { if (reservationsBuilder_ == null) { return reservations_.get(index); } else { @@ -3251,17 +2949,13 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReserv } } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder setReservations( int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { @@ -3278,21 +2972,16 @@ public Builder setReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder setReservations( - int index, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.set(index, builderForValue.build()); @@ -3303,20 +2992,15 @@ public Builder setReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public Builder addReservations( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { + public Builder addReservations(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { if (reservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3330,17 +3014,13 @@ public Builder addReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder addReservations( int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { @@ -3357,17 +3037,13 @@ public Builder addReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder addReservations( com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { @@ -3381,21 +3057,16 @@ public Builder addReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder addReservations( - int index, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.add(index, builderForValue.build()); @@ -3406,25 +3077,20 @@ public Builder addReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder addAllReservations( - java.lang.Iterable< - ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservation> - values) { + java.lang.Iterable values) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, reservations_); onChanged(); } else { reservationsBuilder_.addAllMessages(values); @@ -3432,17 +3098,13 @@ public Builder addAllReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder clearReservations() { if (reservationsBuilder_ == null) { @@ -3455,17 +3117,13 @@ public Builder clearReservations() { return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder removeReservations(int index) { if (reservationsBuilder_ == null) { @@ -3478,59 +3136,45 @@ public Builder removeReservations(int index) { return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder - getReservationsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder getReservationsBuilder( + int index) { return getReservationsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder - getReservationsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( + int index) { if (reservationsBuilder_ == null) { - return reservations_.get(index); - } else { + return reservations_.get(index); } else { return reservationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> - getReservationsOrBuilderList() { + public java.util.List + getReservationsOrBuilderList() { if (reservationsBuilder_ != null) { return reservationsBuilder_.getMessageOrBuilderList(); } else { @@ -3538,81 +3182,62 @@ public Builder removeReservations(int index) { } } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder - addReservationsBuilder() { - return getReservationsFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder() { + return getReservationsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder - addReservationsBuilder(int index) { - return getReservationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder( + int index) { + return getReservationsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public java.util.List - getReservationsBuilderList() { + public java.util.List + getReservationsBuilderList() { return getReservationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> getReservationsFieldBuilder() { if (reservationsBuilder_ == null) { - reservationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( - reservations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( + reservations_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); reservations_ = null; } return reservationsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3622,12 +3247,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Network) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Network) private static final com.google.cloud.baremetalsolution.v2.Network DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Network(); } @@ -3636,16 +3261,16 @@ public static com.google.cloud.baremetalsolution.v2.Network getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Network parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Network(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Network parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Network(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3660,4 +3285,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Network getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java index fa6c9b0..30e66f8 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A reservation of one or more addresses in a network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} */ -public final class NetworkAddressReservation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NetworkAddressReservation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) NetworkAddressReservationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NetworkAddressReservation.newBuilder() to construct. private NetworkAddressReservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkAddressReservation() { startAddress_ = ""; endAddress_ = ""; @@ -45,15 +27,16 @@ private NetworkAddressReservation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkAddressReservation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NetworkAddressReservation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private NetworkAddressReservation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - startAddress_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + startAddress_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - endAddress_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + endAddress_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - note_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + note_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,40 +87,35 @@ private NetworkAddressReservation( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); } public static final int START_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object startAddress_; /** - * - * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; - * * @return The startAddress. */ @java.lang.Override @@ -149,30 +124,30 @@ public java.lang.String getStartAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startAddress_ = s; return s; } } /** - * - * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; - * * @return The bytes for startAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getStartAddressBytes() { + public com.google.protobuf.ByteString + getStartAddressBytes() { java.lang.Object ref = startAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); startAddress_ = b; return b; } else { @@ -183,8 +158,6 @@ public com.google.protobuf.ByteString getStartAddressBytes() { public static final int END_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object endAddress_; /** - * - * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -193,7 +166,6 @@ public com.google.protobuf.ByteString getStartAddressBytes() {
    * 
* * string end_address = 2; - * * @return The endAddress. */ @java.lang.Override @@ -202,15 +174,14 @@ public java.lang.String getEndAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endAddress_ = s; return s; } } /** - * - * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -219,15 +190,16 @@ public java.lang.String getEndAddress() {
    * 
* * string end_address = 2; - * * @return The bytes for endAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getEndAddressBytes() { + public com.google.protobuf.ByteString + getEndAddressBytes() { java.lang.Object ref = endAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); endAddress_ = b; return b; } else { @@ -238,14 +210,11 @@ public com.google.protobuf.ByteString getEndAddressBytes() { public static final int NOTE_FIELD_NUMBER = 3; private volatile java.lang.Object note_; /** - * - * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; - * * @return The note. */ @java.lang.Override @@ -254,29 +223,29 @@ public java.lang.String getNote() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); note_ = s; return s; } } /** - * - * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; - * * @return The bytes for note. */ @java.lang.Override - public com.google.protobuf.ByteString getNoteBytes() { + public com.google.protobuf.ByteString + getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); note_ = b; return b; } else { @@ -285,7 +254,6 @@ public com.google.protobuf.ByteString getNoteBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,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(startAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startAddress_); } @@ -333,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.baremetalsolution.v2.NetworkAddressReservation)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = - (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; - if (!getStartAddress().equals(other.getStartAddress())) return false; - if (!getEndAddress().equals(other.getEndAddress())) return false; - if (!getNote().equals(other.getNote())) return false; + if (!getStartAddress() + .equals(other.getStartAddress())) return false; + if (!getEndAddress() + .equals(other.getEndAddress())) return false; + if (!getNote() + .equals(other.getNote())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -367,127 +338,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 reservation of one or more addresses in a network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.newBuilder() @@ -495,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(); @@ -517,14 +479,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance(); } @@ -539,8 +500,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPartial() { - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = - new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); result.startAddress_ = startAddress_; result.endAddress_ = endAddress_; result.note_ = note_; @@ -552,50 +512,46 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { - if (other - == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { + if (other == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) return this; if (!other.getStartAddress().isEmpty()) { startAddress_ = other.startAddress_; onChanged(); @@ -627,9 +583,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -641,21 +595,19 @@ public Builder mergeFrom( private java.lang.Object startAddress_ = ""; /** - * - * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; - * * @return The startAddress. */ public java.lang.String getStartAddress() { java.lang.Object ref = startAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startAddress_ = s; return s; @@ -664,22 +616,21 @@ public java.lang.String getStartAddress() { } } /** - * - * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; - * * @return The bytes for startAddress. */ - public com.google.protobuf.ByteString getStartAddressBytes() { + public com.google.protobuf.ByteString + getStartAddressBytes() { java.lang.Object ref = startAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); startAddress_ = b; return b; } else { @@ -687,64 +638,57 @@ public com.google.protobuf.ByteString getStartAddressBytes() { } } /** - * - * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; - * * @param value The startAddress to set. * @return This builder for chaining. */ - public Builder setStartAddress(java.lang.String value) { + public Builder setStartAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + startAddress_ = value; onChanged(); return this; } /** - * - * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; - * * @return This builder for chaining. */ public Builder clearStartAddress() { - + startAddress_ = getDefaultInstance().getStartAddress(); onChanged(); return this; } /** - * - * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; - * * @param value The bytes for startAddress to set. * @return This builder for chaining. */ - public Builder setStartAddressBytes(com.google.protobuf.ByteString value) { + public Builder setStartAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + startAddress_ = value; onChanged(); return this; @@ -752,8 +696,6 @@ public Builder setStartAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object endAddress_ = ""; /** - * - * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -762,13 +704,13 @@ public Builder setStartAddressBytes(com.google.protobuf.ByteString value) {
      * 
* * string end_address = 2; - * * @return The endAddress. */ public java.lang.String getEndAddress() { java.lang.Object ref = endAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endAddress_ = s; return s; @@ -777,8 +719,6 @@ public java.lang.String getEndAddress() { } } /** - * - * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -787,14 +727,15 @@ public java.lang.String getEndAddress() {
      * 
* * string end_address = 2; - * * @return The bytes for endAddress. */ - public com.google.protobuf.ByteString getEndAddressBytes() { + public com.google.protobuf.ByteString + getEndAddressBytes() { java.lang.Object ref = endAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); endAddress_ = b; return b; } else { @@ -802,8 +743,6 @@ public com.google.protobuf.ByteString getEndAddressBytes() { } } /** - * - * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -812,22 +751,20 @@ public com.google.protobuf.ByteString getEndAddressBytes() {
      * 
* * string end_address = 2; - * * @param value The endAddress to set. * @return This builder for chaining. */ - public Builder setEndAddress(java.lang.String value) { + public Builder setEndAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endAddress_ = value; onChanged(); return this; } /** - * - * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -836,18 +773,15 @@ public Builder setEndAddress(java.lang.String value) {
      * 
* * string end_address = 2; - * * @return This builder for chaining. */ public Builder clearEndAddress() { - + endAddress_ = getDefaultInstance().getEndAddress(); onChanged(); return this; } /** - * - * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -856,16 +790,16 @@ public Builder clearEndAddress() {
      * 
* * string end_address = 2; - * * @param value The bytes for endAddress to set. * @return This builder for chaining. */ - public Builder setEndAddressBytes(com.google.protobuf.ByteString value) { + public Builder setEndAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endAddress_ = value; onChanged(); return this; @@ -873,20 +807,18 @@ public Builder setEndAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object note_ = ""; /** - * - * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; - * * @return The note. */ public java.lang.String getNote() { java.lang.Object ref = note_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); note_ = s; return s; @@ -895,21 +827,20 @@ public java.lang.String getNote() { } } /** - * - * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; - * * @return The bytes for note. */ - public com.google.protobuf.ByteString getNoteBytes() { + public com.google.protobuf.ByteString + getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); note_ = b; return b; } else { @@ -917,68 +848,61 @@ public com.google.protobuf.ByteString getNoteBytes() { } } /** - * - * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; - * * @param value The note to set. * @return This builder for chaining. */ - public Builder setNote(java.lang.String value) { + public Builder setNote( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + note_ = value; onChanged(); return this; } /** - * - * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; - * * @return This builder for chaining. */ public Builder clearNote() { - + note_ = getDefaultInstance().getNote(); onChanged(); return this; } /** - * - * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; - * * @param value The bytes for note to set. * @return This builder for chaining. */ - public Builder setNoteBytes(com.google.protobuf.ByteString value) { + public Builder setNoteBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + note_ = 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); } @@ -988,32 +912,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) - private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkAddressReservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkAddressReservation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkAddressReservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkAddressReservation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,8 +947,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java index a9839c9..9f27f17 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkAddressReservationOrBuilder - extends +public interface NetworkAddressReservationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkAddressReservation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; - * * @return The startAddress. */ java.lang.String getStartAddress(); /** - * - * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; - * * @return The bytes for startAddress. */ - com.google.protobuf.ByteString getStartAddressBytes(); + com.google.protobuf.ByteString + getStartAddressBytes(); /** - * - * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -61,13 +38,10 @@ public interface NetworkAddressReservationOrBuilder
    * 
* * string end_address = 2; - * * @return The endAddress. */ java.lang.String getEndAddress(); /** - * - * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -76,33 +50,28 @@ public interface NetworkAddressReservationOrBuilder
    * 
* * string end_address = 2; - * * @return The bytes for endAddress. */ - com.google.protobuf.ByteString getEndAddressBytes(); + com.google.protobuf.ByteString + getEndAddressBytes(); /** - * - * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; - * * @return The note. */ java.lang.String getNote(); /** - * - * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; - * * @return The bytes for note. */ - com.google.protobuf.ByteString getNoteBytes(); + com.google.protobuf.ByteString + getNoteBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java similarity index 78% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java index 8f4c764..a9ee27f 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkOrBuilder - extends +public interface NetworkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Network) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -35,13 +17,10 @@ public interface NetworkOrBuilder
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -51,239 +30,189 @@ public interface NetworkOrBuilder
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The type. */ com.google.cloud.baremetalsolution.v2.Network.Type getType(); /** - * - * *
    * IP address configured.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
    * IP address configured.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @return A list containing the macAddress. */ - java.util.List getMacAddressList(); + java.util.List + getMacAddressList(); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @return The count of macAddress. */ int getMacAddressCount(); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @param index The index of the element to return. * @return The macAddress at the given index. */ java.lang.String getMacAddress(int index); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - com.google.protobuf.ByteString getMacAddressBytes(int index); + com.google.protobuf.ByteString + getMacAddressBytes(int index); /** - * - * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Network.State getState(); /** - * - * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; - * * @return The vlanId. */ java.lang.String getVlanId(); /** - * - * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; - * * @return The bytes for vlanId. */ - com.google.protobuf.ByteString getVlanIdBytes(); + com.google.protobuf.ByteString + getVlanIdBytes(); /** - * - * *
    * The cidr of the Network.
    * 
* * string cidr = 8; - * * @return The cidr. */ java.lang.String getCidr(); /** - * - * *
    * The cidr of the Network.
    * 
* * string cidr = 8; - * * @return The bytes for cidr. */ - com.google.protobuf.ByteString getCidrBytes(); + com.google.protobuf.ByteString + getCidrBytes(); /** - * - * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return Whether the vrf field is set. */ boolean hasVrf(); /** - * - * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return The vrf. */ com.google.cloud.baremetalsolution.v2.VRF getVrf(); /** - * - * *
    * The vrf for the Network.
    * 
@@ -293,8 +222,6 @@ public interface NetworkOrBuilder com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -303,31 +230,30 @@ public interface NetworkOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -336,111 +262,91 @@ public interface NetworkOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; - * * @return The servicesCidr. */ java.lang.String getServicesCidr(); /** - * - * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; - * * @return The bytes for servicesCidr. */ - com.google.protobuf.ByteString getServicesCidrBytes(); + com.google.protobuf.ByteString + getServicesCidrBytes(); /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - java.util.List + java.util.List getReservationsList(); /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index); /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ int getReservationsCount(); /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - java.util.List + java.util.List getReservationsOrBuilderList(); /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( int index); diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java new file mode 100644 index 0000000..e830e19 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java @@ -0,0 +1,283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NetworkProto { + private NetworkProto() {} + 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_baremetalsolution_v2_Network_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" + + "ork.proto\022!google.cloud.baremetalsolutio" + + "n.v2\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032 google/protobu" + + "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" + + " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" + + "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" + + "metalsolution.v2.Network.State\022\017\n\007vlan_i" + + "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" + + "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" + + "bels\030\013 \003(\01326.google.cloud.baremetalsolut" + + "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" + + "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" + + ".cloud.baremetalsolution.v2.NetworkAddre" + + "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" + + "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" + + "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" + + "lution.googleapis.com/Network\022:projects/" + + "{project}/locations/{location}/networks/" + + "{network}\"U\n\031NetworkAddressReservation\022\025" + + "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" + + "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" + + "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" + + "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" + + "0.google.cloud.baremetalsolution.v2.VRF." + + "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" + + "ogle.cloud.baremetalsolution.v2.VRF.Vlan" + + "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" + + "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" + + "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " + + "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" + + "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" + + "alInterface\022o\n\032logical_network_interface" + + "s\030\001 \003(\0132K.google.cloud.baremetalsolution" + + ".v2.LogicalInterface.LogicalNetworkInter" + + "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " + + "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" + + "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" + + "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" + + "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" + + "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" + + "(\0132*.google.cloud.baremetalsolution.v2.N" + + "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" + + "\007network\030\001 \001(\0132*.google.cloud.baremetals" + + "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" + + "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" + + ".baremetalsolution.v2.Network\022\020\n\010used_ip" + + "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" + + "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\"]\n\030ListNetworkUsageRespo" + + "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" + + "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" + + "oogle.cloud.baremetalsolution.v2B\014Networ" + + "kProtoP\001ZRgoogle.golang.org/genproto/goo" + + "gleapis/cloud/baremetalsolution/v2;barem" + + "etalsolution\252\002!Google.Cloud.BareMetalSol" + + "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" + + "n\\V2\352\002$Google::Cloud::BareMetalSolution:" + + ":V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, + new java.lang.String[] { "Name", "Id", "Type", "IpAddress", "MacAddress", "State", "VlanId", "Cidr", "Vrf", "Labels", "ServicesCidr", "Reservations", }); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, + new java.lang.String[] { "StartAddress", "EndAddress", "Note", }); + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, + new java.lang.String[] { "Name", "State", "QosPolicy", "VlanAttachments", }); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, + new java.lang.String[] { "BandwidthGbps", }); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, + new java.lang.String[] { "PeerVlanId", "PeerIp", "RouterIp", }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, + new java.lang.String[] { "LogicalNetworkInterfaces", "Name", "InterfaceIndex", }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, + new java.lang.String[] { "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", }); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, + new java.lang.String[] { "Networks", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, + new java.lang.String[] { "Network", "UpdateMask", }); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, + new java.lang.String[] { "Network", "UsedIps", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, + new java.lang.String[] { "Location", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, + new java.lang.String[] { "Networks", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java similarity index 69% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java index 19550dd..3ffd7b9 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Network with all used IP addresses.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} */ -public final class NetworkUsage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NetworkUsage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkUsage) NetworkUsageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NetworkUsage.newBuilder() to construct. private NetworkUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkUsage() { usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkUsage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NetworkUsage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,39 +54,35 @@ private NetworkUsage( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; - if (network_ != null) { - subBuilder = network_.toBuilder(); - } - network_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(network_); - network_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - usedIps_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - usedIps_.add(s); - break; + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + usedIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + usedIps_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +90,8 @@ private NetworkUsage( } 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)) { usedIps_ = usedIps_.getUnmodifiableView(); @@ -120,33 +100,27 @@ private NetworkUsage( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkUsage.class, - com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Network network_; /** - * - * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return Whether the network field is set. */ @java.lang.Override @@ -154,25 +128,18 @@ public boolean hasNetwork() { return network_ != null; } /** - * - * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return The network. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network getNetwork() { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } /** - * - * *
    * Network.
    * 
@@ -187,42 +154,34 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde public static final int USED_IPS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList usedIps_; /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @return A list containing the usedIps. */ - public com.google.protobuf.ProtocolStringList getUsedIpsList() { + public com.google.protobuf.ProtocolStringList + getUsedIpsList() { return usedIps_; } /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @return The count of usedIps. */ public int getUsedIpsCount() { return usedIps_.size(); } /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @param index The index of the element to return. * @return The usedIps at the given index. */ @@ -230,23 +189,20 @@ public java.lang.String getUsedIps(int index) { return usedIps_.get(index); } /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - public com.google.protobuf.ByteString getUsedIpsBytes(int index) { + public com.google.protobuf.ByteString + getUsedIpsBytes(int index) { return usedIps_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,7 +214,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 (network_ != null) { output.writeMessage(1, getNetwork()); } @@ -275,7 +232,8 @@ public int getSerializedSize() { size = 0; if (network_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetwork()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNetwork()); } { int dataSize = 0; @@ -293,19 +251,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.baremetalsolution.v2.NetworkUsage)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NetworkUsage other = - (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; + com.google.cloud.baremetalsolution.v2.NetworkUsage other = (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; if (hasNetwork() != other.hasNetwork()) return false; if (hasNetwork()) { - if (!getNetwork().equals(other.getNetwork())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; } - if (!getUsedIpsList().equals(other.getUsedIpsList())) return false; + if (!getUsedIpsList() + .equals(other.getUsedIpsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,126 +290,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Network with all used IP addresses.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkUsage) com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkUsage.class, - com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkUsage.newBuilder() @@ -458,15 +408,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(); @@ -482,9 +433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override @@ -503,8 +454,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { - com.google.cloud.baremetalsolution.v2.NetworkUsage result = - new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); + com.google.cloud.baremetalsolution.v2.NetworkUsage result = new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); int from_bitField0_ = bitField0_; if (networkBuilder_ == null) { result.network_ = network_; @@ -524,39 +474,38 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkUsage) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage)other); } else { super.mergeFrom(other); return this; @@ -564,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkUsage other) { - if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) return this; if (other.hasNetwork()) { mergeNetwork(other.getNetwork()); } @@ -598,8 +546,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,52 +555,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.baremetalsolution.v2.Network network_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - networkBuilder_; + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; /** - * - * *
      * Network.
      * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** - * - * *
      * Network.
      * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return The network. */ public com.google.cloud.baremetalsolution.v2.Network getNetwork() { if (networkBuilder_ == null) { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } else { return networkBuilder_.getMessage(); } } /** - * - * *
      * Network.
      * 
@@ -674,8 +607,6 @@ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { return this; } /** - * - * *
      * Network.
      * 
@@ -694,8 +625,6 @@ public Builder setNetwork( return this; } /** - * - * *
      * Network.
      * 
@@ -706,9 +635,7 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); } else { network_ = value; } @@ -720,8 +647,6 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** - * - * *
      * Network.
      * 
@@ -740,8 +665,6 @@ public Builder clearNetwork() { return this; } /** - * - * *
      * Network.
      * 
@@ -749,13 +672,11 @@ public Builder clearNetwork() { * .google.cloud.baremetalsolution.v2.Network network = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** - * - * *
      * Network.
      * 
@@ -766,14 +687,11 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilder(); } else { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } } /** - * - * *
      * Network.
      * 
@@ -781,68 +699,55 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde * .google.cloud.baremetalsolution.v2.Network network = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { - networkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - getNetwork(), getParentForChildren(), isClean()); + networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), + getParentForChildren(), + isClean()); network_ = null; } return networkBuilder_; } - private com.google.protobuf.LazyStringList usedIps_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUsedIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { usedIps_ = new com.google.protobuf.LazyStringArrayList(usedIps_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @return A list containing the usedIps. */ - public com.google.protobuf.ProtocolStringList getUsedIpsList() { + public com.google.protobuf.ProtocolStringList + getUsedIpsList() { return usedIps_.getUnmodifiableView(); } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @return The count of usedIps. */ public int getUsedIpsCount() { return usedIps_.size(); } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param index The index of the element to return. * @return The usedIps at the given index. */ @@ -850,90 +755,80 @@ public java.lang.String getUsedIps(int index) { return usedIps_.get(index); } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - public com.google.protobuf.ByteString getUsedIpsBytes(int index) { + public com.google.protobuf.ByteString + getUsedIpsBytes(int index) { return usedIps_.getByteString(index); } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param index The index to set the value at. * @param value The usedIps to set. * @return This builder for chaining. */ - public Builder setUsedIps(int index, java.lang.String value) { + public Builder setUsedIps( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUsedIpsIsMutable(); + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); usedIps_.set(index, value); onChanged(); return this; } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param value The usedIps to add. * @return This builder for chaining. */ - public Builder addUsedIps(java.lang.String value) { + public Builder addUsedIps( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUsedIpsIsMutable(); + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); usedIps_.add(value); onChanged(); return this; } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param values The usedIps to add. * @return This builder for chaining. */ - public Builder addAllUsedIps(java.lang.Iterable values) { + public Builder addAllUsedIps( + java.lang.Iterable values) { ensureUsedIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, usedIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, usedIps_); onChanged(); return this; } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @return This builder for chaining. */ public Builder clearUsedIps() { @@ -943,30 +838,28 @@ public Builder clearUsedIps() { return this; } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param value The bytes of the usedIps to add. * @return This builder for chaining. */ - public Builder addUsedIpsBytes(com.google.protobuf.ByteString value) { + public Builder addUsedIpsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUsedIpsIsMutable(); usedIps_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,12 +869,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkUsage) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkUsage) private static final com.google.cloud.baremetalsolution.v2.NetworkUsage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkUsage(); } @@ -990,16 +883,16 @@ public static com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkUsage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkUsage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkUsage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1014,4 +907,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java similarity index 67% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java index 60acf99..ea45772 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkUsageOrBuilder - extends +public interface NetworkUsageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkUsage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return Whether the network field is set. */ boolean hasNetwork(); /** - * - * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return The network. */ com.google.cloud.baremetalsolution.v2.Network getNetwork(); /** - * - * *
    * Network.
    * 
@@ -59,53 +35,43 @@ public interface NetworkUsageOrBuilder com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @return A list containing the usedIps. */ - java.util.List getUsedIpsList(); + java.util.List + getUsedIpsList(); /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @return The count of usedIps. */ int getUsedIpsCount(); /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @param index The index of the element to return. * @return The usedIps at the given index. */ java.lang.String getUsedIps(int index); /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - com.google.protobuf.ByteString getUsedIpsBytes(int index); + com.google.protobuf.ByteString + getUsedIpsBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java similarity index 71% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java index b8bb184..7be4d09 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * An NFS share.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} */ -public final class NfsShare extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NfsShare extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare) NfsShareOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NfsShare.newBuilder() to construct. private NfsShare(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NfsShare() { name_ = ""; nfsShareId_ = ""; @@ -47,15 +29,16 @@ private NfsShare() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NfsShare(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NfsShare( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,68 +58,59 @@ private NfsShare( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nfsShareId_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + nfsShareId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - volume_ = s; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedClients_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient>(); - mutable_bitField0_ |= 0x00000001; - } - allowedClients_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), - extensionRegistry)); - break; + volume_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedClients_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + allowedClients_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +118,8 @@ private NfsShare( } 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)) { allowedClients_ = java.util.Collections.unmodifiableList(allowedClients_); @@ -153,46 +128,41 @@ private NfsShare( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.class, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); } /** - * - * *
    * The possible states for this NFS share.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The share is in an unknown state.
      * 
@@ -201,8 +171,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The share has been provisioned.
      * 
@@ -214,8 +182,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The share is in an unknown state.
      * 
@@ -224,8 +190,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The share has been provisioned.
      * 
@@ -234,6 +198,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONED_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -258,47 +223,48 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -316,18 +282,15 @@ private State(int value) { } /** - * - * *
    * The possible mount permissions.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.MountPermissions} */ - public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum { + public enum MountPermissions + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Permissions were not specified.
      * 
@@ -336,8 +299,6 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum */ MOUNT_PERMISSIONS_UNSPECIFIED(0), /** - * - * *
      * NFS share can be mount with read-only permissions.
      * 
@@ -346,8 +307,6 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum */ READ(1), /** - * - * *
      * NFS share can be mount with read-write permissions.
      * 
@@ -359,8 +318,6 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Permissions were not specified.
      * 
@@ -369,8 +326,6 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum */ public static final int MOUNT_PERMISSIONS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * NFS share can be mount with read-only permissions.
      * 
@@ -379,8 +334,6 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum */ public static final int READ_VALUE = 1; /** - * - * *
      * NFS share can be mount with read-write permissions.
      * 
@@ -389,6 +342,7 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum */ public static final int READ_WRITE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -413,42 +367,39 @@ public static MountPermissions valueOf(int value) { */ public static MountPermissions forNumber(int value) { switch (value) { - case 0: - return MOUNT_PERMISSIONS_UNSPECIFIED; - case 1: - return READ; - case 2: - return READ_WRITE; - default: - return null; + case 0: return MOUNT_PERMISSIONS_UNSPECIFIED; + case 1: return READ; + case 2: return READ_WRITE; + 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< + MountPermissions> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MountPermissions findValueByNumber(int number) { + return MountPermissions.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MountPermissions findValueByNumber(int number) { - return MountPermissions.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(1); } @@ -457,7 +408,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static MountPermissions 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; @@ -474,142 +426,110 @@ private MountPermissions(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.NfsShare.MountPermissions) } - public interface AllowedClientOrBuilder - extends + public interface AllowedClientOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; - * * @return The shareIp. */ java.lang.String getShareIp(); /** - * - * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; - * * @return The bytes for shareIp. */ - com.google.protobuf.ByteString getShareIpBytes(); + com.google.protobuf.ByteString + getShareIpBytes(); /** - * - * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; - * * @return The allowedClientsCidr. */ java.lang.String getAllowedClientsCidr(); /** - * - * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; - * * @return The bytes for allowedClientsCidr. */ - com.google.protobuf.ByteString getAllowedClientsCidrBytes(); + com.google.protobuf.ByteString + getAllowedClientsCidrBytes(); /** - * - * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The enum numeric value on the wire for mountPermissions. */ int getMountPermissionsValue(); /** - * - * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The mountPermissions. */ com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions(); /** - * - * *
      * Allow dev flag.  Which controls whether to allow creation of devices.
      * 
* * bool allow_dev = 5; - * * @return The allowDev. */ boolean getAllowDev(); /** - * - * *
      * Allow the setuid flag.
      * 
* * bool allow_suid = 6; - * * @return The allowSuid. */ boolean getAllowSuid(); /** - * - * *
      * Disable root squashing, which is a feature of NFS.
      * Root squash is a special mapping of the remote superuser (root) identity
@@ -617,30 +537,26 @@ public interface AllowedClientOrBuilder
      * 
* * bool no_root_squash = 7; - * * @return The noRootSquash. */ boolean getNoRootSquash(); } /** - * - * *
    * Represents an 'access point' for the share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} */ - public static final class AllowedClient extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AllowedClient extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) AllowedClientOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowedClient.newBuilder() to construct. private AllowedClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AllowedClient() { network_ = ""; shareIp_ = ""; @@ -650,15 +566,16 @@ private AllowedClient() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AllowedClient(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AllowedClient( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -677,56 +594,52 @@ private AllowedClient( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - network_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + network_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - shareIp_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + shareIp_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - allowedClientsCidr_ = s; - break; - } - case 32: - { - int rawValue = input.readEnum(); + allowedClientsCidr_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); - mountPermissions_ = rawValue; - break; - } - case 40: - { - allowDev_ = input.readBool(); - break; - } - case 48: - { - allowSuid_ = input.readBool(); - break; - } - case 56: - { - noRootSquash_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mountPermissions_ = rawValue; + break; + } + case 40: { + + allowDev_ = input.readBool(); + break; + } + case 48: { + + allowSuid_ = input.readBool(); + break; + } + case 56: { + + noRootSquash_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,39 +647,34 @@ private AllowedClient( } 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.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** - * - * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The network. */ @java.lang.Override @@ -775,29 +683,29 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -808,14 +716,11 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int SHARE_IP_FIELD_NUMBER = 2; private volatile java.lang.Object shareIp_; /** - * - * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; - * * @return The shareIp. */ @java.lang.Override @@ -824,29 +729,29 @@ public java.lang.String getShareIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareIp_ = s; return s; } } /** - * - * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; - * * @return The bytes for shareIp. */ @java.lang.Override - public com.google.protobuf.ByteString getShareIpBytes() { + public com.google.protobuf.ByteString + getShareIpBytes() { java.lang.Object ref = shareIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shareIp_ = b; return b; } else { @@ -857,14 +762,11 @@ public com.google.protobuf.ByteString getShareIpBytes() { public static final int ALLOWED_CLIENTS_CIDR_FIELD_NUMBER = 3; private volatile java.lang.Object allowedClientsCidr_; /** - * - * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; - * * @return The allowedClientsCidr. */ @java.lang.Override @@ -873,29 +775,29 @@ public java.lang.String getAllowedClientsCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClientsCidr_ = s; return s; } } /** - * - * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; - * * @return The bytes for allowedClientsCidr. */ @java.lang.Override - public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { + public com.google.protobuf.ByteString + getAllowedClientsCidrBytes() { java.lang.Object ref = allowedClientsCidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); allowedClientsCidr_ = b; return b; } else { @@ -906,55 +808,38 @@ public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { public static final int MOUNT_PERMISSIONS_FIELD_NUMBER = 4; private int mountPermissions_; /** - * - * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The enum numeric value on the wire for mountPermissions. */ - @java.lang.Override - public int getMountPermissionsValue() { + @java.lang.Override public int getMountPermissionsValue() { return mountPermissions_; } /** - * - * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The mountPermissions. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf( - mountPermissions_); - return result == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; } public static final int ALLOW_DEV_FIELD_NUMBER = 5; private boolean allowDev_; /** - * - * *
      * Allow dev flag.  Which controls whether to allow creation of devices.
      * 
* * bool allow_dev = 5; - * * @return The allowDev. */ @java.lang.Override @@ -965,14 +850,11 @@ public boolean getAllowDev() { public static final int ALLOW_SUID_FIELD_NUMBER = 6; private boolean allowSuid_; /** - * - * *
      * Allow the setuid flag.
      * 
* * bool allow_suid = 6; - * * @return The allowSuid. */ @java.lang.Override @@ -983,8 +865,6 @@ public boolean getAllowSuid() { public static final int NO_ROOT_SQUASH_FIELD_NUMBER = 7; private boolean noRootSquash_; /** - * - * *
      * Disable root squashing, which is a feature of NFS.
      * Root squash is a special mapping of the remote superuser (root) identity
@@ -992,7 +872,6 @@ public boolean getAllowSuid() {
      * 
* * bool no_root_squash = 7; - * * @return The noRootSquash. */ @java.lang.Override @@ -1001,7 +880,6 @@ public boolean getNoRootSquash() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1013,7 +891,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(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -1023,10 +902,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allowedClientsCidr_); } - if (mountPermissions_ - != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions - .MOUNT_PERMISSIONS_UNSPECIFIED - .getNumber()) { + if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { output.writeEnum(4, mountPermissions_); } if (allowDev_ != false) { @@ -1056,20 +932,21 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, allowedClientsCidr_); } - if (mountPermissions_ - != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions - .MOUNT_PERMISSIONS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, mountPermissions_); + if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, mountPermissions_); } if (allowDev_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowDev_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, allowDev_); } if (allowSuid_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowSuid_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, allowSuid_); } if (noRootSquash_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, noRootSquash_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, noRootSquash_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1079,21 +956,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.baremetalsolution.v2.NfsShare.AllowedClient)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = - (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getShareIp().equals(other.getShareIp())) return false; - if (!getAllowedClientsCidr().equals(other.getAllowedClientsCidr())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getShareIp() + .equals(other.getShareIp())) return false; + if (!getAllowedClientsCidr() + .equals(other.getAllowedClientsCidr())) return false; if (mountPermissions_ != other.mountPermissions_) return false; - if (getAllowDev() != other.getAllowDev()) return false; - if (getAllowSuid() != other.getAllowSuid()) return false; - if (getNoRootSquash() != other.getNoRootSquash()) return false; + if (getAllowDev() + != other.getAllowDev()) return false; + if (getAllowSuid() + != other.getAllowSuid()) return false; + if (getNoRootSquash() + != other.getNoRootSquash()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1114,105 +996,101 @@ public int hashCode() { hash = (37 * hash) + MOUNT_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + mountPermissions_; hash = (37 * hash) + ALLOW_DEV_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowDev()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowDev()); hash = (37 * hash) + ALLOW_SUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowSuid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowSuid()); hash = (37 * hash) + NO_ROOT_SQUASH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoRootSquash()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNoRootSquash()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1222,32 +1100,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represents an 'access point' for the share.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.newBuilder() @@ -1255,15 +1128,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(); @@ -1285,14 +1159,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance(); } @@ -1307,8 +1180,7 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial() { - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = - new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); result.network_ = network_; result.shareIp_ = shareIp_; result.allowedClientsCidr_ = allowedClientsCidr_; @@ -1324,41 +1196,38 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient)other); } else { super.mergeFrom(other); return this; @@ -1366,9 +1235,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other) { - if (other - == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -1412,9 +1279,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1426,20 +1291,18 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** - * - * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1448,21 +1311,20 @@ public java.lang.String getNetwork() { } } /** - * - * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -1470,61 +1332,54 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -1532,20 +1387,18 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object shareIp_ = ""; /** - * - * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; - * * @return The shareIp. */ public java.lang.String getShareIp() { java.lang.Object ref = shareIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareIp_ = s; return s; @@ -1554,21 +1407,20 @@ public java.lang.String getShareIp() { } } /** - * - * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; - * * @return The bytes for shareIp. */ - public com.google.protobuf.ByteString getShareIpBytes() { + public com.google.protobuf.ByteString + getShareIpBytes() { java.lang.Object ref = shareIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shareIp_ = b; return b; } else { @@ -1576,61 +1428,54 @@ public com.google.protobuf.ByteString getShareIpBytes() { } } /** - * - * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; - * * @param value The shareIp to set. * @return This builder for chaining. */ - public Builder setShareIp(java.lang.String value) { + public Builder setShareIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + shareIp_ = value; onChanged(); return this; } /** - * - * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; - * * @return This builder for chaining. */ public Builder clearShareIp() { - + shareIp_ = getDefaultInstance().getShareIp(); onChanged(); return this; } /** - * - * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; - * * @param value The bytes for shareIp to set. * @return This builder for chaining. */ - public Builder setShareIpBytes(com.google.protobuf.ByteString value) { + public Builder setShareIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shareIp_ = value; onChanged(); return this; @@ -1638,20 +1483,18 @@ public Builder setShareIpBytes(com.google.protobuf.ByteString value) { private java.lang.Object allowedClientsCidr_ = ""; /** - * - * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; - * * @return The allowedClientsCidr. */ public java.lang.String getAllowedClientsCidr() { java.lang.Object ref = allowedClientsCidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClientsCidr_ = s; return s; @@ -1660,21 +1503,20 @@ public java.lang.String getAllowedClientsCidr() { } } /** - * - * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; - * * @return The bytes for allowedClientsCidr. */ - public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { + public com.google.protobuf.ByteString + getAllowedClientsCidrBytes() { java.lang.Object ref = allowedClientsCidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); allowedClientsCidr_ = b; return b; } else { @@ -1682,61 +1524,54 @@ public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { } } /** - * - * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; - * * @param value The allowedClientsCidr to set. * @return This builder for chaining. */ - public Builder setAllowedClientsCidr(java.lang.String value) { + public Builder setAllowedClientsCidr( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + allowedClientsCidr_ = value; onChanged(); return this; } /** - * - * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; - * * @return This builder for chaining. */ public Builder clearAllowedClientsCidr() { - + allowedClientsCidr_ = getDefaultInstance().getAllowedClientsCidr(); onChanged(); return this; } /** - * - * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; - * * @param value The bytes for allowedClientsCidr to set. * @return This builder for chaining. */ - public Builder setAllowedClientsCidrBytes(com.google.protobuf.ByteString value) { + public Builder setAllowedClientsCidrBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowedClientsCidr_ = value; onChanged(); return this; @@ -1744,114 +1579,85 @@ public Builder setAllowedClientsCidrBytes(com.google.protobuf.ByteString value) private int mountPermissions_ = 0; /** - * - * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The enum numeric value on the wire for mountPermissions. */ - @java.lang.Override - public int getMountPermissionsValue() { + @java.lang.Override public int getMountPermissionsValue() { return mountPermissions_; } /** - * - * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @param value The enum numeric value on the wire for mountPermissions to set. * @return This builder for chaining. */ public Builder setMountPermissionsValue(int value) { - + mountPermissions_ = value; onChanged(); return this; } /** - * - * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The mountPermissions. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf( - mountPermissions_); - return result == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; } /** - * - * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @param value The mountPermissions to set. * @return This builder for chaining. */ - public Builder setMountPermissions( - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { + public Builder setMountPermissions(com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { if (value == null) { throw new NullPointerException(); } - + mountPermissions_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return This builder for chaining. */ public Builder clearMountPermissions() { - + mountPermissions_ = 0; onChanged(); return this; } - private boolean allowDev_; + private boolean allowDev_ ; /** - * - * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; - * * @return The allowDev. */ @java.lang.Override @@ -1859,51 +1665,42 @@ public boolean getAllowDev() { return allowDev_; } /** - * - * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; - * * @param value The allowDev to set. * @return This builder for chaining. */ public Builder setAllowDev(boolean value) { - + allowDev_ = value; onChanged(); return this; } /** - * - * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; - * * @return This builder for chaining. */ public Builder clearAllowDev() { - + allowDev_ = false; onChanged(); return this; } - private boolean allowSuid_; + private boolean allowSuid_ ; /** - * - * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; - * * @return The allowSuid. */ @java.lang.Override @@ -1911,45 +1708,37 @@ public boolean getAllowSuid() { return allowSuid_; } /** - * - * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; - * * @param value The allowSuid to set. * @return This builder for chaining. */ public Builder setAllowSuid(boolean value) { - + allowSuid_ = value; onChanged(); return this; } /** - * - * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; - * * @return This builder for chaining. */ public Builder clearAllowSuid() { - + allowSuid_ = false; onChanged(); return this; } - private boolean noRootSquash_; + private boolean noRootSquash_ ; /** - * - * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1957,7 +1746,6 @@ public Builder clearAllowSuid() {
        * 
* * bool no_root_squash = 7; - * * @return The noRootSquash. */ @java.lang.Override @@ -1965,8 +1753,6 @@ public boolean getNoRootSquash() { return noRootSquash_; } /** - * - * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1974,19 +1760,16 @@ public boolean getNoRootSquash() {
        * 
* * bool no_root_squash = 7; - * * @param value The noRootSquash to set. * @return This builder for chaining. */ public Builder setNoRootSquash(boolean value) { - + noRootSquash_ = value; onChanged(); return this; } /** - * - * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1994,16 +1777,14 @@ public Builder setNoRootSquash(boolean value) {
        * 
* * bool no_root_squash = 7; - * * @return This builder for chaining. */ public Builder clearNoRootSquash() { - + noRootSquash_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2016,32 +1797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) - private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedClient parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedClient(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedClient parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedClient(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2053,23 +1832,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -2078,29 +1854,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2111,14 +1887,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NFS_SHARE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nfsShareId_; /** - * - * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nfsShareId. */ @java.lang.Override @@ -2127,29 +1900,29 @@ public java.lang.String getNfsShareId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nfsShareId_ = s; return s; } } /** - * - * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nfsShareId. */ @java.lang.Override - public com.google.protobuf.ByteString getNfsShareIdBytes() { + public com.google.protobuf.ByteString + getNfsShareIdBytes() { java.lang.Object ref = nfsShareId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nfsShareId_ = b; return b; } else { @@ -2160,52 +1933,38 @@ public com.google.protobuf.ByteString getNfsShareIdBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.State result = - com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; } public static final int VOLUME_FIELD_NUMBER = 4; private volatile java.lang.Object volume_; /** - * - * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The volume. */ @java.lang.Override @@ -2214,29 +1973,29 @@ public java.lang.String getVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; } } /** - * - * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for volume. */ @java.lang.Override - public com.google.protobuf.ByteString getVolumeBytes() { + public com.google.protobuf.ByteString + getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volume_ = b; return b; } else { @@ -2245,101 +2004,84 @@ public com.google.protobuf.ByteString getVolumeBytes() { } public static final int ALLOWED_CLIENTS_FIELD_NUMBER = 5; - private java.util.List - allowedClients_; + private java.util.List allowedClients_; /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ @java.lang.Override - public java.util.List - getAllowedClientsList() { + public java.util.List getAllowedClientsList() { return allowedClients_; } /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + public java.util.List getAllowedClientsOrBuilderList() { return allowedClients_; } /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ @java.lang.Override public int getAllowedClientsCount() { return allowedClients_.size(); } /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { return allowedClients_.get(index); } /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder - getAllowedClientsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( + int index) { return allowedClients_.get(index); } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -2348,30 +2090,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2379,12 +2119,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2392,16 +2131,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2409,11 +2148,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2421,7 +2161,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2433,15 +2172,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nfsShareId_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { @@ -2450,8 +2189,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < allowedClients_.size(); i++) { output.writeMessage(5, allowedClients_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); unknownFields.writeTo(output); } @@ -2467,25 +2210,26 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nfsShareId_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volume_); } for (int i = 0; i < allowedClients_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, allowedClients_.get(i)); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, allowedClients_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2495,20 +2239,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.baremetalsolution.v2.NfsShare)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NfsShare other = - (com.google.cloud.baremetalsolution.v2.NfsShare) obj; + com.google.cloud.baremetalsolution.v2.NfsShare other = (com.google.cloud.baremetalsolution.v2.NfsShare) obj; - if (!getName().equals(other.getName())) return false; - if (!getNfsShareId().equals(other.getNfsShareId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getNfsShareId() + .equals(other.getNfsShareId())) return false; if (state_ != other.state_) return false; - if (!getVolume().equals(other.getVolume())) return false; - if (!getAllowedClientsList().equals(other.getAllowedClientsList())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getVolume() + .equals(other.getVolume())) return false; + if (!getAllowedClientsList() + .equals(other.getAllowedClientsList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2541,147 +2289,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare 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.baremetalsolution.v2.NfsShare parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An NFS share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare) com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.class, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder() @@ -2689,17 +2430,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) { getAllowedClientsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2722,9 +2463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @java.lang.Override @@ -2743,8 +2484,7 @@ public com.google.cloud.baremetalsolution.v2.NfsShare build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { - com.google.cloud.baremetalsolution.v2.NfsShare result = - new com.google.cloud.baremetalsolution.v2.NfsShare(this); + com.google.cloud.baremetalsolution.v2.NfsShare result = new com.google.cloud.baremetalsolution.v2.NfsShare(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.nfsShareId_ = nfsShareId_; @@ -2769,39 +2509,38 @@ public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare)other); } else { super.mergeFrom(other); return this; @@ -2843,16 +2582,16 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare other) { allowedClientsBuilder_ = null; allowedClients_ = other.allowedClients_; bitField0_ = (bitField0_ & ~0x00000001); - allowedClientsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAllowedClientsFieldBuilder() - : null; + allowedClientsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAllowedClientsFieldBuilder() : null; } else { allowedClientsBuilder_.addAllMessages(other.allowedClients_); } } } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2881,25 +2620,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2908,21 +2644,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2930,61 +2665,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2992,20 +2720,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object nfsShareId_ = ""; /** - * - * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nfsShareId. */ public java.lang.String getNfsShareId() { java.lang.Object ref = nfsShareId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nfsShareId_ = s; return s; @@ -3014,21 +2740,20 @@ public java.lang.String getNfsShareId() { } } /** - * - * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nfsShareId. */ - public com.google.protobuf.ByteString getNfsShareIdBytes() { + public com.google.protobuf.ByteString + getNfsShareIdBytes() { java.lang.Object ref = nfsShareId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nfsShareId_ = b; return b; } else { @@ -3036,61 +2761,54 @@ public com.google.protobuf.ByteString getNfsShareIdBytes() { } } /** - * - * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nfsShareId to set. * @return This builder for chaining. */ - public Builder setNfsShareId(java.lang.String value) { + public Builder setNfsShareId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nfsShareId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNfsShareId() { - + nfsShareId_ = getDefaultInstance().getNfsShareId(); onChanged(); return this; } /** - * - * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nfsShareId to set. * @return This builder for chaining. */ - public Builder setNfsShareIdBytes(com.google.protobuf.ByteString value) { + public Builder setNfsShareIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nfsShareId_ = value; onChanged(); return this; @@ -3098,67 +2816,51 @@ public Builder setNfsShareIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.State result = - com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -3166,24 +2868,21 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.NfsShare.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3191,20 +2890,18 @@ public Builder clearState() { private java.lang.Object volume_ = ""; /** - * - * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The volume. */ public java.lang.String getVolume() { java.lang.Object ref = volume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; @@ -3213,21 +2910,20 @@ public java.lang.String getVolume() { } } /** - * - * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for volume. */ - public com.google.protobuf.ByteString getVolumeBytes() { + public com.google.protobuf.ByteString + getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volume_ = b; return b; } else { @@ -3235,96 +2931,79 @@ public com.google.protobuf.ByteString getVolumeBytes() { } } /** - * - * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @param value The volume to set. * @return This builder for chaining. */ - public Builder setVolume(java.lang.String value) { + public Builder setVolume( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volume_ = value; onChanged(); return this; } /** - * - * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearVolume() { - + volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** - * - * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for volume to set. * @return This builder for chaining. */ - public Builder setVolumeBytes(com.google.protobuf.ByteString value) { + public Builder setVolumeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volume_ = value; onChanged(); return this; } - private java.util.List - allowedClients_ = java.util.Collections.emptyList(); - + private java.util.List allowedClients_ = + java.util.Collections.emptyList(); private void ensureAllowedClientsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedClients_ = - new java.util.ArrayList( - allowedClients_); + allowedClients_ = new java.util.ArrayList(allowedClients_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> - allowedClientsBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> allowedClientsBuilder_; /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public java.util.List - getAllowedClientsList() { + public java.util.List getAllowedClientsList() { if (allowedClientsBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedClients_); } else { @@ -3332,14 +3011,11 @@ private void ensureAllowedClientsIsMutable() { } } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public int getAllowedClientsCount() { if (allowedClientsBuilder_ == null) { @@ -3349,17 +3025,13 @@ public int getAllowedClientsCount() { } } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { if (allowedClientsBuilder_ == null) { return allowedClients_.get(index); } else { @@ -3367,14 +3039,11 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedCl } } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder setAllowedClients( int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { @@ -3391,18 +3060,14 @@ public Builder setAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder setAllowedClients( - int index, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); allowedClients_.set(index, builderForValue.build()); @@ -3413,17 +3078,13 @@ public Builder setAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public Builder addAllowedClients( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { + public Builder addAllowedClients(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { if (allowedClientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3437,14 +3098,11 @@ public Builder addAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder addAllowedClients( int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { @@ -3461,14 +3119,11 @@ public Builder addAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder addAllowedClients( com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { @@ -3482,18 +3137,14 @@ public Builder addAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder addAllowedClients( - int index, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); allowedClients_.add(index, builderForValue.build()); @@ -3504,21 +3155,18 @@ public Builder addAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder addAllAllowedClients( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedClients_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedClients_); onChanged(); } else { allowedClientsBuilder_.addAllMessages(values); @@ -3526,14 +3174,11 @@ public Builder addAllAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder clearAllowedClients() { if (allowedClientsBuilder_ == null) { @@ -3546,14 +3191,11 @@ public Builder clearAllowedClients() { return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder removeAllowedClients(int index) { if (allowedClientsBuilder_ == null) { @@ -3566,50 +3208,39 @@ public Builder removeAllowedClients(int index) { return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder - getAllowedClientsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder getAllowedClientsBuilder( + int index) { return getAllowedClientsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder - getAllowedClientsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( + int index) { if (allowedClientsBuilder_ == null) { - return allowedClients_.get(index); - } else { + return allowedClients_.get(index); } else { return allowedClientsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> - getAllowedClientsOrBuilderList() { + public java.util.List + getAllowedClientsOrBuilderList() { if (allowedClientsBuilder_ != null) { return allowedClientsBuilder_.getMessageOrBuilderList(); } else { @@ -3617,64 +3248,45 @@ public Builder removeAllowedClients(int index) { } } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder - addAllowedClientsBuilder() { - return getAllowedClientsFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder() { + return getAllowedClientsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder - addAllowedClientsBuilder(int index) { - return getAllowedClientsFieldBuilder() - .addBuilder( - index, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder( + int index) { + return getAllowedClientsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public java.util.List - getAllowedClientsBuilderList() { + public java.util.List + getAllowedClientsBuilderList() { return getAllowedClientsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> getAllowedClientsFieldBuilder() { if (allowedClientsBuilder_ == null) { - allowedClientsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( + allowedClientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( allowedClients_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3684,21 +3296,22 @@ public Builder removeAllowedClients(int index) { return allowedClientsBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3710,30 +3323,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3741,12 +3352,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3754,17 +3364,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3772,11 +3381,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3784,66 +3394,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3853,12 +3466,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare) private static final com.google.cloud.baremetalsolution.v2.NfsShare DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare(); } @@ -3867,16 +3480,16 @@ public static com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsShare parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NfsShare(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsShare parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NfsShare(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3891,4 +3504,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java index 89eba99..b7ebe95 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java @@ -1,190 +1,136 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface NfsShareOrBuilder - extends +public interface NfsShareOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nfsShareId. */ java.lang.String getNfsShareId(); /** - * - * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nfsShareId. */ - com.google.protobuf.ByteString getNfsShareIdBytes(); + com.google.protobuf.ByteString + getNfsShareIdBytes(); /** - * - * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.NfsShare.State getState(); /** - * - * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The volume. */ java.lang.String getVolume(); /** - * - * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for volume. */ - com.google.protobuf.ByteString getVolumeBytes(); + com.google.protobuf.ByteString + getVolumeBytes(); /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - java.util.List + java.util.List getAllowedClientsList(); /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index); /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ int getAllowedClientsCount(); /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - java.util.List + java.util.List getAllowedClientsOrBuilderList(); /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( int index); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -193,31 +139,30 @@ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowed */ int getLabelsCount(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -226,18 +171,18 @@ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowed */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java new file mode 100644 index 0000000..ba39d39 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NfsShareProto { + private NfsShareProto() {} + 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_baremetalsolution_v2_NfsShare_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/baremetalsolution/v2/nfs_" + + "share.proto\022!google.cloud.baremetalsolut" + + "ion.v2\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032 google/proto" + + "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" + + "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" + + "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" + + "\tB,\372A)\n\'baremetalsolution.googleapis.com" + + "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" + + "e.cloud.baremetalsolution.v2.NfsShare.Al" + + "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" + + "ud.baremetalsolution.v2.NfsShare.LabelsE" + + "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" + + "-\372A*\n(baremetalsolution.googleapis.com/N" + + "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" + + "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" + + "\0162<.google.cloud.baremetalsolution.v2.Nf" + + "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" + + "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" + + "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" + + "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" + + "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" + + "olution.googleapis.com/NFSShare\022=project" + + "s/{project}/locations/{location}/nfsShar" + + "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" + + "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" + + "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" + + "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" + + "\030\001 \003(\0132+.google.cloud.baremetalsolution." + + "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" + + "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" + + "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\373\001\n%com.google.cloud.baremetalsolution" + + ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" + + "genproto/googleapis/cloud/baremetalsolut" + + "ion/v2;baremetalsolution\252\002!Google.Cloud." + + "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" + + "MetalSolution\\V2\352\002$Google::Cloud::BareMe" + + "talSolution::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, + new java.lang.String[] { "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, + new java.lang.String[] { "Network", "ShareIp", "AllowedClientsCidr", "MountPermissions", "AllowDev", "AllowSuid", "NoRootSquash", }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, + new java.lang.String[] { "NfsShares", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, + new java.lang.String[] { "NfsShare", "UpdateMask", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java similarity index 71% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java index a5cd605..ce84b7e 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Represents the metadata from a long-running operation.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,40 +125,34 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, - com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -207,14 +172,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -224,15 +186,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -256,14 +210,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -289,29 +237,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -338,29 +283,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -387,29 +329,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -420,8 +362,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -430,7 +370,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -441,14 +380,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -457,29 +393,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -488,7 +424,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -532,10 +468,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -547,7 +485,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -560,27 +499,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.OperationMetadata other = - (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; + com.google.cloud.baremetalsolution.v2.OperationMetadata other = (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -607,7 +552,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -616,127 +562,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata from a long-running operation.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.cloud.baremetalsolution.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, - com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.OperationMetadata.newBuilder() @@ -744,15 +680,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -782,9 +719,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -803,8 +740,7 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { - com.google.cloud.baremetalsolution.v2.OperationMetadata result = - new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); + com.google.cloud.baremetalsolution.v2.OperationMetadata result = new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -828,39 +764,38 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -868,8 +803,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.OperationMetadata other) { - if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -914,8 +848,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -927,58 +860,39 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -994,17 +908,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1015,21 +926,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1041,15 +948,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1063,64 +966,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1128,35 +1015,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1167,14 +1043,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1190,16 +1063,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1210,20 +1081,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1235,14 +1103,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1256,59 +1121,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1316,20 +1170,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1338,21 +1190,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1360,61 +1211,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1422,20 +1266,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1444,21 +1286,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1466,61 +1307,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1528,20 +1362,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1550,21 +1382,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1572,70 +1403,61 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1644,7 +1466,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1652,8 +1473,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1662,19 +1481,16 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1683,11 +1499,10 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1695,20 +1510,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1717,21 +1530,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1739,68 +1551,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1810,12 +1615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.OperationMetadata) private static final com.google.cloud.baremetalsolution.v2.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.OperationMetadata(); } @@ -1824,16 +1629,16 @@ public static com.google.cloud.baremetalsolution.v2.OperationMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1848,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java index 5d598a7..28fd6c5 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java index bebcfd2..f4cba4a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message requesting to reset a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ -public final class ResetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) ResetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResetInstanceRequest.newBuilder() to construct. private ResetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ResetInstanceRequest( 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,41 +73,34 @@ private ResetInstanceRequest( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = - (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message requesting to reset a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) com.google.cloud.baremetalsolution.v2.ResetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..6068d11 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java similarity index 67% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java index 8c117cb..4fc6068 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.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/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message from resetting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ -public final class ResetInstanceResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResetInstanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) ResetInstanceResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResetInstanceResponse.newBuilder() to construct. private ResetInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ResetInstanceResponse() {} + private ResetInstanceResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResetInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResetInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private ResetInstanceResponse( 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 ResetInstanceResponse( } 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.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.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.baremetalsolution.v2.ResetInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = - (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,127 +141,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message from resetting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) com.google.cloud.baremetalsolution.v2.ResetInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.newBuilder() @@ -288,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(); @@ -304,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override @@ -325,8 +297,7 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = - new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); onBuilt(); return result; } @@ -335,39 +306,38 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse)other); } else { super.mergeFrom(other); return this; @@ -375,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -406,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); } @@ -418,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(); } @@ -432,16 +400,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -456,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java new file mode 100644 index 0000000..f9e4cd0 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java index 44bea73..c6bff70 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Request for emergency resize Volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} */ -public final class ResizeVolumeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResizeVolumeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) ResizeVolumeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResizeVolumeRequest.newBuilder() to construct. private ResizeVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResizeVolumeRequest() { volume_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResizeVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResizeVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,25 +53,24 @@ private ResizeVolumeRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - volume_ = s; - break; - } - case 16: - { - sizeGib_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + volume_ = s; + break; + } + case 16: { + + sizeGib_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,41 +78,34 @@ private ResizeVolumeRequest( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private volatile java.lang.Object volume_; /** - * - * *
    * Required. Volume to resize.
    * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The volume. */ @java.lang.Override @@ -139,31 +114,29 @@ public java.lang.String getVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; } } /** - * - * *
    * Required. Volume to resize.
    * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for volume. */ @java.lang.Override - public com.google.protobuf.ByteString getVolumeBytes() { + public com.google.protobuf.ByteString + getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volume_ = b; return b; } else { @@ -174,14 +147,11 @@ public com.google.protobuf.ByteString getVolumeBytes() { public static final int SIZE_GIB_FIELD_NUMBER = 2; private long sizeGib_; /** - * - * *
    * New Volume size, in GiB.
    * 
* * int64 size_gib = 2; - * * @return The sizeGib. */ @java.lang.Override @@ -190,7 +160,6 @@ public long getSizeGib() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +171,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(volume_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volume_); } @@ -222,7 +192,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volume_); } if (sizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, sizeGib_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,16 +203,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = - (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; - if (!getVolume().equals(other.getVolume())) return false; - if (getSizeGib() != other.getSizeGib()) return false; + if (!getVolume() + .equals(other.getVolume())) return false; + if (getSizeGib() + != other.getSizeGib()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -256,134 +228,125 @@ public int hashCode() { hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + getVolume().hashCode(); hash = (37 * hash) + SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeGib()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 emergency resize Volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) com.google.cloud.baremetalsolution.v2.ResizeVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.newBuilder() @@ -391,15 +354,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(); @@ -411,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override @@ -432,8 +396,7 @@ public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = - new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); result.volume_ = volume_; result.sizeGib_ = sizeGib_; onBuilt(); @@ -444,39 +407,38 @@ public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest)other); } else { super.mergeFrom(other); return this; @@ -484,8 +446,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) return this; if (!other.getVolume().isEmpty()) { volume_ = other.volume_; onChanged(); @@ -512,8 +473,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,22 +485,18 @@ public Builder mergeFrom( private java.lang.Object volume_ = ""; /** - * - * *
      * Required. Volume to resize.
      * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The volume. */ public java.lang.String getVolume() { java.lang.Object ref = volume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; @@ -549,23 +505,20 @@ public java.lang.String getVolume() { } } /** - * - * *
      * Required. Volume to resize.
      * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for volume. */ - public com.google.protobuf.ByteString getVolumeBytes() { + public com.google.protobuf.ByteString + getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volume_ = b; return b; } else { @@ -573,82 +526,66 @@ public com.google.protobuf.ByteString getVolumeBytes() { } } /** - * - * *
      * Required. Volume to resize.
      * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The volume to set. * @return This builder for chaining. */ - public Builder setVolume(java.lang.String value) { + public Builder setVolume( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volume_ = value; onChanged(); return this; } /** - * - * *
      * Required. Volume to resize.
      * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearVolume() { - + volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** - * - * *
      * Required. Volume to resize.
      * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for volume to set. * @return This builder for chaining. */ - public Builder setVolumeBytes(com.google.protobuf.ByteString value) { + public Builder setVolumeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volume_ = value; onChanged(); return this; } - private long sizeGib_; + private long sizeGib_ ; /** - * - * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; - * * @return The sizeGib. */ @java.lang.Override @@ -656,43 +593,37 @@ public long getSizeGib() { return sizeGib_; } /** - * - * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; - * * @param value The sizeGib to set. * @return This builder for chaining. */ public Builder setSizeGib(long value) { - + sizeGib_ = value; onChanged(); return this; } /** - * - * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; - * * @return This builder for chaining. */ public Builder clearSizeGib() { - + sizeGib_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -702,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(); } @@ -716,16 +647,16 @@ public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResizeVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResizeVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResizeVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResizeVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,4 +671,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java new file mode 100644 index 0000000..2fc28ec --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResizeVolumeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Volume to resize.
+   * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The volume. + */ + java.lang.String getVolume(); + /** + *
+   * Required. Volume to resize.
+   * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for volume. + */ + com.google.protobuf.ByteString + getVolumeBytes(); + + /** + *
+   * New Volume size, in GiB.
+   * 
+ * + * int64 size_gib = 2; + * @return The sizeGib. + */ + long getSizeGib(); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java index 6992d46..694ee3d 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Network template.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} */ -public final class ServerNetworkTemplate extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ServerNetworkTemplate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) ServerNetworkTemplateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ServerNetworkTemplate.newBuilder() to construct. private ServerNetworkTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ServerNetworkTemplate() { name_ = ""; applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private ServerNetworkTemplate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ServerNetworkTemplate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ServerNetworkTemplate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,37 @@ private ServerNetworkTemplate( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - applicableInstanceTypes_.add(s); - break; + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - logicalInterfaces_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate - .LogicalInterface>(); - mutable_bitField0_ |= 0x00000002; - } - logicalInterfaces_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .parser(), - extensionRegistry)); - break; + applicableInstanceTypes_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + logicalInterfaces_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + logicalInterfaces_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,7 +94,8 @@ private ServerNetworkTemplate( } 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)) { applicableInstanceTypes_ = applicableInstanceTypes_.getUnmodifiableView(); @@ -132,30 +107,24 @@ private ServerNetworkTemplate( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); } - public interface LogicalInterfaceOrBuilder - extends + public interface LogicalInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -165,13 +134,10 @@ public interface LogicalInterfaceOrBuilder
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -181,73 +147,56 @@ public interface LogicalInterfaceOrBuilder
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Interface type.
      * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Interface type.
      * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The type. */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType - getType(); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType(); /** - * - * *
      * If true, interface must have network connected.
      * 
* * bool required = 3; - * * @return The required. */ boolean getRequired(); } /** - * - * *
    * Logical interface.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} */ - public static final class LogicalInterface extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LogicalInterface extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) LogicalInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogicalInterface.newBuilder() to construct. private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LogicalInterface() { name_ = ""; type_ = 0; @@ -255,15 +204,16 @@ private LogicalInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogicalInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LogicalInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -282,32 +232,30 @@ private LogicalInterface( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 24: - { - required_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = rawValue; + break; + } + case 24: { + + required_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -315,43 +263,36 @@ private LogicalInterface( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - .class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); } /** - * - * *
      * Interface type.
      * 
* - * Protobuf enum {@code - * google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} + * Protobuf enum {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} */ - public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { + public enum InterfaceType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified value.
        * 
@@ -360,8 +301,6 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { */ INTERFACE_TYPE_UNSPECIFIED(0), /** - * - * *
        * Bond interface type.
        * 
@@ -370,8 +309,6 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { */ BOND(1), /** - * - * *
        * NIC interface type.
        * 
@@ -383,8 +320,6 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified value.
        * 
@@ -393,8 +328,6 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERFACE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Bond interface type.
        * 
@@ -403,8 +336,6 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BOND_VALUE = 1; /** - * - * *
        * NIC interface type.
        * 
@@ -413,6 +344,7 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NIC_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -437,46 +369,40 @@ public static InterfaceType valueOf(int value) { */ public static InterfaceType forNumber(int value) { switch (value) { - case 0: - return INTERFACE_TYPE_UNSPECIFIED; - case 1: - return BOND; - case 2: - return NIC; - default: - return null; + case 0: return INTERFACE_TYPE_UNSPECIFIED; + case 1: return BOND; + case 2: return NIC; + 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< + InterfaceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InterfaceType findValueByNumber(int number) { + return InterfaceType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InterfaceType findValueByNumber(int number) { - return InterfaceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDescriptor().getEnumTypes().get(0); } private static final InterfaceType[] VALUES = values(); @@ -484,7 +410,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static InterfaceType 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; @@ -504,8 +431,6 @@ private InterfaceType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -515,7 +440,6 @@ private InterfaceType(int value) {
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -524,15 +448,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; } } /** - * - * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -542,15 +465,16 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @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 { @@ -561,61 +485,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
      * Interface type.
      * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Interface type.
      * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The type. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType - getType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType - result = - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.valueOf(type_); - return result == null - ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; } public static final int REQUIRED_FIELD_NUMBER = 3; private boolean required_; /** - * - * *
      * If true, interface must have network connected.
      * 
* * bool required = 3; - * * @return The required. */ @java.lang.Override @@ -624,7 +525,6 @@ public boolean getRequired() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,14 +536,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ - != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.INTERFACE_TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (required_ != false) { @@ -661,14 +559,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ - != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.INTERFACE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (required_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, required_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, required_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -678,19 +575,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.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = - (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (type_ != other.type_) return false; - if (getRequired() != other.getRequired()) return false; + if (getRequired() + != other.getRequired()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -707,107 +603,95 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequired()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -817,51 +701,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Logical interface.
      * 
* - * Protobuf type {@code - * google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} + * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - .class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); } - // Construct using - // com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() + // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -875,22 +752,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface build() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = - buildPartial(); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -898,10 +772,8 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - buildPartial() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = - new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface buildPartial() { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); result.name_ = name_; result.type_ = type_; result.required_ = required_; @@ -913,55 +785,46 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) other); + if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { - if (other - == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { + if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -987,14 +850,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = - null; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1006,8 +866,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -1017,13 +875,13 @@ public Builder mergeFrom(
        * 
* * string name = 1; - * * @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; @@ -1032,8 +890,6 @@ public java.lang.String getName() { } } /** - * - * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -1043,14 +899,15 @@ public java.lang.String getName() {
        * 
* * string name = 1; - * * @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 { @@ -1058,8 +915,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -1069,22 +924,20 @@ public com.google.protobuf.ByteString getNameBytes() {
        * 
* * string name = 1; - * * @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; } /** - * - * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -1094,18 +947,15 @@ public Builder setName(java.lang.String value) {
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -1115,16 +965,16 @@ public Builder clearName() {
        * 
* * string name = 1; - * * @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; @@ -1132,124 +982,85 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
        * Interface type.
        * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Interface type.
        * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Interface type.
        * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The type. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType - getType() { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType - result = - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.valueOf(type_); - return result == null - ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; } /** - * - * *
        * Interface type.
        * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType - value) { + public Builder setType(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Interface type.
        * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean required_; + private boolean required_ ; /** - * - * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; - * * @return The required. */ @java.lang.Override @@ -1257,41 +1068,34 @@ public boolean getRequired() { return required_; } /** - * - * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; - * * @param value The required to set. * @return This builder for chaining. */ public Builder setRequired(boolean value) { - + required_ = value; onChanged(); return this; } /** - * - * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; - * * @return This builder for chaining. */ public Builder clearRequired() { - + required_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1304,34 +1108,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) - private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate - .LogicalInterface - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1343,17 +1143,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1362,7 +1160,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1371,15 +1168,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; } } /** - * - * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1388,15 +1184,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1407,42 +1204,34 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int APPLICABLE_INSTANCE_TYPES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList applicableInstanceTypes_; /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @return A list containing the applicableInstanceTypes. */ - public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList() { + public com.google.protobuf.ProtocolStringList + getApplicableInstanceTypesList() { return applicableInstanceTypes_; } /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @return The count of applicableInstanceTypes. */ public int getApplicableInstanceTypesCount() { return applicableInstanceTypes_.size(); } /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ @@ -1450,110 +1239,80 @@ public java.lang.String getApplicableInstanceTypes(int index) { return applicableInstanceTypes_.get(index); } /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - public com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index) { + public com.google.protobuf.ByteString + getApplicableInstanceTypesBytes(int index) { return applicableInstanceTypes_.getByteString(index); } public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 3; - private java.util.List< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> - logicalInterfaces_; + private java.util.List logicalInterfaces_; /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ @java.lang.Override - public java.util.List< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> - getLogicalInterfacesList() { + public java.util.List getLogicalInterfacesList() { return logicalInterfaces_; } /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + public java.util.List getLogicalInterfacesOrBuilderList() { return logicalInterfaces_; } /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ @java.lang.Override public int getLogicalInterfacesCount() { return logicalInterfaces_.size(); } /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - getLogicalInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { return logicalInterfaces_.get(index); } /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder - getLogicalInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { return logicalInterfaces_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1565,13 +1324,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < applicableInstanceTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, applicableInstanceTypes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicableInstanceTypes_.getRaw(i)); } for (int i = 0; i < logicalInterfaces_.size(); i++) { output.writeMessage(3, logicalInterfaces_.get(i)); @@ -1597,8 +1356,8 @@ public int getSerializedSize() { size += 1 * getApplicableInstanceTypesList().size(); } for (int i = 0; i < logicalInterfaces_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, logicalInterfaces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, logicalInterfaces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1608,18 +1367,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.baremetalsolution.v2.ServerNetworkTemplate)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = - (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; - if (!getName().equals(other.getName())) return false; - if (!getApplicableInstanceTypesList().equals(other.getApplicableInstanceTypesList())) - return false; - if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getApplicableInstanceTypesList() + .equals(other.getApplicableInstanceTypesList())) return false; + if (!getLogicalInterfacesList() + .equals(other.getLogicalInterfacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1647,127 +1407,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Network template.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) com.google.cloud.baremetalsolution.v2.ServerNetworkTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.newBuilder() @@ -1775,17 +1525,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) { getLogicalInterfacesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1803,9 +1553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override @@ -1824,8 +1574,7 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = - new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1850,39 +1599,38 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate)other); } else { super.mergeFrom(other); return this; @@ -1890,8 +1638,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other) { - if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1924,10 +1671,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemp logicalInterfacesBuilder_ = null; logicalInterfaces_ = other.logicalInterfaces_; bitField0_ = (bitField0_ & ~0x00000002); - logicalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogicalInterfacesFieldBuilder() - : null; + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogicalInterfacesFieldBuilder() : null; } else { logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); } @@ -1952,8 +1698,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1962,13 +1707,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1977,13 +1719,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1992,8 +1734,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -2002,14 +1742,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2017,8 +1758,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -2027,22 +1766,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -2051,18 +1788,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -2071,68 +1805,57 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList applicableInstanceTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureApplicableInstanceTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - applicableInstanceTypes_ = - new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); + applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @return A list containing the applicableInstanceTypes. */ - public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList() { + public com.google.protobuf.ProtocolStringList + getApplicableInstanceTypesList() { return applicableInstanceTypes_.getUnmodifiableView(); } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @return The count of applicableInstanceTypes. */ public int getApplicableInstanceTypesCount() { return applicableInstanceTypes_.size(); } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ @@ -2140,90 +1863,80 @@ public java.lang.String getApplicableInstanceTypes(int index) { return applicableInstanceTypes_.get(index); } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - public com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index) { + public com.google.protobuf.ByteString + getApplicableInstanceTypesBytes(int index) { return applicableInstanceTypes_.getByteString(index); } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param index The index to set the value at. * @param value The applicableInstanceTypes to set. * @return This builder for chaining. */ - public Builder setApplicableInstanceTypes(int index, java.lang.String value) { + public Builder setApplicableInstanceTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureApplicableInstanceTypesIsMutable(); + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param value The applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addApplicableInstanceTypes(java.lang.String value) { + public Builder addApplicableInstanceTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureApplicableInstanceTypesIsMutable(); + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.add(value); onChanged(); return this; } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param values The applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addAllApplicableInstanceTypes(java.lang.Iterable values) { + public Builder addAllApplicableInstanceTypes( + java.lang.Iterable values) { ensureApplicableInstanceTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicableInstanceTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicableInstanceTypes_); onChanged(); return this; } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @return This builder for chaining. */ public Builder clearApplicableInstanceTypes() { @@ -2233,62 +1946,46 @@ public Builder clearApplicableInstanceTypes() { return this; } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param value The bytes of the applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addApplicableInstanceTypesBytes(com.google.protobuf.ByteString value) { + public Builder addApplicableInstanceTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.add(value); onChanged(); return this; } - private java.util.List< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> - logicalInterfaces_ = java.util.Collections.emptyList(); - + private java.util.List logicalInterfaces_ = + java.util.Collections.emptyList(); private void ensureLogicalInterfacesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - logicalInterfaces_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface>( - logicalInterfaces_); + logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> - logicalInterfacesBuilder_; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public java.util.List< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> - getLogicalInterfacesList() { + public java.util.List getLogicalInterfacesList() { if (logicalInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalInterfaces_); } else { @@ -2296,15 +1993,11 @@ private void ensureLogicalInterfacesIsMutable() { } } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public int getLogicalInterfacesCount() { if (logicalInterfacesBuilder_ == null) { @@ -2314,18 +2007,13 @@ public int getLogicalInterfacesCount() { } } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - getLogicalInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { return logicalInterfaces_.get(index); } else { @@ -2333,19 +2021,14 @@ public int getLogicalInterfacesCount() { } } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder setLogicalInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2359,20 +2042,14 @@ public Builder setLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder setLogicalInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.set(index, builderForValue.build()); @@ -2383,18 +2060,13 @@ public Builder setLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public Builder addLogicalInterfaces( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2408,19 +2080,14 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder addLogicalInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2434,19 +2101,14 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder addLogicalInterfaces( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - builderForValue) { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.add(builderForValue.build()); @@ -2457,20 +2119,14 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder addLogicalInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.add(index, builderForValue.build()); @@ -2481,24 +2137,18 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder addAllLogicalInterfaces( - java.lang.Iterable< - ? extends - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> - values) { + java.lang.Iterable values) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalInterfaces_); onChanged(); } else { logicalInterfacesBuilder_.addAllMessages(values); @@ -2506,15 +2156,11 @@ public Builder addAllLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder clearLogicalInterfaces() { if (logicalInterfacesBuilder_ == null) { @@ -2527,15 +2173,11 @@ public Builder clearLogicalInterfaces() { return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder removeLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -2548,55 +2190,39 @@ public Builder removeLogicalInterfaces(int index) { return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - getLogicalInterfacesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder getLogicalInterfacesBuilder( + int index) { return getLogicalInterfacesFieldBuilder().getBuilder(index); } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder - getLogicalInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { if (logicalInterfacesBuilder_ == null) { - return logicalInterfaces_.get(index); - } else { + return logicalInterfaces_.get(index); } else { return logicalInterfacesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate - .LogicalInterfaceOrBuilder> - getLogicalInterfacesOrBuilderList() { + public java.util.List + getLogicalInterfacesOrBuilderList() { if (logicalInterfacesBuilder_ != null) { return logicalInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -2604,72 +2230,45 @@ public Builder removeLogicalInterfaces(int index) { } } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - addLogicalInterfacesBuilder() { - return getLogicalInterfacesFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - addLogicalInterfacesBuilder(int index) { - return getLogicalInterfacesFieldBuilder() - .addBuilder( - index, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder( + int index) { + return getLogicalInterfacesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public java.util.List< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder> - getLogicalInterfacesBuilderList() { + public java.util.List + getLogicalInterfacesBuilderList() { return getLogicalInterfacesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesFieldBuilder() { if (logicalInterfacesBuilder_ == null) { - logicalInterfacesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .Builder, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate - .LogicalInterfaceOrBuilder>( + logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder>( logicalInterfaces_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2678,9 +2277,9 @@ public Builder removeLogicalInterfaces(int index) { } return logicalInterfacesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2690,12 +2289,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(); } @@ -2704,16 +2303,16 @@ public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServerNetworkTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerNetworkTemplate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerNetworkTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerNetworkTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2728,4 +2327,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java similarity index 61% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java index f038bd7..7c1339a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ServerNetworkTemplateOrBuilder - extends +public interface ServerNetworkTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -34,13 +16,10 @@ public interface ServerNetworkTemplateOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -49,126 +28,93 @@ public interface ServerNetworkTemplateOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @return A list containing the applicableInstanceTypes. */ - java.util.List getApplicableInstanceTypesList(); + java.util.List + getApplicableInstanceTypesList(); /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @return The count of applicableInstanceTypes. */ int getApplicableInstanceTypesCount(); /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ java.lang.String getApplicableInstanceTypes(int index); /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index); + com.google.protobuf.ByteString + getApplicableInstanceTypesBytes(int index); /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - java.util.List + java.util.List getLogicalInterfacesList(); /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces( - int index); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index); /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ int getLogicalInterfacesCount(); /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + java.util.List getLogicalInterfacesOrBuilderList(); /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder - getLogicalInterfacesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java index bde5537..693c5f0 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message requesting to start a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} */ -public final class StartInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) StartInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartInstanceRequest.newBuilder() to construct. private StartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StartInstanceRequest( 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,41 +73,34 @@ private StartInstanceRequest( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = - (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message requesting to start a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) com.google.cloud.baremetalsolution.v2.StartInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.StartInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java new file mode 100644 index 0000000..51f49d0 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java similarity index 66% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java index c708c7e..5c0a6d8 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message from starting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} */ -public final class StartInstanceResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartInstanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) StartInstanceResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartInstanceResponse.newBuilder() to construct. private StartInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StartInstanceResponse() {} + private StartInstanceResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private StartInstanceResponse( 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 StartInstanceResponse( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.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.baremetalsolution.v2.StartInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = - (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,127 +141,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message from starting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) com.google.cloud.baremetalsolution.v2.StartInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceResponse.newBuilder() @@ -288,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(); @@ -304,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override @@ -325,8 +297,7 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = - new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); onBuilt(); return result; } @@ -335,39 +306,38 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse)other); } else { super.mergeFrom(other); return this; @@ -375,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -406,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); } @@ -418,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.StartInstanceResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(); } @@ -432,16 +400,16 @@ public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -456,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java new file mode 100644 index 0000000..d1a3887 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java index ca5b555..664e09a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message requesting to stop a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} */ -public final class StopInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) StopInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopInstanceRequest.newBuilder() to construct. private StopInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StopInstanceRequest( 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,41 +73,34 @@ private StopInstanceRequest( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = - (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message requesting to stop a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) com.google.cloud.baremetalsolution.v2.StopInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.StopInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java new file mode 100644 index 0000000..ba9234c --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java similarity index 67% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java index 182ad22..ef520a4 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message from stopping a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} */ -public final class StopInstanceResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopInstanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) StopInstanceResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopInstanceResponse.newBuilder() to construct. private StopInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StopInstanceResponse() {} + private StopInstanceResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private StopInstanceResponse( 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 StopInstanceResponse( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.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.baremetalsolution.v2.StopInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = - (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,127 +141,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message from stopping a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) com.google.cloud.baremetalsolution.v2.StopInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceResponse.newBuilder() @@ -288,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(); @@ -304,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override @@ -325,8 +297,7 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = - new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); onBuilt(); return result; } @@ -335,39 +306,38 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse)other); } else { super.mergeFrom(other); return this; @@ -375,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -406,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); } @@ -418,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.StopInstanceResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(); } @@ -432,16 +400,16 @@ public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -456,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java new file mode 100644 index 0000000..cc35d1f --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java index 867bf65..19dde2e 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message requesting to updating a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateInstanceRequest() {} + private UpdateInstanceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateInstanceRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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 UpdateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Instance instance_; /** - * - * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -157,38 +129,27 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance getInstance() { - return instance_ == null - ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { @@ -198,8 +159,6 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -209,7 +168,6 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -217,8 +175,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -228,7 +184,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -236,8 +191,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -254,7 +207,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -266,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 (instance_ != null) {
       output.writeMessage(1, getInstance());
     }
@@ -283,10 +236,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (instance_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getInstance());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -296,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.baremetalsolution.v2.UpdateInstanceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other =
-        (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj;
 
     if (hasInstance() != other.hasInstance()) return false;
     if (hasInstance()) {
-      if (!getInstance().equals(other.getInstance())) return false;
+      if (!getInstance()
+          .equals(other.getInstance())) 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;
@@ -337,127 +293,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Message requesting to updating a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) com.google.cloud.baremetalsolution.v2.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.newBuilder() @@ -465,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(); @@ -493,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -514,8 +461,7 @@ public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); if (instanceBuilder_ == null) { result.instance_ = instance_; } else { @@ -534,39 +480,38 @@ public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -574,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } @@ -601,8 +545,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,64 +557,45 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.baremetalsolution.v2.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) { if (instanceBuilder_ == null) { @@ -687,17 +611,13 @@ public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) return this; } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance( com.google.cloud.baremetalsolution.v2.Instance.Builder builderForValue) { @@ -711,25 +631,19 @@ public Builder setInstance( return this; } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -741,17 +655,13 @@ public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance valu return this; } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -765,70 +675,54 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; @@ -836,13 +730,8 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil 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_; /** - * - * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -852,15 +741,12 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -870,21 +756,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -909,8 +790,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -921,7 +800,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -932,8 +812,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -948,7 +826,7 @@ 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;
         }
@@ -960,8 +838,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -984,8 +860,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -997,13 +871,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -1018,14 +890,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -1037,24 +906,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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> 
         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);
     }
 
@@ -1064,12 +930,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest();
   }
@@ -1078,16 +944,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateInstanceRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateInstanceRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateInstanceRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateInstanceRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1102,4 +968,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
similarity index 65%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
index 90f5ce9..61fb3c1 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.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/baremetalsolution/v2/instance.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateInstanceRequestOrBuilder
-    extends
+public interface UpdateInstanceRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.baremetalsolution.v2.Instance getInstance(); /** - * - * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder(); /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -82,13 +50,10 @@ public interface UpdateInstanceRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -98,13 +63,10 @@ public interface UpdateInstanceRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
similarity index 67%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
index 70529ea..448e185 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
- *
- *
  * 
  * Message requesting to updating a network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} */ -public final class UpdateNetworkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateNetworkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) UpdateNetworkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateNetworkRequest.newBuilder() to construct. private UpdateNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateNetworkRequest() {} + private UpdateNetworkRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateNetworkRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; - if (network_ != null) { - subBuilder = network_.toBuilder(); - } - network_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(network_); - network_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = 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 UpdateNetworkRequest( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Network network_; /** - * - * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the network field is set. */ @java.lang.Override @@ -157,38 +129,27 @@ public boolean hasNetwork() { return network_ != null; } /** - * - * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The network. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network getNetwork() { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } /** - * - * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { @@ -198,8 +159,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -207,7 +166,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -215,8 +173,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -224,7 +180,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -232,8 +187,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -248,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -260,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 (network_ != null) {
       output.writeMessage(1, getNetwork());
     }
@@ -277,10 +230,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (network_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetwork());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getNetwork());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -290,21 +245,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.baremetalsolution.v2.UpdateNetworkRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other =
-        (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj;
 
     if (hasNetwork() != other.hasNetwork()) return false;
     if (hasNetwork()) {
-      if (!getNetwork().equals(other.getNetwork())) return false;
+      if (!getNetwork()
+          .equals(other.getNetwork())) 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;
@@ -331,127 +287,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Message requesting to updating a network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) com.google.cloud.baremetalsolution.v2.UpdateNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.newBuilder() @@ -459,15 +405,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 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override @@ -508,8 +455,7 @@ public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = - new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); if (networkBuilder_ == null) { result.network_ = network_; } else { @@ -528,39 +474,38 @@ public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest)other); } else { super.mergeFrom(other); return this; @@ -568,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) return this; if (other.hasNetwork()) { mergeNetwork(other.getNetwork()); } @@ -595,8 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,64 +551,45 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Network network_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - networkBuilder_; + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The network. */ public com.google.cloud.baremetalsolution.v2.Network getNetwork() { if (networkBuilder_ == null) { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } else { return networkBuilder_.getMessage(); } } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { if (networkBuilder_ == null) { @@ -681,17 +605,13 @@ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { return this; } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNetwork( com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { @@ -705,25 +625,19 @@ public Builder setNetwork( return this; } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) { if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); } else { network_ = value; } @@ -735,17 +649,13 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNetwork() { if (networkBuilder_ == null) { @@ -759,70 +669,54 @@ public Builder clearNetwork() { return this; } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilder(); } else { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { - networkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - getNetwork(), getParentForChildren(), isClean()); + networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), + getParentForChildren(), + isClean()); network_ = null; } return networkBuilder_; @@ -830,13 +724,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde 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_; /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -844,15 +733,12 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -860,21 +746,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -897,8 +778,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -907,7 +786,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -918,8 +798,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -932,7 +810,7 @@ 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 +822,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -966,8 +842,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -977,13 +851,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -996,14 +868,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1013,24 +882,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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> 
         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);
     }
 
@@ -1040,12 +906,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest();
   }
@@ -1054,16 +920,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateNetworkRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateNetworkRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateNetworkRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateNetworkRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1078,4 +944,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
similarity index 64%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
index fa34464..c43d1e2 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateNetworkRequestOrBuilder
-    extends
+public interface UpdateNetworkRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the network field is set. */ boolean hasNetwork(); /** - * - * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The network. */ com.google.cloud.baremetalsolution.v2.Network getNetwork(); /** - * - * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -80,13 +48,10 @@ public interface UpdateNetworkRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -94,13 +59,10 @@ public interface UpdateNetworkRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
similarity index 67%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
index eef8a54..81f29d7 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.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/baremetalsolution/v2/nfs_share.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
- *
- *
  * 
  * Message requesting to updating a NFS share.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} */ -public final class UpdateNfsShareRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateNfsShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) UpdateNfsShareRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateNfsShareRequest.newBuilder() to construct. private UpdateNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateNfsShareRequest() {} + private UpdateNfsShareRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateNfsShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateNfsShareRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateNfsShareRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; - if (nfsShare_ != null) { - subBuilder = nfsShare_.toBuilder(); - } - nfsShare_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nfsShare_); - nfsShare_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; + if (nfsShare_ != null) { + subBuilder = nfsShare_.toBuilder(); + } + nfsShare_ = input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nfsShare_); + nfsShare_ = 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 UpdateNfsShareRequest( } 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.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); } public static final int NFS_SHARE_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; /** - * - * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nfsShare field is set. */ @java.lang.Override @@ -157,38 +129,27 @@ public boolean hasNfsShare() { return nfsShare_ != null; } /** - * - * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The nfsShare. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { - return nfsShare_ == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() - : nfsShare_; + return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; } /** - * - * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { @@ -198,8 +159,6 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -207,7 +166,6 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -215,8 +173,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -224,7 +180,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -232,8 +187,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -248,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -260,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 (nfsShare_ != null) {
       output.writeMessage(1, getNfsShare());
     }
@@ -277,10 +230,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (nfsShare_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNfsShare());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getNfsShare());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -290,21 +245,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.baremetalsolution.v2.UpdateNfsShareRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other =
-        (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj;
 
     if (hasNfsShare() != other.hasNfsShare()) return false;
     if (hasNfsShare()) {
-      if (!getNfsShare().equals(other.getNfsShare())) return false;
+      if (!getNfsShare()
+          .equals(other.getNfsShare())) 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;
@@ -331,127 +287,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Message requesting to updating a NFS share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.newBuilder() @@ -459,15 +405,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 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override @@ -508,8 +455,7 @@ public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = - new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); if (nfsShareBuilder_ == null) { result.nfsShare_ = nfsShare_; } else { @@ -528,39 +474,38 @@ public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)other); } else { super.mergeFrom(other); return this; @@ -568,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) return this; if (other.hasNfsShare()) { mergeNfsShare(other.getNfsShare()); } @@ -595,8 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,64 +551,45 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> - nfsShareBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsShareBuilder_; /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nfsShare field is set. */ public boolean hasNfsShare() { return nfsShareBuilder_ != null || nfsShare_ != null; } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The nfsShare. */ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { if (nfsShareBuilder_ == null) { - return nfsShare_ == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() - : nfsShare_; + return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; } else { return nfsShareBuilder_.getMessage(); } } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsShareBuilder_ == null) { @@ -681,17 +605,13 @@ public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) return this; } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNfsShare( com.google.cloud.baremetalsolution.v2.NfsShare.Builder builderForValue) { @@ -705,25 +625,19 @@ public Builder setNfsShare( return this; } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsShareBuilder_ == null) { if (nfsShare_ != null) { nfsShare_ = - com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_).mergeFrom(value).buildPartial(); } else { nfsShare_ = value; } @@ -735,17 +649,13 @@ public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare valu return this; } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNfsShare() { if (nfsShareBuilder_ == null) { @@ -759,70 +669,54 @@ public Builder clearNfsShare() { return this; } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsShareBuilder() { - + onChanged(); return getNfsShareFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { if (nfsShareBuilder_ != null) { return nfsShareBuilder_.getMessageOrBuilder(); } else { - return nfsShare_ == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() - : nfsShare_; + return nfsShare_ == null ? + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; } } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> getNfsShareFieldBuilder() { if (nfsShareBuilder_ == null) { - nfsShareBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( - getNfsShare(), getParentForChildren(), isClean()); + nfsShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + getNfsShare(), + getParentForChildren(), + isClean()); nfsShare_ = null; } return nfsShareBuilder_; @@ -830,13 +724,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil 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_; /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -844,15 +733,12 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -860,21 +746,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -897,8 +778,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -907,7 +786,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -918,8 +798,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -932,7 +810,7 @@ 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 +822,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -966,8 +842,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -977,13 +851,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -996,14 +868,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1013,24 +882,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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> 
         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);
     }
 
@@ -1040,12 +906,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest();
   }
@@ -1054,16 +920,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateNfsShareRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateNfsShareRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateNfsShareRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateNfsShareRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1078,4 +944,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
similarity index 64%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
index 64a6b99..76b8f82 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.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/baremetalsolution/v2/nfs_share.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateNfsShareRequestOrBuilder
-    extends
+public interface UpdateNfsShareRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nfsShare field is set. */ boolean hasNfsShare(); /** - * - * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The nfsShare. */ com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(); /** - * - * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -80,13 +48,10 @@ public interface UpdateNfsShareRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -94,13 +59,10 @@ public interface UpdateNfsShareRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
similarity index 68%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
index 38d881f..53ee6b0 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.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/baremetalsolution/v2/volume.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
- *
- *
  * 
  * Message for updating a volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ -public final class UpdateVolumeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateVolumeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) UpdateVolumeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateVolumeRequest.newBuilder() to construct. private UpdateVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateVolumeRequest() {} + private UpdateVolumeRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateVolumeRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; - if (volume_ != null) { - subBuilder = volume_.toBuilder(); - } - volume_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(volume_); - volume_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; + if (volume_ != null) { + subBuilder = volume_.toBuilder(); + } + volume_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(volume_); + volume_ = 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 UpdateVolumeRequest( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Volume volume_; /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the volume field is set. */ @java.lang.Override @@ -157,38 +129,27 @@ public boolean hasVolume() { return volume_ != null; } /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The volume. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume getVolume() { - return volume_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() - : volume_; + return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; } /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { @@ -198,8 +159,6 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -211,7 +170,6 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -219,8 +177,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -232,7 +188,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -240,8 +195,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -260,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -272,7 +224,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (volume_ != null) {
       output.writeMessage(1, getVolume());
     }
@@ -289,10 +242,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (volume_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVolume());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getVolume());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -302,21 +257,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other =
-        (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj;
 
     if (hasVolume() != other.hasVolume()) return false;
     if (hasVolume()) {
-      if (!getVolume().equals(other.getVolume())) return false;
+      if (!getVolume()
+          .equals(other.getVolume())) 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;
@@ -343,127 +299,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Message for updating a volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) com.google.cloud.baremetalsolution.v2.UpdateVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.newBuilder() @@ -471,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override @@ -520,8 +467,7 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = - new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); if (volumeBuilder_ == null) { result.volume_ = volume_; } else { @@ -540,39 +486,38 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest)other); } else { super.mergeFrom(other); return this; @@ -580,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) return this; if (other.hasVolume()) { mergeVolume(other.getVolume()); } @@ -607,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,64 +563,45 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Volume volume_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> - volumeBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumeBuilder_; /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the volume field is set. */ public boolean hasVolume() { return volumeBuilder_ != null || volume_ != null; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The volume. */ public com.google.cloud.baremetalsolution.v2.Volume getVolume() { if (volumeBuilder_ == null) { - return volume_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() - : volume_; + return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; } else { return volumeBuilder_.getMessage(); } } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { @@ -693,19 +617,16 @@ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { + public Builder setVolume( + com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { if (volumeBuilder_ == null) { volume_ = builderForValue.build(); onChanged(); @@ -716,25 +637,19 @@ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume.Builder bu return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { if (volume_ != null) { volume_ = - com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_).mergeFrom(value).buildPartial(); } else { volume_ = value; } @@ -746,17 +661,13 @@ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearVolume() { if (volumeBuilder_ == null) { @@ -770,70 +681,54 @@ public Builder clearVolume() { return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumeBuilder() { - + onChanged(); return getVolumeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { if (volumeBuilder_ != null) { return volumeBuilder_.getMessageOrBuilder(); } else { - return volume_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() - : volume_; + return volume_ == null ? + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; } } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumeFieldBuilder() { if (volumeBuilder_ == null) { - volumeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - getVolume(), getParentForChildren(), isClean()); + volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + getVolume(), + getParentForChildren(), + isClean()); volume_ = null; } return volumeBuilder_; @@ -841,13 +736,8 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( 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_; /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -859,15 +749,12 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -879,21 +766,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -920,8 +802,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -934,7 +814,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -945,8 +826,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -963,7 +842,7 @@ 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;
         }
@@ -975,8 +854,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1001,8 +878,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1016,13 +891,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1039,14 +912,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1060,24 +930,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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> 
         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);
     }
 
@@ -1087,12 +954,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest();
   }
@@ -1101,16 +968,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateVolumeRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateVolumeRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateVolumeRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateVolumeRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1125,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
similarity index 69%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
index a1d2271..345ca45 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.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/baremetalsolution/v2/volume.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateVolumeRequestOrBuilder
-    extends
+public interface UpdateVolumeRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the volume field is set. */ boolean hasVolume(); /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The volume. */ com.google.cloud.baremetalsolution.v2.Volume getVolume(); /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -84,13 +52,10 @@ public interface UpdateVolumeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -102,13 +67,10 @@ public interface UpdateVolumeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
similarity index 72%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
index e47ad61..4209331 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
- *
- *
  * 
  * A network VRF.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ -public final class VRF extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VRF extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF) VRFOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VRF.newBuilder() to construct. private VRF(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VRF() { name_ = ""; state_ = 0; @@ -45,15 +27,16 @@ private VRF() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VRF(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VRF( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,58 +56,47 @@ private VRF( 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 40: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 50: { + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; + if (qosPolicy_ != null) { + subBuilder = qosPolicy_.toBuilder(); } - case 50: - { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; - if (qosPolicy_ != null) { - subBuilder = qosPolicy_.toBuilder(); - } - qosPolicy_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qosPolicy_); - qosPolicy_ = subBuilder.buildPartial(); - } - - break; + qosPolicy_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qosPolicy_); + qosPolicy_ = subBuilder.buildPartial(); } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment>(); - mutable_bitField0_ |= 0x00000001; - } - vlanAttachments_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), - extensionRegistry)); - break; + + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vlanAttachments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + vlanAttachments_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -132,7 +104,8 @@ private VRF( } 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)) { vlanAttachments_ = java.util.Collections.unmodifiableList(vlanAttachments_); @@ -141,35 +114,29 @@ private VRF( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, - com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } /** - * - * *
    * The possible states for this VRF.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.VRF.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The unspecified state.
      * 
@@ -178,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The vrf is provisioning.
      * 
@@ -188,8 +153,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROVISIONING(1), /** - * - * *
      * The vrf is provisioned.
      * 
@@ -201,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The unspecified state.
      * 
@@ -211,8 +172,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The vrf is provisioning.
      * 
@@ -221,8 +180,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONING_VALUE = 1; /** - * - * *
      * The vrf is provisioned.
      * 
@@ -231,6 +188,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -255,49 +213,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return PROVISIONED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return PROVISIONED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.VRF.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -314,56 +272,51 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.VRF.State) } - public interface QosPolicyOrBuilder - extends + public interface QosPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; - * * @return The bandwidthGbps. */ double getBandwidthGbps(); } /** - * - * *
    * QOS policy parameters.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class QosPolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class QosPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) QosPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QosPolicy.newBuilder() to construct. private QosPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private QosPolicy() {} + private QosPolicy() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QosPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private QosPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -382,18 +335,18 @@ private QosPolicy( case 0: done = true; break; - case 9: - { - bandwidthGbps_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 9: { + + bandwidthGbps_ = input.readDouble(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -401,39 +354,34 @@ private QosPolicy( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } public static final int BANDWIDTH_GBPS_FIELD_NUMBER = 1; private double bandwidthGbps_; /** - * - * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; - * * @return The bandwidthGbps. */ @java.lang.Override @@ -442,7 +390,6 @@ public double getBandwidthGbps() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -454,7 +401,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 (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { output.writeDouble(1, bandwidthGbps_); } @@ -468,7 +416,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, bandwidthGbps_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, bandwidthGbps_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -478,16 +427,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.baremetalsolution.v2.VRF.QosPolicy)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = - (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; if (java.lang.Double.doubleToLongBits(getBandwidthGbps()) - != java.lang.Double.doubleToLongBits(other.getBandwidthGbps())) return false; + != java.lang.Double.doubleToLongBits( + other.getBandwidthGbps())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -500,104 +449,95 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BANDWIDTH_GBPS_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBandwidthGbps())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBandwidthGbps())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -607,32 +547,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * QOS policy parameters.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder() @@ -640,15 +575,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(); @@ -658,9 +594,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override @@ -679,8 +615,7 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = - new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); result.bandwidthGbps_ = bandwidthGbps_; onBuilt(); return result; @@ -690,41 +625,38 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy)other); } else { super.mergeFrom(other); return this; @@ -732,8 +664,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) return this; if (other.getBandwidthGbps() != 0D) { setBandwidthGbps(other.getBandwidthGbps()); } @@ -756,8 +687,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -767,16 +697,13 @@ public Builder mergeFrom( return this; } - private double bandwidthGbps_; + private double bandwidthGbps_ ; /** - * - * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; - * * @return The bandwidthGbps. */ @java.lang.Override @@ -784,41 +711,34 @@ public double getBandwidthGbps() { return bandwidthGbps_; } /** - * - * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; - * * @param value The bandwidthGbps to set. * @return This builder for chaining. */ public Builder setBandwidthGbps(double value) { - + bandwidthGbps_ = value; onChanged(); return this; } /** - * - * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; - * * @return This builder for chaining. */ public Builder clearBandwidthGbps() { - + bandwidthGbps_ = 0D; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -831,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) private static final com.google.cloud.baremetalsolution.v2.VRF.QosPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(); } @@ -845,16 +765,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QosPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QosPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QosPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QosPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,95 +789,79 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface VlanAttachmentOrBuilder - extends + public interface VlanAttachmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; - * * @return The peerVlanId. */ long getPeerVlanId(); /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The peerIp. */ java.lang.String getPeerIp(); /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The bytes for peerIp. */ - com.google.protobuf.ByteString getPeerIpBytes(); + com.google.protobuf.ByteString + getPeerIpBytes(); /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The routerIp. */ java.lang.String getRouterIp(); /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The bytes for routerIp. */ - com.google.protobuf.ByteString getRouterIpBytes(); + com.google.protobuf.ByteString + getRouterIpBytes(); } /** - * - * *
    * VLAN attachment details.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class VlanAttachment extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class VlanAttachment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) VlanAttachmentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VlanAttachment.newBuilder() to construct. private VlanAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VlanAttachment() { peerIp_ = ""; routerIp_ = ""; @@ -965,15 +869,16 @@ private VlanAttachment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VlanAttachment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VlanAttachment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -992,32 +897,30 @@ private VlanAttachment( case 0: done = true; break; - case 8: - { - peerVlanId_ = input.readInt64(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { - peerIp_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + peerVlanId_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - routerIp_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + peerIp_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + routerIp_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1025,39 +928,34 @@ private VlanAttachment( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } public static final int PEER_VLAN_ID_FIELD_NUMBER = 1; private long peerVlanId_; /** - * - * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; - * * @return The peerVlanId. */ @java.lang.Override @@ -1068,14 +966,11 @@ public long getPeerVlanId() { public static final int PEER_IP_FIELD_NUMBER = 2; private volatile java.lang.Object peerIp_; /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The peerIp. */ @java.lang.Override @@ -1084,29 +979,29 @@ public java.lang.String getPeerIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; } } /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The bytes for peerIp. */ @java.lang.Override - public com.google.protobuf.ByteString getPeerIpBytes() { + public com.google.protobuf.ByteString + getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1117,14 +1012,11 @@ public com.google.protobuf.ByteString getPeerIpBytes() { public static final int ROUTER_IP_FIELD_NUMBER = 3; private volatile java.lang.Object routerIp_; /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The routerIp. */ @java.lang.Override @@ -1133,29 +1025,29 @@ public java.lang.String getRouterIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; } } /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The bytes for routerIp. */ @java.lang.Override - public com.google.protobuf.ByteString getRouterIpBytes() { + public com.google.protobuf.ByteString + getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1164,7 +1056,6 @@ public com.google.protobuf.ByteString getRouterIpBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1176,7 +1067,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 (peerVlanId_ != 0L) { output.writeInt64(1, peerVlanId_); } @@ -1196,7 +1088,8 @@ public int getSerializedSize() { size = 0; if (peerVlanId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, peerVlanId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, peerVlanId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerIp_); @@ -1212,17 +1105,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.baremetalsolution.v2.VRF.VlanAttachment)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = - (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; - if (getPeerVlanId() != other.getPeerVlanId()) return false; - if (!getPeerIp().equals(other.getPeerIp())) return false; - if (!getRouterIp().equals(other.getRouterIp())) return false; + if (getPeerVlanId() + != other.getPeerVlanId()) return false; + if (!getPeerIp() + .equals(other.getPeerIp())) return false; + if (!getRouterIp() + .equals(other.getRouterIp())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1235,7 +1130,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PEER_VLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPeerVlanId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPeerVlanId()); hash = (37 * hash) + PEER_IP_FIELD_NUMBER; hash = (53 * hash) + getPeerIp().hashCode(); hash = (37 * hash) + ROUTER_IP_FIELD_NUMBER; @@ -1246,94 +1142,87 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1343,32 +1232,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * VLAN attachment details.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.newBuilder() @@ -1376,15 +1260,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(); @@ -1398,9 +1283,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override @@ -1419,8 +1304,7 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = - new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); result.peerVlanId_ = peerVlanId_; result.peerIp_ = peerIp_; result.routerIp_ = routerIp_; @@ -1432,41 +1316,38 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment)other); } else { super.mergeFrom(other); return this; @@ -1474,8 +1355,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) return this; if (other.getPeerVlanId() != 0L) { setPeerVlanId(other.getPeerVlanId()); } @@ -1506,8 +1386,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1517,16 +1396,13 @@ public Builder mergeFrom( return this; } - private long peerVlanId_; + private long peerVlanId_ ; /** - * - * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; - * * @return The peerVlanId. */ @java.lang.Override @@ -1534,36 +1410,30 @@ public long getPeerVlanId() { return peerVlanId_; } /** - * - * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; - * * @param value The peerVlanId to set. * @return This builder for chaining. */ public Builder setPeerVlanId(long value) { - + peerVlanId_ = value; onChanged(); return this; } /** - * - * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; - * * @return This builder for chaining. */ public Builder clearPeerVlanId() { - + peerVlanId_ = 0L; onChanged(); return this; @@ -1571,20 +1441,18 @@ public Builder clearPeerVlanId() { private java.lang.Object peerIp_ = ""; /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @return The peerIp. */ public java.lang.String getPeerIp() { java.lang.Object ref = peerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; @@ -1593,21 +1461,20 @@ public java.lang.String getPeerIp() { } } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @return The bytes for peerIp. */ - public com.google.protobuf.ByteString getPeerIpBytes() { + public com.google.protobuf.ByteString + getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1615,61 +1482,54 @@ public com.google.protobuf.ByteString getPeerIpBytes() { } } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @param value The peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIp(java.lang.String value) { + public Builder setPeerIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + peerIp_ = value; onChanged(); return this; } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @return This builder for chaining. */ public Builder clearPeerIp() { - + peerIp_ = getDefaultInstance().getPeerIp(); onChanged(); return this; } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @param value The bytes for peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIpBytes(com.google.protobuf.ByteString value) { + public Builder setPeerIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerIp_ = value; onChanged(); return this; @@ -1677,20 +1537,18 @@ public Builder setPeerIpBytes(com.google.protobuf.ByteString value) { private java.lang.Object routerIp_ = ""; /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @return The routerIp. */ public java.lang.String getRouterIp() { java.lang.Object ref = routerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; @@ -1699,21 +1557,20 @@ public java.lang.String getRouterIp() { } } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @return The bytes for routerIp. */ - public com.google.protobuf.ByteString getRouterIpBytes() { + public com.google.protobuf.ByteString + getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1721,66 +1578,58 @@ public com.google.protobuf.ByteString getRouterIpBytes() { } } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @param value The routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIp(java.lang.String value) { + public Builder setRouterIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + routerIp_ = value; onChanged(); return this; } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @return This builder for chaining. */ public Builder clearRouterIp() { - + routerIp_ = getDefaultInstance().getRouterIp(); onChanged(); return this; } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @param value The bytes for routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIpBytes(com.google.protobuf.ByteString value) { + public Builder setRouterIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routerIp_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1793,12 +1642,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) private static final com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(); } @@ -1807,16 +1656,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VlanAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VlanAttachment(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VlanAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VlanAttachment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1831,19 +1680,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1852,29 +1699,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @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 { @@ -1885,50 +1732,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRF.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = - com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } public static final int QOS_POLICY_FIELD_NUMBER = 6; private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return Whether the qosPolicy field is set. */ @java.lang.Override @@ -1936,25 +1771,18 @@ public boolean hasQosPolicy() { return qosPolicy_ != null; } /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return The qosPolicy. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { - return qosPolicy_ == null - ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() - : qosPolicy_; + return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; } /** - * - * *
    * The QOS policy applied to this VRF.
    * 
@@ -1969,81 +1797,64 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy public static final int VLAN_ATTACHMENTS_FIELD_NUMBER = 7; private java.util.List vlanAttachments_; /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override - public java.util.List - getVlanAttachmentsList() { + public java.util.List getVlanAttachmentsList() { return vlanAttachments_; } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override - public java.util.List + public java.util.List getVlanAttachmentsOrBuilderList() { return vlanAttachments_; } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override public int getVlanAttachmentsCount() { return vlanAttachments_.size(); } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { return vlanAttachments_.get(index); } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder - getVlanAttachmentsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( + int index) { return vlanAttachments_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2055,7 +1866,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_); } @@ -2081,13 +1893,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.VRF.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (qosPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getQosPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getQosPolicy()); } for (int i = 0; i < vlanAttachments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, vlanAttachments_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, vlanAttachments_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2097,21 +1912,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.baremetalsolution.v2.VRF)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF other = - (com.google.cloud.baremetalsolution.v2.VRF) obj; + com.google.cloud.baremetalsolution.v2.VRF other = (com.google.cloud.baremetalsolution.v2.VRF) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasQosPolicy() != other.hasQosPolicy()) return false; if (hasQosPolicy()) { - if (!getQosPolicy().equals(other.getQosPolicy())) return false; + if (!getQosPolicy() + .equals(other.getQosPolicy())) return false; } - if (!getVlanAttachmentsList().equals(other.getVlanAttachmentsList())) return false; + if (!getVlanAttachmentsList() + .equals(other.getVlanAttachmentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2140,127 +1957,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF 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.baremetalsolution.v2.VRF parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 network VRF.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF) com.google.cloud.baremetalsolution.v2.VRFOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, - com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.newBuilder() @@ -2268,17 +2076,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) { getVlanAttachmentsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2302,9 +2110,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override @@ -2323,8 +2131,7 @@ public com.google.cloud.baremetalsolution.v2.VRF build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF result = - new com.google.cloud.baremetalsolution.v2.VRF(this); + com.google.cloud.baremetalsolution.v2.VRF result = new com.google.cloud.baremetalsolution.v2.VRF(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.state_ = state_; @@ -2350,39 +2157,38 @@ public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF)other); } else { super.mergeFrom(other); return this; @@ -2419,10 +2225,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF other) { vlanAttachmentsBuilder_ = null; vlanAttachments_ = other.vlanAttachments_; bitField0_ = (bitField0_ & ~0x00000001); - vlanAttachmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVlanAttachmentsFieldBuilder() - : null; + vlanAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVlanAttachmentsFieldBuilder() : null; } else { vlanAttachmentsBuilder_.addAllMessages(other.vlanAttachments_); } @@ -2456,25 +2261,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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; @@ -2483,21 +2285,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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 { @@ -2505,61 +2306,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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 name of the VRF.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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; @@ -2567,65 +2361,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = - com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2633,24 +2413,21 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.VRF.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2658,47 +2435,34 @@ public Builder clearState() { private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> - qosPolicyBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> qosPolicyBuilder_; /** - * - * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return Whether the qosPolicy field is set. */ public boolean hasQosPolicy() { return qosPolicyBuilder_ != null || qosPolicy_ != null; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return The qosPolicy. */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { if (qosPolicyBuilder_ == null) { - return qosPolicy_ == null - ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() - : qosPolicy_; + return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; } else { return qosPolicyBuilder_.getMessage(); } } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2719,8 +2483,6 @@ public Builder setQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2739,8 +2501,6 @@ public Builder setQosPolicy( return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2751,9 +2511,7 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic if (qosPolicyBuilder_ == null) { if (qosPolicy_ != null) { qosPolicy_ = - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_).mergeFrom(value).buildPartial(); } else { qosPolicy_ = value; } @@ -2765,8 +2523,6 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2785,8 +2541,6 @@ public Builder clearQosPolicy() { return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2794,13 +2548,11 @@ public Builder clearQosPolicy() { * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder getQosPolicyBuilder() { - + onChanged(); return getQosPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2811,14 +2563,11 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy if (qosPolicyBuilder_ != null) { return qosPolicyBuilder_.getMessageOrBuilder(); } else { - return qosPolicy_ == null - ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() - : qosPolicy_; + return qosPolicy_ == null ? + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; } } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2826,52 +2575,39 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> getQosPolicyFieldBuilder() { if (qosPolicyBuilder_ == null) { - qosPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( - getQosPolicy(), getParentForChildren(), isClean()); + qosPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( + getQosPolicy(), + getParentForChildren(), + isClean()); qosPolicy_ = null; } return qosPolicyBuilder_; } - private java.util.List - vlanAttachments_ = java.util.Collections.emptyList(); - + private java.util.List vlanAttachments_ = + java.util.Collections.emptyList(); private void ensureVlanAttachmentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = - new java.util.ArrayList( - vlanAttachments_); + vlanAttachments_ = new java.util.ArrayList(vlanAttachments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> - vlanAttachmentsBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> vlanAttachmentsBuilder_; /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public java.util.List - getVlanAttachmentsList() { + public java.util.List getVlanAttachmentsList() { if (vlanAttachmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(vlanAttachments_); } else { @@ -2879,14 +2615,11 @@ private void ensureVlanAttachmentsIsMutable() { } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public int getVlanAttachmentsCount() { if (vlanAttachmentsBuilder_ == null) { @@ -2896,14 +2629,11 @@ public int getVlanAttachmentsCount() { } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -2913,14 +2643,11 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachmen } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder setVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -2937,18 +2664,14 @@ public Builder setVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder setVlanAttachments( - int index, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.set(index, builderForValue.build()); @@ -2959,17 +2682,13 @@ public Builder setVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public Builder addVlanAttachments( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { + public Builder addVlanAttachments(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { if (vlanAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2983,14 +2702,11 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -3007,14 +2723,11 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addVlanAttachments( com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { @@ -3028,18 +2741,14 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addVlanAttachments( - int index, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(index, builderForValue.build()); @@ -3050,21 +2759,18 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addAllVlanAttachments( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vlanAttachments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vlanAttachments_); onChanged(); } else { vlanAttachmentsBuilder_.addAllMessages(values); @@ -3072,14 +2778,11 @@ public Builder addAllVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder clearVlanAttachments() { if (vlanAttachmentsBuilder_ == null) { @@ -3092,14 +2795,11 @@ public Builder clearVlanAttachments() { return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder removeVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -3112,50 +2812,39 @@ public Builder removeVlanAttachments(int index) { return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder - getVlanAttachmentsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder getVlanAttachmentsBuilder( + int index) { return getVlanAttachmentsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder - getVlanAttachmentsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( + int index) { if (vlanAttachmentsBuilder_ == null) { - return vlanAttachments_.get(index); - } else { + return vlanAttachments_.get(index); } else { return vlanAttachmentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> - getVlanAttachmentsOrBuilderList() { + public java.util.List + getVlanAttachmentsOrBuilderList() { if (vlanAttachmentsBuilder_ != null) { return vlanAttachmentsBuilder_.getMessageOrBuilderList(); } else { @@ -3163,63 +2852,45 @@ public Builder removeVlanAttachments(int index) { } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder - addVlanAttachmentsBuilder() { - return getVlanAttachmentsFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder() { + return getVlanAttachmentsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder - addVlanAttachmentsBuilder(int index) { - return getVlanAttachmentsFieldBuilder() - .addBuilder( - index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder( + int index) { + return getVlanAttachmentsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public java.util.List - getVlanAttachmentsBuilderList() { + public java.util.List + getVlanAttachmentsBuilderList() { return getVlanAttachmentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> getVlanAttachmentsFieldBuilder() { if (vlanAttachmentsBuilder_ == null) { - vlanAttachmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( + vlanAttachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( vlanAttachments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3228,9 +2899,9 @@ public Builder removeVlanAttachments(int index) { } return vlanAttachmentsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3240,12 +2911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF) private static final com.google.cloud.baremetalsolution.v2.VRF DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF(); } @@ -3254,16 +2925,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VRF parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VRF(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VRF parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VRF(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3278,4 +2949,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java similarity index 72% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java index fb8d57d..deba571 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface VRFOrBuilder - extends +public interface VRFOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.VRF.State getState(); /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return Whether the qosPolicy field is set. */ boolean hasQosPolicy(); /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return The qosPolicy. */ com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy(); /** - * - * *
    * The QOS policy applied to this VRF.
    * 
@@ -109,59 +74,45 @@ public interface VRFOrBuilder com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicyOrBuilder(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - java.util.List getVlanAttachmentsList(); + java.util.List + getVlanAttachmentsList(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ int getVlanAttachmentsCount(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - java.util.List + java.util.List getVlanAttachmentsOrBuilderList(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( int index); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java index bdd0c0b..926e0a1 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A storage volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ -public final class Volume extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Volume extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume) VolumeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Volume() { name_ = ""; id_ = ""; @@ -48,15 +30,16 @@ private Volume() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Volume(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Volume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,117 +59,105 @@ private Volume( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - storageType_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + storageType_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 32: - { - requestedSizeGib_ = input.readInt64(); - break; - } - case 40: - { - currentSizeGib_ = input.readInt64(); - break; - } - case 48: - { - autoGrownSizeGib_ = input.readInt64(); - break; - } - case 56: - { - remainingSpaceGib_ = input.readInt64(); - break; - } - case 66: - { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - subBuilder = null; - if (snapshotReservationDetail_ != null) { - subBuilder = snapshotReservationDetail_.toBuilder(); - } - snapshotReservationDetail_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshotReservationDetail_); - snapshotReservationDetail_ = subBuilder.buildPartial(); - } + state_ = rawValue; + break; + } + case 32: { - break; - } - case 72: - { - int rawValue = input.readEnum(); + requestedSizeGib_ = input.readInt64(); + break; + } + case 40: { - snapshotAutoDeleteBehavior_ = rawValue; - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); + currentSizeGib_ = input.readInt64(); + break; + } + case 48: { - id_ = s; - break; - } - case 98: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 104: - { - snapshotEnabled_ = input.readBool(); - break; + autoGrownSizeGib_ = input.readInt64(); + break; + } + case 56: { + + remainingSpaceGib_ = input.readInt64(); + break; + } + case 66: { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder subBuilder = null; + if (snapshotReservationDetail_ != null) { + subBuilder = snapshotReservationDetail_.toBuilder(); } - case 112: - { - emergencySizeGib_ = input.readInt64(); - break; + snapshotReservationDetail_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshotReservationDetail_); + snapshotReservationDetail_ = subBuilder.buildPartial(); } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; + break; + } + case 72: { + int rawValue = input.readEnum(); + + snapshotAutoDeleteBehavior_ = rawValue; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 98: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 104: { + + snapshotEnabled_ = input.readBool(); + break; + } + case 112: { + + emergencySizeGib_ = input.readInt64(); + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + + pod_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -194,52 +165,48 @@ private Volume( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_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 12: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, - com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } /** - * - * *
    * The storage type for a volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.StorageType} */ - public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The storage type for this volume is unknown.
      * 
@@ -248,8 +215,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ STORAGE_TYPE_UNSPECIFIED(0), /** - * - * *
      * The storage type for this volume is SSD.
      * 
@@ -258,8 +223,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ SSD(1), /** - * - * *
      * This storage type for this volume is HDD.
      * 
@@ -271,8 +234,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The storage type for this volume is unknown.
      * 
@@ -281,8 +242,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The storage type for this volume is SSD.
      * 
@@ -291,8 +250,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SSD_VALUE = 1; /** - * - * *
      * This storage type for this volume is HDD.
      * 
@@ -301,6 +258,7 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HDD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -325,49 +283,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: - return STORAGE_TYPE_UNSPECIFIED; - case 1: - return SSD; - case 2: - return HDD; - default: - return null; + case 0: return STORAGE_TYPE_UNSPECIFIED; + case 1: return SSD; + case 2: return HDD; + 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< + StorageType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageType findValueByNumber(int number) { + return StorageType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(0); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -385,18 +343,15 @@ private StorageType(int value) { } /** - * - * *
    * The possible states for a storage volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The storage volume is in an unknown state.
      * 
@@ -405,8 +360,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The storage volume is being created.
      * 
@@ -415,8 +368,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The storage volume is ready for use.
      * 
@@ -425,8 +376,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * The storage volume has been requested to be deleted.
      * 
@@ -438,8 +387,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The storage volume is in an unknown state.
      * 
@@ -448,8 +395,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The storage volume is being created.
      * 
@@ -458,8 +403,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The storage volume is ready for use.
      * 
@@ -468,8 +411,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * The storage volume has been requested to be deleted.
      * 
@@ -478,6 +419,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -502,51 +444,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - case 3: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return DELETING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -564,8 +505,6 @@ private State(int value) { } /** - * - * *
    * The kinds of auto delete behavior to use when snapshot reserved space is
    * full.
@@ -573,10 +512,9 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior}
    */
-  public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SnapshotAutoDeleteBehavior
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * The unspecified behavior.
      * 
@@ -585,8 +523,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED(0), /** - * - * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -596,8 +532,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe
      */
     DISABLED(1),
     /**
-     *
-     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -606,8 +540,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ OLDEST_FIRST(2), /** - * - * *
      * Delete the newest snapshots first.
      * 
@@ -619,8 +551,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe ; /** - * - * *
      * The unspecified behavior.
      * 
@@ -629,8 +559,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -640,8 +568,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe
      */
     public static final int DISABLED_VALUE = 1;
     /**
-     *
-     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -650,8 +576,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ public static final int OLDEST_FIRST_VALUE = 2; /** - * - * *
      * Delete the newest snapshots first.
      * 
@@ -660,6 +584,7 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ public static final int NEWEST_FIRST_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -684,16 +609,11 @@ public static SnapshotAutoDeleteBehavior valueOf(int value) { */ public static SnapshotAutoDeleteBehavior forNumber(int value) { switch (value) { - case 0: - return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; - case 1: - return DISABLED; - case 2: - return OLDEST_FIRST; - case 3: - return NEWEST_FIRST; - default: - return null; + case 0: return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; + case 1: return DISABLED; + case 2: return OLDEST_FIRST; + case 3: return NEWEST_FIRST; + default: return null; } } @@ -701,28 +621,28 @@ public static SnapshotAutoDeleteBehavior forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SnapshotAutoDeleteBehavior> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SnapshotAutoDeleteBehavior findValueByNumber(int number) { + return SnapshotAutoDeleteBehavior.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SnapshotAutoDeleteBehavior findValueByNumber(int number) { - return SnapshotAutoDeleteBehavior.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(2); } @@ -731,7 +651,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static SnapshotAutoDeleteBehavior 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; @@ -748,27 +669,21 @@ private SnapshotAutoDeleteBehavior(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior) } - public interface SnapshotReservationDetailOrBuilder - extends + public interface SnapshotReservationDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; - * * @return The reservedSpaceGib. */ long getReservedSpaceGib(); /** - * - * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -777,28 +692,22 @@ public interface SnapshotReservationDetailOrBuilder
      * 
* * int32 reserved_space_used_percent = 2; - * * @return The reservedSpaceUsedPercent. */ int getReservedSpaceUsedPercent(); /** - * - * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; - * * @return The reservedSpaceRemainingGib. */ long getReservedSpaceRemainingGib(); /** - * - * *
      * Percent of the total Volume size reserved for snapshot copies.
      * Enabling snapshots requires reserving 20% or more of
@@ -808,43 +717,41 @@ public interface SnapshotReservationDetailOrBuilder
      * 
* * int32 reserved_space_percent = 4; - * * @return The reservedSpacePercent. */ int getReservedSpacePercent(); } /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class SnapshotReservationDetail extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SnapshotReservationDetail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) SnapshotReservationDetailOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SnapshotReservationDetail.newBuilder() to construct. private SnapshotReservationDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SnapshotReservationDetail() {} + private SnapshotReservationDetail() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SnapshotReservationDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SnapshotReservationDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -863,33 +770,33 @@ private SnapshotReservationDetail( case 0: done = true; break; - case 8: - { - reservedSpaceGib_ = input.readInt64(); - break; - } - case 16: - { - reservedSpaceUsedPercent_ = input.readInt32(); - break; - } - case 24: - { - reservedSpaceRemainingGib_ = input.readInt64(); - break; - } - case 32: - { - reservedSpacePercent_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + reservedSpaceGib_ = input.readInt64(); + break; + } + case 16: { + + reservedSpaceUsedPercent_ = input.readInt32(); + break; + } + case 24: { + + reservedSpaceRemainingGib_ = input.readInt64(); + break; + } + case 32: { + + reservedSpacePercent_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -897,39 +804,34 @@ private SnapshotReservationDetail( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); } public static final int RESERVED_SPACE_GIB_FIELD_NUMBER = 1; private long reservedSpaceGib_; /** - * - * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; - * * @return The reservedSpaceGib. */ @java.lang.Override @@ -940,8 +842,6 @@ public long getReservedSpaceGib() { public static final int RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER = 2; private int reservedSpaceUsedPercent_; /** - * - * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -950,7 +850,6 @@ public long getReservedSpaceGib() {
      * 
* * int32 reserved_space_used_percent = 2; - * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -961,15 +860,12 @@ public int getReservedSpaceUsedPercent() { public static final int RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER = 3; private long reservedSpaceRemainingGib_; /** - * - * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; - * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -980,8 +876,6 @@ public long getReservedSpaceRemainingGib() { public static final int RESERVED_SPACE_PERCENT_FIELD_NUMBER = 4; private int reservedSpacePercent_; /** - * - * *
      * Percent of the total Volume size reserved for snapshot copies.
      * Enabling snapshots requires reserving 20% or more of
@@ -991,7 +885,6 @@ public long getReservedSpaceRemainingGib() {
      * 
* * int32 reserved_space_percent = 4; - * * @return The reservedSpacePercent. */ @java.lang.Override @@ -1000,7 +893,6 @@ public int getReservedSpacePercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1012,7 +904,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 (reservedSpaceGib_ != 0L) { output.writeInt64(1, reservedSpaceGib_); } @@ -1035,18 +928,20 @@ public int getSerializedSize() { size = 0; if (reservedSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, reservedSpaceGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, reservedSpaceGib_); } if (reservedSpaceUsedPercent_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(2, reservedSpaceUsedPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, reservedSpaceUsedPercent_); } if (reservedSpaceRemainingGib_ != 0L) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size(3, reservedSpaceRemainingGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, reservedSpaceRemainingGib_); } if (reservedSpacePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, reservedSpacePercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, reservedSpacePercent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1056,19 +951,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.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = - (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; - if (getReservedSpaceGib() != other.getReservedSpaceGib()) return false; - if (getReservedSpaceUsedPercent() != other.getReservedSpaceUsedPercent()) return false; - if (getReservedSpaceRemainingGib() != other.getReservedSpaceRemainingGib()) return false; - if (getReservedSpacePercent() != other.getReservedSpacePercent()) return false; + if (getReservedSpaceGib() + != other.getReservedSpaceGib()) return false; + if (getReservedSpaceUsedPercent() + != other.getReservedSpaceUsedPercent()) return false; + if (getReservedSpaceRemainingGib() + != other.getReservedSpaceRemainingGib()) return false; + if (getReservedSpacePercent() + != other.getReservedSpacePercent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1081,11 +978,13 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESERVED_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReservedSpaceGib()); hash = (37 * hash) + RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpaceUsedPercent(); hash = (37 * hash) + RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceRemainingGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReservedSpaceRemainingGib()); hash = (37 * hash) + RESERVED_SPACE_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpacePercent(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1094,95 +993,87 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1192,50 +1083,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - .class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); } - // Construct using - // com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() + // Construct using com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1251,22 +1136,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail build() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = - buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1275,8 +1157,7 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = - new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); result.reservedSpaceGib_ = reservedSpaceGib_; result.reservedSpaceUsedPercent_ = reservedSpaceUsedPercent_; result.reservedSpaceRemainingGib_ = reservedSpaceRemainingGib_; @@ -1289,54 +1170,46 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) other); + if (other instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { - if (other - == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { + if (other == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance()) return this; if (other.getReservedSpaceGib() != 0L) { setReservedSpaceGib(other.getReservedSpaceGib()); } @@ -1368,9 +1241,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1380,16 +1251,13 @@ public Builder mergeFrom( return this; } - private long reservedSpaceGib_; + private long reservedSpaceGib_ ; /** - * - * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; - * * @return The reservedSpaceGib. */ @java.lang.Override @@ -1397,45 +1265,37 @@ public long getReservedSpaceGib() { return reservedSpaceGib_; } /** - * - * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; - * * @param value The reservedSpaceGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceGib(long value) { - + reservedSpaceGib_ = value; onChanged(); return this; } /** - * - * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; - * * @return This builder for chaining. */ public Builder clearReservedSpaceGib() { - + reservedSpaceGib_ = 0L; onChanged(); return this; } - private int reservedSpaceUsedPercent_; + private int reservedSpaceUsedPercent_ ; /** - * - * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1444,7 +1304,6 @@ public Builder clearReservedSpaceGib() {
        * 
* * int32 reserved_space_used_percent = 2; - * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -1452,8 +1311,6 @@ public int getReservedSpaceUsedPercent() { return reservedSpaceUsedPercent_; } /** - * - * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1462,19 +1319,16 @@ public int getReservedSpaceUsedPercent() {
        * 
* * int32 reserved_space_used_percent = 2; - * * @param value The reservedSpaceUsedPercent to set. * @return This builder for chaining. */ public Builder setReservedSpaceUsedPercent(int value) { - + reservedSpaceUsedPercent_ = value; onChanged(); return this; } /** - * - * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1483,27 +1337,23 @@ public Builder setReservedSpaceUsedPercent(int value) {
        * 
* * int32 reserved_space_used_percent = 2; - * * @return This builder for chaining. */ public Builder clearReservedSpaceUsedPercent() { - + reservedSpaceUsedPercent_ = 0; onChanged(); return this; } - private long reservedSpaceRemainingGib_; + private long reservedSpaceRemainingGib_ ; /** - * - * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; - * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -1511,47 +1361,39 @@ public long getReservedSpaceRemainingGib() { return reservedSpaceRemainingGib_; } /** - * - * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; - * * @param value The reservedSpaceRemainingGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceRemainingGib(long value) { - + reservedSpaceRemainingGib_ = value; onChanged(); return this; } /** - * - * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; - * * @return This builder for chaining. */ public Builder clearReservedSpaceRemainingGib() { - + reservedSpaceRemainingGib_ = 0L; onChanged(); return this; } - private int reservedSpacePercent_; + private int reservedSpacePercent_ ; /** - * - * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1561,7 +1403,6 @@ public Builder clearReservedSpaceRemainingGib() {
        * 
* * int32 reserved_space_percent = 4; - * * @return The reservedSpacePercent. */ @java.lang.Override @@ -1569,8 +1410,6 @@ public int getReservedSpacePercent() { return reservedSpacePercent_; } /** - * - * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1580,19 +1419,16 @@ public int getReservedSpacePercent() {
        * 
* * int32 reserved_space_percent = 4; - * * @param value The reservedSpacePercent to set. * @return This builder for chaining. */ public Builder setReservedSpacePercent(int value) { - + reservedSpacePercent_ = value; onChanged(); return this; } /** - * - * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1602,16 +1438,14 @@ public Builder setReservedSpacePercent(int value) {
        * 
* * int32 reserved_space_percent = 4; - * * @return This builder for chaining. */ public Builder clearReservedSpacePercent() { - + reservedSpacePercent_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1624,33 +1458,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) - private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotReservationDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotReservationDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotReservationDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotReservationDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1662,17 +1493,15 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1682,7 +1511,6 @@ public com.google.protobuf.Parser getParserForType()
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1691,15 +1519,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; } } /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1709,15 +1536,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1728,14 +1556,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ID_FIELD_NUMBER = 11; private volatile java.lang.Object id_; /** - * - * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; - * * @return The id. */ @java.lang.Override @@ -1744,29 +1569,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; } } /** - * - * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; - * * @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 { @@ -1777,90 +1602,65 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int STORAGE_TYPE_FIELD_NUMBER = 2; private int storageType_; /** - * - * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The storageType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = - com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; } public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = - com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; } public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER = 4; private long requestedSizeGib_; /** - * - * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; - * * @return The requestedSizeGib. */ @java.lang.Override @@ -1871,8 +1671,6 @@ public long getRequestedSizeGib() { public static final int CURRENT_SIZE_GIB_FIELD_NUMBER = 5; private long currentSizeGib_; /** - * - * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -1880,7 +1678,6 @@ public long getRequestedSizeGib() {
    * 
* * int64 current_size_gib = 5; - * * @return The currentSizeGib. */ @java.lang.Override @@ -1891,15 +1688,12 @@ public long getCurrentSizeGib() { public static final int EMERGENCY_SIZE_GIB_FIELD_NUMBER = 14; private long emergencySizeGib_; /** - * - * *
    * Additional emergency size that was requested for this Volume, in GiB.
    * current_size_gib includes this value.
    * 
* * int64 emergency_size_gib = 14; - * * @return The emergencySizeGib. */ @java.lang.Override @@ -1910,15 +1704,12 @@ public long getEmergencySizeGib() { public static final int AUTO_GROWN_SIZE_GIB_FIELD_NUMBER = 6; private long autoGrownSizeGib_; /** - * - * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; - * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -1929,15 +1720,12 @@ public long getAutoGrownSizeGib() { public static final int REMAINING_SPACE_GIB_FIELD_NUMBER = 7; private long remainingSpaceGib_; /** - * - * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; - * * @return The remainingSpaceGib. */ @java.lang.Override @@ -1946,19 +1734,13 @@ public long getRemainingSpaceGib() { } public static final int SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER = 8; - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return Whether the snapshotReservationDetail field is set. */ @java.lang.Override @@ -1966,105 +1748,75 @@ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetail_ != null; } /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return The snapshotReservationDetail. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getSnapshotReservationDetail() { - return snapshotReservationDetail_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance() - : snapshotReservationDetail_; + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { + return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; } /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder - getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { return getSnapshotReservationDetail(); } public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER = 9; private int snapshotAutoDeleteBehavior_; /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override - public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The snapshotAutoDeleteBehavior. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - getSnapshotAutoDeleteBehavior() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( - snapshotAutoDeleteBehavior_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 12; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -2073,30 +1825,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2104,12 +1854,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 12; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2117,16 +1866,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2134,11 +1883,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2148,14 +1898,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int SNAPSHOT_ENABLED_FIELD_NUMBER = 13; private boolean snapshotEnabled_; /** - * - * *
    * Whether snapshots are enabled.
    * 
* * bool snapshot_enabled = 13; - * * @return The snapshotEnabled. */ @java.lang.Override @@ -2166,14 +1913,11 @@ public boolean getSnapshotEnabled() { public static final int POD_FIELD_NUMBER = 15; private volatile java.lang.Object pod_; /** - * - * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ @java.lang.Override @@ -2182,29 +1926,29 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** - * - * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString getPodBytes() { + public com.google.protobuf.ByteString + getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pod_ = b; return b; } else { @@ -2213,7 +1957,6 @@ public com.google.protobuf.ByteString getPodBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2225,17 +1968,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { + if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, storageType_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (requestedSizeGib_ != 0L) { @@ -2253,17 +1994,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (snapshotReservationDetail_ != null) { output.writeMessage(8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ - != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED - .getNumber()) { + if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { output.writeEnum(9, snapshotAutoDeleteBehavior_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, id_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 12); if (snapshotEnabled_ != false) { output.writeBool(13, snapshotEnabled_); } @@ -2285,56 +2027,58 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, storageType_); + if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, storageType_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (requestedSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, requestedSizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, requestedSizeGib_); } if (currentSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, currentSizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, currentSizeGib_); } if (autoGrownSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, autoGrownSizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, autoGrownSizeGib_); } if (remainingSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, remainingSpaceGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, remainingSpaceGib_); } if (snapshotReservationDetail_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getSnapshotReservationDetail()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ - != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, snapshotAutoDeleteBehavior_); + if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, snapshotAutoDeleteBehavior_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, labels__); } if (snapshotEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, snapshotEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, snapshotEnabled_); } if (emergencySizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, emergencySizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(14, emergencySizeGib_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, pod_); @@ -2347,32 +2091,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Volume)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume other = - (com.google.cloud.baremetalsolution.v2.Volume) obj; + com.google.cloud.baremetalsolution.v2.Volume other = (com.google.cloud.baremetalsolution.v2.Volume) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; if (storageType_ != other.storageType_) return false; if (state_ != other.state_) return false; - if (getRequestedSizeGib() != other.getRequestedSizeGib()) return false; - if (getCurrentSizeGib() != other.getCurrentSizeGib()) return false; - if (getEmergencySizeGib() != other.getEmergencySizeGib()) return false; - if (getAutoGrownSizeGib() != other.getAutoGrownSizeGib()) return false; - if (getRemainingSpaceGib() != other.getRemainingSpaceGib()) return false; + if (getRequestedSizeGib() + != other.getRequestedSizeGib()) return false; + if (getCurrentSizeGib() + != other.getCurrentSizeGib()) return false; + if (getEmergencySizeGib() + != other.getEmergencySizeGib()) return false; + if (getAutoGrownSizeGib() + != other.getAutoGrownSizeGib()) return false; + if (getRemainingSpaceGib() + != other.getRemainingSpaceGib()) return false; if (hasSnapshotReservationDetail() != other.hasSnapshotReservationDetail()) return false; if (hasSnapshotReservationDetail()) { - if (!getSnapshotReservationDetail().equals(other.getSnapshotReservationDetail())) - return false; + if (!getSnapshotReservationDetail() + .equals(other.getSnapshotReservationDetail())) return false; } if (snapshotAutoDeleteBehavior_ != other.snapshotAutoDeleteBehavior_) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getSnapshotEnabled() != other.getSnapshotEnabled()) return false; - if (!getPod().equals(other.getPod())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getSnapshotEnabled() + != other.getSnapshotEnabled()) return false; + if (!getPod() + .equals(other.getPod())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2393,15 +2146,20 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + REQUESTED_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestedSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestedSizeGib()); hash = (37 * hash) + CURRENT_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurrentSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCurrentSizeGib()); hash = (37 * hash) + EMERGENCY_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEmergencySizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEmergencySizeGib()); hash = (37 * hash) + AUTO_GROWN_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAutoGrownSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAutoGrownSizeGib()); hash = (37 * hash) + REMAINING_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRemainingSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRemainingSpaceGib()); if (hasSnapshotReservationDetail()) { hash = (37 * hash) + SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getSnapshotReservationDetail().hashCode(); @@ -2413,7 +2171,8 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + SNAPSHOT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSnapshotEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSnapshotEnabled()); hash = (37 * hash) + POD_FIELD_NUMBER; hash = (53 * hash) + getPod().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -2421,147 +2180,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume 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.baremetalsolution.v2.Volume parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume) com.google.cloud.baremetalsolution.v2.VolumeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 12: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 12: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, - com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Volume.newBuilder() @@ -2569,15 +2321,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(); @@ -2616,9 +2369,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @java.lang.Override @@ -2637,8 +2390,7 @@ public com.google.cloud.baremetalsolution.v2.Volume build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume result = - new com.google.cloud.baremetalsolution.v2.Volume(this); + com.google.cloud.baremetalsolution.v2.Volume result = new com.google.cloud.baremetalsolution.v2.Volume(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -2667,39 +2419,38 @@ public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Volume) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume)other); } else { super.mergeFrom(other); return this; @@ -2743,7 +2494,8 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume other) { if (other.snapshotAutoDeleteBehavior_ != 0) { setSnapshotAutoDeleteBehaviorValue(other.getSnapshotAutoDeleteBehaviorValue()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.getSnapshotEnabled() != false) { setSnapshotEnabled(other.getSnapshotEnabled()); } @@ -2779,13 +2531,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2795,13 +2544,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2810,8 +2559,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2821,14 +2568,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2836,8 +2584,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2847,22 +2593,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2872,18 +2616,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2893,16 +2634,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2910,20 +2651,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; - * * @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; @@ -2932,21 +2671,20 @@ public java.lang.String getId() { } } /** - * - * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; - * * @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 { @@ -2954,61 +2692,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; - * * @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; } /** - * - * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; - * * @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; @@ -3016,67 +2747,51 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private int storageType_ = 0; /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = - com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @param value The storageType to set. * @return This builder for chaining. */ @@ -3084,24 +2799,21 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Volume.Stora if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -3109,67 +2821,51 @@ public Builder clearStorageType() { private int state_ = 0; /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = - com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -3177,39 +2873,33 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Volume.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long requestedSizeGib_; + private long requestedSizeGib_ ; /** - * - * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; - * * @return The requestedSizeGib. */ @java.lang.Override @@ -3217,45 +2907,37 @@ public long getRequestedSizeGib() { return requestedSizeGib_; } /** - * - * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; - * * @param value The requestedSizeGib to set. * @return This builder for chaining. */ public Builder setRequestedSizeGib(long value) { - + requestedSizeGib_ = value; onChanged(); return this; } /** - * - * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; - * * @return This builder for chaining. */ public Builder clearRequestedSizeGib() { - + requestedSizeGib_ = 0L; onChanged(); return this; } - private long currentSizeGib_; + private long currentSizeGib_ ; /** - * - * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -3263,7 +2945,6 @@ public Builder clearRequestedSizeGib() {
      * 
* * int64 current_size_gib = 5; - * * @return The currentSizeGib. */ @java.lang.Override @@ -3271,8 +2952,6 @@ public long getCurrentSizeGib() { return currentSizeGib_; } /** - * - * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -3280,19 +2959,16 @@ public long getCurrentSizeGib() {
      * 
* * int64 current_size_gib = 5; - * * @param value The currentSizeGib to set. * @return This builder for chaining. */ public Builder setCurrentSizeGib(long value) { - + currentSizeGib_ = value; onChanged(); return this; } /** - * - * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -3300,27 +2976,23 @@ public Builder setCurrentSizeGib(long value) {
      * 
* * int64 current_size_gib = 5; - * * @return This builder for chaining. */ public Builder clearCurrentSizeGib() { - + currentSizeGib_ = 0L; onChanged(); return this; } - private long emergencySizeGib_; + private long emergencySizeGib_ ; /** - * - * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; - * * @return The emergencySizeGib. */ @java.lang.Override @@ -3328,54 +3000,45 @@ public long getEmergencySizeGib() { return emergencySizeGib_; } /** - * - * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; - * * @param value The emergencySizeGib to set. * @return This builder for chaining. */ public Builder setEmergencySizeGib(long value) { - + emergencySizeGib_ = value; onChanged(); return this; } /** - * - * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; - * * @return This builder for chaining. */ public Builder clearEmergencySizeGib() { - + emergencySizeGib_ = 0L; onChanged(); return this; } - private long autoGrownSizeGib_; + private long autoGrownSizeGib_ ; /** - * - * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; - * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -3383,54 +3046,45 @@ public long getAutoGrownSizeGib() { return autoGrownSizeGib_; } /** - * - * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; - * * @param value The autoGrownSizeGib to set. * @return This builder for chaining. */ public Builder setAutoGrownSizeGib(long value) { - + autoGrownSizeGib_ = value; onChanged(); return this; } /** - * - * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; - * * @return This builder for chaining. */ public Builder clearAutoGrownSizeGib() { - + autoGrownSizeGib_ = 0L; onChanged(); return this; } - private long remainingSpaceGib_; + private long remainingSpaceGib_ ; /** - * - * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; - * * @return The remainingSpaceGib. */ @java.lang.Override @@ -3438,103 +3092,74 @@ public long getRemainingSpaceGib() { return remainingSpaceGib_; } /** - * - * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; - * * @param value The remainingSpaceGib to set. * @return This builder for chaining. */ public Builder setRemainingSpaceGib(long value) { - + remainingSpaceGib_ = value; onChanged(); return this; } /** - * - * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; - * * @return This builder for chaining. */ public Builder clearRemainingSpaceGib() { - + remainingSpaceGib_ = 0L; onChanged(); return this; } - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> - snapshotReservationDetailBuilder_; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> snapshotReservationDetailBuilder_; /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return Whether the snapshotReservationDetail field is set. */ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetailBuilder_ != null || snapshotReservationDetail_ != null; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return The snapshotReservationDetail. */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getSnapshotReservationDetail() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { - return snapshotReservationDetail_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance() - : snapshotReservationDetail_; + return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; } else { return snapshotReservationDetailBuilder_.getMessage(); } } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public Builder setSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder setSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3548,19 +3173,14 @@ public Builder setSnapshotReservationDetail( return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ public Builder setSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - builderForValue) { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder builderForValue) { if (snapshotReservationDetailBuilder_ == null) { snapshotReservationDetail_ = builderForValue.build(); onChanged(); @@ -3571,25 +3191,17 @@ public Builder setSnapshotReservationDetail( return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public Builder mergeSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder mergeSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (snapshotReservationDetail_ != null) { snapshotReservationDetail_ = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder( - snapshotReservationDetail_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder(snapshotReservationDetail_).mergeFrom(value).buildPartial(); } else { snapshotReservationDetail_ = value; } @@ -3601,15 +3213,11 @@ public Builder mergeSnapshotReservationDetail( return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ public Builder clearSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { @@ -3623,67 +3231,48 @@ public Builder clearSnapshotReservationDetail() { return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - getSnapshotReservationDetailBuilder() { - + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder getSnapshotReservationDetailBuilder() { + onChanged(); return getSnapshotReservationDetailFieldBuilder().getBuilder(); } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder - getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { if (snapshotReservationDetailBuilder_ != null) { return snapshotReservationDetailBuilder_.getMessageOrBuilder(); } else { - return snapshotReservationDetail_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance() - : snapshotReservationDetail_; + return snapshotReservationDetail_ == null ? + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; } } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> getSnapshotReservationDetailFieldBuilder() { if (snapshotReservationDetailBuilder_ == null) { - snapshotReservationDetailBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( - getSnapshotReservationDetail(), getParentForChildren(), isClean()); + snapshotReservationDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( + getSnapshotReservationDetail(), + getParentForChildren(), + isClean()); snapshotReservationDetail_ = null; } return snapshotReservationDetailBuilder_; @@ -3691,125 +3280,94 @@ public Builder clearSnapshotReservationDetail() { private int snapshotAutoDeleteBehavior_ = 0; /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override - public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @param value The enum numeric value on the wire for snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ public Builder setSnapshotAutoDeleteBehaviorValue(int value) { - + snapshotAutoDeleteBehavior_ = value; onChanged(); return this; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The snapshotAutoDeleteBehavior. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - getSnapshotAutoDeleteBehavior() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( - snapshotAutoDeleteBehavior_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @param value The snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ - public Builder setSnapshotAutoDeleteBehavior( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { + public Builder setSnapshotAutoDeleteBehavior(com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { if (value == null) { throw new NullPointerException(); } - + snapshotAutoDeleteBehavior_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return This builder for chaining. */ public Builder clearSnapshotAutoDeleteBehavior() { - + snapshotAutoDeleteBehavior_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3821,30 +3379,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3852,12 +3408,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 12; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3865,17 +3420,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3883,11 +3437,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3895,74 +3450,74 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private boolean snapshotEnabled_; + private boolean snapshotEnabled_ ; /** - * - * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; - * * @return The snapshotEnabled. */ @java.lang.Override @@ -3970,36 +3525,30 @@ public boolean getSnapshotEnabled() { return snapshotEnabled_; } /** - * - * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; - * * @param value The snapshotEnabled to set. * @return This builder for chaining. */ public Builder setSnapshotEnabled(boolean value) { - + snapshotEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; - * * @return This builder for chaining. */ public Builder clearSnapshotEnabled() { - + snapshotEnabled_ = false; onChanged(); return this; @@ -4007,20 +3556,18 @@ public Builder clearSnapshotEnabled() { private java.lang.Object pod_ = ""; /** - * - * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -4029,21 +3576,20 @@ public java.lang.String getPod() { } } /** - * - * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ - public com.google.protobuf.ByteString getPodBytes() { + public com.google.protobuf.ByteString + getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pod_ = b; return b; } else { @@ -4051,68 +3597,61 @@ public com.google.protobuf.ByteString getPodBytes() { } } /** - * - * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod(java.lang.String value) { + public Builder setPod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** - * - * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes(com.google.protobuf.ByteString value) { + public Builder setPodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = 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); } @@ -4122,12 +3661,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume) private static final com.google.cloud.baremetalsolution.v2.Volume DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume(); } @@ -4136,16 +3675,16 @@ public static com.google.cloud.baremetalsolution.v2.Volume getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Volume parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Volume(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Volume parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Volume(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4160,4 +3699,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Volume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java index 2946abb..a2d3039 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface VolumeOrBuilder - extends +public interface VolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -35,13 +17,10 @@ public interface VolumeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -51,102 +30,80 @@ public interface VolumeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** - * - * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Volume.State getState(); /** - * - * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; - * * @return The requestedSizeGib. */ long getRequestedSizeGib(); /** - * - * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -154,129 +111,90 @@ public interface VolumeOrBuilder
    * 
* * int64 current_size_gib = 5; - * * @return The currentSizeGib. */ long getCurrentSizeGib(); /** - * - * *
    * Additional emergency size that was requested for this Volume, in GiB.
    * current_size_gib includes this value.
    * 
* * int64 emergency_size_gib = 14; - * * @return The emergencySizeGib. */ long getEmergencySizeGib(); /** - * - * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; - * * @return The autoGrownSizeGib. */ long getAutoGrownSizeGib(); /** - * - * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; - * * @return The remainingSpaceGib. */ long getRemainingSpaceGib(); /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return Whether the snapshotReservationDetail field is set. */ boolean hasSnapshotReservationDetail(); /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return The snapshotReservationDetail. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getSnapshotReservationDetail(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail(); /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder - getSnapshotReservationDetailOrBuilder(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder(); /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ int getSnapshotAutoDeleteBehaviorValue(); /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The snapshotAutoDeleteBehavior. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - getSnapshotAutoDeleteBehavior(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -285,31 +203,30 @@ public interface VolumeOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -318,56 +235,48 @@ public interface VolumeOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Whether snapshots are enabled.
    * 
* * bool snapshot_enabled = 13; - * * @return The snapshotEnabled. */ boolean getSnapshotEnabled(); /** - * - * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ java.lang.String getPod(); /** - * - * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ - com.google.protobuf.ByteString getPodBytes(); + com.google.protobuf.ByteString + getPodBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java new file mode 100644 index 0000000..417c220 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java @@ -0,0 +1,192 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class VolumeProto { + private VolumeProto() {} + 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_baremetalsolution_v2_Volume_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" + + "me.proto\022!google.cloud.baremetalsolution" + + ".v2\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032 google/protobuf" + + "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" + + "\01625.google.cloud.baremetalsolution.v2.Vo" + + "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" + + ".cloud.baremetalsolution.v2.Volume.State" + + "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" + + "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" + + "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" + + "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" + + "tion_detail\030\010 \001(\0132C.google.cloud.baremet" + + "alsolution.v2.Volume.SnapshotReservation" + + "Detail\022k\n\035snapshot_auto_delete_behavior\030" + + "\t \001(\0162D.google.cloud.baremetalsolution.v" + + "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" + + "abels\030\014 \003(\01325.google.cloud.baremetalsolu" + + "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" + + "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" + + "hotReservationDetail\022\032\n\022reserved_space_g" + + "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" + + "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " + + "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" + + "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" + + "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" + + "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" + + "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" + + "olution.googleapis.com/Volume\0228projects/" + + "{project}/locations/{location}/volumes/{" + + "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" + + "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." + + "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" + + "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" + + "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" + + "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" + + "oogle.cloud.baremetalsolution.v2.VolumeB" + + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" + + "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." + + "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" + + "\371\001\n%com.google.cloud.baremetalsolution.v" + + "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" + + "roto/googleapis/cloud/baremetalsolution/" + + "v2;baremetalsolution\252\002!Google.Cloud.Bare" + + "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" + + "lSolution\\V2\352\002$Google::Cloud::BareMetalS" + + "olution::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, + new java.lang.String[] { "Name", "Id", "StorageType", "State", "RequestedSizeGib", "CurrentSizeGib", "EmergencySizeGib", "AutoGrownSizeGib", "RemainingSpaceGib", "SnapshotReservationDetail", "SnapshotAutoDeleteBehavior", "Labels", "SnapshotEnabled", "Pod", }); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, + new java.lang.String[] { "ReservedSpaceGib", "ReservedSpaceUsedPercent", "ReservedSpaceRemainingGib", "ReservedSpacePercent", }); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, + new java.lang.String[] { "Volumes", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, + new java.lang.String[] { "Volume", "UpdateMask", }); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, + new java.lang.String[] { "Volume", "SizeGib", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 0000000..a8ffec7 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.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.baremetalsolution.v2.samples; + +// [START baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider1_sync] +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; +import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings; + +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. + BareMetalSolutionSettings bareMetalSolutionSettings = + BareMetalSolutionSettings.newBuilder() + .setTransportChannelProvider( + BareMetalSolutionSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + BareMetalSolutionClient bareMetalSolutionClient = + BareMetalSolutionClient.create(bareMetalSolutionSettings); + } +} +// [END baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java index 0935bcf..564e794 100644 --- a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START -// baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.Instance; import com.google.protobuf.FieldMask; @@ -38,5 +37,4 @@ public static void syncUpdateInstanceInstanceFieldmask() throws Exception { } } } -// [END -// baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java similarity index 93% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java index 9747c60..dcb0b17 100644 --- a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START -// baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.Network; import com.google.protobuf.FieldMask; diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java index f7da42b..b825ac2 100644 --- a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START -// baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.NfsShare; import com.google.protobuf.FieldMask; @@ -38,5 +37,4 @@ public static void syncUpdateNfsShareNfsshareFieldmask() throws Exception { } } } -// [END -// baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java deleted file mode 100644 index 679c482..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java +++ /dev/null @@ -1,238 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class BareMetalSolutionProto { - private BareMetalSolutionProto() {} - - 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_baremetalsolution_v2_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/baremetalsolution/v2/bare" - + "metalsolution.proto\022!google.cloud.bareme" - + "talsolution.v2\032\034google/api/annotations.p" - + "roto\032\027google/api/client.proto\032\037google/ap" - + "i/field_behavior.proto\0320google/cloud/bar" - + "emetalsolution/v2/instance.proto\032+google" - + "/cloud/baremetalsolution/v2/lun.proto\032/g" - + "oogle/cloud/baremetalsolution/v2/network" - + ".proto\0321google/cloud/baremetalsolution/v" - + "2/nfs_share.proto\032.google/cloud/baremeta" - + "lsolution/v2/volume.proto\032#google/longru" - + "nning/operations.proto\032\037google/protobuf/" - + "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" - + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" - + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" - + "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " - + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" - + "setInstanceResponse2\335 \n\021BareMetalSolutio" - + "n\022\302\001\n\rListInstances\0227.google.cloud.barem" - + "etalsolution.v2.ListInstancesRequest\0328.g" - + "oogle.cloud.baremetalsolution.v2.ListIns" - + "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" - + "ects/*/locations/*}/instances\332A\006parent\022\257" - + "\001\n\013GetInstance\0225.google.cloud.baremetals" - + "olution.v2.GetInstanceRequest\032+.google.c" - + "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" - + "\002/\022-/v2/{name=projects/*/locations/*/ins" - + "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" - + "ogle.cloud.baremetalsolution.v2.UpdateIn" - + "stanceRequest\032\035.google.longrunning.Opera" - + "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" - + "s/*/locations/*/instances/*}:\010instance\332A" - + "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" - + "ationMetadata\022\333\001\n\rResetInstance\0227.google" - + ".cloud.baremetalsolution.v2.ResetInstanc" - + "eRequest\032\035.google.longrunning.Operation\"" - + "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" - + "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" - + "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" - + "StartInstance\0227.google.cloud.baremetalso" - + "lution.v2.StartInstanceRequest\032\035.google." - + "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" - + "=projects/*/locations/*/instances/*}:sta" - + "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" - + "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" - + "gle.cloud.baremetalsolution.v2.StopInsta" - + "nceRequest\032\035.google.longrunning.Operatio" - + "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" - + "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" - + "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" - + "DetachLun\0223.google.cloud.baremetalsoluti" - + "on.v2.DetachLunRequest\032\035.google.longrunn" - + "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" - + "jects/*/locations/*/instances/*}:detachL" - + "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" - + "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" - + "oud.baremetalsolution.v2.ListVolumesRequ" - + "est\0326.google.cloud.baremetalsolution.v2." - + "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" - + "=projects/*/locations/*}/volumes\332A\006paren" - + "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" - + "solution.v2.GetVolumeRequest\032).google.cl" - + "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" - + "+/v2/{name=projects/*/locations/*/volume" - + "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" - + "oud.baremetalsolution.v2.UpdateVolumeReq" - + "uest\032\035.google.longrunning.Operation\"u\202\323\344" - + "\223\002<22/v2/{volume.name=projects/*/locatio" - + "ns/*/volumes/*}:\006volume\332A\022volume,update_" - + "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" - + "esizeVolume\0226.google.cloud.baremetalsolu" - + "tion.v2.ResizeVolumeRequest\032\035.google.lon" - + "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" - + "projects/*/locations/*/volumes/*}:resize" - + ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" - + "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" - + "oud.baremetalsolution.v2.ListNetworksReq" - + "uest\0327.google.cloud.baremetalsolution.v2" - + ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" - + "nt=projects/*/locations/*}/networks\332A\006pa" - + "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" - + ".baremetalsolution.v2.ListNetworkUsageRe" - + "quest\032;.google.cloud.baremetalsolution.v" - + "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" - + "{location=projects/*/locations/*}/networ" - + "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" - + "twork\0224.google.cloud.baremetalsolution.v" - + "2.GetNetworkRequest\032*.google.cloud.barem" - + "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" - + "me=projects/*/locations/*/networks/*}\332A\004" - + "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" - + "remetalsolution.v2.UpdateNetworkRequest\032" - + "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" - + "/v2/{network.name=projects/*/locations/*" - + "/networks/*}:\007network\332A\023network,update_m" - + "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" - + "etLun\0220.google.cloud.baremetalsolution.v" - + "2.GetLunRequest\032&.google.cloud.baremetal" - + "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" - + "cts/*/locations/*/volumes/*/luns/*}\332A\004na" - + "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" - + "solution.v2.ListLunsRequest\0323.google.clo" - + "ud.baremetalsolution.v2.ListLunsResponse" - + "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" - + "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" - + "Share\0225.google.cloud.baremetalsolution.v" - + "2.GetNfsShareRequest\032+.google.cloud.bare" - + "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" - + "name=projects/*/locations/*/nfsShares/*}" - + "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" - + ".baremetalsolution.v2.ListNfsSharesReque" - + "st\0328.google.cloud.baremetalsolution.v2.L" - + "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" - + "t=projects/*/locations/*}/nfsShares\332A\006pa" - + "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" - + "aremetalsolution.v2.UpdateNfsShareReques" - + "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" - + "D27/v2/{nfs_share.name=projects/*/locati" - + "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" - + "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" - + "adata\032T\312A baremetalsolution.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\204\002\n%com.google.cloud.baremet" - + "alsolution.v2B\026BareMetalSolutionProtoP\001Z" - + "Rgoogle.golang.org/genproto/googleapis/c" - + "loud/baremetalsolution/v2;baremetalsolut" - + "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" - + "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" - + "ogle::Cloud::BareMetalSolution::V2b\006prot" - + "o3" - }; - 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java deleted file mode 100644 index 75fbf25..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java +++ /dev/null @@ -1,83 +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/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface DetachLunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the instance.
-   * 
- * - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The instance. - */ - java.lang.String getInstance(); - /** - * - * - *
-   * Required. Name of the instance.
-   * 
- * - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for instance. - */ - com.google.protobuf.ByteString getInstanceBytes(); - - /** - * - * - *
-   * Required. Name of the Lun to detach.
-   * 
- * - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The lun. - */ - java.lang.String getLun(); - /** - * - * - *
-   * Required. Name of the Lun to detach.
-   * 
- * - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for lun. - */ - com.google.protobuf.ByteString getLunBytes(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java deleted file mode 100644 index cc92dbb..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java deleted file mode 100644 index 9f97c73..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/lun.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetLunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java deleted file mode 100644 index c619b65..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNetworkRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java deleted file mode 100644 index 072571e..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/nfs_share.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNfsShareRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java deleted file mode 100644 index 9830fba..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetVolumeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java deleted file mode 100644 index 7b9b6d4..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java +++ /dev/null @@ -1,325 +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/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class InstanceProto { - private InstanceProto() {} - - 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_baremetalsolution_v2_Instance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/baremetalsolution/v2/inst" - + "ance.proto\022!google.cloud.baremetalsoluti" - + "on.v2\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032+google/cloud/" - + "baremetalsolution/v2/lun.proto\032/google/c" - + "loud/baremetalsolution/v2/network.proto\032" - + " google/protobuf/field_mask.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" - + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" - + "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" - + "solution.v2.Instance.State\022\036\n\026hyperthrea" - + "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" - + "gle.cloud.baremetalsolution.v2.Instance." - + "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" - + ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " - + "\003(\0132*.google.cloud.baremetalsolution.v2." - + "Network\022*\n\"interactive_serial_console_en" - + "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" - + "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" - + "baremetalsolution.googleapis.com/ServerN" - + "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" - + "(\01323.google.cloud.baremetalsolution.v2.L" - + "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" - + "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" - + "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" - + "+.google.cloud.baremetalsolution.v2.Inst" - + "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" - + "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" - + "instance\030\001 \001(\0132+.google.cloud.baremetals" - + "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" - + "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" - + "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")baremetalsolution.googleapis.com/Instan" - + "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" - + "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" - + "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" - + "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" - + "leapis.com/Instance\"\222\001\n\020DetachLunRequest" - + "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" - + "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" - + "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" - + ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" - + "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" - + "oogle.cloud.baremetalsolution.v2.ServerN" - + "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" - + "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" - + "2W.google.cloud.baremetalsolution.v2.Ser" - + "verNetworkTemplate.LogicalInterface.Inte" - + "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" - + "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" - + "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" - + "n.googleapis.com/ServerNetworkTemplate\022W" - + "projects/{project}/locations/{location}/" - + "serverNetworkTemplate/{server_network_te" - + "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" - + "InstanceResponseB\373\001\n%com.google.cloud.ba" - + "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/baremetalsolution/v2;baremetalsolution\252" - + "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" - + "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" - + "::Cloud::BareMetalSolution::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, - new java.lang.String[] { - "Name", - "Id", - "CreateTime", - "UpdateTime", - "MachineType", - "State", - "HyperthreadingEnabled", - "Labels", - "Luns", - "Networks", - "InteractiveSerialConsoleEnabled", - "OsImage", - "Pod", - "NetworkTemplate", - "LogicalInterfaces", - }); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, - new java.lang.String[] { - "Instances", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, - new java.lang.String[] { - "Instance", "UpdateMask", - }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, - new java.lang.String[] { - "Instance", "Lun", - }); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, - new java.lang.String[] { - "Name", "ApplicableInstanceTypes", "LogicalInterfaces", - }); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, - new java.lang.String[] { - "Name", "Type", "Required", - }); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, - new java.lang.String[] {}); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java deleted file mode 100644 index 05ccf8f..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ListNetworkUsageRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Parent value (project and location).
-   * 
- * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. Parent value (project and location).
-   * 
- * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java deleted file mode 100644 index 94372e2..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java +++ /dev/null @@ -1,153 +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/baremetalsolution/v2/lun.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class LunProto { - private LunProto() {} - - 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_baremetalsolution_v2_Lun_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." - + "proto\022!google.cloud.baremetalsolution.v2" - + "\032\037google/api/field_behavior.proto\032\031googl" - + "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" - + "gle.cloud.baremetalsolution.v2.Lun.State" - + "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" - + "\004 \001(\01628.google.cloud.baremetalsolution.v" - + "2.Lun.MultiprotocolType\022D\n\016storage_volum" - + "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" - + "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" - + "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" - + "e.cloud.baremetalsolution.v2.Lun.Storage" - + "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" - + "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" - + "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" - + "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" - + "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" - + "$baremetalsolution.googleapis.com/Lun\022Cp" - + "rojects/{project}/locations/{location}/v" - + "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" - + "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" - + "tion.googleapis.com/Lun\"y\n\017ListLunsReque" - + "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" - + "ution.googleapis.com/Volume\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" - + "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" - + "metalsolution.v2.Lun\022\027\n\017next_page_token\030" - + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" - + "e.cloud.baremetalsolution.v2B\010LunProtoP\001" - + "ZRgoogle.golang.org/genproto/googleapis/" - + "cloud/baremetalsolution/v2;baremetalsolu" - + "tion\252\002!Google.Cloud.BareMetalSolution.V2" - + "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" - + "oogle::Cloud::BareMetalSolution::V2b\006pro" - + "to3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, - new java.lang.String[] { - "Name", - "Id", - "State", - "SizeGb", - "MultiprotocolType", - "StorageVolume", - "Shareable", - "BootLun", - "StorageType", - "Wwid", - }); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, - new java.lang.String[] { - "Luns", "NextPageToken", "Unreachable", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java deleted file mode 100644 index 06274bd..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java +++ /dev/null @@ -1,327 +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/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class NetworkProto { - private NetworkProto() {} - - 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_baremetalsolution_v2_Network_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" - + "ork.proto\022!google.cloud.baremetalsolutio" - + "n.v2\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\032 google/protobu" - + "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" - + " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" - + "ogle.cloud.baremetalsolution.v2.Network." - + "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" - + "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" - + "metalsolution.v2.Network.State\022\017\n\007vlan_i" - + "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" - + "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" - + "bels\030\013 \003(\01326.google.cloud.baremetalsolut" - + "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" - + "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" - + ".cloud.baremetalsolution.v2.NetworkAddre" - + "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" - + "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" - + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" - + "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" - + "lution.googleapis.com/Network\022:projects/" - + "{project}/locations/{location}/networks/" - + "{network}\"U\n\031NetworkAddressReservation\022\025" - + "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" - + "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" - + "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" - + "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" - + "0.google.cloud.baremetalsolution.v2.VRF." - + "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" - + "ogle.cloud.baremetalsolution.v2.VRF.Vlan" - + "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" - + "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" - + "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " - + "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" - + "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" - + "alInterface\022o\n\032logical_network_interface" - + "s\030\001 \003(\0132K.google.cloud.baremetalsolution" - + ".v2.LogicalInterface.LogicalNetworkInter" - + "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " - + "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" - + "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" - + "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" - + "ogle.cloud.baremetalsolution.v2.Network." - + "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" - + "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" - + "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" - + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" - + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" - + "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" - + "(\0132*.google.cloud.baremetalsolution.v2.N" - + "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" - + "\007network\030\001 \001(\0132*.google.cloud.baremetals" - + "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" - + "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" - + ".baremetalsolution.v2.Network\022\020\n\010used_ip" - + "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" - + "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\"]\n\030ListNetworkUsageRespo" - + "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" - + "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" - + "oogle.cloud.baremetalsolution.v2B\014Networ" - + "kProtoP\001ZRgoogle.golang.org/genproto/goo" - + "gleapis/cloud/baremetalsolution/v2;barem" - + "etalsolution\252\002!Google.Cloud.BareMetalSol" - + "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" - + "n\\V2\352\002$Google::Cloud::BareMetalSolution:" - + ":V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, - new java.lang.String[] { - "Name", - "Id", - "Type", - "IpAddress", - "MacAddress", - "State", - "VlanId", - "Cidr", - "Vrf", - "Labels", - "ServicesCidr", - "Reservations", - }); - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, - new java.lang.String[] { - "StartAddress", "EndAddress", "Note", - }); - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, - new java.lang.String[] { - "Name", "State", "QosPolicy", "VlanAttachments", - }); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, - new java.lang.String[] { - "BandwidthGbps", - }); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, - new java.lang.String[] { - "PeerVlanId", "PeerIp", "RouterIp", - }); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, - new java.lang.String[] { - "LogicalNetworkInterfaces", "Name", "InterfaceIndex", - }); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, - new java.lang.String[] { - "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", - }); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, - new java.lang.String[] { - "Networks", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, - new java.lang.String[] { - "Network", "UpdateMask", - }); - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, - new java.lang.String[] { - "Network", "UsedIps", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, - new java.lang.String[] { - "Location", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, - new java.lang.String[] { - "Networks", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java deleted file mode 100644 index b476bcc..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java +++ /dev/null @@ -1,202 +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/baremetalsolution/v2/nfs_share.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class NfsShareProto { - private NfsShareProto() {} - - 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_baremetalsolution_v2_NfsShare_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/baremetalsolution/v2/nfs_" - + "share.proto\022!google.cloud.baremetalsolut" - + "ion.v2\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\032 google/proto" - + "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" - + "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" - + "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" - + "\tB,\372A)\n\'baremetalsolution.googleapis.com" - + "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" - + "e.cloud.baremetalsolution.v2.NfsShare.Al" - + "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" - + "ud.baremetalsolution.v2.NfsShare.LabelsE" - + "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" - + "-\372A*\n(baremetalsolution.googleapis.com/N" - + "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" - + "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" - + "\0162<.google.cloud.baremetalsolution.v2.Nf" - + "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" - + "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" - + "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" - + "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" - + "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" - + "olution.googleapis.com/NFSShare\022=project" - + "s/{project}/locations/{location}/nfsShar" - + "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" - + "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" - + "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" - + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" - + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" - + "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" - + "\030\001 \003(\0132+.google.cloud.baremetalsolution." - + "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" - + "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" - + "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" - + "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "kB\373\001\n%com.google.cloud.baremetalsolution" - + ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" - + "genproto/googleapis/cloud/baremetalsolut" - + "ion/v2;baremetalsolution\252\002!Google.Cloud." - + "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" - + "MetalSolution\\V2\352\002$Google::Cloud::BareMe" - + "talSolution::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, - new java.lang.String[] { - "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", - }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, - new java.lang.String[] { - "Network", - "ShareIp", - "AllowedClientsCidr", - "MountPermissions", - "AllowDev", - "AllowSuid", - "NoRootSquash", - }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, - new java.lang.String[] { - "NfsShares", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, - new java.lang.String[] { - "NfsShare", "UpdateMask", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java deleted file mode 100644 index 1f953fe..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java deleted file mode 100644 index 6123d2c..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java deleted file mode 100644 index 072aeb8..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java +++ /dev/null @@ -1,67 +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/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResizeVolumeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Volume to resize.
-   * 
- * - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The volume. - */ - java.lang.String getVolume(); - /** - * - * - *
-   * Required. Volume to resize.
-   * 
- * - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for volume. - */ - com.google.protobuf.ByteString getVolumeBytes(); - - /** - * - * - *
-   * New Volume size, in GiB.
-   * 
- * - * int64 size_gib = 2; - * - * @return The sizeGib. - */ - long getSizeGib(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java deleted file mode 100644 index 4cb55b2..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StartInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java deleted file mode 100644 index a4673c6..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.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/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StartInstanceResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java deleted file mode 100644 index 4b93ef8..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StopInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java deleted file mode 100644 index 0e0f7b9..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.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/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StopInstanceResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java deleted file mode 100644 index 0ec60b4..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java +++ /dev/null @@ -1,230 +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/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class VolumeProto { - private VolumeProto() {} - - 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_baremetalsolution_v2_Volume_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" - + "me.proto\022!google.cloud.baremetalsolution" - + ".v2\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032 google/protobuf" - + "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" - + "\01625.google.cloud.baremetalsolution.v2.Vo" - + "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" - + ".cloud.baremetalsolution.v2.Volume.State" - + "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" - + "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" - + "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" - + "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" - + "tion_detail\030\010 \001(\0132C.google.cloud.baremet" - + "alsolution.v2.Volume.SnapshotReservation" - + "Detail\022k\n\035snapshot_auto_delete_behavior\030" - + "\t \001(\0162D.google.cloud.baremetalsolution.v" - + "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" - + "abels\030\014 \003(\01325.google.cloud.baremetalsolu" - + "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" - + "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" - + "hotReservationDetail\022\032\n\022reserved_space_g" - + "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" - + "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " - + "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" - + "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" - + "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" - + "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" - + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" - + "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" - + "olution.googleapis.com/Volume\0228projects/" - + "{project}/locations/{location}/volumes/{" - + "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" - + "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." - + "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" - + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." - + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" - + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" - + "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" - + "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" - + "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" - + "oogle.cloud.baremetalsolution.v2.VolumeB" - + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" - + "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." - + "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" - + "\371\001\n%com.google.cloud.baremetalsolution.v" - + "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" - + "roto/googleapis/cloud/baremetalsolution/" - + "v2;baremetalsolution\252\002!Google.Cloud.Bare" - + "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" - + "lSolution\\V2\352\002$Google::Cloud::BareMetalS" - + "olution::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, - new java.lang.String[] { - "Name", - "Id", - "StorageType", - "State", - "RequestedSizeGib", - "CurrentSizeGib", - "EmergencySizeGib", - "AutoGrownSizeGib", - "RemainingSpaceGib", - "SnapshotReservationDetail", - "SnapshotAutoDeleteBehavior", - "Labels", - "SnapshotEnabled", - "Pod", - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, - new java.lang.String[] { - "ReservedSpaceGib", - "ReservedSpaceUsedPercent", - "ReservedSpaceRemainingGib", - "ReservedSpacePercent", - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, - new java.lang.String[] { - "Volumes", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, - new java.lang.String[] { - "Volume", "UpdateMask", - }); - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, - new java.lang.String[] { - "Volume", "SizeGib", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From e27741c11c4b3cbae5e51db05555ad806678beeb Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:02:41 +0000 Subject: [PATCH 4/7] =?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 --- .../v2/BareMetalSolutionClient.java | 46 +- .../v2/BareMetalSolutionSettings.java | 7 +- .../baremetalsolution/v2/gapic_metadata.json | 0 .../baremetalsolution/v2/package-info.java | 0 .../v2/stub/BareMetalSolutionStub.java | 0 .../stub/BareMetalSolutionStubSettings.java | 6 +- .../GrpcBareMetalSolutionCallableFactory.java | 0 .../v2/stub/GrpcBareMetalSolutionStub.java | 1 - ...pJsonBareMetalSolutionCallableFactory.java | 0 .../stub/HttpJsonBareMetalSolutionStub.java | 1 - .../BareMetalSolutionClientHttpJsonTest.java | 0 .../v2/BareMetalSolutionClientTest.java | 0 .../v2/MockBareMetalSolution.java | 0 .../v2/MockBareMetalSolutionImpl.java | 0 .../v2/BareMetalSolutionGrpc.java | 2624 +++++++++++++++++ .../v2/BareMetalSolutionGrpc.java | 1975 ------------- .../v2/BareMetalSolutionProto.java | 218 -- .../v2/DetachLunRequestOrBuilder.java | 49 - .../v2/GetInstanceRequestOrBuilder.java | 29 - .../v2/GetLunRequestOrBuilder.java | 29 - .../v2/GetNetworkRequestOrBuilder.java | 29 - .../v2/GetNfsShareRequestOrBuilder.java | 29 - .../v2/GetVolumeRequestOrBuilder.java | 29 - .../baremetalsolution/v2/InstanceProto.java | 283 -- .../v2/ListNetworkUsageRequestOrBuilder.java | 29 - .../cloud/baremetalsolution/v2/LunProto.java | 126 - .../baremetalsolution/v2/NetworkProto.java | 283 -- .../baremetalsolution/v2/NfsShareProto.java | 171 -- .../v2/ResetInstanceRequestOrBuilder.java | 29 - .../v2/ResetInstanceResponseOrBuilder.java | 9 - .../v2/ResizeVolumeRequestOrBuilder.java | 39 - .../v2/StartInstanceRequestOrBuilder.java | 29 - .../v2/StartInstanceResponseOrBuilder.java | 9 - .../v2/StopInstanceRequestOrBuilder.java | 29 - .../v2/StopInstanceResponseOrBuilder.java | 9 - .../baremetalsolution/v2/VolumeProto.java | 192 -- .../v2/BareMetalSolutionProto.java | 238 ++ .../v2/DetachLunRequest.java | 449 +-- .../v2/DetachLunRequestOrBuilder.java | 83 + .../v2/GetInstanceRequest.java | 342 ++- .../v2/GetInstanceRequestOrBuilder.java | 54 + .../baremetalsolution/v2/GetLunRequest.java | 339 ++- .../v2/GetLunRequestOrBuilder.java | 54 + .../v2/GetNetworkRequest.java | 342 ++- .../v2/GetNetworkRequestOrBuilder.java | 54 + .../v2/GetNfsShareRequest.java | 342 ++- .../v2/GetNfsShareRequestOrBuilder.java | 54 + .../v2/GetVolumeRequest.java | 342 ++- .../v2/GetVolumeRequestOrBuilder.java | 54 + .../cloud/baremetalsolution/v2/Instance.java | 1991 ++++++++----- .../baremetalsolution/v2/InstanceName.java | 0 .../v2/InstanceOrBuilder.java | 215 +- .../baremetalsolution/v2/InstanceProto.java | 325 ++ .../v2/ListInstancesRequest.java | 534 ++-- .../v2/ListInstancesRequestOrBuilder.java | 56 +- .../v2/ListInstancesResponse.java | 571 ++-- .../v2/ListInstancesResponseOrBuilder.java | 63 +- .../baremetalsolution/v2/ListLunsRequest.java | 455 +-- .../v2/ListLunsRequestOrBuilder.java | 47 +- .../v2/ListLunsResponse.java | 572 ++-- .../v2/ListLunsResponseOrBuilder.java | 63 +- .../v2/ListNetworkUsageRequest.java | 350 ++- .../v2/ListNetworkUsageRequestOrBuilder.java | 54 + .../v2/ListNetworkUsageResponse.java | 387 ++- .../v2/ListNetworkUsageResponseOrBuilder.java | 36 +- .../v2/ListNetworksRequest.java | 534 ++-- .../v2/ListNetworksRequestOrBuilder.java | 56 +- .../v2/ListNetworksResponse.java | 574 ++-- .../v2/ListNetworksResponseOrBuilder.java | 63 +- .../v2/ListNfsSharesRequest.java | 534 ++-- .../v2/ListNfsSharesRequestOrBuilder.java | 56 +- .../v2/ListNfsSharesResponse.java | 571 ++-- .../v2/ListNfsSharesResponseOrBuilder.java | 63 +- .../v2/ListVolumesRequest.java | 534 ++-- .../v2/ListVolumesRequestOrBuilder.java | 56 +- .../v2/ListVolumesResponse.java | 570 ++-- .../v2/ListVolumesResponseOrBuilder.java | 63 +- .../baremetalsolution/v2/LocationName.java | 0 .../v2/LogicalInterface.java | 1369 +++++---- .../v2/LogicalInterfaceOrBuilder.java | 74 +- .../cloud/baremetalsolution/v2/Lun.java | 1048 ++++--- .../cloud/baremetalsolution/v2/LunName.java | 0 .../baremetalsolution/v2/LunOrBuilder.java | 81 +- .../cloud/baremetalsolution/v2/LunProto.java | 153 + .../baremetalsolution/v2/NFSShareName.java | 0 .../cloud/baremetalsolution/v2/Network.java | 1705 ++++++----- .../v2/NetworkAddressReservation.java | 493 ++-- .../NetworkAddressReservationOrBuilder.java | 45 +- .../baremetalsolution/v2/NetworkName.java | 0 .../v2/NetworkOrBuilder.java | 170 +- .../baremetalsolution/v2/NetworkProto.java | 327 ++ .../baremetalsolution/v2/NetworkUsage.java | 443 +-- .../v2/NetworkUsageOrBuilder.java | 44 +- .../cloud/baremetalsolution/v2/NfsShare.java | 1891 +++++++----- .../v2/NfsShareOrBuilder.java | 111 +- .../baremetalsolution/v2/NfsShareProto.java | 202 ++ .../v2/OperationMetadata.java | 855 +++--- .../v2/OperationMetadataOrBuilder.java | 91 +- .../v2/ResetInstanceRequest.java | 342 ++- .../v2/ResetInstanceRequestOrBuilder.java | 54 + .../v2/ResetInstanceResponse.java | 238 +- .../v2/ResetInstanceResponseOrBuilder.java | 24 + .../v2/ResizeVolumeRequest.java | 379 ++- .../v2/ResizeVolumeRequestOrBuilder.java | 67 + .../v2/ServerNetworkTemplate.java | 1387 +++++---- .../v2/ServerNetworkTemplateOrBuilder.java | 88 +- .../v2/StartInstanceRequest.java | 342 ++- .../v2/StartInstanceRequestOrBuilder.java | 54 + .../v2/StartInstanceResponse.java | 238 +- .../v2/StartInstanceResponseOrBuilder.java | 24 + .../v2/StopInstanceRequest.java | 342 ++- .../v2/StopInstanceRequestOrBuilder.java | 54 + .../v2/StopInstanceResponse.java | 238 +- .../v2/StopInstanceResponseOrBuilder.java | 24 + .../v2/UpdateInstanceRequest.java | 480 +-- .../v2/UpdateInstanceRequestOrBuilder.java | 46 +- .../v2/UpdateNetworkRequest.java | 480 +-- .../v2/UpdateNetworkRequestOrBuilder.java | 46 +- .../v2/UpdateNfsShareRequest.java | 480 +-- .../v2/UpdateNfsShareRequestOrBuilder.java | 46 +- .../v2/UpdateVolumeRequest.java | 483 +-- .../v2/UpdateVolumeRequestOrBuilder.java | 46 +- .../cloud/baremetalsolution/v2/VRF.java | 1457 +++++---- .../baremetalsolution/v2/VRFOrBuilder.java | 71 +- .../cloud/baremetalsolution/v2/Volume.java | 2005 ++++++++----- .../baremetalsolution/v2/VolumeName.java | 0 .../baremetalsolution/v2/VolumeOrBuilder.java | 149 +- .../baremetalsolution/v2/VolumeProto.java | 230 ++ .../v2/baremetalsolution.proto | 0 .../cloud/baremetalsolution/v2/instance.proto | 0 .../cloud/baremetalsolution/v2/lun.proto | 0 .../cloud/baremetalsolution/v2/network.proto | 0 .../baremetalsolution/v2/nfs_share.proto | 0 .../cloud/baremetalsolution/v2/volume.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 3 +- .../create/SyncCreateSetEndpoint.java | 0 .../detachlun/AsyncDetachLun.java | 0 .../detachlun/AsyncDetachLunLRO.java | 0 .../detachlun/SyncDetachLun.java | 0 .../SyncDetachLunInstancenameLunname.java | 0 .../SyncDetachLunInstancenameString.java | 0 .../detachlun/SyncDetachLunStringLunname.java | 0 .../detachlun/SyncDetachLunStringString.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../getlun/AsyncGetLun.java | 0 .../getlun/SyncGetLun.java | 0 .../getlun/SyncGetLunLunname.java | 0 .../getlun/SyncGetLunString.java | 0 .../getnetwork/AsyncGetNetwork.java | 0 .../getnetwork/SyncGetNetwork.java | 0 .../getnetwork/SyncGetNetworkNetworkname.java | 0 .../getnetwork/SyncGetNetworkString.java | 0 .../getnfsshare/AsyncGetNfsShare.java | 0 .../getnfsshare/SyncGetNfsShare.java | 0 .../SyncGetNfsShareNfssharename.java | 0 .../getnfsshare/SyncGetNfsShareString.java | 0 .../getvolume/AsyncGetVolume.java | 0 .../getvolume/SyncGetVolume.java | 0 .../getvolume/SyncGetVolumeString.java | 0 .../getvolume/SyncGetVolumeVolumename.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../listluns/AsyncListLuns.java | 0 .../listluns/AsyncListLunsPaged.java | 0 .../listluns/SyncListLuns.java | 0 .../listluns/SyncListLunsString.java | 0 .../listluns/SyncListLunsVolumename.java | 0 .../listnetworks/AsyncListNetworks.java | 0 .../listnetworks/AsyncListNetworksPaged.java | 0 .../listnetworks/SyncListNetworks.java | 0 .../SyncListNetworksLocationname.java | 0 .../listnetworks/SyncListNetworksString.java | 0 .../AsyncListNetworkUsage.java | 0 .../SyncListNetworkUsage.java | 0 .../SyncListNetworkUsageLocationname.java | 0 .../SyncListNetworkUsageString.java | 0 .../listnfsshares/AsyncListNfsShares.java | 0 .../AsyncListNfsSharesPaged.java | 0 .../listnfsshares/SyncListNfsShares.java | 0 .../SyncListNfsSharesLocationname.java | 0 .../SyncListNfsSharesString.java | 0 .../listvolumes/AsyncListVolumes.java | 0 .../listvolumes/AsyncListVolumesPaged.java | 0 .../listvolumes/SyncListVolumes.java | 0 .../SyncListVolumesLocationname.java | 0 .../listvolumes/SyncListVolumesString.java | 0 .../resetinstance/AsyncResetInstance.java | 0 .../resetinstance/AsyncResetInstanceLRO.java | 0 .../resetinstance/SyncResetInstance.java | 0 .../SyncResetInstanceInstancename.java | 0 .../SyncResetInstanceString.java | 0 .../resizevolume/AsyncResizeVolume.java | 0 .../resizevolume/AsyncResizeVolumeLRO.java | 0 .../resizevolume/SyncResizeVolume.java | 0 .../SyncResizeVolumeStringLong.java | 0 .../SyncResizeVolumeVolumenameLong.java | 0 .../startinstance/AsyncStartInstance.java | 0 .../startinstance/AsyncStartInstanceLRO.java | 0 .../startinstance/SyncStartInstance.java | 0 .../SyncStartInstanceInstancename.java | 0 .../SyncStartInstanceString.java | 0 .../stopinstance/AsyncStopInstance.java | 0 .../stopinstance/AsyncStopInstanceLRO.java | 0 .../stopinstance/SyncStopInstance.java | 0 .../SyncStopInstanceInstancename.java | 0 .../stopinstance/SyncStopInstanceString.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 6 +- .../updatenetwork/AsyncUpdateNetwork.java | 0 .../updatenetwork/AsyncUpdateNetworkLRO.java | 0 .../updatenetwork/SyncUpdateNetwork.java | 0 .../SyncUpdateNetworkNetworkFieldmask.java | 3 +- .../updatenfsshare/AsyncUpdateNfsShare.java | 0 .../AsyncUpdateNfsShareLRO.java | 0 .../updatenfsshare/SyncUpdateNfsShare.java | 0 .../SyncUpdateNfsShareNfsshareFieldmask.java | 6 +- .../updatevolume/AsyncUpdateVolume.java | 0 .../updatevolume/AsyncUpdateVolumeLRO.java | 0 .../updatevolume/SyncUpdateVolume.java | 0 .../SyncUpdateVolumeVolumeFieldmask.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 231 files changed, 22916 insertions(+), 14567 deletions(-) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java (98%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java (100%) create mode 100644 grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java delete mode 100644 owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java (63%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java (83%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java (52%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java (63%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java (51%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java (78%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java (78%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java (70%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java (67%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java (61%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java (66%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java (67%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java (73%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/network.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java (94%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (87%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java (93%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java (87%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java (100%) diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java index 860fdee..75c818d 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java @@ -67,13 +67,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. *
* @@ -2723,7 +2723,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListInstancesPagedResponse extends AbstractPagedListResponse< - ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, ListInstancesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2773,7 +2776,10 @@ public ApiFuture createPageAsync( public static class ListInstancesFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, ListInstancesFixedSizeCollection> { private ListInstancesFixedSizeCollection(List pages, int collectionSize) { @@ -2793,7 +2799,10 @@ protected ListInstancesFixedSizeCollection createCollection( public static class ListVolumesPagedResponse extends AbstractPagedListResponse< - ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, + ListVolumesRequest, + ListVolumesResponse, + Volume, + ListVolumesPage, ListVolumesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2840,7 +2849,10 @@ public ApiFuture createPageAsync( public static class ListVolumesFixedSizeCollection extends AbstractFixedSizeCollection< - ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, + ListVolumesRequest, + ListVolumesResponse, + Volume, + ListVolumesPage, ListVolumesFixedSizeCollection> { private ListVolumesFixedSizeCollection(List pages, int collectionSize) { @@ -2860,7 +2872,10 @@ protected ListVolumesFixedSizeCollection createCollection( public static class ListNetworksPagedResponse extends AbstractPagedListResponse< - ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, + ListNetworksRequest, + ListNetworksResponse, + Network, + ListNetworksPage, ListNetworksFixedSizeCollection> { public static ApiFuture createAsync( @@ -2909,7 +2924,10 @@ public ApiFuture createPageAsync( public static class ListNetworksFixedSizeCollection extends AbstractFixedSizeCollection< - ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, + ListNetworksRequest, + ListNetworksResponse, + Network, + ListNetworksPage, ListNetworksFixedSizeCollection> { private ListNetworksFixedSizeCollection(List pages, int collectionSize) { @@ -2992,7 +3010,10 @@ protected ListLunsFixedSizeCollection createCollection( public static class ListNfsSharesPagedResponse extends AbstractPagedListResponse< - ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, + ListNfsSharesRequest, + ListNfsSharesResponse, + NfsShare, + ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3042,7 +3063,10 @@ public ApiFuture createPageAsync( public static class ListNfsSharesFixedSizeCollection extends AbstractFixedSizeCollection< - ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, + ListNfsSharesRequest, + ListNfsSharesResponse, + NfsShare, + ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { private ListNfsSharesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java similarity index 98% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java index b5ada0f..ead7404 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java @@ -33,7 +33,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.baremetalsolution.v2.stub.BareMetalSolutionStubSettings; @@ -49,10 +48,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java index 5ddb3e8..6866d5c 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java @@ -103,10 +103,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java index b55630f..0e6e0e1 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java @@ -70,7 +70,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java index 3b99d89..819488a 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java @@ -34,7 +34,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java diff --git a/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java new file mode 100644 index 0000000..cf4ba73 --- /dev/null +++ b/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java @@ -0,0 +1,2624 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.baremetalsolution.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Performs management operations on Bare Metal Solution servers.
+ * The `baremetalsolution.googleapis.com` service provides management
+ * capabilities for Bare Metal Solution servers. To access the API methods, you
+ * must assign Bare Metal Solution IAM roles containing the desired permissions
+ * to your staff in your Google Cloud project. You must also enable the Bare
+ * Metal Solution API. Once enabled, the methods act
+ * upon specific servers in your Bare Metal Solution environment.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BareMetalSolutionGrpc { + + private BareMetalSolutionGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + BareMetalSolutionGrpc.getListInstancesMethod = + getListInstancesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance> + getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance> + getGetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance> + getGetInstanceMethod; + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + BareMetalSolutionGrpc.getGetInstanceMethod = + getGetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + BareMetalSolutionGrpc.getUpdateInstanceMethod = + getUpdateInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation> + getResetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetInstance", + requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation> + getResetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation> + getResetInstanceMethod; + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + BareMetalSolutionGrpc.getResetInstanceMethod = + getResetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) + .build(); + } + } + } + return getResetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation> + getStartInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartInstance", + requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation> + getStartInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation> + getStartInstanceMethod; + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + BareMetalSolutionGrpc.getStartInstanceMethod = + getStartInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) + .build(); + } + } + } + return getStartInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation> + getStopInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopInstance", + requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation> + getStopInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation> + getStopInstanceMethod; + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + BareMetalSolutionGrpc.getStopInstanceMethod = + getStopInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) + .build(); + } + } + } + return getStopInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, com.google.longrunning.Operation> + getDetachLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetachLun", + requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, com.google.longrunning.Operation> + getDetachLunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, + com.google.longrunning.Operation> + getDetachLunMethod; + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + BareMetalSolutionGrpc.getDetachLunMethod = + getDetachLunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.DetachLunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) + .build(); + } + } + } + return getDetachLunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + getListVolumesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVolumes", + requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + getListVolumesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + getListVolumesMethod; + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + BareMetalSolutionGrpc.getListVolumesMethod = + getListVolumesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) + .build(); + } + } + } + return getListVolumesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume> + getGetVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVolume", + requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Volume.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume> + getGetVolumeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume> + getGetVolumeMethod; + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + BareMetalSolutionGrpc.getGetVolumeMethod = + getGetVolumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) + .build(); + } + } + } + return getGetVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation> + getUpdateVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", + requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation> + getUpdateVolumeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation> + getUpdateVolumeMethod; + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + BareMetalSolutionGrpc.getUpdateVolumeMethod = + getUpdateVolumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) + .build(); + } + } + } + return getUpdateVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation> + getResizeVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", + requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation> + getResizeVolumeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation> + getResizeVolumeMethod; + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + BareMetalSolutionGrpc.getResizeVolumeMethod = + getResizeVolumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) + .build(); + } + } + } + return getResizeVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + getListNetworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworks", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + getListNetworksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + getListNetworksMethod; + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + BareMetalSolutionGrpc.getListNetworksMethod = + getListNetworksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) + .build(); + } + } + } + return getListNetworksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + getListNetworkUsageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + getListNetworkUsageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + getListNetworkUsageMethod; + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + BareMetalSolutionGrpc.getListNetworkUsageMethod = + getListNetworkUsageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) + .build(); + } + } + } + return getListNetworkUsageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network> + getGetNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNetwork", + requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Network.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network> + getGetNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network> + getGetNetworkMethod; + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + BareMetalSolutionGrpc.getGetNetworkMethod = + getGetNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) + .build(); + } + } + } + return getGetNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation> + getUpdateNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation> + getUpdateNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation> + getUpdateNetworkMethod; + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + BareMetalSolutionGrpc.getUpdateNetworkMethod = + getUpdateNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) + .build(); + } + } + } + return getUpdateNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun> + getGetLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLun", + requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Lun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun> + getGetLunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun> + getGetLunMethod; + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + BareMetalSolutionGrpc.getGetLunMethod = + getGetLunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetLunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) + .build(); + } + } + } + return getGetLunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + getListLunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLuns", + requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + getListLunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + getListLunsMethod; + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + BareMetalSolutionGrpc.getListLunsMethod = + getListLunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) + .build(); + } + } + } + return getListLunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare> + getGetNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare> + getGetNfsShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare> + getGetNfsShareMethod; + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + BareMetalSolutionGrpc.getGetNfsShareMethod = + getGetNfsShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) + .build(); + } + } + } + return getGetNfsShareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + getListNfsSharesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", + requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + getListNfsSharesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + getListNfsSharesMethod; + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + BareMetalSolutionGrpc.getListNfsSharesMethod = + getListNfsSharesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) + .build(); + } + } + } + return getListNfsSharesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation> + getUpdateNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation> + getUpdateNfsShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation> + getUpdateNfsShareMethod; + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + BareMetalSolutionGrpc.getUpdateNfsShareMethod = + getUpdateNfsShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) + .build(); + } + } + } + return getUpdateNfsShareMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + }; + return BareMetalSolutionStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BareMetalSolutionBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + }; + return BareMetalSolutionBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BareMetalSolutionFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + }; + return BareMetalSolutionFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public abstract static class BareMetalSolutionImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListVolumesMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVolumeMethod(), responseObserver); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResizeVolumeMethod(), responseObserver); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNetworksMethod(), responseObserver); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNetworkUsageMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNetworkMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNfsShareMethod(), responseObserver); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNfsSharesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNfsShareMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance>(this, METHODID_GET_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getResetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_RESET_INSTANCE))) + .addMethod( + getStartInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_START_INSTANCE))) + .addMethod( + getStopInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_STOP_INSTANCE))) + .addMethod( + getDetachLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, + com.google.longrunning.Operation>(this, METHODID_DETACH_LUN))) + .addMethod( + getListVolumesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( + this, METHODID_LIST_VOLUMES))) + .addMethod( + getGetVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume>(this, METHODID_GET_VOLUME))) + .addMethod( + getUpdateVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_VOLUME))) + .addMethod( + getResizeVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation>(this, METHODID_RESIZE_VOLUME))) + .addMethod( + getListNetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( + this, METHODID_LIST_NETWORKS))) + .addMethod( + getListNetworkUsageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( + this, METHODID_LIST_NETWORK_USAGE))) + .addMethod( + getGetNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network>(this, METHODID_GET_NETWORK))) + .addMethod( + getUpdateNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_NETWORK))) + .addMethod( + getGetLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun>(this, METHODID_GET_LUN))) + .addMethod( + getListLunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse>( + this, METHODID_LIST_LUNS))) + .addMethod( + getGetNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare>( + this, METHODID_GET_NFS_SHARE))) + .addMethod( + getListNfsSharesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( + this, METHODID_LIST_NFS_SHARES))) + .addMethod( + getUpdateNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_NFS_SHARE))) + .build(); + } + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionStub + extends io.grpc.stub.AbstractAsyncStub { + private BareMetalSolutionStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BareMetalSolutionBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Instance getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.longrunning.Operation resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.longrunning.Operation startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public com.google.longrunning.Operation stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.longrunning.Operation detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetachLunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVolumesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Volume getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.longrunning.Operation updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.longrunning.Operation resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResizeVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Network getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNetworkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.longrunning.Operation updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Lun getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNfsShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNfsSharesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.longrunning.Operation updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BareMetalSolutionFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Instance> + getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Volume> + getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Network> + getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Lun> + getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.NfsShare> + getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_UPDATE_INSTANCE = 2; + private static final int METHODID_RESET_INSTANCE = 3; + private static final int METHODID_START_INSTANCE = 4; + private static final int METHODID_STOP_INSTANCE = 5; + private static final int METHODID_DETACH_LUN = 6; + private static final int METHODID_LIST_VOLUMES = 7; + private static final int METHODID_GET_VOLUME = 8; + private static final int METHODID_UPDATE_VOLUME = 9; + private static final int METHODID_RESIZE_VOLUME = 10; + private static final int METHODID_LIST_NETWORKS = 11; + private static final int METHODID_LIST_NETWORK_USAGE = 12; + private static final int METHODID_GET_NETWORK = 13; + private static final int METHODID_UPDATE_NETWORK = 14; + private static final int METHODID_GET_LUN = 15; + private static final int METHODID_LIST_LUNS = 16; + private static final int METHODID_GET_NFS_SHARE = 17; + private static final int METHODID_LIST_NFS_SHARES = 18; + private static final int METHODID_UPDATE_NFS_SHARE = 19; + + 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 BareMetalSolutionImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances( + (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListInstancesResponse>) + responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance( + (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance( + (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_INSTANCE: + serviceImpl.resetInstance( + (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_INSTANCE: + serviceImpl.startInstance( + (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_INSTANCE: + serviceImpl.stopInstance( + (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETACH_LUN: + serviceImpl.detachLun( + (com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOLUMES: + serviceImpl.listVolumes( + (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListVolumesResponse>) + responseObserver); + break; + case METHODID_GET_VOLUME: + serviceImpl.getVolume( + (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_VOLUME: + serviceImpl.updateVolume( + (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESIZE_VOLUME: + serviceImpl.resizeVolume( + (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NETWORKS: + serviceImpl.listNetworks( + (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListNetworksResponse>) + responseObserver); + break; + case METHODID_LIST_NETWORK_USAGE: + serviceImpl.listNetworkUsage( + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>) + responseObserver); + break; + case METHODID_GET_NETWORK: + serviceImpl.getNetwork( + (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_NETWORK: + serviceImpl.updateNetwork( + (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LUN: + serviceImpl.getLun( + (com.google.cloud.baremetalsolution.v2.GetLunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_LUNS: + serviceImpl.listLuns( + (com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NFS_SHARE: + serviceImpl.getNfsShare( + (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_NFS_SHARES: + serviceImpl.listNfsShares( + (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>) + responseObserver); + break; + case METHODID_UPDATE_NFS_SHARE: + serviceImpl.updateNfsShare( + (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BareMetalSolutionBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BareMetalSolution"); + } + } + + private static final class BareMetalSolutionFileDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier { + BareMetalSolutionFileDescriptorSupplier() {} + } + + private static final class BareMetalSolutionMethodDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getResetInstanceMethod()) + .addMethod(getStartInstanceMethod()) + .addMethod(getStopInstanceMethod()) + .addMethod(getDetachLunMethod()) + .addMethod(getListVolumesMethod()) + .addMethod(getGetVolumeMethod()) + .addMethod(getUpdateVolumeMethod()) + .addMethod(getResizeVolumeMethod()) + .addMethod(getListNetworksMethod()) + .addMethod(getListNetworkUsageMethod()) + .addMethod(getGetNetworkMethod()) + .addMethod(getUpdateNetworkMethod()) + .addMethod(getGetLunMethod()) + .addMethod(getListLunsMethod()) + .addMethod(getGetNfsShareMethod()) + .addMethod(getListNfsSharesMethod()) + .addMethod(getUpdateNfsShareMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java deleted file mode 100644 index d21be35..0000000 --- a/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java +++ /dev/null @@ -1,1975 +0,0 @@ -package com.google.cloud.baremetalsolution.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Performs management operations on Bare Metal Solution servers.
- * The `baremetalsolution.googleapis.com` service provides management
- * capabilities for Bare Metal Solution servers. To access the API methods, you
- * must assign Bare Metal Solution IAM roles containing the desired permissions
- * to your staff in your Google Cloud project. You must also enable the Bare
- * Metal Solution API. Once enabled, the methods act
- * upon specific servers in your Bare Metal Solution environment.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BareMetalSolutionGrpc { - - private BareMetalSolutionGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListInstancesMethod() { - io.grpc.MethodDescriptor getListInstancesMethod; - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - BareMetalSolutionGrpc.getListInstancesMethod = getListInstancesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstanceMethod() { - io.grpc.MethodDescriptor getGetInstanceMethod; - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - BareMetalSolutionGrpc.getGetInstanceMethod = getGetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { - io.grpc.MethodDescriptor getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { - BareMetalSolutionGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getResetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetInstance", - requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResetInstanceMethod() { - io.grpc.MethodDescriptor getResetInstanceMethod; - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - BareMetalSolutionGrpc.getResetInstanceMethod = getResetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) - .build(); - } - } - } - return getResetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartInstance", - requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartInstanceMethod() { - io.grpc.MethodDescriptor getStartInstanceMethod; - if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { - BareMetalSolutionGrpc.getStartInstanceMethod = getStartInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) - .build(); - } - } - } - return getStartInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopInstance", - requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopInstanceMethod() { - io.grpc.MethodDescriptor getStopInstanceMethod; - if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { - BareMetalSolutionGrpc.getStopInstanceMethod = getStopInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) - .build(); - } - } - } - return getStopInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDetachLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetachLun", - requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDetachLunMethod() { - io.grpc.MethodDescriptor getDetachLunMethod; - if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { - BareMetalSolutionGrpc.getDetachLunMethod = getDetachLunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) - .build(); - } - } - } - return getDetachLunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListVolumesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumes", - requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListVolumesMethod() { - io.grpc.MethodDescriptor getListVolumesMethod; - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - BareMetalSolutionGrpc.getListVolumesMethod = getListVolumesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) - .build(); - } - } - } - return getListVolumesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolume", - requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Volume.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetVolumeMethod() { - io.grpc.MethodDescriptor getGetVolumeMethod; - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - BareMetalSolutionGrpc.getGetVolumeMethod = getGetVolumeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) - .build(); - } - } - } - return getGetVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", - requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateVolumeMethod() { - io.grpc.MethodDescriptor getUpdateVolumeMethod; - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - BareMetalSolutionGrpc.getUpdateVolumeMethod = getUpdateVolumeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) - .build(); - } - } - } - return getUpdateVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor getResizeVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", - requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResizeVolumeMethod() { - io.grpc.MethodDescriptor getResizeVolumeMethod; - if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { - BareMetalSolutionGrpc.getResizeVolumeMethod = getResizeVolumeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) - .build(); - } - } - } - return getResizeVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNetworksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworks", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNetworksMethod() { - io.grpc.MethodDescriptor getListNetworksMethod; - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - BareMetalSolutionGrpc.getListNetworksMethod = getListNetworksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) - .build(); - } - } - } - return getListNetworksMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNetworkUsageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNetworkUsageMethod() { - io.grpc.MethodDescriptor getListNetworkUsageMethod; - if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { - BareMetalSolutionGrpc.getListNetworkUsageMethod = getListNetworkUsageMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) - .build(); - } - } - } - return getListNetworkUsageMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNetwork", - requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Network.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNetworkMethod() { - io.grpc.MethodDescriptor getGetNetworkMethod; - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - BareMetalSolutionGrpc.getGetNetworkMethod = getGetNetworkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) - .build(); - } - } - } - return getGetNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", - requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNetworkMethod() { - io.grpc.MethodDescriptor getUpdateNetworkMethod; - if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { - BareMetalSolutionGrpc.getUpdateNetworkMethod = getUpdateNetworkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) - .build(); - } - } - } - return getUpdateNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLun", - requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Lun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetLunMethod() { - io.grpc.MethodDescriptor getGetLunMethod; - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - BareMetalSolutionGrpc.getGetLunMethod = getGetLunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) - .build(); - } - } - } - return getGetLunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListLunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLuns", - requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListLunsMethod() { - io.grpc.MethodDescriptor getListLunsMethod; - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - BareMetalSolutionGrpc.getListLunsMethod = getListLunsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) - .build(); - } - } - } - return getListLunsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNfsShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", - requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNfsShareMethod() { - io.grpc.MethodDescriptor getGetNfsShareMethod; - if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { - BareMetalSolutionGrpc.getGetNfsShareMethod = getGetNfsShareMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) - .build(); - } - } - } - return getGetNfsShareMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNfsSharesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", - requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNfsSharesMethod() { - io.grpc.MethodDescriptor getListNfsSharesMethod; - if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { - BareMetalSolutionGrpc.getListNfsSharesMethod = getListNfsSharesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) - .build(); - } - } - } - return getListNfsSharesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNfsShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", - requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNfsShareMethod() { - io.grpc.MethodDescriptor getUpdateNfsShareMethod; - if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { - BareMetalSolutionGrpc.getUpdateNfsShareMethod = getUpdateNfsShareMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) - .build(); - } - } - } - return getUpdateNfsShareMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - }; - return BareMetalSolutionStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BareMetalSolutionBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - }; - return BareMetalSolutionBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static BareMetalSolutionFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - }; - return BareMetalSolutionFutureStub.newStub(factory, channel); - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static abstract class BareMetalSolutionImplBase implements io.grpc.BindableService { - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetInstanceMethod(), responseObserver); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartInstanceMethod(), responseObserver); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopInstanceMethod(), responseObserver); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVolumesMethod(), responseObserver); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateVolumeMethod(), responseObserver); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResizeVolumeMethod(), responseObserver); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworksMethod(), responseObserver); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworkUsageMethod(), responseObserver); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNetworkMethod(), responseObserver); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNfsShareMethod(), responseObserver); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNfsSharesMethod(), responseObserver); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNfsShareMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance>( - this, METHODID_GET_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getResetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_RESET_INSTANCE))) - .addMethod( - getStartInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_START_INSTANCE))) - .addMethod( - getStopInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_INSTANCE))) - .addMethod( - getDetachLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, - com.google.longrunning.Operation>( - this, METHODID_DETACH_LUN))) - .addMethod( - getListVolumesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( - this, METHODID_LIST_VOLUMES))) - .addMethod( - getGetVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume>( - this, METHODID_GET_VOLUME))) - .addMethod( - getUpdateVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_VOLUME))) - .addMethod( - getResizeVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation>( - this, METHODID_RESIZE_VOLUME))) - .addMethod( - getListNetworksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( - this, METHODID_LIST_NETWORKS))) - .addMethod( - getListNetworkUsageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( - this, METHODID_LIST_NETWORK_USAGE))) - .addMethod( - getGetNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network>( - this, METHODID_GET_NETWORK))) - .addMethod( - getUpdateNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_NETWORK))) - .addMethod( - getGetLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun>( - this, METHODID_GET_LUN))) - .addMethod( - getListLunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse>( - this, METHODID_LIST_LUNS))) - .addMethod( - getGetNfsShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare>( - this, METHODID_GET_NFS_SHARE))) - .addMethod( - getListNfsSharesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( - this, METHODID_LIST_NFS_SHARES))) - .addMethod( - getUpdateNfsShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_NFS_SHARE))) - .build(); - } - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionStub extends io.grpc.stub.AbstractAsyncStub { - private BareMetalSolutionStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BareMetalSolutionBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Instance getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public com.google.longrunning.Operation updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.longrunning.Operation resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public com.google.longrunning.Operation startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public com.google.longrunning.Operation stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public com.google.longrunning.Operation detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetachLunMethod(), getCallOptions(), request); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumesMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Volume getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.longrunning.Operation updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public com.google.longrunning.Operation resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResizeVolumeMethod(), getCallOptions(), request); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworksMethod(), getCallOptions(), request); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Network getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNetworkMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public com.google.longrunning.Operation updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Lun getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLunMethod(), getCallOptions(), request); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLunsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNfsShareMethod(), getCallOptions(), request); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNfsSharesMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public com.google.longrunning.Operation updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionFutureStub extends io.grpc.stub.AbstractFutureStub { - private BareMetalSolutionFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateInstance( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startInstance( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopInstance( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture detachLun( - com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resizeVolume( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNetworkUsage( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNetwork( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNfsShare( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNfsShares( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNfsShare( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_UPDATE_INSTANCE = 2; - private static final int METHODID_RESET_INSTANCE = 3; - private static final int METHODID_START_INSTANCE = 4; - private static final int METHODID_STOP_INSTANCE = 5; - private static final int METHODID_DETACH_LUN = 6; - private static final int METHODID_LIST_VOLUMES = 7; - private static final int METHODID_GET_VOLUME = 8; - private static final int METHODID_UPDATE_VOLUME = 9; - private static final int METHODID_RESIZE_VOLUME = 10; - private static final int METHODID_LIST_NETWORKS = 11; - private static final int METHODID_LIST_NETWORK_USAGE = 12; - private static final int METHODID_GET_NETWORK = 13; - private static final int METHODID_UPDATE_NETWORK = 14; - private static final int METHODID_GET_LUN = 15; - private static final int METHODID_LIST_LUNS = 16; - private static final int METHODID_GET_NFS_SHARE = 17; - private static final int METHODID_LIST_NFS_SHARES = 18; - private static final int METHODID_UPDATE_NFS_SHARE = 19; - - 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 BareMetalSolutionImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESET_INSTANCE: - serviceImpl.resetInstance((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_INSTANCE: - serviceImpl.startInstance((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_INSTANCE: - serviceImpl.stopInstance((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DETACH_LUN: - serviceImpl.detachLun((com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VOLUMES: - serviceImpl.listVolumes((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_VOLUME: - serviceImpl.getVolume((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_VOLUME: - serviceImpl.updateVolume((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESIZE_VOLUME: - serviceImpl.resizeVolume((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NETWORKS: - serviceImpl.listNetworks((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NETWORK_USAGE: - serviceImpl.listNetworkUsage((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NETWORK: - serviceImpl.getNetwork((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NETWORK: - serviceImpl.updateNetwork((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LUN: - serviceImpl.getLun((com.google.cloud.baremetalsolution.v2.GetLunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_LUNS: - serviceImpl.listLuns((com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NFS_SHARE: - serviceImpl.getNfsShare((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NFS_SHARES: - serviceImpl.listNfsShares((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NFS_SHARE: - serviceImpl.updateNfsShare((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BareMetalSolutionBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BareMetalSolution"); - } - } - - private static final class BareMetalSolutionFileDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier { - BareMetalSolutionFileDescriptorSupplier() {} - } - - private static final class BareMetalSolutionMethodDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getResetInstanceMethod()) - .addMethod(getStartInstanceMethod()) - .addMethod(getStopInstanceMethod()) - .addMethod(getDetachLunMethod()) - .addMethod(getListVolumesMethod()) - .addMethod(getGetVolumeMethod()) - .addMethod(getUpdateVolumeMethod()) - .addMethod(getResizeVolumeMethod()) - .addMethod(getListNetworksMethod()) - .addMethod(getListNetworkUsageMethod()) - .addMethod(getGetNetworkMethod()) - .addMethod(getUpdateNetworkMethod()) - .addMethod(getGetLunMethod()) - .addMethod(getListLunsMethod()) - .addMethod(getGetNfsShareMethod()) - .addMethod(getListNfsSharesMethod()) - .addMethod(getUpdateNfsShareMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java deleted file mode 100644 index 2ce6b05..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java +++ /dev/null @@ -1,218 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class BareMetalSolutionProto { - private BareMetalSolutionProto() {} - 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_baremetalsolution_v2_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/baremetalsolution/v2/bare" + - "metalsolution.proto\022!google.cloud.bareme" + - "talsolution.v2\032\034google/api/annotations.p" + - "roto\032\027google/api/client.proto\032\037google/ap" + - "i/field_behavior.proto\0320google/cloud/bar" + - "emetalsolution/v2/instance.proto\032+google" + - "/cloud/baremetalsolution/v2/lun.proto\032/g" + - "oogle/cloud/baremetalsolution/v2/network" + - ".proto\0321google/cloud/baremetalsolution/v" + - "2/nfs_share.proto\032.google/cloud/baremeta" + - "lsolution/v2/volume.proto\032#google/longru" + - "nning/operations.proto\032\037google/protobuf/" + - "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" + - "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + - "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" + - "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " + - "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" + - "setInstanceResponse2\335 \n\021BareMetalSolutio" + - "n\022\302\001\n\rListInstances\0227.google.cloud.barem" + - "etalsolution.v2.ListInstancesRequest\0328.g" + - "oogle.cloud.baremetalsolution.v2.ListIns" + - "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" + - "ects/*/locations/*}/instances\332A\006parent\022\257" + - "\001\n\013GetInstance\0225.google.cloud.baremetals" + - "olution.v2.GetInstanceRequest\032+.google.c" + - "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" + - "\002/\022-/v2/{name=projects/*/locations/*/ins" + - "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" + - "ogle.cloud.baremetalsolution.v2.UpdateIn" + - "stanceRequest\032\035.google.longrunning.Opera" + - "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" + - "s/*/locations/*/instances/*}:\010instance\332A" + - "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" + - "ationMetadata\022\333\001\n\rResetInstance\0227.google" + - ".cloud.baremetalsolution.v2.ResetInstanc" + - "eRequest\032\035.google.longrunning.Operation\"" + - "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" + - "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" + - "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" + - "StartInstance\0227.google.cloud.baremetalso" + - "lution.v2.StartInstanceRequest\032\035.google." + - "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" + - "=projects/*/locations/*/instances/*}:sta" + - "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" + - "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" + - "gle.cloud.baremetalsolution.v2.StopInsta" + - "nceRequest\032\035.google.longrunning.Operatio" + - "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" + - "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" + - "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" + - "DetachLun\0223.google.cloud.baremetalsoluti" + - "on.v2.DetachLunRequest\032\035.google.longrunn" + - "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" + - "jects/*/locations/*/instances/*}:detachL" + - "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" + - "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" + - "oud.baremetalsolution.v2.ListVolumesRequ" + - "est\0326.google.cloud.baremetalsolution.v2." + - "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" + - "=projects/*/locations/*}/volumes\332A\006paren" + - "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" + - "solution.v2.GetVolumeRequest\032).google.cl" + - "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" + - "+/v2/{name=projects/*/locations/*/volume" + - "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" + - "oud.baremetalsolution.v2.UpdateVolumeReq" + - "uest\032\035.google.longrunning.Operation\"u\202\323\344" + - "\223\002<22/v2/{volume.name=projects/*/locatio" + - "ns/*/volumes/*}:\006volume\332A\022volume,update_" + - "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" + - "esizeVolume\0226.google.cloud.baremetalsolu" + - "tion.v2.ResizeVolumeRequest\032\035.google.lon" + - "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" + - "projects/*/locations/*/volumes/*}:resize" + - ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" + - "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" + - "oud.baremetalsolution.v2.ListNetworksReq" + - "uest\0327.google.cloud.baremetalsolution.v2" + - ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" + - "nt=projects/*/locations/*}/networks\332A\006pa" + - "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" + - ".baremetalsolution.v2.ListNetworkUsageRe" + - "quest\032;.google.cloud.baremetalsolution.v" + - "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" + - "{location=projects/*/locations/*}/networ" + - "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" + - "twork\0224.google.cloud.baremetalsolution.v" + - "2.GetNetworkRequest\032*.google.cloud.barem" + - "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" + - "me=projects/*/locations/*/networks/*}\332A\004" + - "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" + - "remetalsolution.v2.UpdateNetworkRequest\032" + - "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" + - "/v2/{network.name=projects/*/locations/*" + - "/networks/*}:\007network\332A\023network,update_m" + - "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" + - "etLun\0220.google.cloud.baremetalsolution.v" + - "2.GetLunRequest\032&.google.cloud.baremetal" + - "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" + - "cts/*/locations/*/volumes/*/luns/*}\332A\004na" + - "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" + - "solution.v2.ListLunsRequest\0323.google.clo" + - "ud.baremetalsolution.v2.ListLunsResponse" + - "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" + - "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" + - "Share\0225.google.cloud.baremetalsolution.v" + - "2.GetNfsShareRequest\032+.google.cloud.bare" + - "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" + - "name=projects/*/locations/*/nfsShares/*}" + - "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" + - ".baremetalsolution.v2.ListNfsSharesReque" + - "st\0328.google.cloud.baremetalsolution.v2.L" + - "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" + - "t=projects/*/locations/*}/nfsShares\332A\006pa" + - "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" + - "aremetalsolution.v2.UpdateNfsShareReques" + - "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" + - "D27/v2/{nfs_share.name=projects/*/locati" + - "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" + - "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" + - "adata\032T\312A baremetalsolution.googleapis.c" + - "om\322A.https://www.googleapis.com/auth/clo" + - "ud-platformB\204\002\n%com.google.cloud.baremet" + - "alsolution.v2B\026BareMetalSolutionProtoP\001Z" + - "Rgoogle.golang.org/genproto/googleapis/c" + - "loud/baremetalsolution/v2;baremetalsolut" + - "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" + - "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" + - "ogle::Cloud::BareMetalSolution::V2b\006prot" + - "o3" - }; - 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java deleted file mode 100644 index 5ac8a36..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface DetachLunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the instance.
-   * 
- * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The instance. - */ - java.lang.String getInstance(); - /** - *
-   * Required. Name of the instance.
-   * 
- * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for instance. - */ - com.google.protobuf.ByteString - getInstanceBytes(); - - /** - *
-   * Required. Name of the Lun to detach.
-   * 
- * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The lun. - */ - java.lang.String getLun(); - /** - *
-   * Required. Name of the Lun to detach.
-   * 
- * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for lun. - */ - com.google.protobuf.ByteString - getLunBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java deleted file mode 100644 index e956437..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java deleted file mode 100644 index d320c48..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/lun.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetLunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java deleted file mode 100644 index 59b3157..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNetworkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java deleted file mode 100644 index f17088b..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/nfs_share.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNfsShareRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java deleted file mode 100644 index ed4c7ee..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetVolumeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java deleted file mode 100644 index 1c4d7e3..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java +++ /dev/null @@ -1,283 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class InstanceProto { - private InstanceProto() {} - 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_baremetalsolution_v2_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/baremetalsolution/v2/inst" + - "ance.proto\022!google.cloud.baremetalsoluti" + - "on.v2\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032+google/cloud/" + - "baremetalsolution/v2/lun.proto\032/google/c" + - "loud/baremetalsolution/v2/network.proto\032" + - " google/protobuf/field_mask.proto\032\037googl" + - "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" + - "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" + - "solution.v2.Instance.State\022\036\n\026hyperthrea" + - "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" + - "gle.cloud.baremetalsolution.v2.Instance." + - "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" + - ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " + - "\003(\0132*.google.cloud.baremetalsolution.v2." + - "Network\022*\n\"interactive_serial_console_en" + - "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" + - "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" + - "baremetalsolution.googleapis.com/ServerN" + - "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" + - "(\01323.google.cloud.baremetalsolution.v2.L" + - "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" + - "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" + - "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" + - "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" + - "+.google.cloud.baremetalsolution.v2.Inst" + - "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + - "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" + - "instance\030\001 \001(\0132+.google.cloud.baremetals" + - "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" + - "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" + - "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + - ")baremetalsolution.googleapis.com/Instan" + - "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" + - "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" + - "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" + - "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" + - "leapis.com/Instance\"\222\001\n\020DetachLunRequest" + - "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" + - "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" + - "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" + - ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" + - "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" + - "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" + - "oogle.cloud.baremetalsolution.v2.ServerN" + - "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" + - "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" + - "2W.google.cloud.baremetalsolution.v2.Ser" + - "verNetworkTemplate.LogicalInterface.Inte" + - "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" + - "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" + - "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" + - "n.googleapis.com/ServerNetworkTemplate\022W" + - "projects/{project}/locations/{location}/" + - "serverNetworkTemplate/{server_network_te" + - "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" + - "InstanceResponseB\373\001\n%com.google.cloud.ba" + - "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/baremetalsolution/v2;baremetalsolution\252" + - "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" + - "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" + - "::Cloud::BareMetalSolution::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, - new java.lang.String[] { "Name", "Id", "CreateTime", "UpdateTime", "MachineType", "State", "HyperthreadingEnabled", "Labels", "Luns", "Networks", "InteractiveSerialConsoleEnabled", "OsImage", "Pod", "NetworkTemplate", "LogicalInterfaces", }); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, - new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, - new java.lang.String[] { "Instance", "UpdateMask", }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, - new java.lang.String[] { "Instance", "Lun", }); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, - new java.lang.String[] { "Name", "ApplicableInstanceTypes", "LogicalInterfaces", }); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, - new java.lang.String[] { "Name", "Type", "Required", }); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java deleted file mode 100644 index e4cb363..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ListNetworkUsageRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Parent value (project and location).
-   * 
- * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The location. - */ - java.lang.String getLocation(); - /** - *
-   * Required. Parent value (project and location).
-   * 
- * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for location. - */ - com.google.protobuf.ByteString - getLocationBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java deleted file mode 100644 index 88b187e..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java +++ /dev/null @@ -1,126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/lun.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class LunProto { - private LunProto() {} - 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_baremetalsolution_v2_Lun_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." + - "proto\022!google.cloud.baremetalsolution.v2" + - "\032\037google/api/field_behavior.proto\032\031googl" + - "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" + - "gle.cloud.baremetalsolution.v2.Lun.State" + - "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" + - "\004 \001(\01628.google.cloud.baremetalsolution.v" + - "2.Lun.MultiprotocolType\022D\n\016storage_volum" + - "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" + - "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" + - "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" + - "e.cloud.baremetalsolution.v2.Lun.Storage" + - "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" + - "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" + - "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" + - "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" + - "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" + - "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" + - "$baremetalsolution.googleapis.com/Lun\022Cp" + - "rojects/{project}/locations/{location}/v" + - "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" + - "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" + - "tion.googleapis.com/Lun\"y\n\017ListLunsReque" + - "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" + - "ution.googleapis.com/Volume\022\021\n\tpage_size" + - "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" + - "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" + - "metalsolution.v2.Lun\022\027\n\017next_page_token\030" + - "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" + - "e.cloud.baremetalsolution.v2B\010LunProtoP\001" + - "ZRgoogle.golang.org/genproto/googleapis/" + - "cloud/baremetalsolution/v2;baremetalsolu" + - "tion\252\002!Google.Cloud.BareMetalSolution.V2" + - "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" + - "oogle::Cloud::BareMetalSolution::V2b\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, - new java.lang.String[] { "Name", "Id", "State", "SizeGb", "MultiprotocolType", "StorageVolume", "Shareable", "BootLun", "StorageType", "Wwid", }); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, - new java.lang.String[] { "Luns", "NextPageToken", "Unreachable", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java deleted file mode 100644 index e830e19..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java +++ /dev/null @@ -1,283 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class NetworkProto { - private NetworkProto() {} - 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_baremetalsolution_v2_Network_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" + - "ork.proto\022!google.cloud.baremetalsolutio" + - "n.v2\032\037google/api/field_behavior.proto\032\031g" + - "oogle/api/resource.proto\032 google/protobu" + - "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" + - " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" + - "ogle.cloud.baremetalsolution.v2.Network." + - "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" + - "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" + - "metalsolution.v2.Network.State\022\017\n\007vlan_i" + - "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" + - "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" + - "bels\030\013 \003(\01326.google.cloud.baremetalsolut" + - "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" + - "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" + - ".cloud.baremetalsolution.v2.NetworkAddre" + - "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" + - "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" + - "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" + - "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" + - "lution.googleapis.com/Network\022:projects/" + - "{project}/locations/{location}/networks/" + - "{network}\"U\n\031NetworkAddressReservation\022\025" + - "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" + - "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" + - "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" + - "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" + - "0.google.cloud.baremetalsolution.v2.VRF." + - "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" + - "ogle.cloud.baremetalsolution.v2.VRF.Vlan" + - "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" + - "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" + - "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " + - "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" + - "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" + - "alInterface\022o\n\032logical_network_interface" + - "s\030\001 \003(\0132K.google.cloud.baremetalsolution" + - ".v2.LogicalInterface.LogicalNetworkInter" + - "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " + - "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" + - "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" + - "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" + - "ogle.cloud.baremetalsolution.v2.Network." + - "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" + - "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" + - "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" + - "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + - ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + - "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" + - "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" + - "(\0132*.google.cloud.baremetalsolution.v2.N" + - "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + - "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" + - "\007network\030\001 \001(\0132*.google.cloud.baremetals" + - "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" + - "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" + - ".baremetalsolution.v2.Network\022\020\n\010used_ip" + - "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" + - "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + - "is.com/Location\"]\n\030ListNetworkUsageRespo" + - "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" + - "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" + - "oogle.cloud.baremetalsolution.v2B\014Networ" + - "kProtoP\001ZRgoogle.golang.org/genproto/goo" + - "gleapis/cloud/baremetalsolution/v2;barem" + - "etalsolution\252\002!Google.Cloud.BareMetalSol" + - "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" + - "n\\V2\352\002$Google::Cloud::BareMetalSolution:" + - ":V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, - new java.lang.String[] { "Name", "Id", "Type", "IpAddress", "MacAddress", "State", "VlanId", "Cidr", "Vrf", "Labels", "ServicesCidr", "Reservations", }); - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, - new java.lang.String[] { "StartAddress", "EndAddress", "Note", }); - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, - new java.lang.String[] { "Name", "State", "QosPolicy", "VlanAttachments", }); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, - new java.lang.String[] { "BandwidthGbps", }); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, - new java.lang.String[] { "PeerVlanId", "PeerIp", "RouterIp", }); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, - new java.lang.String[] { "LogicalNetworkInterfaces", "Name", "InterfaceIndex", }); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, - new java.lang.String[] { "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", }); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, - new java.lang.String[] { "Networks", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, - new java.lang.String[] { "Network", "UpdateMask", }); - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, - new java.lang.String[] { "Network", "UsedIps", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, - new java.lang.String[] { "Location", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, - new java.lang.String[] { "Networks", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java deleted file mode 100644 index ba39d39..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java +++ /dev/null @@ -1,171 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/nfs_share.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class NfsShareProto { - private NfsShareProto() {} - 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_baremetalsolution_v2_NfsShare_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/baremetalsolution/v2/nfs_" + - "share.proto\022!google.cloud.baremetalsolut" + - "ion.v2\032\037google/api/field_behavior.proto\032" + - "\031google/api/resource.proto\032 google/proto" + - "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" + - "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" + - "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" + - "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" + - "\tB,\372A)\n\'baremetalsolution.googleapis.com" + - "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" + - "e.cloud.baremetalsolution.v2.NfsShare.Al" + - "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" + - "ud.baremetalsolution.v2.NfsShare.LabelsE" + - "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" + - "-\372A*\n(baremetalsolution.googleapis.com/N" + - "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" + - "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" + - "\0162<.google.cloud.baremetalsolution.v2.Nf" + - "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" + - "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" + - "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" + - "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" + - "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" + - "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" + - "olution.googleapis.com/NFSShare\022=project" + - "s/{project}/locations/{location}/nfsShar" + - "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" + - "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" + - "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" + - "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + - "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + - " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" + - "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" + - "\030\001 \003(\0132+.google.cloud.baremetalsolution." + - "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + - "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" + - "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" + - "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" + - "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + - "kB\373\001\n%com.google.cloud.baremetalsolution" + - ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" + - "genproto/googleapis/cloud/baremetalsolut" + - "ion/v2;baremetalsolution\252\002!Google.Cloud." + - "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" + - "MetalSolution\\V2\352\002$Google::Cloud::BareMe" + - "talSolution::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, - new java.lang.String[] { "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, - new java.lang.String[] { "Network", "ShareIp", "AllowedClientsCidr", "MountPermissions", "AllowDev", "AllowSuid", "NoRootSquash", }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, - new java.lang.String[] { "NfsShares", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, - new java.lang.String[] { "NfsShare", "UpdateMask", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java deleted file mode 100644 index 6068d11..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java deleted file mode 100644 index f9e4cd0..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java deleted file mode 100644 index 2fc28ec..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResizeVolumeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Volume to resize.
-   * 
- * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The volume. - */ - java.lang.String getVolume(); - /** - *
-   * Required. Volume to resize.
-   * 
- * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for volume. - */ - com.google.protobuf.ByteString - getVolumeBytes(); - - /** - *
-   * New Volume size, in GiB.
-   * 
- * - * int64 size_gib = 2; - * @return The sizeGib. - */ - long getSizeGib(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java deleted file mode 100644 index 51f49d0..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StartInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java deleted file mode 100644 index d1a3887..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StartInstanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java deleted file mode 100644 index ba9234c..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StopInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java deleted file mode 100644 index cc35d1f..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StopInstanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java deleted file mode 100644 index 417c220..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java +++ /dev/null @@ -1,192 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class VolumeProto { - private VolumeProto() {} - 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_baremetalsolution_v2_Volume_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" + - "me.proto\022!google.cloud.baremetalsolution" + - ".v2\032\037google/api/field_behavior.proto\032\031go" + - "ogle/api/resource.proto\032 google/protobuf" + - "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" + - "\01625.google.cloud.baremetalsolution.v2.Vo" + - "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" + - ".cloud.baremetalsolution.v2.Volume.State" + - "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" + - "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" + - "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" + - "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" + - "tion_detail\030\010 \001(\0132C.google.cloud.baremet" + - "alsolution.v2.Volume.SnapshotReservation" + - "Detail\022k\n\035snapshot_auto_delete_behavior\030" + - "\t \001(\0162D.google.cloud.baremetalsolution.v" + - "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" + - "abels\030\014 \003(\01325.google.cloud.baremetalsolu" + - "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" + - "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" + - "hotReservationDetail\022\032\n\022reserved_space_g" + - "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" + - "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " + - "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" + - "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" + - "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" + - "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" + - "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" + - "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" + - "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" + - "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" + - "olution.googleapis.com/Volume\0228projects/" + - "{project}/locations/{location}/volumes/{" + - "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" + - "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." + - "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" + - "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + - "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + - "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" + - "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" + - "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" + - "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" + - "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" + - "oogle.cloud.baremetalsolution.v2.VolumeB" + - "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + - "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" + - "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." + - "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" + - "\371\001\n%com.google.cloud.baremetalsolution.v" + - "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" + - "roto/googleapis/cloud/baremetalsolution/" + - "v2;baremetalsolution\252\002!Google.Cloud.Bare" + - "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" + - "lSolution\\V2\352\002$Google::Cloud::BareMetalS" + - "olution::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, - new java.lang.String[] { "Name", "Id", "StorageType", "State", "RequestedSizeGib", "CurrentSizeGib", "EmergencySizeGib", "AutoGrownSizeGib", "RemainingSpaceGib", "SnapshotReservationDetail", "SnapshotAutoDeleteBehavior", "Labels", "SnapshotEnabled", "Pod", }); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, - new java.lang.String[] { "ReservedSpaceGib", "ReservedSpaceUsedPercent", "ReservedSpaceRemainingGib", "ReservedSpacePercent", }); - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, - new java.lang.String[] { "Volumes", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, - new java.lang.String[] { "Volume", "UpdateMask", }); - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, - new java.lang.String[] { "Volume", "SizeGib", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java new file mode 100644 index 0000000..679c482 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java @@ -0,0 +1,238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class BareMetalSolutionProto { + private BareMetalSolutionProto() {} + + 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_baremetalsolution_v2_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/baremetalsolution/v2/bare" + + "metalsolution.proto\022!google.cloud.bareme" + + "talsolution.v2\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\0320google/cloud/bar" + + "emetalsolution/v2/instance.proto\032+google" + + "/cloud/baremetalsolution/v2/lun.proto\032/g" + + "oogle/cloud/baremetalsolution/v2/network" + + ".proto\0321google/cloud/baremetalsolution/v" + + "2/nfs_share.proto\032.google/cloud/baremeta" + + "lsolution/v2/volume.proto\032#google/longru" + + "nning/operations.proto\032\037google/protobuf/" + + "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" + + "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " + + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" + + "setInstanceResponse2\335 \n\021BareMetalSolutio" + + "n\022\302\001\n\rListInstances\0227.google.cloud.barem" + + "etalsolution.v2.ListInstancesRequest\0328.g" + + "oogle.cloud.baremetalsolution.v2.ListIns" + + "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" + + "ects/*/locations/*}/instances\332A\006parent\022\257" + + "\001\n\013GetInstance\0225.google.cloud.baremetals" + + "olution.v2.GetInstanceRequest\032+.google.c" + + "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" + + "\002/\022-/v2/{name=projects/*/locations/*/ins" + + "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" + + "ogle.cloud.baremetalsolution.v2.UpdateIn" + + "stanceRequest\032\035.google.longrunning.Opera" + + "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" + + "s/*/locations/*/instances/*}:\010instance\332A" + + "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" + + "ationMetadata\022\333\001\n\rResetInstance\0227.google" + + ".cloud.baremetalsolution.v2.ResetInstanc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" + + "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" + + "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" + + "StartInstance\0227.google.cloud.baremetalso" + + "lution.v2.StartInstanceRequest\032\035.google." + + "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" + + "=projects/*/locations/*/instances/*}:sta" + + "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" + + "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" + + "gle.cloud.baremetalsolution.v2.StopInsta" + + "nceRequest\032\035.google.longrunning.Operatio" + + "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" + + "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" + + "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" + + "DetachLun\0223.google.cloud.baremetalsoluti" + + "on.v2.DetachLunRequest\032\035.google.longrunn" + + "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" + + "jects/*/locations/*/instances/*}:detachL" + + "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" + + "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" + + "oud.baremetalsolution.v2.ListVolumesRequ" + + "est\0326.google.cloud.baremetalsolution.v2." + + "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" + + "=projects/*/locations/*}/volumes\332A\006paren" + + "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" + + "solution.v2.GetVolumeRequest\032).google.cl" + + "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" + + "+/v2/{name=projects/*/locations/*/volume" + + "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" + + "oud.baremetalsolution.v2.UpdateVolumeReq" + + "uest\032\035.google.longrunning.Operation\"u\202\323\344" + + "\223\002<22/v2/{volume.name=projects/*/locatio" + + "ns/*/volumes/*}:\006volume\332A\022volume,update_" + + "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" + + "esizeVolume\0226.google.cloud.baremetalsolu" + + "tion.v2.ResizeVolumeRequest\032\035.google.lon" + + "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" + + "projects/*/locations/*/volumes/*}:resize" + + ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" + + "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" + + "oud.baremetalsolution.v2.ListNetworksReq" + + "uest\0327.google.cloud.baremetalsolution.v2" + + ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" + + "nt=projects/*/locations/*}/networks\332A\006pa" + + "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" + + ".baremetalsolution.v2.ListNetworkUsageRe" + + "quest\032;.google.cloud.baremetalsolution.v" + + "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" + + "{location=projects/*/locations/*}/networ" + + "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" + + "twork\0224.google.cloud.baremetalsolution.v" + + "2.GetNetworkRequest\032*.google.cloud.barem" + + "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" + + "me=projects/*/locations/*/networks/*}\332A\004" + + "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" + + "remetalsolution.v2.UpdateNetworkRequest\032" + + "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" + + "/v2/{network.name=projects/*/locations/*" + + "/networks/*}:\007network\332A\023network,update_m" + + "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" + + "etLun\0220.google.cloud.baremetalsolution.v" + + "2.GetLunRequest\032&.google.cloud.baremetal" + + "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" + + "cts/*/locations/*/volumes/*/luns/*}\332A\004na" + + "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" + + "solution.v2.ListLunsRequest\0323.google.clo" + + "ud.baremetalsolution.v2.ListLunsResponse" + + "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" + + "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" + + "Share\0225.google.cloud.baremetalsolution.v" + + "2.GetNfsShareRequest\032+.google.cloud.bare" + + "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" + + "name=projects/*/locations/*/nfsShares/*}" + + "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" + + ".baremetalsolution.v2.ListNfsSharesReque" + + "st\0328.google.cloud.baremetalsolution.v2.L" + + "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" + + "t=projects/*/locations/*}/nfsShares\332A\006pa" + + "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" + + "aremetalsolution.v2.UpdateNfsShareReques" + + "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" + + "D27/v2/{nfs_share.name=projects/*/locati" + + "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" + + "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" + + "adata\032T\312A baremetalsolution.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\204\002\n%com.google.cloud.baremet" + + "alsolution.v2B\026BareMetalSolutionProtoP\001Z" + + "Rgoogle.golang.org/genproto/googleapis/c" + + "loud/baremetalsolution/v2;baremetalsolut" + + "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" + + "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" + + "ogle::Cloud::BareMetalSolution::V2b\006prot" + + "o3" + }; + 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java index 6074780..ec51b3a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for detach specific LUN from an Instance.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} */ -public final class DetachLunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetachLunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) DetachLunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetachLunRequest.newBuilder() to construct. private DetachLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetachLunRequest() { instance_ = ""; lun_ = ""; @@ -26,16 +44,15 @@ private DetachLunRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetachLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetachLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DetachLunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - instance_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + instance_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - lun_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + lun_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,41 @@ private DetachLunRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private volatile java.lang.Object instance_; /** + * + * *
    * Required. Name of the instance.
    * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The instance. */ @java.lang.Override @@ -116,29 +142,31 @@ public java.lang.String getInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; } } /** + * + * *
    * Required. Name of the instance.
    * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for instance. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceBytes() { + public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instance_ = b; return b; } else { @@ -149,11 +177,16 @@ public java.lang.String getInstance() { public static final int LUN_FIELD_NUMBER = 2; private volatile java.lang.Object lun_; /** + * + * *
    * Required. Name of the Lun to detach.
    * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The lun. */ @java.lang.Override @@ -162,29 +195,31 @@ public java.lang.String getLun() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lun_ = s; return s; } } /** + * + * *
    * Required. Name of the Lun to detach.
    * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for lun. */ @java.lang.Override - public com.google.protobuf.ByteString - getLunBytes() { + public com.google.protobuf.ByteString getLunBytes() { java.lang.Object ref = lun_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lun_ = b; return b; } else { @@ -193,6 +228,7 @@ public java.lang.String getLun() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,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(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); } @@ -235,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.baremetalsolution.v2.DetachLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.DetachLunRequest other = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; + com.google.cloud.baremetalsolution.v2.DetachLunRequest other = + (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; - if (!getInstance() - .equals(other.getInstance())) return false; - if (!getLun() - .equals(other.getLun())) return false; + if (!getInstance().equals(other.getInstance())) return false; + if (!getLun().equals(other.getLun())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for detach specific LUN from an Instance.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) com.google.cloud.baremetalsolution.v2.DetachLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.DetachLunRequest.newBuilder() @@ -385,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override @@ -427,7 +470,8 @@ public com.google.cloud.baremetalsolution.v2.DetachLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.DetachLunRequest result = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); + com.google.cloud.baremetalsolution.v2.DetachLunRequest result = + new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); result.instance_ = instance_; result.lun_ = lun_; onBuilt(); @@ -438,38 +482,39 @@ public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.DetachLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest) other); } else { super.mergeFrom(other); return this; @@ -477,7 +522,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.DetachLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) + return this; if (!other.getInstance().isEmpty()) { instance_ = other.instance_; onChanged(); @@ -505,7 +551,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,18 +564,22 @@ public Builder mergeFrom( private java.lang.Object instance_ = ""; /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The instance. */ public java.lang.String getInstance() { java.lang.Object ref = instance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; @@ -537,20 +588,23 @@ public java.lang.String getInstance() { } } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for instance. */ - public com.google.protobuf.ByteString - getInstanceBytes() { + public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instance_ = b; return b; } else { @@ -558,54 +612,67 @@ public java.lang.String getInstance() { } } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The instance to set. * @return This builder for chaining. */ - public Builder setInstance( - java.lang.String value) { + public Builder setInstance(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instance_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearInstance() { - + instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for instance to set. * @return This builder for chaining. */ - public Builder setInstanceBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; onChanged(); return this; @@ -613,18 +680,22 @@ public Builder setInstanceBytes( private java.lang.Object lun_ = ""; /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The lun. */ public java.lang.String getLun() { java.lang.Object ref = lun_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lun_ = s; return s; @@ -633,20 +704,23 @@ public java.lang.String getLun() { } } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for lun. */ - public com.google.protobuf.ByteString - getLunBytes() { + public com.google.protobuf.ByteString getLunBytes() { java.lang.Object ref = lun_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lun_ = b; return b; } else { @@ -654,61 +728,74 @@ public java.lang.String getLun() { } } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The lun to set. * @return This builder for chaining. */ - public Builder setLun( - java.lang.String value) { + public Builder setLun(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lun_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLun() { - + lun_ = getDefaultInstance().getLun(); onChanged(); return this; } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for lun to set. * @return This builder for chaining. */ - public Builder setLunBytes( - com.google.protobuf.ByteString value) { + public Builder setLunBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lun_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) private static final com.google.cloud.baremetalsolution.v2.DetachLunRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(); } @@ -732,16 +819,16 @@ public static com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetachLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetachLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetachLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetachLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +843,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java new file mode 100644 index 0000000..75fbf25 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java @@ -0,0 +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/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface DetachLunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the instance.
+   * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + /** + * + * + *
+   * Required. Name of the instance.
+   * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The lun. + */ + java.lang.String getLun(); + /** + * + * + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for lun. + */ + com.google.protobuf.ByteString getLunBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java index 03dcb9d..5990f0f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting server information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ -public final class GetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) GetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetInstanceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting server information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) com.google.cloud.baremetalsolution.v2.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..cc92dbb --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java index 32ab528..4f0939b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting storage lun information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ -public final class GetLunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetLunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetLunRequest) GetLunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetLunRequest.newBuilder() to construct. private GetLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetLunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetLunRequest( 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,34 +91,41 @@ private GetLunRequest( } 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.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetLunRequest other = (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; + com.google.cloud.baremetalsolution.v2.GetLunRequest other = + (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,126 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting storage lun information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetLunRequest) com.google.cloud.baremetalsolution.v2.GetLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetLunRequest.newBuilder() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override @@ -362,7 +397,8 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetLunRequest result = new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); + com.google.cloud.baremetalsolution.v2.GetLunRequest result = + new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +473,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +486,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +510,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +534,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetLunRequest) private static final com.google.cloud.baremetalsolution.v2.GetLunRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetLunRequest(); } @@ -566,16 +625,16 @@ public static com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java new file mode 100644 index 0000000..9f97c73 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetLunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java index 8b4f73a..c7048ac 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting network information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ -public final class GetNetworkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) GetNetworkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNetworkRequest.newBuilder() to construct. private GetNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNetworkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetNetworkRequest( 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,34 +91,41 @@ private GetNetworkRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = + (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting network information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) com.google.cloud.baremetalsolution.v2.GetNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNetworkRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = + new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) private static final com.google.cloud.baremetalsolution.v2.GetNetworkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNetworkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNetworkRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNetworkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNetworkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java new file mode 100644 index 0000000..c619b65 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNetworkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java index 888e6a6..30fffbf 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting NFS share information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} */ -public final class GetNfsShareRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNfsShareRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) GetNfsShareRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNfsShareRequest.newBuilder() to construct. private GetNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNfsShareRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNfsShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetNfsShareRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetNfsShareRequest( 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,34 +91,41 @@ private GetNfsShareRequest( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = + (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting NFS share information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) com.google.cloud.baremetalsolution.v2.GetNfsShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = + new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) private static final com.google.cloud.baremetalsolution.v2.GetNfsShareRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNfsShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNfsShareRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNfsShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNfsShareRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java new file mode 100644 index 0000000..072571e --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNfsShareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java index 01d7345..1a670e5 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting storage volume information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ -public final class GetVolumeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetVolumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) GetVolumeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetVolumeRequest.newBuilder() to construct. private GetVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetVolumeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetVolumeRequest( 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,34 +91,41 @@ private GetVolumeRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = + (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting storage volume information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) com.google.cloud.baremetalsolution.v2.GetVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetVolumeRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = + new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.GetVolumeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java new file mode 100644 index 0000000..9830fba --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetVolumeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java index 293d61c..66c8eeb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} */ -public final class Instance extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Instance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Instance) InstanceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Instance() { name_ = ""; id_ = ""; @@ -34,16 +52,15 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Instance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -63,131 +80,152 @@ private Instance( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 48: { + machineType_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); - hyperthreadingEnabled_ = input.readBool(); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + state_ = rawValue; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 48: + { + hyperthreadingEnabled_ = input.readBool(); + break; } - luns_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - networks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - networks_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; - } - case 80: { - - interactiveSerialConsoleEnabled_ = input.readBool(); - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); + case 66: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + luns_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + networks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + networks_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; + } + case 80: + { + interactiveSerialConsoleEnabled_ = input.readBool(); + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - osImage_ = s; - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); + osImage_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; - } - case 114: { - java.lang.String s = input.readStringRequireUtf8(); + pod_ = s; + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); - networkTemplate_ = s; - break; - } - case 122: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + networkTemplate_ = s; + break; } - logicalInterfaces_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 122: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + logicalInterfaces_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.LogicalInterface>(); + mutable_bitField0_ |= 0x00000008; + } + logicalInterfaces_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -195,8 +233,7 @@ private Instance( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -211,41 +248,46 @@ private Instance( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + com.google.cloud.baremetalsolution.v2.Instance.class, + com.google.cloud.baremetalsolution.v2.Instance.Builder.class); } /** + * + * *
    * The possible states for this server.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The server is in an unknown state.
      * 
@@ -254,6 +296,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The server is being provisioned.
      * 
@@ -262,6 +306,8 @@ public enum State */ PROVISIONING(1), /** + * + * *
      * The server is running.
      * 
@@ -270,6 +316,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The server has been deleted.
      * 
@@ -281,6 +329,8 @@ public enum State ; /** + * + * *
      * The server is in an unknown state.
      * 
@@ -289,6 +339,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The server is being provisioned.
      * 
@@ -297,6 +349,8 @@ public enum State */ public static final int PROVISIONING_VALUE = 1; /** + * + * *
      * The server is running.
      * 
@@ -305,6 +359,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The server has been deleted.
      * 
@@ -313,7 +369,6 @@ public enum State */ public static final int DELETED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -338,50 +393,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONING; - case 2: return RUNNING; - case 3: return DELETED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return RUNNING; + case 3: + return DELETED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Instance.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -401,6 +457,8 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -410,6 +468,7 @@ private State(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -418,14 +477,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; } } /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -435,16 +495,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -455,11 +514,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 11; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ @java.lang.Override @@ -468,29 +530,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; } } /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @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 { @@ -501,11 +563,15 @@ public java.lang.String getId() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -513,11 +579,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -525,11 +595,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -539,11 +612,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -551,11 +628,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -563,11 +644,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -577,6 +661,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MACHINE_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object machineType_; /** + * + * *
    * The server type.
    * [Available server
@@ -584,6 +670,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string machine_type = 4; + * * @return The machineType. */ @java.lang.Override @@ -592,14 +679,15 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** + * + * *
    * The server type.
    * [Available server
@@ -607,16 +695,15 @@ public java.lang.String getMachineType() {
    * 
* * string machine_type = 4; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -627,39 +714,53 @@ public java.lang.String getMachineType() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Instance.State result = + com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED + : result; } public static final int HYPERTHREADING_ENABLED_FIELD_NUMBER = 6; private boolean hyperthreadingEnabled_; /** + * + * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; + * * @return The hyperthreadingEnabled. */ @java.lang.Override @@ -668,24 +769,23 @@ public boolean getHyperthreadingEnabled() { } public static final int LABELS_FIELD_NUMBER = 7; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -694,28 +794,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -723,11 +825,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 7; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -735,16 +838,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -752,12 +855,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 7; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -767,6 +869,8 @@ public java.lang.String getLabelsOrThrow( public static final int LUNS_FIELD_NUMBER = 8; private java.util.List luns_; /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -778,6 +882,8 @@ public java.util.List getLunsList() { return luns_; } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -785,11 +891,13 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -801,6 +909,8 @@ public int getLunsCount() { return luns_.size(); } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -812,6 +922,8 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -819,14 +931,15 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { return luns_.get(index); } public static final int NETWORKS_FIELD_NUMBER = 9; private java.util.List networks_; /** + * + * *
    * List of networks associated with this server.
    * 
@@ -838,6 +951,8 @@ public java.util.List getNetworks return networks_; } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -845,11 +960,13 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -861,6 +978,8 @@ public int getNetworksCount() { return networks_.size(); } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -872,6 +991,8 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -879,14 +1000,15 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { return networks_.get(index); } public static final int INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER = 10; private boolean interactiveSerialConsoleEnabled_; /** + * + * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -894,6 +1016,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild
    * 
* * bool interactive_serial_console_enabled = 10; + * * @return The interactiveSerialConsoleEnabled. */ @java.lang.Override @@ -904,11 +1027,14 @@ public boolean getInteractiveSerialConsoleEnabled() { public static final int OS_IMAGE_FIELD_NUMBER = 12; private volatile java.lang.Object osImage_; /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The osImage. */ @java.lang.Override @@ -917,29 +1043,29 @@ public java.lang.String getOsImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osImage_ = s; return s; } } /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The bytes for osImage. */ @java.lang.Override - public com.google.protobuf.ByteString - getOsImageBytes() { + public com.google.protobuf.ByteString getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); osImage_ = b; return b; } else { @@ -950,6 +1076,8 @@ public java.lang.String getOsImage() { public static final int POD_FIELD_NUMBER = 13; private volatile java.lang.Object pod_; /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -958,6 +1086,7 @@ public java.lang.String getOsImage() {
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ @java.lang.Override @@ -966,14 +1095,15 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -982,16 +1112,15 @@ public java.lang.String getPod() {
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -1002,6 +1131,8 @@ public java.lang.String getPod() { public static final int NETWORK_TEMPLATE_FIELD_NUMBER = 14; private volatile java.lang.Object networkTemplate_; /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -1009,6 +1140,7 @@ public java.lang.String getPod() {
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The networkTemplate. */ @java.lang.Override @@ -1017,14 +1149,15 @@ public java.lang.String getNetworkTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkTemplate_ = s; return s; } } /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -1032,16 +1165,15 @@ public java.lang.String getNetworkTemplate() {
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for networkTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkTemplateBytes() { + public com.google.protobuf.ByteString getNetworkTemplateBytes() { java.lang.Object ref = networkTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkTemplate_ = b; return b; } else { @@ -1052,6 +1184,8 @@ public java.lang.String getNetworkTemplate() { public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 15; private java.util.List logicalInterfaces_; /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1062,13 +1196,17 @@ public java.lang.String getNetworkTemplate() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override - public java.util.List getLogicalInterfacesList() { + public java.util.List + getLogicalInterfacesList() { return logicalInterfaces_; } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1079,14 +1217,17 @@ public java.util.List ge
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override - public java.util.List + public java.util.List getLogicalInterfacesOrBuilderList() { return logicalInterfaces_; } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1097,13 +1238,16 @@ public java.util.List ge
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override public int getLogicalInterfacesCount() { return logicalInterfaces_.size(); } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1114,13 +1258,16 @@ public int getLogicalInterfacesCount() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { return logicalInterfaces_.get(index); } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1131,15 +1278,17 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { return logicalInterfaces_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1151,8 +1300,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1165,18 +1313,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (hyperthreadingEnabled_ != false) { output.writeBool(6, hyperthreadingEnabled_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); for (int i = 0; i < luns_.size(); i++) { output.writeMessage(8, luns_.get(i)); } @@ -1214,45 +1359,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (hyperthreadingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, hyperthreadingEnabled_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, labels__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, hyperthreadingEnabled_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); } for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, luns_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, networks_.get(i)); } if (interactiveSerialConsoleEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, interactiveSerialConsoleEnabled_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 10, interactiveSerialConsoleEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); @@ -1267,8 +1408,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, networkTemplate_); } for (int i = 0; i < logicalInterfaces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, logicalInterfaces_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, logicalInterfaces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1278,48 +1419,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Instance)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Instance other = (com.google.cloud.baremetalsolution.v2.Instance) obj; + com.google.cloud.baremetalsolution.v2.Instance other = + (com.google.cloud.baremetalsolution.v2.Instance) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getMachineType() - .equals(other.getMachineType())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (state_ != other.state_) return false; - if (getHyperthreadingEnabled() - != other.getHyperthreadingEnabled()) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getLunsList() - .equals(other.getLunsList())) return false; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; - if (getInteractiveSerialConsoleEnabled() - != other.getInteractiveSerialConsoleEnabled()) return false; - if (!getOsImage() - .equals(other.getOsImage())) return false; - if (!getPod() - .equals(other.getPod())) return false; - if (!getNetworkTemplate() - .equals(other.getNetworkTemplate())) return false; - if (!getLogicalInterfacesList() - .equals(other.getLogicalInterfacesList())) return false; + if (getHyperthreadingEnabled() != other.getHyperthreadingEnabled()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getLunsList().equals(other.getLunsList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; + if (getInteractiveSerialConsoleEnabled() != other.getInteractiveSerialConsoleEnabled()) + return false; + if (!getOsImage().equals(other.getOsImage())) return false; + if (!getPod().equals(other.getPod())) return false; + if (!getNetworkTemplate().equals(other.getNetworkTemplate())) return false; + if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1348,8 +1477,7 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + HYPERTHREADING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHyperthreadingEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHyperthreadingEnabled()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -1363,8 +1491,9 @@ public int hashCode() { hash = (53 * hash) + getNetworksList().hashCode(); } hash = (37 * hash) + INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInteractiveSerialConsoleEnabled()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getInteractiveSerialConsoleEnabled()); hash = (37 * hash) + OS_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getOsImage().hashCode(); hash = (37 * hash) + POD_FIELD_NUMBER; @@ -1380,140 +1509,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Instance) com.google.cloud.baremetalsolution.v2.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 7: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + com.google.cloud.baremetalsolution.v2.Instance.class, + com.google.cloud.baremetalsolution.v2.Instance.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Instance.newBuilder() @@ -1521,19 +1657,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLunsFieldBuilder(); getNetworksFieldBuilder(); getLogicalInterfacesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1590,9 +1726,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @java.lang.Override @@ -1611,7 +1747,8 @@ public com.google.cloud.baremetalsolution.v2.Instance build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { - com.google.cloud.baremetalsolution.v2.Instance result = new com.google.cloud.baremetalsolution.v2.Instance(this); + com.google.cloud.baremetalsolution.v2.Instance result = + new com.google.cloud.baremetalsolution.v2.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -1669,38 +1806,39 @@ public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Instance) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance) other); } else { super.mergeFrom(other); return this; @@ -1733,8 +1871,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { if (other.getHyperthreadingEnabled() != false) { setHyperthreadingEnabled(other.getHyperthreadingEnabled()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -1753,9 +1890,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000002); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLunsFieldBuilder() : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLunsFieldBuilder() + : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -1779,9 +1917,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -1820,9 +1959,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { logicalInterfacesBuilder_ = null; logicalInterfaces_ = other.logicalInterfaces_; bitField0_ = (bitField0_ & ~0x00000008); - logicalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogicalInterfacesFieldBuilder() : null; + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogicalInterfacesFieldBuilder() + : null; } else { logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); } @@ -1856,10 +1996,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1869,13 +2012,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1884,6 +2027,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1893,15 +2038,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1909,6 +2053,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1918,20 +2064,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1941,15 +2089,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1959,16 +2110,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1976,18 +2127,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -1996,20 +2149,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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 { @@ -2017,54 +2171,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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; } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -2072,39 +2233,58 @@ public Builder setIdBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2120,14 +2300,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2138,17 +2321,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2160,11 +2347,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2178,48 +2369,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2227,39 +2434,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2275,14 +2501,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2293,17 +2522,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2315,11 +2548,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2333,48 +2570,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2382,6 +2635,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object machineType_ = ""; /** + * + * *
      * The server type.
      * [Available server
@@ -2389,13 +2644,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string machine_type = 4; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -2404,6 +2659,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * The server type.
      * [Available server
@@ -2411,15 +2668,14 @@ public java.lang.String getMachineType() {
      * 
* * string machine_type = 4; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -2427,6 +2683,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * The server type.
      * [Available server
@@ -2434,20 +2692,22 @@ public java.lang.String getMachineType() {
      * 
* * string machine_type = 4; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * The server type.
      * [Available server
@@ -2455,15 +2715,18 @@ public Builder setMachineType(
      * 
* * string machine_type = 4; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * The server type.
      * [Available server
@@ -2471,16 +2734,16 @@ public Builder clearMachineType() {
      * 
* * string machine_type = 4; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; @@ -2488,51 +2751,67 @@ public Builder setMachineTypeBytes( private int state_ = 0; /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Instance.State result = + com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2540,34 +2819,40 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Instance.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private boolean hyperthreadingEnabled_ ; + private boolean hyperthreadingEnabled_; /** + * + * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; + * * @return The hyperthreadingEnabled. */ @java.lang.Override @@ -2575,53 +2860,58 @@ public boolean getHyperthreadingEnabled() { return hyperthreadingEnabled_; } /** + * + * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; + * * @param value The hyperthreadingEnabled to set. * @return This builder for chaining. */ public Builder setHyperthreadingEnabled(boolean value) { - + hyperthreadingEnabled_ = value; onChanged(); return this; } /** + * + * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; + * * @return This builder for chaining. */ public Builder clearHyperthreadingEnabled() { - + hyperthreadingEnabled_ = false; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2633,28 +2923,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2662,11 +2954,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 7; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2674,16 +2967,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2691,12 +2985,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 7; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2704,80 +2997,83 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.util.List luns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> + lunsBuilder_; /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2792,6 +3088,8 @@ public java.util.List getLunsList() { } } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2806,6 +3104,8 @@ public int getLunsCount() { } } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2820,14 +3120,15 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder setLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2841,6 +3142,8 @@ public Builder setLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2859,6 +3162,8 @@ public Builder setLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2879,14 +3184,15 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder addLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2900,14 +3206,15 @@ public Builder addLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder addLuns( - com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -2918,6 +3225,8 @@ public Builder addLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2936,6 +3245,8 @@ public Builder addLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2946,8 +3257,7 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -2955,6 +3265,8 @@ public Builder addAllLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2972,6 +3284,8 @@ public Builder clearLuns() { return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2989,39 +3303,44 @@ public Builder removeLuns(int index) { return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { return getLunsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { if (lunsBuilder_ == null) { - return luns_.get(index); } else { + return luns_.get(index); + } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -3029,6 +3348,8 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( } } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -3036,60 +3357,72 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( - int index) { - return getLunsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { + return getLunsFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public java.util.List - getLunsBuilderList() { + public java.util.List getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + lunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); luns_ = null; } return lunsBuilder_; } private java.util.List networks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - networks_ = new java.util.ArrayList(networks_); + networks_ = + new java.util.ArrayList(networks_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networksBuilder_; /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3104,6 +3437,8 @@ public java.util.List getNetworks } } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3118,6 +3453,8 @@ public int getNetworksCount() { } } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3132,14 +3469,15 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public Builder setNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3153,6 +3491,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3171,6 +3511,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3191,14 +3533,15 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public Builder addNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3212,6 +3555,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3230,6 +3575,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3248,6 +3595,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3258,8 +3607,7 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -3267,6 +3615,8 @@ public Builder addAllNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3284,6 +3634,8 @@ public Builder clearNetworks() { return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3301,39 +3653,44 @@ public Builder removeNetworks(int index) { return this; } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { return getNetworksFieldBuilder().getBuilder(index); } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { if (networksBuilder_ == null) { - return networks_.get(index); } else { + return networks_.get(index); + } else { return networksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -3341,6 +3698,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3348,49 +3707,57 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( - int index) { - return getNetworksFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { + return getNetworksFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + networksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); networks_ = null; } return networksBuilder_; } - private boolean interactiveSerialConsoleEnabled_ ; + private boolean interactiveSerialConsoleEnabled_; /** + * + * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3398,6 +3765,7 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(
      * 
* * bool interactive_serial_console_enabled = 10; + * * @return The interactiveSerialConsoleEnabled. */ @java.lang.Override @@ -3405,6 +3773,8 @@ public boolean getInteractiveSerialConsoleEnabled() { return interactiveSerialConsoleEnabled_; } /** + * + * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3412,16 +3782,19 @@ public boolean getInteractiveSerialConsoleEnabled() {
      * 
* * bool interactive_serial_console_enabled = 10; + * * @param value The interactiveSerialConsoleEnabled to set. * @return This builder for chaining. */ public Builder setInteractiveSerialConsoleEnabled(boolean value) { - + interactiveSerialConsoleEnabled_ = value; onChanged(); return this; } /** + * + * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3429,10 +3802,11 @@ public Builder setInteractiveSerialConsoleEnabled(boolean value) {
      * 
* * bool interactive_serial_console_enabled = 10; + * * @return This builder for chaining. */ public Builder clearInteractiveSerialConsoleEnabled() { - + interactiveSerialConsoleEnabled_ = false; onChanged(); return this; @@ -3440,18 +3814,20 @@ public Builder clearInteractiveSerialConsoleEnabled() { private java.lang.Object osImage_ = ""; /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @return The osImage. */ public java.lang.String getOsImage() { java.lang.Object ref = osImage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osImage_ = s; return s; @@ -3460,20 +3836,21 @@ public java.lang.String getOsImage() { } } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @return The bytes for osImage. */ - public com.google.protobuf.ByteString - getOsImageBytes() { + public com.google.protobuf.ByteString getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); osImage_ = b; return b; } else { @@ -3481,54 +3858,61 @@ public java.lang.String getOsImage() { } } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @param value The osImage to set. * @return This builder for chaining. */ - public Builder setOsImage( - java.lang.String value) { + public Builder setOsImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + osImage_ = value; onChanged(); return this; } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @return This builder for chaining. */ public Builder clearOsImage() { - + osImage_ = getDefaultInstance().getOsImage(); onChanged(); return this; } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @param value The bytes for osImage to set. * @return This builder for chaining. */ - public Builder setOsImageBytes( - com.google.protobuf.ByteString value) { + public Builder setOsImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + osImage_ = value; onChanged(); return this; @@ -3536,6 +3920,8 @@ public Builder setOsImageBytes( private java.lang.Object pod_ = ""; /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3544,13 +3930,13 @@ public Builder setOsImageBytes(
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -3559,6 +3945,8 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3567,15 +3955,14 @@ public java.lang.String getPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -3583,6 +3970,8 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3591,20 +3980,22 @@ public java.lang.String getPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod( - java.lang.String value) { + public Builder setPod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3613,15 +4004,18 @@ public Builder setPod(
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3630,16 +4024,16 @@ public Builder clearPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes( - com.google.protobuf.ByteString value) { + public Builder setPodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = value; onChanged(); return this; @@ -3647,6 +4041,8 @@ public Builder setPodBytes( private java.lang.Object networkTemplate_ = ""; /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3654,13 +4050,13 @@ public Builder setPodBytes(
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The networkTemplate. */ public java.lang.String getNetworkTemplate() { java.lang.Object ref = networkTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkTemplate_ = s; return s; @@ -3669,6 +4065,8 @@ public java.lang.String getNetworkTemplate() { } } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3676,15 +4074,14 @@ public java.lang.String getNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for networkTemplate. */ - public com.google.protobuf.ByteString - getNetworkTemplateBytes() { + public com.google.protobuf.ByteString getNetworkTemplateBytes() { java.lang.Object ref = networkTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkTemplate_ = b; return b; } else { @@ -3692,6 +4089,8 @@ public java.lang.String getNetworkTemplate() { } } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3699,20 +4098,22 @@ public java.lang.String getNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @param value The networkTemplate to set. * @return This builder for chaining. */ - public Builder setNetworkTemplate( - java.lang.String value) { + public Builder setNetworkTemplate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + networkTemplate_ = value; onChanged(); return this; } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3720,15 +4121,18 @@ public Builder setNetworkTemplate(
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearNetworkTemplate() { - + networkTemplate_ = getDefaultInstance().getNetworkTemplate(); onChanged(); return this; } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3736,34 +4140,42 @@ public Builder clearNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for networkTemplate to set. * @return This builder for chaining. */ - public Builder setNetworkTemplateBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkTemplateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkTemplate_ = value; onChanged(); return this; } - private java.util.List logicalInterfaces_ = - java.util.Collections.emptyList(); + private java.util.List + logicalInterfaces_ = java.util.Collections.emptyList(); + private void ensureLogicalInterfacesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); + logicalInterfaces_ = + new java.util.ArrayList( + logicalInterfaces_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; + com.google.cloud.baremetalsolution.v2.LogicalInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> + logicalInterfacesBuilder_; /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3774,9 +4186,11 @@ private void ensureLogicalInterfacesIsMutable() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public java.util.List getLogicalInterfacesList() { + public java.util.List + getLogicalInterfacesList() { if (logicalInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalInterfaces_); } else { @@ -3784,6 +4198,8 @@ public java.util.List ge } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3794,7 +4210,8 @@ public java.util.List ge
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public int getLogicalInterfacesCount() { if (logicalInterfacesBuilder_ == null) { @@ -3804,6 +4221,8 @@ public int getLogicalInterfacesCount() { } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3814,7 +4233,8 @@ public int getLogicalInterfacesCount() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -3824,6 +4244,8 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3834,7 +4256,8 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder setLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { @@ -3851,6 +4274,8 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3861,7 +4286,8 @@ public Builder setLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder setLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -3875,6 +4301,8 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3885,9 +4313,11 @@ public Builder setLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface value) { + public Builder addLogicalInterfaces( + com.google.cloud.baremetalsolution.v2.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3901,6 +4331,8 @@ public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.Logica return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3911,7 +4343,8 @@ public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.Logica
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { @@ -3928,6 +4361,8 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3938,7 +4373,8 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addLogicalInterfaces( com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -3952,6 +4388,8 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3962,7 +4400,8 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -3976,6 +4415,8 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3986,14 +4427,15 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addAllLogicalInterfaces( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logicalInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalInterfaces_); onChanged(); } else { logicalInterfacesBuilder_.addAllMessages(values); @@ -4001,6 +4443,8 @@ public Builder addAllLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4011,7 +4455,8 @@ public Builder addAllLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder clearLogicalInterfaces() { if (logicalInterfacesBuilder_ == null) { @@ -4024,6 +4469,8 @@ public Builder clearLogicalInterfaces() { return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4034,7 +4481,8 @@ public Builder clearLogicalInterfaces() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder removeLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -4047,6 +4495,8 @@ public Builder removeLogicalInterfaces(int index) { return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4057,13 +4507,16 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder getLogicalInterfacesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder + getLogicalInterfacesBuilder(int index) { return getLogicalInterfacesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4074,16 +4527,20 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder getLogical
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { if (logicalInterfacesBuilder_ == null) { - return logicalInterfaces_.get(index); } else { + return logicalInterfaces_.get(index); + } else { return logicalInterfacesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4094,10 +4551,11 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogica
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public java.util.List - getLogicalInterfacesOrBuilderList() { + public java.util.List + getLogicalInterfacesOrBuilderList() { if (logicalInterfacesBuilder_ != null) { return logicalInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -4105,6 +4563,8 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogica } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4115,13 +4575,17 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogica
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder() { - return getLogicalInterfacesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder + addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4132,14 +4596,18 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogical
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder( - int index) { - return getLogicalInterfacesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder + addLogicalInterfacesBuilder(int index) { + return getLogicalInterfacesFieldBuilder() + .addBuilder( + index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4150,18 +4618,25 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogical
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public java.util.List - getLogicalInterfacesBuilderList() { + public java.util.List + getLogicalInterfacesBuilderList() { return getLogicalInterfacesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.LogicalInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> getLogicalInterfacesFieldBuilder() { if (logicalInterfacesBuilder_ == null) { - logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( + logicalInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( logicalInterfaces_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -4170,9 +4645,9 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogical } return logicalInterfacesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4182,12 +4657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Instance) private static final com.google.cloud.baremetalsolution.v2.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Instance(); } @@ -4196,16 +4671,16 @@ public static com.google.cloud.baremetalsolution.v2.Instance getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4220,6 +4695,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java similarity index 83% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java index eccecfd..d375ed9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -17,10 +35,13 @@ public interface InstanceOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -30,86 +51,115 @@ public interface InstanceOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * The server type.
    * [Available server
@@ -117,10 +167,13 @@ public interface InstanceOrBuilder extends
    * 
* * string machine_type = 4; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * The server type.
    * [Available server
@@ -128,42 +181,53 @@ public interface InstanceOrBuilder extends
    * 
* * string machine_type = 4; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Instance.State getState(); /** + * + * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; + * * @return The hyperthreadingEnabled. */ boolean getHyperthreadingEnabled(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -172,30 +236,31 @@ public interface InstanceOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -204,31 +269,34 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List - getLunsList(); + java.util.List getLunsList(); /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -237,6 +305,8 @@ java.lang.String getLabelsOrThrow( */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -245,34 +315,40 @@ java.lang.String getLabelsOrThrow( */ int getLunsCount(); /** + * + * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** + * + * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); /** + * + * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List - getNetworksList(); + java.util.List getNetworksList(); /** + * + * *
    * List of networks associated with this server.
    * 
@@ -281,6 +357,8 @@ com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** + * + * *
    * List of networks associated with this server.
    * 
@@ -289,25 +367,30 @@ com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( */ int getNetworksCount(); /** + * + * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** + * + * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); /** + * + * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -315,31 +398,39 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * bool interactive_serial_console_enabled = 10; + * * @return The interactiveSerialConsoleEnabled. */ boolean getInteractiveSerialConsoleEnabled(); /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The osImage. */ java.lang.String getOsImage(); /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The bytes for osImage. */ - com.google.protobuf.ByteString - getOsImageBytes(); + com.google.protobuf.ByteString getOsImageBytes(); /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -348,10 +439,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ java.lang.String getPod(); /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -360,12 +454,14 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - com.google.protobuf.ByteString - getPodBytes(); + com.google.protobuf.ByteString getPodBytes(); /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -373,10 +469,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The networkTemplate. */ java.lang.String getNetworkTemplate(); /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -384,12 +483,14 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for networkTemplate. */ - com.google.protobuf.ByteString - getNetworkTemplateBytes(); + com.google.protobuf.ByteString getNetworkTemplateBytes(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -400,11 +501,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - java.util.List - getLogicalInterfacesList(); + java.util.List getLogicalInterfacesList(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -415,10 +518,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -429,10 +535,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ int getLogicalInterfacesCount(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -443,11 +552,14 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - java.util.List + java.util.List getLogicalInterfacesOrBuilderList(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -458,7 +570,8 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( int index); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java new file mode 100644 index 0000000..7b9b6d4 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java @@ -0,0 +1,325 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class InstanceProto { + private InstanceProto() {} + + 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_baremetalsolution_v2_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/baremetalsolution/v2/inst" + + "ance.proto\022!google.cloud.baremetalsoluti" + + "on.v2\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032+google/cloud/" + + "baremetalsolution/v2/lun.proto\032/google/c" + + "loud/baremetalsolution/v2/network.proto\032" + + " google/protobuf/field_mask.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" + + "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" + + "solution.v2.Instance.State\022\036\n\026hyperthrea" + + "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" + + "gle.cloud.baremetalsolution.v2.Instance." + + "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" + + ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " + + "\003(\0132*.google.cloud.baremetalsolution.v2." + + "Network\022*\n\"interactive_serial_console_en" + + "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" + + "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" + + "baremetalsolution.googleapis.com/ServerN" + + "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" + + "(\01323.google.cloud.baremetalsolution.v2.L" + + "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" + + "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" + + "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" + + "+.google.cloud.baremetalsolution.v2.Inst" + + "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" + + "instance\030\001 \001(\0132+.google.cloud.baremetals" + + "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" + + "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")baremetalsolution.googleapis.com/Instan" + + "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" + + "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" + + "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" + + "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" + + "leapis.com/Instance\"\222\001\n\020DetachLunRequest" + + "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" + + "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" + + "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" + + ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" + + "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" + + "oogle.cloud.baremetalsolution.v2.ServerN" + + "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" + + "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" + + "2W.google.cloud.baremetalsolution.v2.Ser" + + "verNetworkTemplate.LogicalInterface.Inte" + + "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" + + "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" + + "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" + + "n.googleapis.com/ServerNetworkTemplate\022W" + + "projects/{project}/locations/{location}/" + + "serverNetworkTemplate/{server_network_te" + + "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" + + "InstanceResponseB\373\001\n%com.google.cloud.ba" + + "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/baremetalsolution/v2;baremetalsolution\252" + + "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" + + "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" + + "::Cloud::BareMetalSolution::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, + new java.lang.String[] { + "Name", + "Id", + "CreateTime", + "UpdateTime", + "MachineType", + "State", + "HyperthreadingEnabled", + "Labels", + "Luns", + "Networks", + "InteractiveSerialConsoleEnabled", + "OsImage", + "Pod", + "NetworkTemplate", + "LogicalInterfaces", + }); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Instances", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, + new java.lang.String[] { + "Instance", "UpdateMask", + }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, + new java.lang.String[] { + "Instance", "Lun", + }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, + new java.lang.String[] { + "Name", "ApplicableInstanceTypes", "LogicalInterfaces", + }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, + new java.lang.String[] { + "Name", "Type", "Required", + }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, + new java.lang.String[] {}); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java index 7c955f4..8419229 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ -public final class ListInstancesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) ListInstancesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstancesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListInstancesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListInstancesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = + (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.cloud.baremetalsolution.v2.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = + new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * 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. Parent value for ListInstancesRequest.
      * 
* - * string 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. Parent value for ListInstancesRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) private static final com.google.cloud.baremetalsolution.v2.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java index 1d504fd..10c9345 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java index 9d37ccd..69f116a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message for the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ -public final class ListInstancesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) ListInstancesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstancesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,42 @@ private ListInstancesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + instances_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); + break; } - instances_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +116,7 @@ private ListInstancesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -107,22 +128,27 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** + * + * *
    * The list of servers.
    * 
@@ -134,6 +160,8 @@ public java.util.List getInstanc return instances_; } /** + * + * *
    * The list of servers.
    * 
@@ -141,11 +169,13 @@ public java.util.List getInstanc * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public java.util.List + public java.util.List getInstancesOrBuilderList() { return instances_; } /** + * + * *
    * The list of servers.
    * 
@@ -157,6 +187,8 @@ public int getInstancesCount() { return instances_.size(); } /** + * + * *
    * The list of servers.
    * 
@@ -168,6 +200,8 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { return instances_.get(index); } /** + * + * *
    * The list of servers.
    * 
@@ -175,19 +209,21 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index) { return instances_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +232,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.baremetalsolution.v2.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = + (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.cloud.baremetalsolution.v2.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesResponse.newBuilder() @@ -490,17 +543,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInstancesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = + new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) + return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResp instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInstancesFieldBuilder() : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(instances_); + instances_ = + new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instancesBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + instancesBuilder_; /** + * + * *
      * The list of servers.
      * 
@@ -701,6 +767,8 @@ public java.util.List getInstanc } } /** + * + * *
      * The list of servers.
      * 
@@ -715,6 +783,8 @@ public int getInstancesCount() { } } /** + * + * *
      * The list of servers.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { } } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder setInstances( - int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder setInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -768,6 +841,8 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -788,14 +863,15 @@ public Builder addInstances(com.google.cloud.baremetalsolution.v2.Instance value return this; } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder addInstances( - int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder addInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +885,8 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -827,6 +905,8 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -845,6 +925,8 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -855,8 +937,7 @@ public Builder addAllInstances( java.lang.Iterable values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); @@ -864,6 +945,8 @@ public Builder addAllInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -881,6 +964,8 @@ public Builder clearInstances() { return this; } /** + * + * *
      * The list of servers.
      * 
@@ -898,17 +983,20 @@ public Builder removeInstances(int index) { return this; } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder(int index) { return getInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of servers.
      * 
@@ -918,19 +1006,22 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilde public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( int index) { if (instancesBuilder_ == null) { - return instances_.get(index); } else { + return instances_.get(index); + } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1029,8 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui } } /** + * + * *
      * The list of servers.
      * 
@@ -945,42 +1038,48 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + return getInstancesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder( - int index) { - return getInstancesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - instances_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; @@ -988,18 +1087,20 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1109,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1131,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1244,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1337,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1370,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) private static final com.google.cloud.baremetalsolution.v2.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(); } @@ -1253,16 +1384,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1408,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java index 5523911..65768d2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List - getInstancesList(); + java.util.List getInstancesList(); /** + * + * *
    * The list of servers.
    * 
@@ -25,6 +44,8 @@ public interface ListInstancesResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Instance getInstances(int index); /** + * + * *
    * The list of servers.
    * 
@@ -33,82 +54,100 @@ public interface ListInstancesResponseOrBuilder extends */ int getInstancesCount(); /** + * + * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** + * + * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java index 78bf806..625cb29 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ -public final class ListLunsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) ListLunsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLunsRequest.newBuilder() to construct. private ListLunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLunsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListLunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListLunsRequest( 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,34 +104,41 @@ private ListLunsRequest( } 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.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -121,29 +147,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. Parent value for ListLunsRequest.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -154,12 +182,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -170,11 +201,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -183,29 +217,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -214,6 +248,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -249,8 +283,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_); @@ -263,19 +296,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.baremetalsolution.v2.ListLunsRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsRequest other = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) obj; + com.google.cloud.baremetalsolution.v2.ListLunsRequest other = + (com.google.cloud.baremetalsolution.v2.ListLunsRequest) 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; } @@ -299,117 +330,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.cloud.baremetalsolution.v2.ListLunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsRequest.newBuilder() @@ -417,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 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override @@ -461,7 +501,8 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsRequest result = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); + com.google.cloud.baremetalsolution.v2.ListLunsRequest result = + new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -473,38 +514,39 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest) other); } else { super.mergeFrom(other); return this; @@ -512,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -543,7 +586,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -555,18 +599,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * string parent = 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; @@ -575,20 +623,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * string parent = 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 { @@ -596,67 +647,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * 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. Parent value for ListLunsRequest.
      * 
* - * string 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. Parent value for ListLunsRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -664,32 +731,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -697,18 +770,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -717,20 +792,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -738,61 +814,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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); } @@ -802,12 +885,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) private static final com.google.cloud.baremetalsolution.v2.ListLunsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(); } @@ -816,16 +899,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +923,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java index 633ab6f..c79ee15 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java @@ -1,60 +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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsRequestOrBuilder extends +public interface ListLunsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * string parent = 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. Parent value for ListLunsRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java index 46512a7..e1c0471 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ -public final class ListLunsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) ListLunsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLunsResponse.newBuilder() to construct. private ListLunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLunsResponse() { luns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListLunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListLunsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + luns_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; } - luns_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListLunsResponse( } 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)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -107,22 +127,27 @@ private ListLunsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } public static final int LUNS_FIELD_NUMBER = 1; private java.util.List luns_; /** + * + * *
    * The list of luns.
    * 
@@ -134,6 +159,8 @@ public java.util.List getLunsList() { return luns_; } /** + * + * *
    * The list of luns.
    * 
@@ -141,11 +168,13 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** + * + * *
    * The list of luns.
    * 
@@ -157,6 +186,8 @@ public int getLunsCount() { return luns_.size(); } /** + * + * *
    * The list of luns.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** + * + * *
    * The list of luns.
    * 
@@ -175,19 +208,21 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { return luns_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +231,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +264,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +307,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < luns_.size(); i++) { output.writeMessage(1, luns_.get(i)); } @@ -310,8 +355,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, luns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +376,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsResponse other = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; + com.google.cloud.baremetalsolution.v2.ListLunsResponse other = + (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; - if (!getLunsList() - .equals(other.getLunsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getLunsList().equals(other.getLunsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +414,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.cloud.baremetalsolution.v2.ListLunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsResponse.newBuilder() @@ -490,17 +542,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLunsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override @@ -539,7 +591,8 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsResponse result = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); + com.google.cloud.baremetalsolution.v2.ListLunsResponse result = + new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); int from_bitField0_ = bitField0_; if (lunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +617,39 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) + return this; if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -622,9 +677,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000001); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLunsFieldBuilder() : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLunsFieldBuilder() + : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -663,7 +719,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +729,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List luns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> + lunsBuilder_; /** + * + * *
      * The list of luns.
      * 
@@ -701,6 +765,8 @@ public java.util.List getLunsList() { } } /** + * + * *
      * The list of luns.
      * 
@@ -715,6 +781,8 @@ public int getLunsCount() { } } /** + * + * *
      * The list of luns.
      * 
@@ -729,14 +797,15 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder setLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +819,8 @@ public Builder setLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -768,6 +839,8 @@ public Builder setLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -788,14 +861,15 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,14 +883,15 @@ public Builder addLuns( return this; } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns( - com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -827,6 +902,8 @@ public Builder addLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -845,6 +922,8 @@ public Builder addLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -855,8 +934,7 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -864,6 +942,8 @@ public Builder addAllLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -881,6 +961,8 @@ public Builder clearLuns() { return this; } /** + * + * *
      * The list of luns.
      * 
@@ -898,39 +980,44 @@ public Builder removeLuns(int index) { return this; } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { return getLunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { if (lunsBuilder_ == null) { - return luns_.get(index); } else { + return luns_.get(index); + } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1025,8 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( } } /** + * + * *
      * The list of luns.
      * 
@@ -945,42 +1034,47 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( - int index) { - return getLunsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { + return getLunsFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List - getLunsBuilderList() { + public java.util.List getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + lunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); luns_ = null; } return lunsBuilder_; @@ -988,18 +1082,20 @@ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1104,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1126,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1239,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1332,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1365,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) private static final com.google.cloud.baremetalsolution.v2.ListLunsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(); } @@ -1253,16 +1379,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1403,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java index 23a95a3..4e01c38 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsResponseOrBuilder extends +public interface ListLunsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List - getLunsList(); + java.util.List getLunsList(); /** + * + * *
    * The list of luns.
    * 
@@ -25,6 +44,8 @@ public interface ListLunsResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** + * + * *
    * The list of luns.
    * 
@@ -33,82 +54,100 @@ public interface ListLunsResponseOrBuilder extends */ int getLunsCount(); /** + * + * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** + * + * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java index 4c7201a..98e6e14 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Request to get networks with IPs.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} */ -public final class ListNetworkUsageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworkUsageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) ListNetworkUsageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworkUsageRequest.newBuilder() to construct. private ListNetworkUsageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworkUsageRequest() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNetworkUsageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworkUsageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ListNetworkUsageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + location_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private ListNetworkUsageRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** + * + * *
    * Required. Parent value (project and location).
    * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The location. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
    * Required. Parent value (project and location).
    * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getLocation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to get networks with IPs.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,13 +377,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance(); } @@ -362,7 +399,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = + new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); result.location_ = location_; onBuilt(); return result; @@ -372,38 +410,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +450,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) + return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -435,7 +476,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +490,22 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -467,20 +514,23 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -488,61 +538,74 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +615,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(); } @@ -566,16 +630,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworkUsageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworkUsageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java new file mode 100644 index 0000000..05ccf8f --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ListNetworkUsageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value (project and location).
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+   * Required. Parent value (project and location).
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java index 470b090..78f0f77 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response with Networks with IPs
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} */ -public final class ListNetworkUsageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworkUsageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) ListNetworkUsageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworkUsageResponse.newBuilder() to construct. private ListNetworkUsageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworkUsageResponse() { networks_ = 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 ListNetworkUsageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworkUsageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,26 @@ private ListNetworkUsageResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + networks_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NetworkUsage.parser(), + extensionRegistry)); + break; } - networks_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkUsage.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 +98,7 @@ private ListNetworkUsageResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -87,22 +107,27 @@ private ListNetworkUsageResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** + * + * *
    * Networks with IPs.
    * 
@@ -114,6 +139,8 @@ public java.util.List getNet return networks_; } /** + * + * *
    * Networks with IPs.
    * 
@@ -121,11 +148,13 @@ public java.util.List getNet * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** + * + * *
    * Networks with IPs.
    * 
@@ -137,6 +166,8 @@ public int getNetworksCount() { return networks_.size(); } /** + * + * *
    * Networks with IPs.
    * 
@@ -148,6 +179,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) return networks_.get(index); } /** + * + * *
    * Networks with IPs.
    * 
@@ -161,6 +194,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -187,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +230,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +260,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 with Networks with IPs
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.newBuilder() @@ -346,17 +388,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) { getNetworksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +412,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance(); } @@ -391,7 +434,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = + new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +454,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) other); } else { super.mergeFrom(other); return this; @@ -449,7 +494,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) + return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -468,9 +515,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageR networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -495,7 +543,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +554,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(networks_); + networks_ = + new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> networksBuilder_; + com.google.cloud.baremetalsolution.v2.NetworkUsage, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> + networksBuilder_; /** + * + * *
      * Networks with IPs.
      * 
@@ -533,6 +591,8 @@ public java.util.List getNet } } /** + * + * *
      * Networks with IPs.
      * 
@@ -547,6 +607,8 @@ public int getNetworksCount() { } } /** + * + * *
      * Networks with IPs.
      * 
@@ -561,6 +623,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) } } /** + * + * *
      * Networks with IPs.
      * 
@@ -582,6 +646,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -600,6 +666,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -620,6 +688,8 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.NetworkUsage va return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -641,6 +711,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -659,6 +731,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -677,6 +751,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -687,8 +763,7 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -696,6 +771,8 @@ public Builder addAllNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -713,6 +790,8 @@ public Builder clearNetworks() { return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -730,6 +809,8 @@ public Builder removeNetworks(int index) { return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -741,6 +822,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBui return getNetworksFieldBuilder().getBuilder(index); } /** + * + * *
      * Networks with IPs.
      * 
@@ -750,19 +833,22 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBui public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( int index) { if (networksBuilder_ == null) { - return networks_.get(index); } else { + return networks_.get(index); + } else { return networksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Networks with IPs.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +856,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr } } /** + * + * *
      * Networks with IPs.
      * 
@@ -777,10 +865,12 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder() { - return getNetworksFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); } /** + * + * *
      * Networks with IPs.
      * 
@@ -789,37 +879,43 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBui */ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder( int index) { - return getNetworksFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder( + index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); } /** + * + * *
      * Networks with IPs.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> + com.google.cloud.baremetalsolution.v2.NetworkUsage, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( - networks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + networksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkUsage, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( + networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); networks_ = null; } return networksBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,30 +925,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) - private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworkUsageResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworkUsageResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,9 +962,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java index 6d55ac6..ef8a66b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworkUsageResponseOrBuilder extends +public interface ListNetworkUsageResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - java.util.List - getNetworksList(); + java.util.List getNetworksList(); /** + * + * *
    * Networks with IPs.
    * 
@@ -25,6 +44,8 @@ public interface ListNetworkUsageResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index); /** + * + * *
    * Networks with IPs.
    * 
@@ -33,21 +54,24 @@ public interface ListNetworkUsageResponseOrBuilder extends */ int getNetworksCount(); /** + * + * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** + * + * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java index 02b44ee..276a02f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ -public final class ListNetworksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) ListNetworksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworksRequest.newBuilder() to construct. private ListNetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworksRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListNetworksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNetworksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListNetworksRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListNetworksRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListNetworksRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = + (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.cloud.baremetalsolution.v2.ListNetworksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = + new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * 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. Parent value for ListNetworksRequest.
      * 
* - * string 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. Parent value for ListNetworksRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) private static final com.google.cloud.baremetalsolution.v2.ListNetworksRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java index 4c26a87..f0ccc2f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksRequestOrBuilder extends +public interface ListNetworksRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java index f98c159..ce6d426 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ -public final class ListNetworksResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworksResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) ListNetworksResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworksResponse.newBuilder() to construct. private ListNetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworksResponse() { networks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListNetworksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNetworksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,42 @@ private ListNetworksResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + networks_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; } - networks_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +116,7 @@ private ListNetworksResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -107,22 +128,27 @@ private ListNetworksResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** + * + * *
    * The list of networks.
    * 
@@ -134,6 +160,8 @@ public java.util.List getNetworks return networks_; } /** + * + * *
    * The list of networks.
    * 
@@ -141,11 +169,13 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** + * + * *
    * The list of networks.
    * 
@@ -157,6 +187,8 @@ public int getNetworksCount() { return networks_.size(); } /** + * + * *
    * The list of networks.
    * 
@@ -168,6 +200,8 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** + * + * *
    * The list of networks.
    * 
@@ -175,19 +209,21 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { return networks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +232,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.baremetalsolution.v2.ListNetworksResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = + (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.cloud.baremetalsolution.v2.ListNetworksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksResponse.newBuilder() @@ -490,17 +543,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) { getNetworksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = + new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) + return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRespo networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(networks_); + networks_ = + new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networksBuilder_; /** + * + * *
      * The list of networks.
      * 
@@ -701,6 +767,8 @@ public java.util.List getNetworks } } /** + * + * *
      * The list of networks.
      * 
@@ -715,6 +783,8 @@ public int getNetworksCount() { } } /** + * + * *
      * The list of networks.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder setNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -768,6 +841,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -788,14 +863,15 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder addNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +885,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -827,6 +905,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -845,6 +925,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -855,8 +937,7 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -864,6 +945,8 @@ public Builder addAllNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -881,6 +964,8 @@ public Builder clearNetworks() { return this; } /** + * + * *
      * The list of networks.
      * 
@@ -898,39 +983,44 @@ public Builder removeNetworks(int index) { return this; } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { return getNetworksFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { if (networksBuilder_ == null) { - return networks_.get(index); } else { + return networks_.get(index); + } else { return networksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1028,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** + * + * *
      * The list of networks.
      * 
@@ -945,42 +1037,48 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( - int index) { - return getNetworksFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { + return getNetworksFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + networksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); networks_ = null; } return networksBuilder_; @@ -988,18 +1086,20 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1108,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1130,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1243,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1336,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1369,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) private static final com.google.cloud.baremetalsolution.v2.ListNetworksResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(); } @@ -1253,16 +1383,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1407,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java index 8b09c36..8718101 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksResponseOrBuilder extends +public interface ListNetworksResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List - getNetworksList(); + java.util.List getNetworksList(); /** + * + * *
    * The list of networks.
    * 
@@ -25,6 +44,8 @@ public interface ListNetworksResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** + * + * *
    * The list of networks.
    * 
@@ -33,82 +54,100 @@ public interface ListNetworksResponseOrBuilder extends */ int getNetworksCount(); /** + * + * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** + * + * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java index 27cd94f..ff77931 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of NFS shares.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} */ -public final class ListNfsSharesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNfsSharesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) ListNfsSharesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNfsSharesRequest.newBuilder() to construct. private ListNfsSharesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNfsSharesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListNfsSharesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNfsSharesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNfsSharesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListNfsSharesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListNfsSharesRequest( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListNfsSharesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of NFS shares.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) com.google.cloud.baremetalsolution.v2.ListNfsSharesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = + new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * 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. Parent value for ListNfsSharesRequest.
      * 
* - * string 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. Parent value for ListNfsSharesRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNfsSharesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNfsSharesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java index c1029fe..195f826 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNfsSharesRequestOrBuilder extends +public interface ListNfsSharesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java index 95fe371..c9c1e94 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of NFS shares.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} */ -public final class ListNfsSharesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNfsSharesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) ListNfsSharesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNfsSharesResponse.newBuilder() to construct. private ListNfsSharesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNfsSharesResponse() { nfsShares_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListNfsSharesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNfsSharesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNfsSharesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,42 @@ private ListNfsSharesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nfsShares_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nfsShares_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nfsShares_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); + break; } - nfsShares_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +116,7 @@ private ListNfsSharesResponse( } 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)) { nfsShares_ = java.util.Collections.unmodifiableList(nfsShares_); @@ -107,22 +128,27 @@ private ListNfsSharesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); } public static final int NFS_SHARES_FIELD_NUMBER = 1; private java.util.List nfsShares_; /** + * + * *
    * The list of NFS shares.
    * 
@@ -134,6 +160,8 @@ public java.util.List getNfsShar return nfsShares_; } /** + * + * *
    * The list of NFS shares.
    * 
@@ -141,11 +169,13 @@ public java.util.List getNfsShar * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNfsSharesOrBuilderList() { return nfsShares_; } /** + * + * *
    * The list of NFS shares.
    * 
@@ -157,6 +187,8 @@ public int getNfsSharesCount() { return nfsShares_.size(); } /** + * + * *
    * The list of NFS shares.
    * 
@@ -168,6 +200,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { return nfsShares_.get(index); } /** + * + * *
    * The list of NFS shares.
    * 
@@ -175,19 +209,21 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder(int index) { return nfsShares_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +232,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < nfsShares_.size(); i++) { output.writeMessage(1, nfsShares_.get(i)); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nfsShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nfsShares_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nfsShares_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.baremetalsolution.v2.ListNfsSharesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; - if (!getNfsSharesList() - .equals(other.getNfsSharesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getNfsSharesList().equals(other.getNfsSharesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of NFS shares.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) com.google.cloud.baremetalsolution.v2.ListNfsSharesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.newBuilder() @@ -490,17 +543,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) { getNfsSharesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = + new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); int from_bitField0_ = bitField0_; if (nfsSharesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) + return this; if (nfsSharesBuilder_ == null) { if (!other.nfsShares_.isEmpty()) { if (nfsShares_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResp nfsSharesBuilder_ = null; nfsShares_ = other.nfsShares_; bitField0_ = (bitField0_ & ~0x00000001); - nfsSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNfsSharesFieldBuilder() : null; + nfsSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNfsSharesFieldBuilder() + : null; } else { nfsSharesBuilder_.addAllMessages(other.nfsShares_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List nfsShares_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNfsSharesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsShares_ = new java.util.ArrayList(nfsShares_); + nfsShares_ = + new java.util.ArrayList(nfsShares_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsSharesBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + nfsSharesBuilder_; /** + * + * *
      * The list of NFS shares.
      * 
@@ -701,6 +767,8 @@ public java.util.List getNfsShar } } /** + * + * *
      * The list of NFS shares.
      * 
@@ -715,6 +783,8 @@ public int getNfsSharesCount() { } } /** + * + * *
      * The list of NFS shares.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { } } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public Builder setNfsShares( - int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + public Builder setNfsShares(int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -768,6 +841,8 @@ public Builder setNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -788,14 +863,15 @@ public Builder addNfsShares(com.google.cloud.baremetalsolution.v2.NfsShare value return this; } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public Builder addNfsShares( - int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + public Builder addNfsShares(int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +885,8 @@ public Builder addNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -827,6 +905,8 @@ public Builder addNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -845,6 +925,8 @@ public Builder addNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -855,8 +937,7 @@ public Builder addAllNfsShares( java.lang.Iterable values) { if (nfsSharesBuilder_ == null) { ensureNfsSharesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nfsShares_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsShares_); onChanged(); } else { nfsSharesBuilder_.addAllMessages(values); @@ -864,6 +945,8 @@ public Builder addAllNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -881,6 +964,8 @@ public Builder clearNfsShares() { return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -898,17 +983,20 @@ public Builder removeNfsShares(int index) { return this; } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder(int index) { return getNfsSharesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of NFS shares.
      * 
@@ -918,19 +1006,22 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilde public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( int index) { if (nfsSharesBuilder_ == null) { - return nfsShares_.get(index); } else { + return nfsShares_.get(index); + } else { return nfsSharesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public java.util.List - getNfsSharesOrBuilderList() { + public java.util.List + getNfsSharesOrBuilderList() { if (nfsSharesBuilder_ != null) { return nfsSharesBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1029,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBui } } /** + * + * *
      * The list of NFS shares.
      * 
@@ -945,42 +1038,48 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBui * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder() { - return getNfsSharesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + return getNfsSharesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder( - int index) { - return getNfsSharesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder(int index) { + return getNfsSharesFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public java.util.List - getNfsSharesBuilderList() { + public java.util.List + getNfsSharesBuilderList() { return getNfsSharesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> getNfsSharesFieldBuilder() { if (nfsSharesBuilder_ == null) { - nfsSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( - nfsShares_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + nfsSharesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + nfsShares_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nfsShares_ = null; } return nfsSharesBuilder_; @@ -988,18 +1087,20 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1109,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1131,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1244,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1337,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1370,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(); } @@ -1253,16 +1384,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNfsSharesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNfsSharesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1408,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java index 4e3cedd..219771e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNfsSharesResponseOrBuilder extends +public interface ListNfsSharesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - java.util.List - getNfsSharesList(); + java.util.List getNfsSharesList(); /** + * + * *
    * The list of NFS shares.
    * 
@@ -25,6 +44,8 @@ public interface ListNfsSharesResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index); /** + * + * *
    * The list of NFS shares.
    * 
@@ -33,82 +54,100 @@ public interface ListNfsSharesResponseOrBuilder extends */ int getNfsSharesCount(); /** + * + * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - java.util.List + java.util.List getNfsSharesOrBuilderList(); /** + * + * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java index 3fb2e23..31b65d9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ -public final class ListVolumesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVolumesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) ListVolumesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVolumesRequest.newBuilder() to construct. private ListVolumesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVolumesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListVolumesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVolumesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVolumesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListVolumesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListVolumesRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListVolumesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = + (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.cloud.baremetalsolution.v2.ListVolumesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = + new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * 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. Parent value for ListVolumesRequest.
      * 
* - * string 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. Parent value for ListVolumesRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) private static final com.google.cloud.baremetalsolution.v2.ListVolumesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java index 4b30dd3..6db8315 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesRequestOrBuilder extends +public interface ListVolumesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java index 0af4bba..06aba84 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ -public final class ListVolumesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVolumesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) ListVolumesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVolumesResponse.newBuilder() to construct. private ListVolumesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVolumesResponse() { volumes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListVolumesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVolumesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVolumesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListVolumesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + volumes_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); + break; } - volumes_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListVolumesResponse( } 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)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); @@ -107,22 +127,27 @@ private ListVolumesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } public static final int VOLUMES_FIELD_NUMBER = 1; private java.util.List volumes_; /** + * + * *
    * The list of storage volumes.
    * 
@@ -134,6 +159,8 @@ public java.util.List getVolumesLi return volumes_; } /** + * + * *
    * The list of storage volumes.
    * 
@@ -141,11 +168,13 @@ public java.util.List getVolumesLi * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** + * + * *
    * The list of storage volumes.
    * 
@@ -157,6 +186,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * The list of storage volumes.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * The list of storage volumes.
    * 
@@ -175,19 +208,21 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { return volumes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +231,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +264,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +307,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(1, volumes_.get(i)); } @@ -310,8 +355,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +376,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = + (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; - if (!getVolumesList() - .equals(other.getVolumesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getVolumesList().equals(other.getVolumesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +414,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.cloud.baremetalsolution.v2.ListVolumesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesResponse.newBuilder() @@ -490,17 +542,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVolumesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override @@ -539,7 +591,8 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = + new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); int from_bitField0_ = bitField0_; if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +617,39 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) + return this; if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { @@ -622,9 +677,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRespon volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); - volumesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVolumesFieldBuilder() : null; + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVolumesFieldBuilder() + : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } @@ -663,7 +719,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +729,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List volumes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumesBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + volumesBuilder_; /** + * + * *
      * The list of storage volumes.
      * 
@@ -701,6 +765,8 @@ public java.util.List getVolumesLi } } /** + * + * *
      * The list of storage volumes.
      * 
@@ -715,6 +781,8 @@ public int getVolumesCount() { } } /** + * + * *
      * The list of storage volumes.
      * 
@@ -729,14 +797,15 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { } } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder setVolumes( - int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder setVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +819,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -768,6 +839,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -788,14 +861,15 @@ public Builder addVolumes(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder addVolumes( - int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder addVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +883,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -827,6 +903,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -845,6 +923,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -855,8 +935,7 @@ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); @@ -864,6 +943,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -881,6 +962,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -898,39 +981,44 @@ public Builder removeVolumes(int index) { return this; } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder(int index) { return getVolumesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { if (volumesBuilder_ == null) { - return volumes_.get(index); } else { + return volumes_.get(index); + } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1026,8 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder } } /** + * + * *
      * The list of storage volumes.
      * 
@@ -945,42 +1035,48 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder( - int index) { - return getVolumesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder(int index) { + return getVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesBuilderList() { + public java.util.List + getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - volumes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + volumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + volumes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; @@ -988,18 +1084,20 @@ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1106,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1128,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1241,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1334,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1367,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) private static final com.google.cloud.baremetalsolution.v2.ListVolumesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(); } @@ -1253,16 +1381,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1405,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java index 52657e8..4d4b8f6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesResponseOrBuilder extends +public interface ListVolumesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List - getVolumesList(); + java.util.List getVolumesList(); /** + * + * *
    * The list of storage volumes.
    * 
@@ -25,6 +44,8 @@ public interface ListVolumesResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index); /** + * + * *
    * The list of storage volumes.
    * 
@@ -33,82 +54,100 @@ public interface ListVolumesResponseOrBuilder extends */ int getVolumesCount(); /** + * + * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List + java.util.List getVolumesOrBuilderList(); /** + * + * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java index e418612..2a49f8b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Each logical interface represents a logical abstraction of the underlying
  * physical interface (for eg. bond, nic) of the instance. Each logical
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface}
  */
-public final class LogicalInterface extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LogicalInterface extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface)
     LogicalInterfaceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LogicalInterface.newBuilder() to construct.
   private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LogicalInterface() {
     logicalNetworkInterfaces_ = java.util.Collections.emptyList();
     name_ = "";
@@ -29,16 +47,15 @@ private LogicalInterface() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogicalInterface();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LogicalInterface(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,33 +75,41 @@ private LogicalInterface(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              logicalNetworkInterfaces_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                logicalNetworkInterfaces_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.baremetalsolution.v2.LogicalInterface
+                            .LogicalNetworkInterface>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              logicalNetworkInterfaces_.add(
+                  input.readMessage(
+                      com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface
+                          .parser(),
+                      extensionRegistry));
+              break;
             }
-            logicalNetworkInterfaces_.add(
-                input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 24: {
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            interfaceIndex_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          case 24:
+            {
+              interfaceIndex_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,139 +117,171 @@ private LogicalInterface(
     } 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)) {
-        logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
+        logicalNetworkInterfaces_ =
+            java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.baremetalsolution.v2.NetworkProto
+        .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
+    return com.google.cloud.baremetalsolution.v2.NetworkProto
+        .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.class,
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
   }
 
-  public interface LogicalNetworkInterfaceOrBuilder extends
+  public interface LogicalNetworkInterfaceOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Name of the network
      * 
* * string network = 1; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
      * Name of the network
      * 
* * string network = 1; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
      * Whether this interface is the default gateway for the instance. Only
      * one interface can be the default gateway for the instance.
      * 
* * bool default_gateway = 3; + * * @return The defaultGateway. */ boolean getDefaultGateway(); /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The enum numeric value on the wire for networkType. */ int getNetworkTypeValue(); /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The networkType. */ com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType(); /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @return The id. */ java.lang.String getId(); /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); } /** + * + * *
    * Each logical network interface is effectively a network and IP pair.
    * 
* - * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + * Protobuf type {@code + * google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} */ - public static final class LogicalNetworkInterface extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LogicalNetworkInterface extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) LogicalNetworkInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogicalNetworkInterface.newBuilder() to construct. private LogicalNetworkInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LogicalNetworkInterface() { network_ = ""; ipAddress_ = ""; @@ -234,16 +291,15 @@ private LogicalNetworkInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogicalNetworkInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LogicalNetworkInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -262,42 +318,46 @@ private LogicalNetworkInterface( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - network_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - ipAddress_ = s; - break; - } - case 24: { + network_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - defaultGateway_ = input.readBool(); - break; - } - case 32: { - int rawValue = input.readEnum(); + ipAddress_ = s; + break; + } + case 24: + { + defaultGateway_ = input.readBool(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - networkType_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + networkType_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + id_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -305,34 +365,40 @@ private LogicalNetworkInterface( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + .class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** + * + * *
      * Name of the network
      * 
* * string network = 1; + * * @return The network. */ @java.lang.Override @@ -341,29 +407,29 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
      * Name of the network
      * 
* * string network = 1; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -374,11 +440,14 @@ public java.lang.String getNetwork() { public static final int IP_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object ipAddress_; /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The ipAddress. */ @java.lang.Override @@ -387,29 +456,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -420,12 +489,15 @@ public java.lang.String getIpAddress() { public static final int DEFAULT_GATEWAY_FIELD_NUMBER = 3; private boolean defaultGateway_; /** + * + * *
      * Whether this interface is the default gateway for the instance. Only
      * one interface can be the default gateway for the instance.
      * 
* * bool default_gateway = 3; + * * @return The defaultGateway. */ @java.lang.Override @@ -436,38 +508,52 @@ public boolean getDefaultGateway() { public static final int NETWORK_TYPE_FIELD_NUMBER = 4; private int networkType_; /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The enum numeric value on the wire for networkType. */ - @java.lang.Override public int getNetworkTypeValue() { + @java.lang.Override + public int getNetworkTypeValue() { return networkType_; } /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The networkType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } public static final int ID_FIELD_NUMBER = 5; private volatile java.lang.Object id_; /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @return The id. */ @java.lang.Override @@ -476,29 +562,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; } } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @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 { @@ -507,6 +593,7 @@ public java.lang.String getId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -518,8 +605,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -529,7 +615,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (defaultGateway_ != false) { output.writeBool(3, defaultGateway_); } - if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + if (networkType_ + != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, networkType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { @@ -551,12 +638,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_); } if (defaultGateway_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, defaultGateway_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, defaultGateway_); } - if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, networkType_); + if (networkType_ + != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, networkType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, id_); @@ -569,22 +655,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.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { + if (!(obj + instanceof + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = + (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (getDefaultGateway() - != other.getDefaultGateway()) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (getDefaultGateway() != other.getDefaultGateway()) return false; if (networkType_ != other.networkType_) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getId().equals(other.getId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -601,8 +686,7 @@ public int hashCode() { hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); hash = (37 * hash) + DEFAULT_GATEWAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDefaultGateway()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultGateway()); hash = (37 * hash) + NETWORK_TYPE_FIELD_NUMBER; hash = (53 * hash) + networkType_; hash = (37 * hash) + ID_FIELD_NUMBER; @@ -612,88 +696,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -703,44 +800,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Each logical network interface is effectively a network and IP pair.
      * 
* - * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + * Protobuf type {@code + * google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .class, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .Builder.class); } - // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() + // Construct using + // com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -758,19 +863,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface build() { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = buildPartial(); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + build() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -778,8 +887,11 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface buildPartial() { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(this); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + buildPartial() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = + new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface( + this); result.network_ = network_; result.ipAddress_ = ipAddress_; result.defaultGateway_ = defaultGateway_; @@ -793,46 +905,56 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)other); + if (other + instanceof + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { + return mergeFrom( + (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { - if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { + if (other + == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -866,11 +988,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parsedMessage = null; + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -882,18 +1007,20 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -902,20 +1029,21 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -923,54 +1051,61 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -978,18 +1113,20 @@ public Builder setNetworkBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -998,20 +1135,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -1019,67 +1157,77 @@ public java.lang.String getIpAddress() { } } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private boolean defaultGateway_ ; + private boolean defaultGateway_; /** + * + * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; + * * @return The defaultGateway. */ @java.lang.Override @@ -1087,32 +1235,38 @@ public boolean getDefaultGateway() { return defaultGateway_; } /** + * + * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; + * * @param value The defaultGateway to set. * @return This builder for chaining. */ public Builder setDefaultGateway(boolean value) { - + defaultGateway_ = value; onChanged(); return this; } /** + * + * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; + * * @return This builder for chaining. */ public Builder clearDefaultGateway() { - + defaultGateway_ = false; onChanged(); return this; @@ -1120,51 +1274,67 @@ public Builder clearDefaultGateway() { private int networkType_ = 0; /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The enum numeric value on the wire for networkType. */ - @java.lang.Override public int getNetworkTypeValue() { + @java.lang.Override + public int getNetworkTypeValue() { return networkType_; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @param value The enum numeric value on the wire for networkType to set. * @return This builder for chaining. */ public Builder setNetworkTypeValue(int value) { - + networkType_ = value; onChanged(); return this; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The networkType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @param value The networkType to set. * @return This builder for chaining. */ @@ -1172,21 +1342,24 @@ public Builder setNetworkType(com.google.cloud.baremetalsolution.v2.Network.Type if (value == null) { throw new NullPointerException(); } - + networkType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return This builder for chaining. */ public Builder clearNetworkType() { - + networkType_ = 0; onChanged(); return this; @@ -1194,18 +1367,20 @@ public Builder clearNetworkType() { private java.lang.Object id_ = ""; /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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; @@ -1214,20 +1389,21 @@ public java.lang.String getId() { } } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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 { @@ -1235,58 +1411,66 @@ public java.lang.String getId() { } } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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; } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1299,30 +1483,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) - private static final com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterface + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); + DEFAULT_INSTANCE = + new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalNetworkInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalNetworkInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalNetworkInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalNetworkInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1334,81 +1522,112 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LOGICAL_NETWORK_INTERFACES_FIELD_NUMBER = 1; - private java.util.List logicalNetworkInterfaces_; + private java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + logicalNetworkInterfaces_; /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public java.util.List getLogicalNetworkInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + getLogicalNetworkInterfacesList() { return logicalNetworkInterfaces_; } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesOrBuilderList() { return logicalNetworkInterfaces_; } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override public int getLogicalNetworkInterfacesCount() { return logicalNetworkInterfaces_.size(); } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getLogicalNetworkInterfaces(int index) { return logicalNetworkInterfaces_.get(index); } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder + getLogicalNetworkInterfacesOrBuilder(int index) { return logicalNetworkInterfaces_.get(index); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -1417,30 +1636,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; } } /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * 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 { @@ -1451,12 +1670,15 @@ public java.lang.String getName() { public static final int INTERFACE_INDEX_FIELD_NUMBER = 3; private int interfaceIndex_; /** + * + * *
    * The index of the logical interface mapping to the index of the hardware
    * bond or nic on the chosen network template.
    * 
* * int32 interface_index = 3; + * * @return The interfaceIndex. */ @java.lang.Override @@ -1465,6 +1687,7 @@ public int getInterfaceIndex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1476,8 +1699,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < logicalNetworkInterfaces_.size(); i++) { output.writeMessage(1, logicalNetworkInterfaces_.get(i)); } @@ -1497,15 +1719,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < logicalNetworkInterfaces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, logicalNetworkInterfaces_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, logicalNetworkInterfaces_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (interfaceIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, interfaceIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, interfaceIndex_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1515,19 +1737,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.baremetalsolution.v2.LogicalInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; + com.google.cloud.baremetalsolution.v2.LogicalInterface other = + (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; - if (!getLogicalNetworkInterfacesList() - .equals(other.getLogicalNetworkInterfacesList())) return false; - if (!getName() - .equals(other.getName())) return false; - if (getInterfaceIndex() - != other.getInterfaceIndex()) return false; + if (!getLogicalNetworkInterfacesList().equals(other.getLogicalNetworkInterfacesList())) + return false; + if (!getName().equals(other.getName())) return false; + if (getInterfaceIndex() != other.getInterfaceIndex()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1553,96 +1774,104 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Each logical interface represents a logical abstraction of the underlying
    * physical interface (for eg. bond, nic) of the instance. Each logical
@@ -1652,21 +1881,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface)
       com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.baremetalsolution.v2.NetworkProto
+          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
+      return com.google.cloud.baremetalsolution.v2.NetworkProto
+          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
+              com.google.cloud.baremetalsolution.v2.LogicalInterface.class,
+              com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
     }
 
     // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.newBuilder()
@@ -1674,17 +1905,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) {
         getLogicalNetworkInterfacesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1702,9 +1933,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.baremetalsolution.v2.NetworkProto
+          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
     }
 
     @java.lang.Override
@@ -1723,11 +1954,13 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface build() {
 
     @java.lang.Override
     public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() {
-      com.google.cloud.baremetalsolution.v2.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface(this);
+      com.google.cloud.baremetalsolution.v2.LogicalInterface result =
+          new com.google.cloud.baremetalsolution.v2.LogicalInterface(this);
       int from_bitField0_ = bitField0_;
       if (logicalNetworkInterfacesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
+          logicalNetworkInterfaces_ =
+              java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.logicalNetworkInterfaces_ = logicalNetworkInterfaces_;
@@ -1744,38 +1977,39 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface) {
-        return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface)other);
+        return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1783,7 +2017,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface other) {
-      if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()) return this;
+      if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance())
+        return this;
       if (logicalNetworkInterfacesBuilder_ == null) {
         if (!other.logicalNetworkInterfaces_.isEmpty()) {
           if (logicalNetworkInterfaces_.isEmpty()) {
@@ -1802,9 +2037,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface
             logicalNetworkInterfacesBuilder_ = null;
             logicalNetworkInterfaces_ = other.logicalNetworkInterfaces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            logicalNetworkInterfacesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLogicalNetworkInterfacesFieldBuilder() : null;
+            logicalNetworkInterfacesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLogicalNetworkInterfacesFieldBuilder()
+                    : null;
           } else {
             logicalNetworkInterfacesBuilder_.addAllMessages(other.logicalNetworkInterfaces_);
           }
@@ -1836,7 +2072,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1845,28 +2082,43 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List logicalNetworkInterfaces_ =
-      java.util.Collections.emptyList();
+    private java.util.List<
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>
+        logicalNetworkInterfaces_ = java.util.Collections.emptyList();
+
     private void ensureLogicalNetworkInterfacesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        logicalNetworkInterfaces_ = new java.util.ArrayList(logicalNetworkInterfaces_);
+        logicalNetworkInterfaces_ =
+            new java.util.ArrayList<
+                com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>(
+                logicalNetworkInterfaces_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> logicalNetworkInterfacesBuilder_;
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface,
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder,
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>
+        logicalNetworkInterfacesBuilder_;
 
     /**
+     *
+     *
      * 
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public java.util.List getLogicalNetworkInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + getLogicalNetworkInterfacesList() { if (logicalNetworkInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalNetworkInterfaces_); } else { @@ -1874,11 +2126,15 @@ public java.util.List * List of logical network interfaces within a logical interface. *
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public int getLogicalNetworkInterfacesCount() { if (logicalNetworkInterfacesBuilder_ == null) { @@ -1888,13 +2144,18 @@ public int getLogicalNetworkInterfacesCount() { } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getLogicalNetworkInterfaces(int index) { if (logicalNetworkInterfacesBuilder_ == null) { return logicalNetworkInterfaces_.get(index); } else { @@ -1902,14 +2163,19 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder setLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1923,14 +2189,20 @@ public Builder setLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder setLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.set(index, builderForValue.build()); @@ -1941,13 +2213,18 @@ public Builder setLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public Builder addLogicalNetworkInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + public Builder addLogicalNetworkInterfaces( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1961,14 +2238,19 @@ public Builder addLogicalNetworkInterfaces(com.google.cloud.baremetalsolution.v2 return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1982,14 +2264,19 @@ public Builder addLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addLogicalNetworkInterfaces( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.add(builderForValue.build()); @@ -2000,14 +2287,20 @@ public Builder addLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.add(index, builderForValue.build()); @@ -2018,18 +2311,24 @@ public Builder addLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addAllLogicalNetworkInterfaces( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + values) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logicalNetworkInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalNetworkInterfaces_); onChanged(); } else { logicalNetworkInterfacesBuilder_.addAllMessages(values); @@ -2037,11 +2336,15 @@ public Builder addAllLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder clearLogicalNetworkInterfaces() { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2054,11 +2357,15 @@ public Builder clearLogicalNetworkInterfaces() { return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder removeLogicalNetworkInterfaces(int index) { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2071,39 +2378,55 @@ public Builder removeLogicalNetworkInterfaces(int index) { return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder getLogicalNetworkInterfacesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + getLogicalNetworkInterfacesBuilder(int index) { return getLogicalNetworkInterfacesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder + getLogicalNetworkInterfacesOrBuilder(int index) { if (logicalNetworkInterfacesBuilder_ == null) { - return logicalNetworkInterfaces_.get(index); } else { + return logicalNetworkInterfaces_.get(index); + } else { return logicalNetworkInterfacesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public java.util.List - getLogicalNetworkInterfacesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder> + getLogicalNetworkInterfacesOrBuilderList() { if (logicalNetworkInterfacesBuilder_ != null) { return logicalNetworkInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -2111,45 +2434,72 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder() { - return getLogicalNetworkInterfacesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + addLogicalNetworkInterfacesBuilder() { + return getLogicalNetworkInterfacesFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance()); } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder( - int index) { - return getLogicalNetworkInterfacesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + addLogicalNetworkInterfacesBuilder(int index) { + return getLogicalNetworkInterfacesFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance()); } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public java.util.List - getLogicalNetworkInterfacesBuilderList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder> + getLogicalNetworkInterfacesBuilderList() { return getLogicalNetworkInterfacesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesFieldBuilder() { if (logicalNetworkInterfacesBuilder_ == null) { - logicalNetworkInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>( + logicalNetworkInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder>( logicalNetworkInterfaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2161,19 +2511,21 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte private java.lang.Object name_ = ""; /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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; @@ -2182,21 +2534,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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 { @@ -2204,70 +2557,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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; } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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 int interfaceIndex_ ; + private int interfaceIndex_; /** + * + * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; + * * @return The interfaceIndex. */ @java.lang.Override @@ -2275,39 +2638,45 @@ public int getInterfaceIndex() { return interfaceIndex_; } /** + * + * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; + * * @param value The interfaceIndex to set. * @return This builder for chaining. */ public Builder setInterfaceIndex(int value) { - + interfaceIndex_ = value; onChanged(); return this; } /** + * + * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; + * * @return This builder for chaining. */ public Builder clearInterfaceIndex() { - + interfaceIndex_ = 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); } @@ -2317,12 +2686,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface) private static final com.google.cloud.baremetalsolution.v2.LogicalInterface DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface(); } @@ -2331,16 +2700,16 @@ public static com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2355,6 +2724,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java similarity index 51% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java index da8ff8e..f3faf3f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java @@ -1,85 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface LogicalInterfaceOrBuilder extends +public interface LogicalInterfaceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - java.util.List + java.util.List getLogicalNetworkInterfacesList(); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getLogicalNetworkInterfaces(int index); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ int getLogicalNetworkInterfacesCount(); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesOrBuilderList(); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder + getLogicalNetworkInterfacesOrBuilder(int index); /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The index of the logical interface mapping to the index of the hardware
    * bond or nic on the chosen network template.
    * 
* * int32 interface_index = 3; + * * @return The interfaceIndex. */ int getInterfaceIndex(); diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java index d586da5..cbd6146 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A storage volume logical unit number (LUN).
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ -public final class Lun extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Lun extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Lun) LunOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Lun.newBuilder() to construct. private Lun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Lun() { name_ = ""; id_ = ""; @@ -31,16 +49,15 @@ private Lun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Lun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Lun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,70 +76,77 @@ private Lun( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 24: { - - sizeGb_ = input.readInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - multiprotocolType_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - storageVolume_ = s; - break; - } - case 48: { + state_ = rawValue; + break; + } + case 24: + { + sizeGb_ = input.readInt64(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - shareable_ = input.readBool(); - break; - } - case 56: { + multiprotocolType_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - bootLun_ = input.readBool(); - break; - } - case 64: { - int rawValue = input.readEnum(); + storageVolume_ = s; + break; + } + case 48: + { + shareable_ = input.readBool(); + break; + } + case 56: + { + bootLun_ = input.readBool(); + break; + } + case 64: + { + int rawValue = input.readEnum(); - storageType_ = rawValue; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); + storageType_ = rawValue; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - wwid_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + wwid_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + id_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -130,36 +154,41 @@ private Lun( } 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.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, + com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } /** + * + * *
    * The possible states for the LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The LUN is in an unknown state.
      * 
@@ -168,6 +197,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The LUN is being created.
      * 
@@ -176,6 +207,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The LUN is being updated.
      * 
@@ -184,6 +217,8 @@ public enum State */ UPDATING(2), /** + * + * *
      * The LUN is ready for use.
      * 
@@ -192,6 +227,8 @@ public enum State */ READY(3), /** + * + * *
      * The LUN has been requested to be deleted.
      * 
@@ -203,6 +240,8 @@ public enum State ; /** + * + * *
      * The LUN is in an unknown state.
      * 
@@ -211,6 +250,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The LUN is being created.
      * 
@@ -219,6 +260,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The LUN is being updated.
      * 
@@ -227,6 +270,8 @@ public enum State */ public static final int UPDATING_VALUE = 2; /** + * + * *
      * The LUN is ready for use.
      * 
@@ -235,6 +280,8 @@ public enum State */ public static final int READY_VALUE = 3; /** + * + * *
      * The LUN has been requested to be deleted.
      * 
@@ -243,7 +290,6 @@ public enum State */ public static final int DELETING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -268,51 +314,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return UPDATING; - case 3: return READY; - case 4: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return UPDATING; + case 3: + return READY; + case 4: + return DELETING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -330,15 +378,18 @@ private State(int value) { } /** + * + * *
    * Display the operating systems present for the LUN multiprotocol type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.MultiprotocolType} */ - public enum MultiprotocolType - implements com.google.protobuf.ProtocolMessageEnum { + public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Server has no OS specified.
      * 
@@ -347,6 +398,8 @@ public enum MultiprotocolType */ MULTIPROTOCOL_TYPE_UNSPECIFIED(0), /** + * + * *
      * Server with Linux OS.
      * 
@@ -358,6 +411,8 @@ public enum MultiprotocolType ; /** + * + * *
      * Server has no OS specified.
      * 
@@ -366,6 +421,8 @@ public enum MultiprotocolType */ public static final int MULTIPROTOCOL_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Server with Linux OS.
      * 
@@ -374,7 +431,6 @@ public enum MultiprotocolType */ public static final int LINUX_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -399,9 +455,12 @@ public static MultiprotocolType valueOf(int value) { */ public static MultiprotocolType forNumber(int value) { switch (value) { - case 0: return MULTIPROTOCOL_TYPE_UNSPECIFIED; - case 1: return LINUX; - default: return null; + case 0: + return MULTIPROTOCOL_TYPE_UNSPECIFIED; + case 1: + return LINUX; + default: + return null; } } @@ -409,28 +468,28 @@ public static MultiprotocolType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - MultiprotocolType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MultiprotocolType findValueByNumber(int number) { - return MultiprotocolType.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 MultiprotocolType findValueByNumber(int number) { + return MultiprotocolType.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.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(1); } @@ -439,8 +498,7 @@ public MultiprotocolType findValueByNumber(int number) { public static MultiprotocolType 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; @@ -458,15 +516,18 @@ private MultiprotocolType(int value) { } /** + * + * *
    * The storage types for a LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.StorageType} */ - public enum StorageType - implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The storage type for this LUN is unknown.
      * 
@@ -475,6 +536,8 @@ public enum StorageType */ STORAGE_TYPE_UNSPECIFIED(0), /** + * + * *
      * This storage type for this LUN is SSD.
      * 
@@ -483,6 +546,8 @@ public enum StorageType */ SSD(1), /** + * + * *
      * This storage type for this LUN is HDD.
      * 
@@ -494,6 +559,8 @@ public enum StorageType ; /** + * + * *
      * The storage type for this LUN is unknown.
      * 
@@ -502,6 +569,8 @@ public enum StorageType */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * This storage type for this LUN is SSD.
      * 
@@ -510,6 +579,8 @@ public enum StorageType */ public static final int SSD_VALUE = 1; /** + * + * *
      * This storage type for this LUN is HDD.
      * 
@@ -518,7 +589,6 @@ public enum StorageType */ public static final int HDD_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -543,49 +613,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: return STORAGE_TYPE_UNSPECIFIED; - case 1: return SSD; - case 2: return HDD; - default: return null; + case 0: + return STORAGE_TYPE_UNSPECIFIED; + case 1: + return SSD; + case 2: + return HDD; + 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< - StorageType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.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 StorageType findValueByNumber(int number) { + return StorageType.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.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(2); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -605,11 +675,14 @@ private StorageType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -618,29 +691,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -651,11 +724,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ @java.lang.Override @@ -664,29 +740,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; } } /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @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 { @@ -697,38 +773,50 @@ public java.lang.String getId() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = + com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } public static final int SIZE_GB_FIELD_NUMBER = 3; private long sizeGb_; /** + * + * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; + * * @return The sizeGb. */ @java.lang.Override @@ -739,40 +827,54 @@ public long getSizeGb() { public static final int MULTIPROTOCOL_TYPE_FIELD_NUMBER = 4; private int multiprotocolType_; /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override public int getMultiprotocolTypeValue() { + @java.lang.Override + public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The multiprotocolType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED + : result; } public static final int STORAGE_VOLUME_FIELD_NUMBER = 5; private volatile java.lang.Object storageVolume_; /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The storageVolume. */ @java.lang.Override @@ -781,29 +883,29 @@ public java.lang.String getStorageVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; } } /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for storageVolume. */ @java.lang.Override - public com.google.protobuf.ByteString - getStorageVolumeBytes() { + public com.google.protobuf.ByteString getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -814,11 +916,14 @@ public java.lang.String getStorageVolume() { public static final int SHAREABLE_FIELD_NUMBER = 6; private boolean shareable_; /** + * + * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; + * * @return The shareable. */ @java.lang.Override @@ -829,11 +934,14 @@ public boolean getShareable() { public static final int BOOT_LUN_FIELD_NUMBER = 7; private boolean bootLun_; /** + * + * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; + * * @return The bootLun. */ @java.lang.Override @@ -844,38 +952,52 @@ public boolean getBootLun() { public static final int STORAGE_TYPE_FIELD_NUMBER = 8; private int storageType_; /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The storageType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = + com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED + : result; } public static final int WWID_FIELD_NUMBER = 9; private volatile java.lang.Object wwid_; /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The wwid. */ @java.lang.Override @@ -884,29 +1006,29 @@ public java.lang.String getWwid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; } } /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The bytes for wwid. */ @java.lang.Override - public com.google.protobuf.ByteString - getWwidBytes() { + public com.google.protobuf.ByteString getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); wwid_ = b; return b; } else { @@ -915,6 +1037,7 @@ public java.lang.String getWwid() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -926,8 +1049,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -937,7 +1059,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (sizeGb_ != 0L) { output.writeInt64(3, sizeGb_); } - if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { + if (multiprotocolType_ + != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType + .MULTIPROTOCOL_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { @@ -949,7 +1074,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (bootLun_ != false) { output.writeBool(7, bootLun_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { @@ -971,31 +1098,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.Lun.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (sizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, sizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeGb_); } - if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, multiprotocolType_); + if (multiprotocolType_ + != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType + .MULTIPROTOCOL_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageVolume_); } if (shareable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, shareable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, shareable_); } if (bootLun_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, bootLun_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, bootLun_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, storageType_); + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, wwid_); @@ -1011,30 +1137,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.baremetalsolution.v2.Lun)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Lun other = (com.google.cloud.baremetalsolution.v2.Lun) obj; + com.google.cloud.baremetalsolution.v2.Lun other = + (com.google.cloud.baremetalsolution.v2.Lun) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (state_ != other.state_) return false; - if (getSizeGb() - != other.getSizeGb()) return false; + if (getSizeGb() != other.getSizeGb()) return false; if (multiprotocolType_ != other.multiprotocolType_) return false; - if (!getStorageVolume() - .equals(other.getStorageVolume())) return false; - if (getShareable() - != other.getShareable()) return false; - if (getBootLun() - != other.getBootLun()) return false; + if (!getStorageVolume().equals(other.getStorageVolume())) return false; + if (getShareable() != other.getShareable()) return false; + if (getBootLun() != other.getBootLun()) return false; if (storageType_ != other.storageType_) return false; - if (!getWwid() - .equals(other.getWwid())) return false; + if (!getWwid().equals(other.getWwid())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1053,18 +1173,15 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGb()); hash = (37 * hash) + MULTIPROTOCOL_TYPE_FIELD_NUMBER; hash = (53 * hash) + multiprotocolType_; hash = (37 * hash) + STORAGE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getStorageVolume().hashCode(); hash = (37 * hash) + SHAREABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShareable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShareable()); hash = (37 * hash) + BOOT_LUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBootLun()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBootLun()); hash = (37 * hash) + STORAGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + storageType_; hash = (37 * hash) + WWID_FIELD_NUMBER; @@ -1074,118 +1191,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun 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.baremetalsolution.v2.Lun parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Lun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume logical unit number (LUN).
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Lun) com.google.cloud.baremetalsolution.v2.LunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, + com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Lun.newBuilder() @@ -1193,16 +1319,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(); @@ -1230,9 +1355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override @@ -1251,7 +1376,8 @@ public com.google.cloud.baremetalsolution.v2.Lun build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { - com.google.cloud.baremetalsolution.v2.Lun result = new com.google.cloud.baremetalsolution.v2.Lun(this); + com.google.cloud.baremetalsolution.v2.Lun result = + new com.google.cloud.baremetalsolution.v2.Lun(this); result.name_ = name_; result.id_ = id_; result.state_ = state_; @@ -1270,38 +1396,39 @@ public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Lun) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun) other); } else { super.mergeFrom(other); return this; @@ -1375,18 +1502,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1395,20 +1524,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1416,54 +1546,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1471,18 +1608,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1491,20 +1630,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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 { @@ -1512,54 +1652,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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; } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1567,51 +1714,65 @@ public Builder setIdBytes( private int state_ = 0; /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = + com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1619,33 +1780,39 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Lun.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long sizeGb_ ; + private long sizeGb_; /** + * + * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; + * * @return The sizeGb. */ @java.lang.Override @@ -1653,30 +1820,36 @@ public long getSizeGb() { return sizeGb_; } /** + * + * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; + * * @param value The sizeGb to set. * @return This builder for chaining. */ public Builder setSizeGb(long value) { - + sizeGb_ = value; onChanged(); return this; } /** + * + * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; + * * @return This builder for chaining. */ public Builder clearSizeGb() { - + sizeGb_ = 0L; onChanged(); return this; @@ -1684,78 +1857,98 @@ public Builder clearSizeGb() { private int multiprotocolType_ = 0; /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override public int getMultiprotocolTypeValue() { + @java.lang.Override + public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @param value The enum numeric value on the wire for multiprotocolType to set. * @return This builder for chaining. */ public Builder setMultiprotocolTypeValue(int value) { - + multiprotocolType_ = value; onChanged(); return this; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The multiprotocolType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED + : result; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @param value The multiprotocolType to set. * @return This builder for chaining. */ - public Builder setMultiprotocolType(com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { + public Builder setMultiprotocolType( + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { if (value == null) { throw new NullPointerException(); } - + multiprotocolType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return This builder for chaining. */ public Builder clearMultiprotocolType() { - + multiprotocolType_ = 0; onChanged(); return this; @@ -1763,18 +1956,20 @@ public Builder clearMultiprotocolType() { private java.lang.Object storageVolume_ = ""; /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The storageVolume. */ public java.lang.String getStorageVolume() { java.lang.Object ref = storageVolume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; @@ -1783,20 +1978,21 @@ public java.lang.String getStorageVolume() { } } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for storageVolume. */ - public com.google.protobuf.ByteString - getStorageVolumeBytes() { + public com.google.protobuf.ByteString getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -1804,66 +2000,76 @@ public java.lang.String getStorageVolume() { } } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @param value The storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolume( - java.lang.String value) { + public Builder setStorageVolume(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + storageVolume_ = value; onChanged(); return this; } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearStorageVolume() { - + storageVolume_ = getDefaultInstance().getStorageVolume(); onChanged(); return this; } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolumeBytes( - com.google.protobuf.ByteString value) { + public Builder setStorageVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageVolume_ = value; onChanged(); return this; } - private boolean shareable_ ; + private boolean shareable_; /** + * + * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; + * * @return The shareable. */ @java.lang.Override @@ -1871,42 +2077,51 @@ public boolean getShareable() { return shareable_; } /** + * + * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; + * * @param value The shareable to set. * @return This builder for chaining. */ public Builder setShareable(boolean value) { - + shareable_ = value; onChanged(); return this; } /** + * + * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; + * * @return This builder for chaining. */ public Builder clearShareable() { - + shareable_ = false; onChanged(); return this; } - private boolean bootLun_ ; + private boolean bootLun_; /** + * + * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; + * * @return The bootLun. */ @java.lang.Override @@ -1914,30 +2129,36 @@ public boolean getBootLun() { return bootLun_; } /** + * + * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; + * * @param value The bootLun to set. * @return This builder for chaining. */ public Builder setBootLun(boolean value) { - + bootLun_ = value; onChanged(); return this; } /** + * + * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; + * * @return This builder for chaining. */ public Builder clearBootLun() { - + bootLun_ = false; onChanged(); return this; @@ -1945,51 +2166,67 @@ public Builder clearBootLun() { private int storageType_ = 0; /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = + com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED + : result; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @param value The storageType to set. * @return This builder for chaining. */ @@ -1997,21 +2234,24 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Lun.StorageT if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -2019,18 +2259,20 @@ public Builder clearStorageType() { private java.lang.Object wwid_ = ""; /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @return The wwid. */ public java.lang.String getWwid() { java.lang.Object ref = wwid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; @@ -2039,20 +2281,21 @@ public java.lang.String getWwid() { } } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @return The bytes for wwid. */ - public com.google.protobuf.ByteString - getWwidBytes() { + public com.google.protobuf.ByteString getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); wwid_ = b; return b; } else { @@ -2060,61 +2303,68 @@ public java.lang.String getWwid() { } } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @param value The wwid to set. * @return This builder for chaining. */ - public Builder setWwid( - java.lang.String value) { + public Builder setWwid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + wwid_ = value; onChanged(); return this; } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @return This builder for chaining. */ public Builder clearWwid() { - + wwid_ = getDefaultInstance().getWwid(); onChanged(); return this; } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @param value The bytes for wwid to set. * @return This builder for chaining. */ - public Builder setWwidBytes( - com.google.protobuf.ByteString value) { + public Builder setWwidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + wwid_ = 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); } @@ -2124,12 +2374,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Lun) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Lun) private static final com.google.cloud.baremetalsolution.v2.Lun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Lun(); } @@ -2138,16 +2388,16 @@ public static com.google.cloud.baremetalsolution.v2.Lun getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Lun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Lun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Lun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Lun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2162,6 +2412,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Lun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java index eae3681..df63068 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java @@ -1,178 +1,241 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface LunOrBuilder extends +public interface LunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Lun) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Lun.State getState(); /** + * + * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; + * * @return The sizeGb. */ long getSizeGb(); /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The enum numeric value on the wire for multiprotocolType. */ int getMultiprotocolTypeValue(); /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The multiprotocolType. */ com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType(); /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The storageVolume. */ java.lang.String getStorageVolume(); /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for storageVolume. */ - com.google.protobuf.ByteString - getStorageVolumeBytes(); + com.google.protobuf.ByteString getStorageVolumeBytes(); /** + * + * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; + * * @return The shareable. */ boolean getShareable(); /** + * + * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; + * * @return The bootLun. */ boolean getBootLun(); /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType(); /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The wwid. */ java.lang.String getWwid(); /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The bytes for wwid. */ - com.google.protobuf.ByteString - getWwidBytes(); + com.google.protobuf.ByteString getWwidBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java new file mode 100644 index 0000000..94372e2 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java @@ -0,0 +1,153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class LunProto { + private LunProto() {} + + 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_baremetalsolution_v2_Lun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." + + "proto\022!google.cloud.baremetalsolution.v2" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" + + "gle.cloud.baremetalsolution.v2.Lun.State" + + "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" + + "\004 \001(\01628.google.cloud.baremetalsolution.v" + + "2.Lun.MultiprotocolType\022D\n\016storage_volum" + + "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" + + "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" + + "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" + + "e.cloud.baremetalsolution.v2.Lun.Storage" + + "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" + + "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" + + "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" + + "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" + + "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" + + "$baremetalsolution.googleapis.com/Lun\022Cp" + + "rojects/{project}/locations/{location}/v" + + "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" + + "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" + + "tion.googleapis.com/Lun\"y\n\017ListLunsReque" + + "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" + + "ution.googleapis.com/Volume\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" + + "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" + + "metalsolution.v2.Lun\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" + + "e.cloud.baremetalsolution.v2B\010LunProtoP\001" + + "ZRgoogle.golang.org/genproto/googleapis/" + + "cloud/baremetalsolution/v2;baremetalsolu" + + "tion\252\002!Google.Cloud.BareMetalSolution.V2" + + "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" + + "oogle::Cloud::BareMetalSolution::V2b\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, + new java.lang.String[] { + "Name", + "Id", + "State", + "SizeGb", + "MultiprotocolType", + "StorageVolume", + "Shareable", + "BootLun", + "StorageType", + "Wwid", + }); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, + new java.lang.String[] { + "Luns", "NextPageToken", "Unreachable", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java index 26b360f..3977086 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A Network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} */ -public final class Network extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Network extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Network) NetworkOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Network.newBuilder() to construct. private Network(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Network() { name_ = ""; id_ = ""; @@ -34,16 +52,15 @@ private Network() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Network(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Network( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -63,105 +80,122 @@ private Network( case 0: done = true; break; - case 16: { - int rawValue = input.readEnum(); + case 16: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - ipAddress_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - macAddress_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + ipAddress_ = s; + break; } - macAddress_.add(s); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + macAddress_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + macAddress_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 48: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - vlanId_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + vlanId_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - cidr_ = s; - break; - } - case 74: { - com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; - if (vrf_ != null) { - subBuilder = vrf_.toBuilder(); + cidr_ = s; + break; } - vrf_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vrf_); - vrf_ = subBuilder.buildPartial(); + case 74: + { + com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; + if (vrf_ != null) { + subBuilder = vrf_.toBuilder(); + } + vrf_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(vrf_); + vrf_ = subBuilder.buildPartial(); + } + + break; } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + id_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); + case 90: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - servicesCidr_ = s; - break; - } - case 106: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - reservations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + servicesCidr_ = s; + break; } - reservations_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 106: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + reservations_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>(); + mutable_bitField0_ |= 0x00000004; + } + reservations_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -169,8 +203,7 @@ private Network( } 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)) { macAddress_ = macAddress_.getUnmodifiableView(); @@ -182,41 +215,46 @@ private Network( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_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 11: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); + com.google.cloud.baremetalsolution.v2.Network.class, + com.google.cloud.baremetalsolution.v2.Network.Builder.class); } /** + * + * *
    * Network type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified value.
      * 
@@ -225,6 +263,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Client network, a network peered to a Google Cloud VPC.
      * 
@@ -233,6 +273,8 @@ public enum Type */ CLIENT(1), /** + * + * *
      * Private network, a network local to the Bare Metal Solution environment.
      * 
@@ -244,6 +286,8 @@ public enum Type ; /** + * + * *
      * Unspecified value.
      * 
@@ -252,6 +296,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Client network, a network peered to a Google Cloud VPC.
      * 
@@ -260,6 +306,8 @@ public enum Type */ public static final int CLIENT_VALUE = 1; /** + * + * *
      * Private network, a network local to the Bare Metal Solution environment.
      * 
@@ -268,7 +316,6 @@ public enum Type */ public static final int PRIVATE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -293,49 +340,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return CLIENT; - case 2: return PRIVATE; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return CLIENT; + case 2: + return PRIVATE; + 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< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.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 Type findValueByNumber(int number) { + return Type.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.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -353,15 +400,18 @@ private Type(int value) { } /** + * + * *
    * The possible states for this Network.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The Network is in an unknown state.
      * 
@@ -370,6 +420,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Network is provisioning.
      * 
@@ -378,6 +430,8 @@ public enum State */ PROVISIONING(1), /** + * + * *
      * The Network has been provisioned.
      * 
@@ -389,6 +443,8 @@ public enum State ; /** + * + * *
      * The Network is in an unknown state.
      * 
@@ -397,6 +453,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Network is provisioning.
      * 
@@ -405,6 +463,8 @@ public enum State */ public static final int PROVISIONING_VALUE = 1; /** + * + * *
      * The Network has been provisioned.
      * 
@@ -413,7 +473,6 @@ public enum State */ public static final int PROVISIONED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -438,49 +497,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONING; - case 2: return PROVISIONED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return PROVISIONED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -500,6 +559,8 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 5; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -509,6 +570,7 @@ private State(int value) {
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -517,14 +579,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; } } /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -534,16 +597,15 @@ public java.lang.String getName() {
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -554,11 +616,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ @java.lang.Override @@ -567,29 +632,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; } } /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @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 { @@ -600,38 +665,52 @@ public java.lang.String getId() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The type. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } public static final int IP_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object ipAddress_; /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ @java.lang.Override @@ -640,29 +719,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -673,34 +752,42 @@ public java.lang.String getIpAddress() { public static final int MAC_ADDRESS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList macAddress_; /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return A list containing the macAddress. */ - public com.google.protobuf.ProtocolStringList - getMacAddressList() { + public com.google.protobuf.ProtocolStringList getMacAddressList() { return macAddress_; } /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return The count of macAddress. */ public int getMacAddressCount() { return macAddress_.size(); } /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the element to return. * @return The macAddress at the given index. */ @@ -708,54 +795,70 @@ public java.lang.String getMacAddress(int index) { return macAddress_.get(index); } /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - public com.google.protobuf.ByteString - getMacAddressBytes(int index) { + public com.google.protobuf.ByteString getMacAddressBytes(int index) { return macAddress_.getByteString(index); } public static final int STATE_FIELD_NUMBER = 6; private int state_; /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.State result = + com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED + : result; } public static final int VLAN_ID_FIELD_NUMBER = 7; private volatile java.lang.Object vlanId_; /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The vlanId. */ @java.lang.Override @@ -764,29 +867,29 @@ public java.lang.String getVlanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vlanId_ = s; return s; } } /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The bytes for vlanId. */ @java.lang.Override - public com.google.protobuf.ByteString - getVlanIdBytes() { + public com.google.protobuf.ByteString getVlanIdBytes() { java.lang.Object ref = vlanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vlanId_ = b; return b; } else { @@ -797,11 +900,14 @@ public java.lang.String getVlanId() { public static final int CIDR_FIELD_NUMBER = 8; private volatile java.lang.Object cidr_; /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The cidr. */ @java.lang.Override @@ -810,29 +916,29 @@ public java.lang.String getCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; } } /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The bytes for cidr. */ @java.lang.Override - public com.google.protobuf.ByteString - getCidrBytes() { + public com.google.protobuf.ByteString getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidr_ = b; return b; } else { @@ -843,11 +949,14 @@ public java.lang.String getCidr() { public static final int VRF_FIELD_NUMBER = 9; private com.google.cloud.baremetalsolution.v2.VRF vrf_; /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return Whether the vrf field is set. */ @java.lang.Override @@ -855,11 +964,14 @@ public boolean hasVrf() { return vrf_ != null; } /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return The vrf. */ @java.lang.Override @@ -867,6 +979,8 @@ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; } /** + * + * *
    * The vrf for the Network.
    * 
@@ -879,24 +993,23 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 11; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -905,28 +1018,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -934,11 +1049,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 11; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -946,16 +1062,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -963,12 +1079,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -978,11 +1093,14 @@ public java.lang.String getLabelsOrThrow( public static final int SERVICES_CIDR_FIELD_NUMBER = 12; private volatile java.lang.Object servicesCidr_; /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The servicesCidr. */ @java.lang.Override @@ -991,29 +1109,29 @@ public java.lang.String getServicesCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servicesCidr_ = s; return s; } } /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The bytes for servicesCidr. */ @java.lang.Override - public com.google.protobuf.ByteString - getServicesCidrBytes() { + public com.google.protobuf.ByteString getServicesCidrBytes() { java.lang.Object ref = servicesCidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); servicesCidr_ = b; return b; } else { @@ -1022,76 +1140,96 @@ public java.lang.String getServicesCidr() { } public static final int RESERVATIONS_FIELD_NUMBER = 13; - private java.util.List reservations_; + private java.util.List + reservations_; /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public java.util.List getReservationsList() { + public java.util.List + getReservationsList() { return reservations_; } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> getReservationsOrBuilderList() { return reservations_; } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override public int getReservationsCount() { return reservations_.size(); } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations( + int index) { return reservations_.get(index); } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder + getReservationsOrBuilder(int index) { return reservations_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1103,8 +1241,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } @@ -1117,7 +1254,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { @@ -1132,12 +1270,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, id_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 11); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, servicesCidr_); } @@ -1154,8 +1288,7 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); @@ -1171,9 +1304,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vlanId_); @@ -1182,28 +1315,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cidr_); } if (vrf_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getVrf()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getVrf()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, id_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, servicesCidr_); } for (int i = 0; i < reservations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, reservations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, reservations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1213,38 +1344,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Network)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Network other = (com.google.cloud.baremetalsolution.v2.Network) obj; + com.google.cloud.baremetalsolution.v2.Network other = + (com.google.cloud.baremetalsolution.v2.Network) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (type_ != other.type_) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (!getMacAddressList() - .equals(other.getMacAddressList())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getMacAddressList().equals(other.getMacAddressList())) return false; if (state_ != other.state_) return false; - if (!getVlanId() - .equals(other.getVlanId())) return false; - if (!getCidr() - .equals(other.getCidr())) return false; + if (!getVlanId().equals(other.getVlanId())) return false; + if (!getCidr().equals(other.getCidr())) return false; if (hasVrf() != other.hasVrf()) return false; if (hasVrf()) { - if (!getVrf() - .equals(other.getVrf())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getServicesCidr() - .equals(other.getServicesCidr())) return false; - if (!getReservationsList() - .equals(other.getReservationsList())) return false; + if (!getVrf().equals(other.getVrf())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getServicesCidr().equals(other.getServicesCidr())) return false; + if (!getReservationsList().equals(other.getReservationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1293,140 +1415,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Network parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network 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.baremetalsolution.v2.Network parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Network prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Network) com.google.cloud.baremetalsolution.v2.NetworkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 11: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 11: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); + com.google.cloud.baremetalsolution.v2.Network.class, + com.google.cloud.baremetalsolution.v2.Network.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Network.newBuilder() @@ -1434,17 +1563,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) { getReservationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1483,9 +1612,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; } @java.lang.Override @@ -1504,7 +1633,8 @@ public com.google.cloud.baremetalsolution.v2.Network build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network buildPartial() { - com.google.cloud.baremetalsolution.v2.Network result = new com.google.cloud.baremetalsolution.v2.Network(this); + com.google.cloud.baremetalsolution.v2.Network result = + new com.google.cloud.baremetalsolution.v2.Network(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -1543,38 +1673,39 @@ public com.google.cloud.baremetalsolution.v2.Network buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Network) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Network)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Network) other); } else { super.mergeFrom(other); return this; @@ -1622,8 +1753,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { if (other.hasVrf()) { mergeVrf(other.getVrf()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getServicesCidr().isEmpty()) { servicesCidr_ = other.servicesCidr_; onChanged(); @@ -1646,9 +1776,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { reservationsBuilder_ = null; reservations_ = other.reservations_; bitField0_ = (bitField0_ & ~0x00000004); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReservationsFieldBuilder() : null; + reservationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReservationsFieldBuilder() + : null; } else { reservationsBuilder_.addAllMessages(other.reservations_); } @@ -1682,10 +1813,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1695,13 +1829,13 @@ public Builder mergeFrom(
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1710,6 +1844,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1719,15 +1855,14 @@ public java.lang.String getName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1735,6 +1870,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1744,20 +1881,22 @@ public java.lang.String getName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1767,15 +1906,18 @@ public Builder setName(
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1785,16 +1927,16 @@ public Builder clearName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1802,18 +1944,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1822,20 +1966,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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 { @@ -1843,54 +1988,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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; } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1898,51 +2050,67 @@ public Builder setIdBytes( private int type_ = 0; /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The type. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1950,21 +2118,24 @@ public Builder setType(com.google.cloud.baremetalsolution.v2.Network.Type value) if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1972,18 +2143,20 @@ public Builder clearType() { private java.lang.Object ipAddress_ = ""; /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -1992,20 +2165,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -2013,95 +2187,112 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList macAddress_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMacAddressIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { macAddress_ = new com.google.protobuf.LazyStringArrayList(macAddress_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @return A list containing the macAddress. */ - public com.google.protobuf.ProtocolStringList - getMacAddressList() { + public com.google.protobuf.ProtocolStringList getMacAddressList() { return macAddress_.getUnmodifiableView(); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @return The count of macAddress. */ public int getMacAddressCount() { return macAddress_.size(); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param index The index of the element to return. * @return The macAddress at the given index. */ @@ -2109,80 +2300,90 @@ public java.lang.String getMacAddress(int index) { return macAddress_.get(index); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - public com.google.protobuf.ByteString - getMacAddressBytes(int index) { + public com.google.protobuf.ByteString getMacAddressBytes(int index) { return macAddress_.getByteString(index); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param index The index to set the value at. * @param value The macAddress to set. * @return This builder for chaining. */ - public Builder setMacAddress( - int index, java.lang.String value) { + public Builder setMacAddress(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); macAddress_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param value The macAddress to add. * @return This builder for chaining. */ - public Builder addMacAddress( - java.lang.String value) { + public Builder addMacAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); macAddress_.add(value); onChanged(); return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param values The macAddress to add. * @return This builder for chaining. */ - public Builder addAllMacAddress( - java.lang.Iterable values) { + public Builder addAllMacAddress(java.lang.Iterable values) { ensureMacAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, macAddress_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, macAddress_); onChanged(); return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @return This builder for chaining. */ public Builder clearMacAddress() { @@ -2192,20 +2393,22 @@ public Builder clearMacAddress() { return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param value The bytes of the macAddress to add. * @return This builder for chaining. */ - public Builder addMacAddressBytes( - com.google.protobuf.ByteString value) { + public Builder addMacAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMacAddressIsMutable(); macAddress_.add(value); onChanged(); @@ -2214,51 +2417,67 @@ public Builder addMacAddressBytes( private int state_ = 0; /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.State result = + com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED + : result; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2266,21 +2485,24 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Network.State valu if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2288,18 +2510,20 @@ public Builder clearState() { private java.lang.Object vlanId_ = ""; /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @return The vlanId. */ public java.lang.String getVlanId() { java.lang.Object ref = vlanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vlanId_ = s; return s; @@ -2308,20 +2532,21 @@ public java.lang.String getVlanId() { } } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @return The bytes for vlanId. */ - public com.google.protobuf.ByteString - getVlanIdBytes() { + public com.google.protobuf.ByteString getVlanIdBytes() { java.lang.Object ref = vlanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vlanId_ = b; return b; } else { @@ -2329,54 +2554,61 @@ public java.lang.String getVlanId() { } } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @param value The vlanId to set. * @return This builder for chaining. */ - public Builder setVlanId( - java.lang.String value) { + public Builder setVlanId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vlanId_ = value; onChanged(); return this; } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @return This builder for chaining. */ public Builder clearVlanId() { - + vlanId_ = getDefaultInstance().getVlanId(); onChanged(); return this; } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @param value The bytes for vlanId to set. * @return This builder for chaining. */ - public Builder setVlanIdBytes( - com.google.protobuf.ByteString value) { + public Builder setVlanIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vlanId_ = value; onChanged(); return this; @@ -2384,18 +2616,20 @@ public Builder setVlanIdBytes( private java.lang.Object cidr_ = ""; /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @return The cidr. */ public java.lang.String getCidr() { java.lang.Object ref = cidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; @@ -2404,20 +2638,21 @@ public java.lang.String getCidr() { } } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @return The bytes for cidr. */ - public com.google.protobuf.ByteString - getCidrBytes() { + public com.google.protobuf.ByteString getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidr_ = b; return b; } else { @@ -2425,54 +2660,61 @@ public java.lang.String getCidr() { } } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @param value The cidr to set. * @return This builder for chaining. */ - public Builder setCidr( - java.lang.String value) { + public Builder setCidr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cidr_ = value; onChanged(); return this; } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @return This builder for chaining. */ public Builder clearCidr() { - + cidr_ = getDefaultInstance().getCidr(); onChanged(); return this; } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @param value The bytes for cidr to set. * @return This builder for chaining. */ - public Builder setCidrBytes( - com.google.protobuf.ByteString value) { + public Builder setCidrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidr_ = value; onChanged(); return this; @@ -2480,24 +2722,33 @@ public Builder setCidrBytes( private com.google.cloud.baremetalsolution.v2.VRF vrf_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> vrfBuilder_; + com.google.cloud.baremetalsolution.v2.VRF, + com.google.cloud.baremetalsolution.v2.VRF.Builder, + com.google.cloud.baremetalsolution.v2.VRFOrBuilder> + vrfBuilder_; /** + * + * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return Whether the vrf field is set. */ public boolean hasVrf() { return vrfBuilder_ != null || vrf_ != null; } /** + * + * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return The vrf. */ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { @@ -2508,6 +2759,8 @@ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { } } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2528,14 +2781,15 @@ public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF value) { return this; } /** + * + * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ - public Builder setVrf( - com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { + public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { if (vrfBuilder_ == null) { vrf_ = builderForValue.build(); onChanged(); @@ -2546,6 +2800,8 @@ public Builder setVrf( return this; } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2556,7 +2812,14 @@ public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { if (vrfBuilder_ == null) { if (vrf_ != null) { vrf_ = - com.google.cloud.baremetalsolution.v2.VRF.newBuilder(vrf_).mergeFrom(value).buildPartial(); + com.google + .cloud + .baremetalsolution + .v2 + .VRF + .newBuilder(vrf_) + .mergeFrom(value) + .buildPartial(); } else { vrf_ = value; } @@ -2568,6 +2831,8 @@ public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { return this; } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2586,6 +2851,8 @@ public Builder clearVrf() { return this; } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2593,11 +2860,13 @@ public Builder clearVrf() { * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ public com.google.cloud.baremetalsolution.v2.VRF.Builder getVrfBuilder() { - + onChanged(); return getVrfFieldBuilder().getBuilder(); } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2608,11 +2877,12 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { if (vrfBuilder_ != null) { return vrfBuilder_.getMessageOrBuilder(); } else { - return vrf_ == null ? - com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; + return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; } } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2620,35 +2890,37 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF, + com.google.cloud.baremetalsolution.v2.VRF.Builder, + com.google.cloud.baremetalsolution.v2.VRFOrBuilder> getVrfFieldBuilder() { if (vrfBuilder_ == null) { - vrfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( - getVrf(), - getParentForChildren(), - isClean()); + vrfBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF, + com.google.cloud.baremetalsolution.v2.VRF.Builder, + com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( + getVrf(), getParentForChildren(), isClean()); vrf_ = null; } return vrfBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2660,28 +2932,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2689,11 +2963,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 11; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2701,16 +2976,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2718,12 +2994,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2731,81 +3006,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.lang.Object servicesCidr_ = ""; /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @return The servicesCidr. */ public java.lang.String getServicesCidr() { java.lang.Object ref = servicesCidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servicesCidr_ = s; return s; @@ -2814,20 +3088,21 @@ public java.lang.String getServicesCidr() { } } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @return The bytes for servicesCidr. */ - public com.google.protobuf.ByteString - getServicesCidrBytes() { + public com.google.protobuf.ByteString getServicesCidrBytes() { java.lang.Object ref = servicesCidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); servicesCidr_ = b; return b; } else { @@ -2835,81 +3110,99 @@ public java.lang.String getServicesCidr() { } } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @param value The servicesCidr to set. * @return This builder for chaining. */ - public Builder setServicesCidr( - java.lang.String value) { + public Builder setServicesCidr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + servicesCidr_ = value; onChanged(); return this; } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @return This builder for chaining. */ public Builder clearServicesCidr() { - + servicesCidr_ = getDefaultInstance().getServicesCidr(); onChanged(); return this; } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @param value The bytes for servicesCidr to set. * @return This builder for chaining. */ - public Builder setServicesCidrBytes( - com.google.protobuf.ByteString value) { + public Builder setServicesCidrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesCidr_ = value; onChanged(); return this; } - private java.util.List reservations_ = - java.util.Collections.emptyList(); + private java.util.List + reservations_ = java.util.Collections.emptyList(); + private void ensureReservationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - reservations_ = new java.util.ArrayList(reservations_); + reservations_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>(reservations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> reservationsBuilder_; + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + reservationsBuilder_; /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public java.util.List getReservationsList() { + public java.util.List + getReservationsList() { if (reservationsBuilder_ == null) { return java.util.Collections.unmodifiableList(reservations_); } else { @@ -2917,13 +3210,17 @@ public java.util.List * List of IP address reservations in this network. * When updating this field, an error will be generated if a reservation * conflicts with an IP address already allocated to a physical server. *
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public int getReservationsCount() { if (reservationsBuilder_ == null) { @@ -2933,15 +3230,20 @@ public int getReservationsCount() { } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations( + int index) { if (reservationsBuilder_ == null) { return reservations_.get(index); } else { @@ -2949,13 +3251,17 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReserv } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder setReservations( int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { @@ -2972,16 +3278,21 @@ public Builder setReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder setReservations( - int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.set(index, builderForValue.build()); @@ -2992,15 +3303,20 @@ public Builder setReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public Builder addReservations(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { + public Builder addReservations( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { if (reservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3014,13 +3330,17 @@ public Builder addReservations(com.google.cloud.baremetalsolution.v2.NetworkAddr return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addReservations( int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { @@ -3037,13 +3357,17 @@ public Builder addReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addReservations( com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { @@ -3057,16 +3381,21 @@ public Builder addReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addReservations( - int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.add(index, builderForValue.build()); @@ -3077,20 +3406,25 @@ public Builder addReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addAllReservations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservation> + values) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reservations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservations_); onChanged(); } else { reservationsBuilder_.addAllMessages(values); @@ -3098,13 +3432,17 @@ public Builder addAllReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder clearReservations() { if (reservationsBuilder_ == null) { @@ -3117,13 +3455,17 @@ public Builder clearReservations() { return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder removeReservations(int index) { if (reservationsBuilder_ == null) { @@ -3136,45 +3478,59 @@ public Builder removeReservations(int index) { return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder getReservationsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder + getReservationsBuilder(int index) { return getReservationsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder + getReservationsOrBuilder(int index) { if (reservationsBuilder_ == null) { - return reservations_.get(index); } else { + return reservations_.get(index); + } else { return reservationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public java.util.List - getReservationsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + getReservationsOrBuilderList() { if (reservationsBuilder_ != null) { return reservationsBuilder_.getMessageOrBuilderList(); } else { @@ -3182,62 +3538,81 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder() { - return getReservationsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder + addReservationsBuilder() { + return getReservationsFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder( - int index) { - return getReservationsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder + addReservationsBuilder(int index) { + return getReservationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public java.util.List - getReservationsBuilderList() { + public java.util.List + getReservationsBuilderList() { return getReservationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> getReservationsFieldBuilder() { if (reservationsBuilder_ == null) { - reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( - reservations_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + reservationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( + reservations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); reservations_ = null; } return reservationsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3247,12 +3622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Network) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Network) private static final com.google.cloud.baremetalsolution.v2.Network DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Network(); } @@ -3261,16 +3636,16 @@ public static com.google.cloud.baremetalsolution.v2.Network getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Network parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Network(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Network parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Network(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3285,6 +3660,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Network getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java index 30e66f8..fa6c9b0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A reservation of one or more addresses in a network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} */ -public final class NetworkAddressReservation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkAddressReservation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) NetworkAddressReservationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkAddressReservation.newBuilder() to construct. private NetworkAddressReservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkAddressReservation() { startAddress_ = ""; endAddress_ = ""; @@ -27,16 +45,15 @@ private NetworkAddressReservation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkAddressReservation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NetworkAddressReservation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private NetworkAddressReservation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - startAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + startAddress_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - endAddress_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + endAddress_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - note_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + note_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,35 +107,40 @@ private NetworkAddressReservation( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); } public static final int START_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object startAddress_; /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The startAddress. */ @java.lang.Override @@ -124,30 +149,30 @@ public java.lang.String getStartAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startAddress_ = s; return s; } } /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The bytes for startAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getStartAddressBytes() { + public com.google.protobuf.ByteString getStartAddressBytes() { java.lang.Object ref = startAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); startAddress_ = b; return b; } else { @@ -158,6 +183,8 @@ public java.lang.String getStartAddress() { public static final int END_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object endAddress_; /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -166,6 +193,7 @@ public java.lang.String getStartAddress() {
    * 
* * string end_address = 2; + * * @return The endAddress. */ @java.lang.Override @@ -174,14 +202,15 @@ public java.lang.String getEndAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endAddress_ = s; return s; } } /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -190,16 +219,15 @@ public java.lang.String getEndAddress() {
    * 
* * string end_address = 2; + * * @return The bytes for endAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getEndAddressBytes() { + public com.google.protobuf.ByteString getEndAddressBytes() { java.lang.Object ref = endAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endAddress_ = b; return b; } else { @@ -210,11 +238,14 @@ public java.lang.String getEndAddress() { public static final int NOTE_FIELD_NUMBER = 3; private volatile java.lang.Object note_; /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The note. */ @java.lang.Override @@ -223,29 +254,29 @@ public java.lang.String getNote() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); note_ = s; return s; } } /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The bytes for note. */ @java.lang.Override - public com.google.protobuf.ByteString - getNoteBytes() { + public com.google.protobuf.ByteString getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); note_ = b; return b; } else { @@ -254,6 +285,7 @@ public java.lang.String getNote() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startAddress_); } @@ -302,19 +333,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.baremetalsolution.v2.NetworkAddressReservation)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = + (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; - if (!getStartAddress() - .equals(other.getStartAddress())) return false; - if (!getEndAddress() - .equals(other.getEndAddress())) return false; - if (!getNote() - .equals(other.getNote())) return false; + if (!getStartAddress().equals(other.getStartAddress())) return false; + if (!getEndAddress().equals(other.getEndAddress())) return false; + if (!getNote().equals(other.getNote())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,117 +367,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 reservation of one or more addresses in a network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.newBuilder() @@ -456,16 +495,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,13 +517,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance(); } @@ -500,7 +539,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPartial() { - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = + new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); result.startAddress_ = startAddress_; result.endAddress_ = endAddress_; result.note_ = note_; @@ -512,46 +552,50 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { - if (other == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { + if (other + == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) + return this; if (!other.getStartAddress().isEmpty()) { startAddress_ = other.startAddress_; onChanged(); @@ -583,7 +627,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,19 +641,21 @@ public Builder mergeFrom( private java.lang.Object startAddress_ = ""; /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @return The startAddress. */ public java.lang.String getStartAddress() { java.lang.Object ref = startAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startAddress_ = s; return s; @@ -616,21 +664,22 @@ public java.lang.String getStartAddress() { } } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @return The bytes for startAddress. */ - public com.google.protobuf.ByteString - getStartAddressBytes() { + public com.google.protobuf.ByteString getStartAddressBytes() { java.lang.Object ref = startAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); startAddress_ = b; return b; } else { @@ -638,57 +687,64 @@ public java.lang.String getStartAddress() { } } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @param value The startAddress to set. * @return This builder for chaining. */ - public Builder setStartAddress( - java.lang.String value) { + public Builder setStartAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + startAddress_ = value; onChanged(); return this; } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @return This builder for chaining. */ public Builder clearStartAddress() { - + startAddress_ = getDefaultInstance().getStartAddress(); onChanged(); return this; } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @param value The bytes for startAddress to set. * @return This builder for chaining. */ - public Builder setStartAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setStartAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + startAddress_ = value; onChanged(); return this; @@ -696,6 +752,8 @@ public Builder setStartAddressBytes( private java.lang.Object endAddress_ = ""; /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -704,13 +762,13 @@ public Builder setStartAddressBytes(
      * 
* * string end_address = 2; + * * @return The endAddress. */ public java.lang.String getEndAddress() { java.lang.Object ref = endAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endAddress_ = s; return s; @@ -719,6 +777,8 @@ public java.lang.String getEndAddress() { } } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -727,15 +787,14 @@ public java.lang.String getEndAddress() {
      * 
* * string end_address = 2; + * * @return The bytes for endAddress. */ - public com.google.protobuf.ByteString - getEndAddressBytes() { + public com.google.protobuf.ByteString getEndAddressBytes() { java.lang.Object ref = endAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endAddress_ = b; return b; } else { @@ -743,6 +802,8 @@ public java.lang.String getEndAddress() { } } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -751,20 +812,22 @@ public java.lang.String getEndAddress() {
      * 
* * string end_address = 2; + * * @param value The endAddress to set. * @return This builder for chaining. */ - public Builder setEndAddress( - java.lang.String value) { + public Builder setEndAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endAddress_ = value; onChanged(); return this; } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -773,15 +836,18 @@ public Builder setEndAddress(
      * 
* * string end_address = 2; + * * @return This builder for chaining. */ public Builder clearEndAddress() { - + endAddress_ = getDefaultInstance().getEndAddress(); onChanged(); return this; } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -790,16 +856,16 @@ public Builder clearEndAddress() {
      * 
* * string end_address = 2; + * * @param value The bytes for endAddress to set. * @return This builder for chaining. */ - public Builder setEndAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setEndAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endAddress_ = value; onChanged(); return this; @@ -807,18 +873,20 @@ public Builder setEndAddressBytes( private java.lang.Object note_ = ""; /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @return The note. */ public java.lang.String getNote() { java.lang.Object ref = note_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); note_ = s; return s; @@ -827,20 +895,21 @@ public java.lang.String getNote() { } } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @return The bytes for note. */ - public com.google.protobuf.ByteString - getNoteBytes() { + public com.google.protobuf.ByteString getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); note_ = b; return b; } else { @@ -848,61 +917,68 @@ public java.lang.String getNote() { } } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @param value The note to set. * @return This builder for chaining. */ - public Builder setNote( - java.lang.String value) { + public Builder setNote(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + note_ = value; onChanged(); return this; } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @return This builder for chaining. */ public Builder clearNote() { - + note_ = getDefaultInstance().getNote(); onChanged(); return this; } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @param value The bytes for note to set. * @return This builder for chaining. */ - public Builder setNoteBytes( - com.google.protobuf.ByteString value) { + public Builder setNoteBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + note_ = 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,30 +988,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) - private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkAddressReservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkAddressReservation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkAddressReservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkAddressReservation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,9 +1025,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java index 9f27f17..a9839c9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkAddressReservationOrBuilder extends +public interface NetworkAddressReservationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkAddressReservation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The startAddress. */ java.lang.String getStartAddress(); /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The bytes for startAddress. */ - com.google.protobuf.ByteString - getStartAddressBytes(); + com.google.protobuf.ByteString getStartAddressBytes(); /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -38,10 +61,13 @@ public interface NetworkAddressReservationOrBuilder extends
    * 
* * string end_address = 2; + * * @return The endAddress. */ java.lang.String getEndAddress(); /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -50,28 +76,33 @@ public interface NetworkAddressReservationOrBuilder extends
    * 
* * string end_address = 2; + * * @return The bytes for endAddress. */ - com.google.protobuf.ByteString - getEndAddressBytes(); + com.google.protobuf.ByteString getEndAddressBytes(); /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The note. */ java.lang.String getNote(); /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The bytes for note. */ - com.google.protobuf.ByteString - getNoteBytes(); + com.google.protobuf.ByteString getNoteBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java index a9ee27f..8f4c764 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkOrBuilder extends +public interface NetworkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Network) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -17,10 +35,13 @@ public interface NetworkOrBuilder extends
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -30,189 +51,239 @@ public interface NetworkOrBuilder extends
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The type. */ com.google.cloud.baremetalsolution.v2.Network.Type getType(); /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return A list containing the macAddress. */ - java.util.List - getMacAddressList(); + java.util.List getMacAddressList(); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return The count of macAddress. */ int getMacAddressCount(); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the element to return. * @return The macAddress at the given index. */ java.lang.String getMacAddress(int index); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - com.google.protobuf.ByteString - getMacAddressBytes(int index); + com.google.protobuf.ByteString getMacAddressBytes(int index); /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Network.State getState(); /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The vlanId. */ java.lang.String getVlanId(); /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The bytes for vlanId. */ - com.google.protobuf.ByteString - getVlanIdBytes(); + com.google.protobuf.ByteString getVlanIdBytes(); /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The cidr. */ java.lang.String getCidr(); /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The bytes for cidr. */ - com.google.protobuf.ByteString - getCidrBytes(); + com.google.protobuf.ByteString getCidrBytes(); /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return Whether the vrf field is set. */ boolean hasVrf(); /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return The vrf. */ com.google.cloud.baremetalsolution.v2.VRF getVrf(); /** + * + * *
    * The vrf for the Network.
    * 
@@ -222,6 +293,8 @@ public interface NetworkOrBuilder extends com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -230,30 +303,31 @@ public interface NetworkOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -262,91 +336,111 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The servicesCidr. */ java.lang.String getServicesCidr(); /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The bytes for servicesCidr. */ - com.google.protobuf.ByteString - getServicesCidrBytes(); + com.google.protobuf.ByteString getServicesCidrBytes(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - java.util.List + java.util.List getReservationsList(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ int getReservationsCount(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - java.util.List + java.util.List getReservationsOrBuilderList(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( int index); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java new file mode 100644 index 0000000..06274bd --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java @@ -0,0 +1,327 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NetworkProto { + private NetworkProto() {} + + 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_baremetalsolution_v2_Network_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" + + "ork.proto\022!google.cloud.baremetalsolutio" + + "n.v2\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032 google/protobu" + + "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" + + " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" + + "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" + + "metalsolution.v2.Network.State\022\017\n\007vlan_i" + + "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" + + "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" + + "bels\030\013 \003(\01326.google.cloud.baremetalsolut" + + "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" + + "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" + + ".cloud.baremetalsolution.v2.NetworkAddre" + + "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" + + "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" + + "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" + + "lution.googleapis.com/Network\022:projects/" + + "{project}/locations/{location}/networks/" + + "{network}\"U\n\031NetworkAddressReservation\022\025" + + "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" + + "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" + + "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" + + "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" + + "0.google.cloud.baremetalsolution.v2.VRF." + + "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" + + "ogle.cloud.baremetalsolution.v2.VRF.Vlan" + + "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" + + "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" + + "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " + + "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" + + "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" + + "alInterface\022o\n\032logical_network_interface" + + "s\030\001 \003(\0132K.google.cloud.baremetalsolution" + + ".v2.LogicalInterface.LogicalNetworkInter" + + "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " + + "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" + + "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" + + "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" + + "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" + + "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" + + "(\0132*.google.cloud.baremetalsolution.v2.N" + + "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" + + "\007network\030\001 \001(\0132*.google.cloud.baremetals" + + "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" + + "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" + + ".baremetalsolution.v2.Network\022\020\n\010used_ip" + + "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" + + "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\"]\n\030ListNetworkUsageRespo" + + "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" + + "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" + + "oogle.cloud.baremetalsolution.v2B\014Networ" + + "kProtoP\001ZRgoogle.golang.org/genproto/goo" + + "gleapis/cloud/baremetalsolution/v2;barem" + + "etalsolution\252\002!Google.Cloud.BareMetalSol" + + "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" + + "n\\V2\352\002$Google::Cloud::BareMetalSolution:" + + ":V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, + new java.lang.String[] { + "Name", + "Id", + "Type", + "IpAddress", + "MacAddress", + "State", + "VlanId", + "Cidr", + "Vrf", + "Labels", + "ServicesCidr", + "Reservations", + }); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, + new java.lang.String[] { + "StartAddress", "EndAddress", "Note", + }); + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, + new java.lang.String[] { + "Name", "State", "QosPolicy", "VlanAttachments", + }); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, + new java.lang.String[] { + "BandwidthGbps", + }); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, + new java.lang.String[] { + "PeerVlanId", "PeerIp", "RouterIp", + }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, + new java.lang.String[] { + "LogicalNetworkInterfaces", "Name", "InterfaceIndex", + }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, + new java.lang.String[] { + "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", + }); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, + new java.lang.String[] { + "Networks", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, + new java.lang.String[] { + "Network", "UpdateMask", + }); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, + new java.lang.String[] { + "Network", "UsedIps", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, + new java.lang.String[] { + "Location", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, + new java.lang.String[] { + "Networks", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java index 3ffd7b9..19550dd 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Network with all used IP addresses.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} */ -public final class NetworkUsage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkUsage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkUsage) NetworkUsageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkUsage.newBuilder() to construct. private NetworkUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkUsage() { usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkUsage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NetworkUsage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,35 +71,39 @@ private NetworkUsage( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; - if (network_ != null) { - subBuilder = network_.toBuilder(); - } - network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(network_); - network_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - usedIps_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + usedIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + usedIps_.add(s); + break; } - usedIps_.add(s); - 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) { @@ -90,8 +111,7 @@ private NetworkUsage( } 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)) { usedIps_ = usedIps_.getUnmodifiableView(); @@ -100,27 +120,33 @@ private NetworkUsage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Network network_; /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return Whether the network field is set. */ @java.lang.Override @@ -128,18 +154,25 @@ public boolean hasNetwork() { return network_ != null; } /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return The network. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network getNetwork() { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } /** + * + * *
    * Network.
    * 
@@ -154,34 +187,42 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde public static final int USED_IPS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList usedIps_; /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return A list containing the usedIps. */ - public com.google.protobuf.ProtocolStringList - getUsedIpsList() { + public com.google.protobuf.ProtocolStringList getUsedIpsList() { return usedIps_; } /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return The count of usedIps. */ public int getUsedIpsCount() { return usedIps_.size(); } /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the element to return. * @return The usedIps at the given index. */ @@ -189,20 +230,23 @@ public java.lang.String getUsedIps(int index) { return usedIps_.get(index); } /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - public com.google.protobuf.ByteString - getUsedIpsBytes(int index) { + public com.google.protobuf.ByteString getUsedIpsBytes(int index) { return usedIps_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,8 +258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (network_ != null) { output.writeMessage(1, getNetwork()); } @@ -232,8 +275,7 @@ public int getSerializedSize() { size = 0; if (network_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNetwork()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetwork()); } { int dataSize = 0; @@ -251,20 +293,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.baremetalsolution.v2.NetworkUsage)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NetworkUsage other = (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; + com.google.cloud.baremetalsolution.v2.NetworkUsage other = + (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; if (hasNetwork() != other.hasNetwork()) return false; if (hasNetwork()) { - if (!getNetwork() - .equals(other.getNetwork())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; } - if (!getUsedIpsList() - .equals(other.getUsedIpsList())) return false; + if (!getUsedIpsList().equals(other.getUsedIpsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,117 +331,126 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Network with all used IP addresses.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkUsage) com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkUsage.newBuilder() @@ -408,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(); @@ -433,9 +482,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override @@ -454,7 +503,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { - com.google.cloud.baremetalsolution.v2.NetworkUsage result = new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); + com.google.cloud.baremetalsolution.v2.NetworkUsage result = + new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); int from_bitField0_ = bitField0_; if (networkBuilder_ == null) { result.network_ = network_; @@ -474,38 +524,39 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkUsage) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage) other); } else { super.mergeFrom(other); return this; @@ -513,7 +564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkUsage other) { - if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) + return this; if (other.hasNetwork()) { mergeNetwork(other.getNetwork()); } @@ -546,7 +598,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -555,38 +608,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.baremetalsolution.v2.Network network_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networkBuilder_; /** + * + * *
      * Network.
      * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** + * + * *
      * Network.
      * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return The network. */ public com.google.cloud.baremetalsolution.v2.Network getNetwork() { if (networkBuilder_ == null) { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } else { return networkBuilder_.getMessage(); } } /** + * + * *
      * Network.
      * 
@@ -607,6 +674,8 @@ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { return this; } /** + * + * *
      * Network.
      * 
@@ -625,6 +694,8 @@ public Builder setNetwork( return this; } /** + * + * *
      * Network.
      * 
@@ -635,7 +706,9 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_) + .mergeFrom(value) + .buildPartial(); } else { network_ = value; } @@ -647,6 +720,8 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * Network.
      * 
@@ -665,6 +740,8 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Network.
      * 
@@ -672,11 +749,13 @@ public Builder clearNetwork() { * .google.cloud.baremetalsolution.v2.Network network = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** + * + * *
      * Network.
      * 
@@ -687,11 +766,14 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilder(); } else { - return network_ == null ? - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } } /** + * + * *
      * Network.
      * 
@@ -699,55 +781,68 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde * .google.cloud.baremetalsolution.v2.Network network = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { - networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - getNetwork(), - getParentForChildren(), - isClean()); + networkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), getParentForChildren(), isClean()); network_ = null; } return networkBuilder_; } - private com.google.protobuf.LazyStringList usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList usedIps_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUsedIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { usedIps_ = new com.google.protobuf.LazyStringArrayList(usedIps_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @return A list containing the usedIps. */ - public com.google.protobuf.ProtocolStringList - getUsedIpsList() { + public com.google.protobuf.ProtocolStringList getUsedIpsList() { return usedIps_.getUnmodifiableView(); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @return The count of usedIps. */ public int getUsedIpsCount() { return usedIps_.size(); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param index The index of the element to return. * @return The usedIps at the given index. */ @@ -755,80 +850,90 @@ public java.lang.String getUsedIps(int index) { return usedIps_.get(index); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - public com.google.protobuf.ByteString - getUsedIpsBytes(int index) { + public com.google.protobuf.ByteString getUsedIpsBytes(int index) { return usedIps_.getByteString(index); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param index The index to set the value at. * @param value The usedIps to set. * @return This builder for chaining. */ - public Builder setUsedIps( - int index, java.lang.String value) { + public Builder setUsedIps(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUsedIpsIsMutable(); + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); usedIps_.set(index, value); onChanged(); return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param value The usedIps to add. * @return This builder for chaining. */ - public Builder addUsedIps( - java.lang.String value) { + public Builder addUsedIps(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUsedIpsIsMutable(); + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); usedIps_.add(value); onChanged(); return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param values The usedIps to add. * @return This builder for chaining. */ - public Builder addAllUsedIps( - java.lang.Iterable values) { + public Builder addAllUsedIps(java.lang.Iterable values) { ensureUsedIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, usedIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, usedIps_); onChanged(); return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @return This builder for chaining. */ public Builder clearUsedIps() { @@ -838,28 +943,30 @@ public Builder clearUsedIps() { return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param value The bytes of the usedIps to add. * @return This builder for chaining. */ - public Builder addUsedIpsBytes( - com.google.protobuf.ByteString value) { + public Builder addUsedIpsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUsedIpsIsMutable(); usedIps_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -869,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkUsage) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkUsage) private static final com.google.cloud.baremetalsolution.v2.NetworkUsage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkUsage(); } @@ -883,16 +990,16 @@ public static com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkUsage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkUsage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkUsage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -907,6 +1014,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java index ea45772..60acf99 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkUsageOrBuilder extends +public interface NetworkUsageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkUsage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return Whether the network field is set. */ boolean hasNetwork(); /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return The network. */ com.google.cloud.baremetalsolution.v2.Network getNetwork(); /** + * + * *
    * Network.
    * 
@@ -35,43 +59,53 @@ public interface NetworkUsageOrBuilder extends com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return A list containing the usedIps. */ - java.util.List - getUsedIpsList(); + java.util.List getUsedIpsList(); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return The count of usedIps. */ int getUsedIpsCount(); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the element to return. * @return The usedIps at the given index. */ java.lang.String getUsedIps(int index); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - com.google.protobuf.ByteString - getUsedIpsBytes(int index); + com.google.protobuf.ByteString getUsedIpsBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java index 7be4d09..b8bb184 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * An NFS share.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} */ -public final class NfsShare extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NfsShare extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare) NfsShareOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NfsShare.newBuilder() to construct. private NfsShare(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NfsShare() { name_ = ""; nfsShareId_ = ""; @@ -29,16 +47,15 @@ private NfsShare() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NfsShare(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NfsShare( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,59 +75,68 @@ private NfsShare( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nfsShareId_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + nfsShareId_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - volume_ = s; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedClients_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + volume_ = s; + break; } - allowedClients_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedClients_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient>(); + mutable_bitField0_ |= 0x00000001; + } + allowedClients_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), + extensionRegistry)); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,8 +144,7 @@ private NfsShare( } 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)) { allowedClients_ = java.util.Collections.unmodifiableList(allowedClients_); @@ -128,41 +153,46 @@ private NfsShare( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.class, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); } /** + * + * *
    * The possible states for this NFS share.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The share is in an unknown state.
      * 
@@ -171,6 +201,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The share has been provisioned.
      * 
@@ -182,6 +214,8 @@ public enum State ; /** + * + * *
      * The share is in an unknown state.
      * 
@@ -190,6 +224,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The share has been provisioned.
      * 
@@ -198,7 +234,6 @@ public enum State */ public static final int PROVISIONED_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -223,48 +258,47 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -282,15 +316,18 @@ private State(int value) { } /** + * + * *
    * The possible mount permissions.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.MountPermissions} */ - public enum MountPermissions - implements com.google.protobuf.ProtocolMessageEnum { + public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Permissions were not specified.
      * 
@@ -299,6 +336,8 @@ public enum MountPermissions */ MOUNT_PERMISSIONS_UNSPECIFIED(0), /** + * + * *
      * NFS share can be mount with read-only permissions.
      * 
@@ -307,6 +346,8 @@ public enum MountPermissions */ READ(1), /** + * + * *
      * NFS share can be mount with read-write permissions.
      * 
@@ -318,6 +359,8 @@ public enum MountPermissions ; /** + * + * *
      * Permissions were not specified.
      * 
@@ -326,6 +369,8 @@ public enum MountPermissions */ public static final int MOUNT_PERMISSIONS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * NFS share can be mount with read-only permissions.
      * 
@@ -334,6 +379,8 @@ public enum MountPermissions */ public static final int READ_VALUE = 1; /** + * + * *
      * NFS share can be mount with read-write permissions.
      * 
@@ -342,7 +389,6 @@ public enum MountPermissions */ public static final int READ_WRITE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -367,39 +413,42 @@ public static MountPermissions valueOf(int value) { */ public static MountPermissions forNumber(int value) { switch (value) { - case 0: return MOUNT_PERMISSIONS_UNSPECIFIED; - case 1: return READ; - case 2: return READ_WRITE; - default: return null; + case 0: + return MOUNT_PERMISSIONS_UNSPECIFIED; + case 1: + return READ; + case 2: + return READ_WRITE; + 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< - MountPermissions> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MountPermissions findValueByNumber(int number) { - return MountPermissions.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 MountPermissions findValueByNumber(int number) { + return MountPermissions.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.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(1); } @@ -408,8 +457,7 @@ public MountPermissions findValueByNumber(int number) { public static MountPermissions 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; @@ -426,110 +474,142 @@ private MountPermissions(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.NfsShare.MountPermissions) } - public interface AllowedClientOrBuilder extends + public interface AllowedClientOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The shareIp. */ java.lang.String getShareIp(); /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The bytes for shareIp. */ - com.google.protobuf.ByteString - getShareIpBytes(); + com.google.protobuf.ByteString getShareIpBytes(); /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The allowedClientsCidr. */ java.lang.String getAllowedClientsCidr(); /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The bytes for allowedClientsCidr. */ - com.google.protobuf.ByteString - getAllowedClientsCidrBytes(); + com.google.protobuf.ByteString getAllowedClientsCidrBytes(); /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The enum numeric value on the wire for mountPermissions. */ int getMountPermissionsValue(); /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The mountPermissions. */ com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions(); /** + * + * *
      * Allow dev flag.  Which controls whether to allow creation of devices.
      * 
* * bool allow_dev = 5; + * * @return The allowDev. */ boolean getAllowDev(); /** + * + * *
      * Allow the setuid flag.
      * 
* * bool allow_suid = 6; + * * @return The allowSuid. */ boolean getAllowSuid(); /** + * + * *
      * Disable root squashing, which is a feature of NFS.
      * Root squash is a special mapping of the remote superuser (root) identity
@@ -537,26 +617,30 @@ public interface AllowedClientOrBuilder extends
      * 
* * bool no_root_squash = 7; + * * @return The noRootSquash. */ boolean getNoRootSquash(); } /** + * + * *
    * Represents an 'access point' for the share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} */ - public static final class AllowedClient extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AllowedClient extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) AllowedClientOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowedClient.newBuilder() to construct. private AllowedClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AllowedClient() { network_ = ""; shareIp_ = ""; @@ -566,16 +650,15 @@ private AllowedClient() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AllowedClient(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AllowedClient( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -594,52 +677,56 @@ private AllowedClient( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - shareIp_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - allowedClientsCidr_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - mountPermissions_ = rawValue; - break; - } - case 40: { + network_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - allowDev_ = input.readBool(); - break; - } - case 48: { + shareIp_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - allowSuid_ = input.readBool(); - break; - } - case 56: { + allowedClientsCidr_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); - noRootSquash_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mountPermissions_ = rawValue; + break; + } + case 40: + { + allowDev_ = input.readBool(); + break; + } + case 48: + { + allowSuid_ = input.readBool(); + break; + } + case 56: + { + noRootSquash_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -647,34 +734,39 @@ private AllowedClient( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The network. */ @java.lang.Override @@ -683,29 +775,29 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -716,11 +808,14 @@ public java.lang.String getNetwork() { public static final int SHARE_IP_FIELD_NUMBER = 2; private volatile java.lang.Object shareIp_; /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The shareIp. */ @java.lang.Override @@ -729,29 +824,29 @@ public java.lang.String getShareIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareIp_ = s; return s; } } /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The bytes for shareIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getShareIpBytes() { + public com.google.protobuf.ByteString getShareIpBytes() { java.lang.Object ref = shareIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareIp_ = b; return b; } else { @@ -762,11 +857,14 @@ public java.lang.String getShareIp() { public static final int ALLOWED_CLIENTS_CIDR_FIELD_NUMBER = 3; private volatile java.lang.Object allowedClientsCidr_; /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The allowedClientsCidr. */ @java.lang.Override @@ -775,29 +873,29 @@ public java.lang.String getAllowedClientsCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClientsCidr_ = s; return s; } } /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The bytes for allowedClientsCidr. */ @java.lang.Override - public com.google.protobuf.ByteString - getAllowedClientsCidrBytes() { + public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { java.lang.Object ref = allowedClientsCidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); allowedClientsCidr_ = b; return b; } else { @@ -808,38 +906,55 @@ public java.lang.String getAllowedClientsCidr() { public static final int MOUNT_PERMISSIONS_FIELD_NUMBER = 4; private int mountPermissions_; /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The enum numeric value on the wire for mountPermissions. */ - @java.lang.Override public int getMountPermissionsValue() { + @java.lang.Override + public int getMountPermissionsValue() { return mountPermissions_; } /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The mountPermissions. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf( + mountPermissions_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED + : result; } public static final int ALLOW_DEV_FIELD_NUMBER = 5; private boolean allowDev_; /** + * + * *
      * Allow dev flag.  Which controls whether to allow creation of devices.
      * 
* * bool allow_dev = 5; + * * @return The allowDev. */ @java.lang.Override @@ -850,11 +965,14 @@ public boolean getAllowDev() { public static final int ALLOW_SUID_FIELD_NUMBER = 6; private boolean allowSuid_; /** + * + * *
      * Allow the setuid flag.
      * 
* * bool allow_suid = 6; + * * @return The allowSuid. */ @java.lang.Override @@ -865,6 +983,8 @@ public boolean getAllowSuid() { public static final int NO_ROOT_SQUASH_FIELD_NUMBER = 7; private boolean noRootSquash_; /** + * + * *
      * Disable root squashing, which is a feature of NFS.
      * Root squash is a special mapping of the remote superuser (root) identity
@@ -872,6 +992,7 @@ public boolean getAllowSuid() {
      * 
* * bool no_root_squash = 7; + * * @return The noRootSquash. */ @java.lang.Override @@ -880,6 +1001,7 @@ public boolean getNoRootSquash() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -891,8 +1013,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -902,7 +1023,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allowedClientsCidr_); } - if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { + if (mountPermissions_ + != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions + .MOUNT_PERMISSIONS_UNSPECIFIED + .getNumber()) { output.writeEnum(4, mountPermissions_); } if (allowDev_ != false) { @@ -932,21 +1056,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, allowedClientsCidr_); } - if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, mountPermissions_); + if (mountPermissions_ + != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions + .MOUNT_PERMISSIONS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, mountPermissions_); } if (allowDev_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, allowDev_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowDev_); } if (allowSuid_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, allowSuid_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowSuid_); } if (noRootSquash_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, noRootSquash_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, noRootSquash_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -956,26 +1079,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.baremetalsolution.v2.NfsShare.AllowedClient)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = + (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getShareIp() - .equals(other.getShareIp())) return false; - if (!getAllowedClientsCidr() - .equals(other.getAllowedClientsCidr())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getShareIp().equals(other.getShareIp())) return false; + if (!getAllowedClientsCidr().equals(other.getAllowedClientsCidr())) return false; if (mountPermissions_ != other.mountPermissions_) return false; - if (getAllowDev() - != other.getAllowDev()) return false; - if (getAllowSuid() - != other.getAllowSuid()) return false; - if (getNoRootSquash() - != other.getNoRootSquash()) return false; + if (getAllowDev() != other.getAllowDev()) return false; + if (getAllowSuid() != other.getAllowSuid()) return false; + if (getNoRootSquash() != other.getNoRootSquash()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -996,101 +1114,105 @@ public int hashCode() { hash = (37 * hash) + MOUNT_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + mountPermissions_; hash = (37 * hash) + ALLOW_DEV_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowDev()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowDev()); hash = (37 * hash) + ALLOW_SUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowSuid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowSuid()); hash = (37 * hash) + NO_ROOT_SQUASH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNoRootSquash()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoRootSquash()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1100,27 +1222,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Represents an 'access point' for the share.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.newBuilder() @@ -1128,16 +1255,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(); @@ -1159,13 +1285,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance(); } @@ -1180,7 +1307,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial() { - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = + new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); result.network_ = network_; result.shareIp_ = shareIp_; result.allowedClientsCidr_ = allowedClientsCidr_; @@ -1196,38 +1324,41 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) other); } else { super.mergeFrom(other); return this; @@ -1235,7 +1366,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other) { - if (other == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) return this; + if (other + == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) + return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -1279,7 +1412,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1291,18 +1426,20 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1311,20 +1448,21 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1332,54 +1470,61 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -1387,18 +1532,20 @@ public Builder setNetworkBytes( private java.lang.Object shareIp_ = ""; /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @return The shareIp. */ public java.lang.String getShareIp() { java.lang.Object ref = shareIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareIp_ = s; return s; @@ -1407,20 +1554,21 @@ public java.lang.String getShareIp() { } } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @return The bytes for shareIp. */ - public com.google.protobuf.ByteString - getShareIpBytes() { + public com.google.protobuf.ByteString getShareIpBytes() { java.lang.Object ref = shareIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareIp_ = b; return b; } else { @@ -1428,54 +1576,61 @@ public java.lang.String getShareIp() { } } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @param value The shareIp to set. * @return This builder for chaining. */ - public Builder setShareIp( - java.lang.String value) { + public Builder setShareIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + shareIp_ = value; onChanged(); return this; } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @return This builder for chaining. */ public Builder clearShareIp() { - + shareIp_ = getDefaultInstance().getShareIp(); onChanged(); return this; } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @param value The bytes for shareIp to set. * @return This builder for chaining. */ - public Builder setShareIpBytes( - com.google.protobuf.ByteString value) { + public Builder setShareIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shareIp_ = value; onChanged(); return this; @@ -1483,18 +1638,20 @@ public Builder setShareIpBytes( private java.lang.Object allowedClientsCidr_ = ""; /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @return The allowedClientsCidr. */ public java.lang.String getAllowedClientsCidr() { java.lang.Object ref = allowedClientsCidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClientsCidr_ = s; return s; @@ -1503,20 +1660,21 @@ public java.lang.String getAllowedClientsCidr() { } } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @return The bytes for allowedClientsCidr. */ - public com.google.protobuf.ByteString - getAllowedClientsCidrBytes() { + public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { java.lang.Object ref = allowedClientsCidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); allowedClientsCidr_ = b; return b; } else { @@ -1524,54 +1682,61 @@ public java.lang.String getAllowedClientsCidr() { } } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @param value The allowedClientsCidr to set. * @return This builder for chaining. */ - public Builder setAllowedClientsCidr( - java.lang.String value) { + public Builder setAllowedClientsCidr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + allowedClientsCidr_ = value; onChanged(); return this; } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @return This builder for chaining. */ public Builder clearAllowedClientsCidr() { - + allowedClientsCidr_ = getDefaultInstance().getAllowedClientsCidr(); onChanged(); return this; } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @param value The bytes for allowedClientsCidr to set. * @return This builder for chaining. */ - public Builder setAllowedClientsCidrBytes( - com.google.protobuf.ByteString value) { + public Builder setAllowedClientsCidrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowedClientsCidr_ = value; onChanged(); return this; @@ -1579,85 +1744,114 @@ public Builder setAllowedClientsCidrBytes( private int mountPermissions_ = 0; /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The enum numeric value on the wire for mountPermissions. */ - @java.lang.Override public int getMountPermissionsValue() { + @java.lang.Override + public int getMountPermissionsValue() { return mountPermissions_; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @param value The enum numeric value on the wire for mountPermissions to set. * @return This builder for chaining. */ public Builder setMountPermissionsValue(int value) { - + mountPermissions_ = value; onChanged(); return this; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The mountPermissions. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf( + mountPermissions_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED + : result; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @param value The mountPermissions to set. * @return This builder for chaining. */ - public Builder setMountPermissions(com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { + public Builder setMountPermissions( + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { if (value == null) { throw new NullPointerException(); } - + mountPermissions_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return This builder for chaining. */ public Builder clearMountPermissions() { - + mountPermissions_ = 0; onChanged(); return this; } - private boolean allowDev_ ; + private boolean allowDev_; /** + * + * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; + * * @return The allowDev. */ @java.lang.Override @@ -1665,42 +1859,51 @@ public boolean getAllowDev() { return allowDev_; } /** + * + * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; + * * @param value The allowDev to set. * @return This builder for chaining. */ public Builder setAllowDev(boolean value) { - + allowDev_ = value; onChanged(); return this; } /** + * + * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; + * * @return This builder for chaining. */ public Builder clearAllowDev() { - + allowDev_ = false; onChanged(); return this; } - private boolean allowSuid_ ; + private boolean allowSuid_; /** + * + * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; + * * @return The allowSuid. */ @java.lang.Override @@ -1708,37 +1911,45 @@ public boolean getAllowSuid() { return allowSuid_; } /** + * + * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; + * * @param value The allowSuid to set. * @return This builder for chaining. */ public Builder setAllowSuid(boolean value) { - + allowSuid_ = value; onChanged(); return this; } /** + * + * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; + * * @return This builder for chaining. */ public Builder clearAllowSuid() { - + allowSuid_ = false; onChanged(); return this; } - private boolean noRootSquash_ ; + private boolean noRootSquash_; /** + * + * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1746,6 +1957,7 @@ public Builder clearAllowSuid() {
        * 
* * bool no_root_squash = 7; + * * @return The noRootSquash. */ @java.lang.Override @@ -1753,6 +1965,8 @@ public boolean getNoRootSquash() { return noRootSquash_; } /** + * + * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1760,16 +1974,19 @@ public boolean getNoRootSquash() {
        * 
* * bool no_root_squash = 7; + * * @param value The noRootSquash to set. * @return This builder for chaining. */ public Builder setNoRootSquash(boolean value) { - + noRootSquash_ = value; onChanged(); return this; } /** + * + * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1777,14 +1994,16 @@ public Builder setNoRootSquash(boolean value) {
        * 
* * bool no_root_squash = 7; + * * @return This builder for chaining. */ public Builder clearNoRootSquash() { - + noRootSquash_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1797,30 +2016,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) - private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedClient parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedClient(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedClient parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedClient(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1832,20 +2053,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1854,29 +2078,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1887,11 +2111,14 @@ public java.lang.String getName() { public static final int NFS_SHARE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nfsShareId_; /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nfsShareId. */ @java.lang.Override @@ -1900,29 +2127,29 @@ public java.lang.String getNfsShareId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nfsShareId_ = s; return s; } } /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nfsShareId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNfsShareIdBytes() { + public com.google.protobuf.ByteString getNfsShareIdBytes() { java.lang.Object ref = nfsShareId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nfsShareId_ = b; return b; } else { @@ -1933,38 +2160,52 @@ public java.lang.String getNfsShareId() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.State result = + com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED + : result; } public static final int VOLUME_FIELD_NUMBER = 4; private volatile java.lang.Object volume_; /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The volume. */ @java.lang.Override @@ -1973,29 +2214,29 @@ public java.lang.String getVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; } } /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for volume. */ @java.lang.Override - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -2004,84 +2245,101 @@ public java.lang.String getVolume() { } public static final int ALLOWED_CLIENTS_FIELD_NUMBER = 5; - private java.util.List allowedClients_; + private java.util.List + allowedClients_; /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override - public java.util.List getAllowedClientsList() { + public java.util.List + getAllowedClientsList() { return allowedClients_; } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> getAllowedClientsOrBuilderList() { return allowedClients_; } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override public int getAllowedClientsCount() { return allowedClients_.size(); } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { return allowedClients_.get(index); } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder + getAllowedClientsOrBuilder(int index) { return allowedClients_.get(index); } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -2090,28 +2348,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -2119,11 +2379,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -2131,16 +2392,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -2148,12 +2409,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2161,6 +2421,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2172,15 +2433,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nfsShareId_); } - if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { @@ -2189,12 +2450,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < allowedClients_.size(); i++) { output.writeMessage(5, allowedClients_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); unknownFields.writeTo(output); } @@ -2210,26 +2467,25 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nfsShareId_); } - if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volume_); } for (int i = 0; i < allowedClients_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, allowedClients_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, allowedClients_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2239,24 +2495,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.baremetalsolution.v2.NfsShare)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NfsShare other = (com.google.cloud.baremetalsolution.v2.NfsShare) obj; + com.google.cloud.baremetalsolution.v2.NfsShare other = + (com.google.cloud.baremetalsolution.v2.NfsShare) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getNfsShareId() - .equals(other.getNfsShareId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getNfsShareId().equals(other.getNfsShareId())) return false; if (state_ != other.state_) return false; - if (!getVolume() - .equals(other.getVolume())) return false; - if (!getAllowedClientsList() - .equals(other.getAllowedClientsList())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getVolume().equals(other.getVolume())) return false; + if (!getAllowedClientsList().equals(other.getAllowedClientsList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2289,140 +2541,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare 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.baremetalsolution.v2.NfsShare parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An NFS share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare) com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.class, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder() @@ -2430,17 +2689,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) { getAllowedClientsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2463,9 +2722,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @java.lang.Override @@ -2484,7 +2743,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShare build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { - com.google.cloud.baremetalsolution.v2.NfsShare result = new com.google.cloud.baremetalsolution.v2.NfsShare(this); + com.google.cloud.baremetalsolution.v2.NfsShare result = + new com.google.cloud.baremetalsolution.v2.NfsShare(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.nfsShareId_ = nfsShareId_; @@ -2509,38 +2769,39 @@ public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare) other); } else { super.mergeFrom(other); return this; @@ -2582,16 +2843,16 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare other) { allowedClientsBuilder_ = null; allowedClients_ = other.allowedClients_; bitField0_ = (bitField0_ & ~0x00000001); - allowedClientsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAllowedClientsFieldBuilder() : null; + allowedClientsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAllowedClientsFieldBuilder() + : null; } else { allowedClientsBuilder_.addAllMessages(other.allowedClients_); } } } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2620,22 +2881,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2644,20 +2908,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2665,54 +2930,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2720,18 +2992,20 @@ public Builder setNameBytes( private java.lang.Object nfsShareId_ = ""; /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nfsShareId. */ public java.lang.String getNfsShareId() { java.lang.Object ref = nfsShareId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nfsShareId_ = s; return s; @@ -2740,20 +3014,21 @@ public java.lang.String getNfsShareId() { } } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nfsShareId. */ - public com.google.protobuf.ByteString - getNfsShareIdBytes() { + public com.google.protobuf.ByteString getNfsShareIdBytes() { java.lang.Object ref = nfsShareId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nfsShareId_ = b; return b; } else { @@ -2761,54 +3036,61 @@ public java.lang.String getNfsShareId() { } } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nfsShareId to set. * @return This builder for chaining. */ - public Builder setNfsShareId( - java.lang.String value) { + public Builder setNfsShareId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nfsShareId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNfsShareId() { - + nfsShareId_ = getDefaultInstance().getNfsShareId(); onChanged(); return this; } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nfsShareId to set. * @return This builder for chaining. */ - public Builder setNfsShareIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNfsShareIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nfsShareId_ = value; onChanged(); return this; @@ -2816,51 +3098,67 @@ public Builder setNfsShareIdBytes( private int state_ = 0; /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.State result = + com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2868,21 +3166,24 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.NfsShare.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2890,18 +3191,20 @@ public Builder clearState() { private java.lang.Object volume_ = ""; /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The volume. */ public java.lang.String getVolume() { java.lang.Object ref = volume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; @@ -2910,20 +3213,21 @@ public java.lang.String getVolume() { } } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for volume. */ - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -2931,79 +3235,96 @@ public java.lang.String getVolume() { } } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @param value The volume to set. * @return This builder for chaining. */ - public Builder setVolume( - java.lang.String value) { + public Builder setVolume(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volume_ = value; onChanged(); return this; } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearVolume() { - + volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for volume to set. * @return This builder for chaining. */ - public Builder setVolumeBytes( - com.google.protobuf.ByteString value) { + public Builder setVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volume_ = value; onChanged(); return this; } - private java.util.List allowedClients_ = - java.util.Collections.emptyList(); + private java.util.List + allowedClients_ = java.util.Collections.emptyList(); + private void ensureAllowedClientsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedClients_ = new java.util.ArrayList(allowedClients_); + allowedClients_ = + new java.util.ArrayList( + allowedClients_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> allowedClientsBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + allowedClientsBuilder_; /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public java.util.List getAllowedClientsList() { + public java.util.List + getAllowedClientsList() { if (allowedClientsBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedClients_); } else { @@ -3011,11 +3332,14 @@ public java.util.List * List of allowed access points. *
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public int getAllowedClientsCount() { if (allowedClientsBuilder_ == null) { @@ -3025,13 +3349,17 @@ public int getAllowedClientsCount() { } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients( + int index) { if (allowedClientsBuilder_ == null) { return allowedClients_.get(index); } else { @@ -3039,11 +3367,14 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedCl } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder setAllowedClients( int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { @@ -3060,14 +3391,18 @@ public Builder setAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder setAllowedClients( - int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); allowedClients_.set(index, builderForValue.build()); @@ -3078,13 +3413,17 @@ public Builder setAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public Builder addAllowedClients(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { + public Builder addAllowedClients( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { if (allowedClientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3098,11 +3437,14 @@ public Builder addAllowedClients(com.google.cloud.baremetalsolution.v2.NfsShare. return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllowedClients( int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { @@ -3119,11 +3461,14 @@ public Builder addAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllowedClients( com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { @@ -3137,14 +3482,18 @@ public Builder addAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllowedClients( - int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); allowedClients_.add(index, builderForValue.build()); @@ -3155,18 +3504,21 @@ public Builder addAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllAllowedClients( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedClients_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedClients_); onChanged(); } else { allowedClientsBuilder_.addAllMessages(values); @@ -3174,11 +3526,14 @@ public Builder addAllAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder clearAllowedClients() { if (allowedClientsBuilder_ == null) { @@ -3191,11 +3546,14 @@ public Builder clearAllowedClients() { return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder removeAllowedClients(int index) { if (allowedClientsBuilder_ == null) { @@ -3208,39 +3566,50 @@ public Builder removeAllowedClients(int index) { return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder getAllowedClientsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder + getAllowedClientsBuilder(int index) { return getAllowedClientsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder + getAllowedClientsOrBuilder(int index) { if (allowedClientsBuilder_ == null) { - return allowedClients_.get(index); } else { + return allowedClients_.get(index); + } else { return allowedClientsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public java.util.List - getAllowedClientsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + getAllowedClientsOrBuilderList() { if (allowedClientsBuilder_ != null) { return allowedClientsBuilder_.getMessageOrBuilderList(); } else { @@ -3248,45 +3617,64 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder get } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder() { - return getAllowedClientsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder + addAllowedClientsBuilder() { + return getAllowedClientsFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder( - int index) { - return getAllowedClientsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder + addAllowedClientsBuilder(int index) { + return getAllowedClientsFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public java.util.List - getAllowedClientsBuilderList() { + public java.util.List + getAllowedClientsBuilderList() { return getAllowedClientsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> getAllowedClientsFieldBuilder() { if (allowedClientsBuilder_ == null) { - allowedClientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( + allowedClientsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( allowedClients_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3296,22 +3684,21 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addA return allowedClientsBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3323,28 +3710,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3352,11 +3741,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3364,16 +3754,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3381,12 +3772,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3394,69 +3784,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3466,12 +3853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare) private static final com.google.cloud.baremetalsolution.v2.NfsShare DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare(); } @@ -3480,16 +3867,16 @@ public static com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsShare parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NfsShare(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsShare parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NfsShare(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3504,6 +3891,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java index b7ebe95..89eba99 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java @@ -1,136 +1,190 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface NfsShareOrBuilder extends +public interface NfsShareOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nfsShareId. */ java.lang.String getNfsShareId(); /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nfsShareId. */ - com.google.protobuf.ByteString - getNfsShareIdBytes(); + com.google.protobuf.ByteString getNfsShareIdBytes(); /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.NfsShare.State getState(); /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The volume. */ java.lang.String getVolume(); /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for volume. */ - com.google.protobuf.ByteString - getVolumeBytes(); + com.google.protobuf.ByteString getVolumeBytes(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - java.util.List + java.util.List getAllowedClientsList(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ int getAllowedClientsCount(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - java.util.List + java.util.List getAllowedClientsOrBuilderList(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( int index); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -139,30 +193,31 @@ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowed */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -171,18 +226,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java new file mode 100644 index 0000000..b476bcc --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java @@ -0,0 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NfsShareProto { + private NfsShareProto() {} + + 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_baremetalsolution_v2_NfsShare_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/baremetalsolution/v2/nfs_" + + "share.proto\022!google.cloud.baremetalsolut" + + "ion.v2\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032 google/proto" + + "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" + + "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" + + "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" + + "\tB,\372A)\n\'baremetalsolution.googleapis.com" + + "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" + + "e.cloud.baremetalsolution.v2.NfsShare.Al" + + "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" + + "ud.baremetalsolution.v2.NfsShare.LabelsE" + + "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" + + "-\372A*\n(baremetalsolution.googleapis.com/N" + + "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" + + "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" + + "\0162<.google.cloud.baremetalsolution.v2.Nf" + + "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" + + "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" + + "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" + + "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" + + "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" + + "olution.googleapis.com/NFSShare\022=project" + + "s/{project}/locations/{location}/nfsShar" + + "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" + + "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" + + "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" + + "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" + + "\030\001 \003(\0132+.google.cloud.baremetalsolution." + + "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" + + "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" + + "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\373\001\n%com.google.cloud.baremetalsolution" + + ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" + + "genproto/googleapis/cloud/baremetalsolut" + + "ion/v2;baremetalsolution\252\002!Google.Cloud." + + "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" + + "MetalSolution\\V2\352\002$Google::Cloud::BareMe" + + "talSolution::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, + new java.lang.String[] { + "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, + new java.lang.String[] { + "Network", + "ShareIp", + "AllowedClientsCidr", + "MountPermissions", + "AllowDev", + "AllowSuid", + "NoRootSquash", + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, + new java.lang.String[] { + "NfsShares", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, + new java.lang.String[] { + "NfsShare", "UpdateMask", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java index ce84b7e..a5cd605 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Represents the metadata from a long-running operation.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusMessage_ = s; + break; + } + case 48: + { + requestedCancellation_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +150,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, + com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -160,11 +191,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -172,11 +207,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -186,11 +224,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -198,11 +240,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -210,11 +256,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -224,11 +273,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -237,29 +289,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -270,11 +322,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -283,29 +338,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -316,11 +371,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -329,29 +387,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -362,6 +420,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -370,6 +430,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -380,11 +441,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -393,29 +457,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -424,6 +488,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -468,12 +532,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -485,8 +547,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -499,33 +560,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.OperationMetadata other = (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; + com.google.cloud.baremetalsolution.v2.OperationMetadata other = + (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -552,8 +607,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -562,117 +616,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata from a long-running operation.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.cloud.baremetalsolution.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, + com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.OperationMetadata.newBuilder() @@ -680,16 +744,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -719,9 +782,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -740,7 +803,8 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { - com.google.cloud.baremetalsolution.v2.OperationMetadata result = new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); + com.google.cloud.baremetalsolution.v2.OperationMetadata result = + new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -764,38 +828,39 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -803,7 +868,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.OperationMetadata other) { - if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -848,7 +914,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -860,39 +927,58 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -908,14 +994,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -926,17 +1015,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -948,11 +1041,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -966,48 +1063,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1015,24 +1128,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1043,11 +1167,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1063,14 +1190,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1081,17 +1210,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1103,11 +1235,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1121,48 +1256,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1170,18 +1316,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1190,20 +1338,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1211,54 +1360,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1266,18 +1422,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1286,20 +1444,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1307,54 +1466,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1362,18 +1528,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1382,20 +1550,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1403,61 +1572,70 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1466,6 +1644,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1473,6 +1652,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1481,16 +1662,19 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** + * + * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1499,10 +1683,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1510,18 +1695,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1530,20 +1717,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1551,61 +1739,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1615,12 +1810,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.OperationMetadata) private static final com.google.cloud.baremetalsolution.v2.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.OperationMetadata(); } @@ -1629,16 +1824,16 @@ public static com.google.cloud.baremetalsolution.v2.OperationMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1653,6 +1848,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java index 28fd6c5..5d598a7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java index f4cba4a..bebcfd2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to reset a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ -public final class ResetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) ResetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResetInstanceRequest.newBuilder() to construct. private ResetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ResetInstanceRequest( 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,34 +91,41 @@ private ResetInstanceRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message requesting to reset a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) com.google.cloud.baremetalsolution.v2.ResetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..1f953fe --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java index 4fc6068..8c117cb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.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/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message from resetting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ -public final class ResetInstanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResetInstanceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) ResetInstanceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResetInstanceResponse.newBuilder() to construct. private ResetInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResetInstanceResponse() { - } + + private ResetInstanceResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResetInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResetInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private ResetInstanceResponse( 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 ResetInstanceResponse( } 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.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.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.baremetalsolution.v2.ResetInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = + (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message from resetting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) com.google.cloud.baremetalsolution.v2.ResetInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override @@ -297,7 +325,8 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = + new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); onBuilt(); return result; } @@ -306,38 +335,39 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +375,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,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 +418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(); } @@ -400,16 +432,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java new file mode 100644 index 0000000..6123d2c --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java index c6bff70..44bea73 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Request for emergency resize Volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} */ -public final class ResizeVolumeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResizeVolumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) ResizeVolumeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResizeVolumeRequest.newBuilder() to construct. private ResizeVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResizeVolumeRequest() { volume_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResizeVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResizeVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,24 +70,25 @@ private ResizeVolumeRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - volume_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sizeGib_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + volume_ = s; + break; + } + case 16: + { + sizeGib_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,34 +96,41 @@ private ResizeVolumeRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private volatile java.lang.Object volume_; /** + * + * *
    * Required. Volume to resize.
    * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The volume. */ @java.lang.Override @@ -114,29 +139,31 @@ public java.lang.String getVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; } } /** + * + * *
    * Required. Volume to resize.
    * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for volume. */ @java.lang.Override - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -147,11 +174,14 @@ public java.lang.String getVolume() { public static final int SIZE_GIB_FIELD_NUMBER = 2; private long sizeGib_; /** + * + * *
    * New Volume size, in GiB.
    * 
* * int64 size_gib = 2; + * * @return The sizeGib. */ @java.lang.Override @@ -160,6 +190,7 @@ public long getSizeGib() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volume_); } @@ -192,8 +222,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volume_); } if (sizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, sizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeGib_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -203,17 +232,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.baremetalsolution.v2.ResizeVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = + (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; - if (!getVolume() - .equals(other.getVolume())) return false; - if (getSizeGib() - != other.getSizeGib()) return false; + if (!getVolume().equals(other.getVolume())) return false; + if (getSizeGib() != other.getSizeGib()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,125 +256,134 @@ public int hashCode() { hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + getVolume().hashCode(); hash = (37 * hash) + SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGib()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 emergency resize Volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) com.google.cloud.baremetalsolution.v2.ResizeVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.newBuilder() @@ -354,16 +391,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(); @@ -375,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override @@ -396,7 +432,8 @@ public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = + new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); result.volume_ = volume_; result.sizeGib_ = sizeGib_; onBuilt(); @@ -407,38 +444,39 @@ public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) other); } else { super.mergeFrom(other); return this; @@ -446,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) + return this; if (!other.getVolume().isEmpty()) { volume_ = other.volume_; onChanged(); @@ -473,7 +512,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,18 +525,22 @@ public Builder mergeFrom( private java.lang.Object volume_ = ""; /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The volume. */ public java.lang.String getVolume() { java.lang.Object ref = volume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; @@ -505,20 +549,23 @@ public java.lang.String getVolume() { } } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for volume. */ - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -526,66 +573,82 @@ public java.lang.String getVolume() { } } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The volume to set. * @return This builder for chaining. */ - public Builder setVolume( - java.lang.String value) { + public Builder setVolume(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volume_ = value; onChanged(); return this; } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearVolume() { - + volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for volume to set. * @return This builder for chaining. */ - public Builder setVolumeBytes( - com.google.protobuf.ByteString value) { + public Builder setVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volume_ = value; onChanged(); return this; } - private long sizeGib_ ; + private long sizeGib_; /** + * + * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; + * * @return The sizeGib. */ @java.lang.Override @@ -593,37 +656,43 @@ public long getSizeGib() { return sizeGib_; } /** + * + * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; + * * @param value The sizeGib to set. * @return This builder for chaining. */ public Builder setSizeGib(long value) { - + sizeGib_ = value; onChanged(); return this; } /** + * + * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; + * * @return This builder for chaining. */ public Builder clearSizeGib() { - + sizeGib_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(); } @@ -647,16 +716,16 @@ public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResizeVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResizeVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResizeVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResizeVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,6 +740,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java new file mode 100644 index 0000000..072aeb8 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResizeVolumeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Volume to resize.
+   * 
+ * + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The volume. + */ + java.lang.String getVolume(); + /** + * + * + *
+   * Required. Volume to resize.
+   * 
+ * + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for volume. + */ + com.google.protobuf.ByteString getVolumeBytes(); + + /** + * + * + *
+   * New Volume size, in GiB.
+   * 
+ * + * int64 size_gib = 2; + * + * @return The sizeGib. + */ + long getSizeGib(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java index 694ee3d..6992d46 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Network template.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} */ -public final class ServerNetworkTemplate extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ServerNetworkTemplate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) ServerNetworkTemplateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ServerNetworkTemplate.newBuilder() to construct. private ServerNetworkTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ServerNetworkTemplate() { name_ = ""; applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private ServerNetworkTemplate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ServerNetworkTemplate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ServerNetworkTemplate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,46 @@ private ServerNetworkTemplate( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - applicableInstanceTypes_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + applicableInstanceTypes_.add(s); + break; } - logicalInterfaces_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + logicalInterfaces_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterface>(); + mutable_bitField0_ |= 0x00000002; + } + logicalInterfaces_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +120,7 @@ private ServerNetworkTemplate( } 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)) { applicableInstanceTypes_ = applicableInstanceTypes_.getUnmodifiableView(); @@ -107,24 +132,30 @@ private ServerNetworkTemplate( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); } - public interface LogicalInterfaceOrBuilder extends + public interface LogicalInterfaceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -134,10 +165,13 @@ public interface LogicalInterfaceOrBuilder extends
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -147,56 +181,73 @@ public interface LogicalInterfaceOrBuilder extends
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The type. */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType(); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + getType(); /** + * + * *
      * If true, interface must have network connected.
      * 
* * bool required = 3; + * * @return The required. */ boolean getRequired(); } /** + * + * *
    * Logical interface.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} */ - public static final class LogicalInterface extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LogicalInterface extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) LogicalInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogicalInterface.newBuilder() to construct. private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LogicalInterface() { name_ = ""; type_ = 0; @@ -204,16 +255,15 @@ private LogicalInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogicalInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LogicalInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -232,30 +282,32 @@ private LogicalInterface( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 24: { + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - required_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + type_ = rawValue; + break; + } + case 24: + { + required_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -263,36 +315,43 @@ private LogicalInterface( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + .class); } /** + * + * *
      * Interface type.
      * 
* - * Protobuf enum {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} + * Protobuf enum {@code + * google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} */ - public enum InterfaceType - implements com.google.protobuf.ProtocolMessageEnum { + public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified value.
        * 
@@ -301,6 +360,8 @@ public enum InterfaceType */ INTERFACE_TYPE_UNSPECIFIED(0), /** + * + * *
        * Bond interface type.
        * 
@@ -309,6 +370,8 @@ public enum InterfaceType */ BOND(1), /** + * + * *
        * NIC interface type.
        * 
@@ -320,6 +383,8 @@ public enum InterfaceType ; /** + * + * *
        * Unspecified value.
        * 
@@ -328,6 +393,8 @@ public enum InterfaceType */ public static final int INTERFACE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Bond interface type.
        * 
@@ -336,6 +403,8 @@ public enum InterfaceType */ public static final int BOND_VALUE = 1; /** + * + * *
        * NIC interface type.
        * 
@@ -344,7 +413,6 @@ public enum InterfaceType */ public static final int NIC_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -369,40 +437,46 @@ public static InterfaceType valueOf(int value) { */ public static InterfaceType forNumber(int value) { switch (value) { - case 0: return INTERFACE_TYPE_UNSPECIFIED; - case 1: return BOND; - case 2: return NIC; - default: return null; + case 0: + return INTERFACE_TYPE_UNSPECIFIED; + case 1: + return BOND; + case 2: + return NIC; + 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< - InterfaceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InterfaceType findValueByNumber(int number) { - return InterfaceType.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 InterfaceType findValueByNumber(int number) { + return InterfaceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDescriptor() + .getEnumTypes() + .get(0); } private static final InterfaceType[] VALUES = values(); @@ -410,8 +484,7 @@ public InterfaceType findValueByNumber(int number) { public static InterfaceType 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; @@ -431,6 +504,8 @@ private InterfaceType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -440,6 +515,7 @@ private InterfaceType(int value) {
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -448,14 +524,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; } } /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -465,16 +542,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @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 { @@ -485,38 +561,61 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType + getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + result = + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.UNRECOGNIZED + : result; } public static final int REQUIRED_FIELD_NUMBER = 3; private boolean required_; /** + * + * *
      * If true, interface must have network connected.
      * 
* * bool required = 3; + * * @return The required. */ @java.lang.Override @@ -525,6 +624,7 @@ public boolean getRequired() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -536,12 +636,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.INTERFACE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } if (required_ != false) { @@ -559,13 +661,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.INTERFACE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (required_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, required_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, required_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -575,18 +678,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.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { + if (!(obj + instanceof + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; - if (getRequired() - != other.getRequired()) return false; + if (getRequired() != other.getRequired()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -603,95 +707,107 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequired()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -701,44 +817,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Logical interface.
      * 
* - * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} + * Protobuf type {@code + * google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + .class); } - // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() + // Construct using + // com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -752,19 +875,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface build() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = buildPartial(); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -772,8 +898,10 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface buildPartial() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + buildPartial() { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = + new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); result.name_ = name_; result.type_ = type_; result.required_ = required_; @@ -785,46 +913,55 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)other); + if (other + instanceof + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { + return mergeFrom( + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { - if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { + if (other + == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -850,11 +987,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = null; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -866,6 +1006,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -875,13 +1017,13 @@ public Builder mergeFrom(
        * 
* * string name = 1; + * * @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; @@ -890,6 +1032,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -899,15 +1043,14 @@ public java.lang.String getName() {
        * 
* * string name = 1; + * * @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 { @@ -915,6 +1058,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -924,20 +1069,22 @@ public java.lang.String getName() {
        * 
* * string name = 1; + * * @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; } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -947,15 +1094,18 @@ public Builder setName(
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -965,16 +1115,16 @@ public Builder clearName() {
        * 
* * string name = 1; + * * @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; @@ -982,85 +1132,124 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The type. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType + getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + result = + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.UNRECOGNIZED + : result; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType value) { + public Builder setType( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean required_ ; + private boolean required_; /** + * + * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; + * * @return The required. */ @java.lang.Override @@ -1068,34 +1257,41 @@ public boolean getRequired() { return required_; } /** + * + * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; + * * @param value The required to set. * @return This builder for chaining. */ public Builder setRequired(boolean value) { - + required_ = value; onChanged(); return this; } /** + * + * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; + * * @return This builder for chaining. */ public Builder clearRequired() { - + required_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1108,30 +1304,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) - private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterface + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); + DEFAULT_INSTANCE = + new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,15 +1343,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1160,6 +1362,7 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1168,14 +1371,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; } } /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1184,16 +1388,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1204,34 +1407,42 @@ public java.lang.String getName() { public static final int APPLICABLE_INSTANCE_TYPES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList applicableInstanceTypes_; /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return A list containing the applicableInstanceTypes. */ - public com.google.protobuf.ProtocolStringList - getApplicableInstanceTypesList() { + public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList() { return applicableInstanceTypes_; } /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return The count of applicableInstanceTypes. */ public int getApplicableInstanceTypesCount() { return applicableInstanceTypes_.size(); } /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ @@ -1239,80 +1450,110 @@ public java.lang.String getApplicableInstanceTypes(int index) { return applicableInstanceTypes_.get(index); } /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - public com.google.protobuf.ByteString - getApplicableInstanceTypesBytes(int index) { + public com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index) { return applicableInstanceTypes_.getByteString(index); } public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 3; - private java.util.List logicalInterfaces_; + private java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + logicalInterfaces_; /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public java.util.List getLogicalInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + getLogicalInterfacesList() { return logicalInterfaces_; } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesOrBuilderList() { return logicalInterfaces_; } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override public int getLogicalInterfacesCount() { return logicalInterfaces_.size(); } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getLogicalInterfaces(int index) { return logicalInterfaces_.get(index); } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { return logicalInterfaces_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1324,13 +1565,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < applicableInstanceTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicableInstanceTypes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, applicableInstanceTypes_.getRaw(i)); } for (int i = 0; i < logicalInterfaces_.size(); i++) { output.writeMessage(3, logicalInterfaces_.get(i)); @@ -1356,8 +1597,8 @@ public int getSerializedSize() { size += 1 * getApplicableInstanceTypesList().size(); } for (int i = 0; i < logicalInterfaces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, logicalInterfaces_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, logicalInterfaces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1367,19 +1608,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.baremetalsolution.v2.ServerNetworkTemplate)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getApplicableInstanceTypesList() - .equals(other.getApplicableInstanceTypesList())) return false; - if (!getLogicalInterfacesList() - .equals(other.getLogicalInterfacesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getApplicableInstanceTypesList().equals(other.getApplicableInstanceTypesList())) + return false; + if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1407,117 +1647,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Network template.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) com.google.cloud.baremetalsolution.v2.ServerNetworkTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.newBuilder() @@ -1525,17 +1775,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) { getLogicalInterfacesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1553,9 +1803,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override @@ -1574,7 +1824,8 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = + new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1599,38 +1850,39 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) other); } else { super.mergeFrom(other); return this; @@ -1638,7 +1890,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other) { - if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1671,9 +1924,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemp logicalInterfacesBuilder_ = null; logicalInterfaces_ = other.logicalInterfaces_; bitField0_ = (bitField0_ & ~0x00000002); - logicalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogicalInterfacesFieldBuilder() : null; + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogicalInterfacesFieldBuilder() + : null; } else { logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); } @@ -1698,7 +1952,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1707,10 +1962,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1719,13 +1977,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1734,6 +1992,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1742,15 +2002,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1758,6 +2017,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1766,20 +2027,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1788,15 +2051,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1805,57 +2071,68 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList applicableInstanceTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureApplicableInstanceTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); + applicableInstanceTypes_ = + new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @return A list containing the applicableInstanceTypes. */ - public com.google.protobuf.ProtocolStringList - getApplicableInstanceTypesList() { + public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList() { return applicableInstanceTypes_.getUnmodifiableView(); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @return The count of applicableInstanceTypes. */ public int getApplicableInstanceTypesCount() { return applicableInstanceTypes_.size(); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ @@ -1863,80 +2140,90 @@ public java.lang.String getApplicableInstanceTypes(int index) { return applicableInstanceTypes_.get(index); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - public com.google.protobuf.ByteString - getApplicableInstanceTypesBytes(int index) { + public com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index) { return applicableInstanceTypes_.getByteString(index); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param index The index to set the value at. * @param value The applicableInstanceTypes to set. * @return This builder for chaining. */ - public Builder setApplicableInstanceTypes( - int index, java.lang.String value) { + public Builder setApplicableInstanceTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureApplicableInstanceTypesIsMutable(); + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param value The applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addApplicableInstanceTypes( - java.lang.String value) { + public Builder addApplicableInstanceTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureApplicableInstanceTypesIsMutable(); + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.add(value); onChanged(); return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param values The applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addAllApplicableInstanceTypes( - java.lang.Iterable values) { + public Builder addAllApplicableInstanceTypes(java.lang.Iterable values) { ensureApplicableInstanceTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, applicableInstanceTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicableInstanceTypes_); onChanged(); return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @return This builder for chaining. */ public Builder clearApplicableInstanceTypes() { @@ -1946,46 +2233,62 @@ public Builder clearApplicableInstanceTypes() { return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param value The bytes of the applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addApplicableInstanceTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addApplicableInstanceTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.add(value); onChanged(); return this; } - private java.util.List logicalInterfaces_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + logicalInterfaces_ = java.util.Collections.emptyList(); + private void ensureLogicalInterfacesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); + logicalInterfaces_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface>( + logicalInterfaces_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + logicalInterfacesBuilder_; /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public java.util.List getLogicalInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + getLogicalInterfacesList() { if (logicalInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalInterfaces_); } else { @@ -1993,11 +2296,15 @@ public java.util.List * Logical interfaces. *
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public int getLogicalInterfacesCount() { if (logicalInterfacesBuilder_ == null) { @@ -2007,13 +2314,18 @@ public int getLogicalInterfacesCount() { } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { return logicalInterfaces_.get(index); } else { @@ -2021,14 +2333,19 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder setLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2042,14 +2359,20 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder setLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.set(index, builderForValue.build()); @@ -2060,13 +2383,18 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + public Builder addLogicalInterfaces( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2080,14 +2408,19 @@ public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.Server return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2101,14 +2434,19 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addLogicalInterfaces( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.add(builderForValue.build()); @@ -2119,14 +2457,20 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.add(index, builderForValue.build()); @@ -2137,18 +2481,24 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addAllLogicalInterfaces( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + values) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logicalInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalInterfaces_); onChanged(); } else { logicalInterfacesBuilder_.addAllMessages(values); @@ -2156,11 +2506,15 @@ public Builder addAllLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder clearLogicalInterfaces() { if (logicalInterfacesBuilder_ == null) { @@ -2173,11 +2527,15 @@ public Builder clearLogicalInterfaces() { return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder removeLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -2190,39 +2548,55 @@ public Builder removeLogicalInterfaces(int index) { return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder getLogicalInterfacesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + getLogicalInterfacesBuilder(int index) { return getLogicalInterfacesFieldBuilder().getBuilder(index); } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { if (logicalInterfacesBuilder_ == null) { - return logicalInterfaces_.get(index); } else { + return logicalInterfaces_.get(index); + } else { return logicalInterfacesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public java.util.List - getLogicalInterfacesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterfaceOrBuilder> + getLogicalInterfacesOrBuilderList() { if (logicalInterfacesBuilder_ != null) { return logicalInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -2230,45 +2604,72 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder() { - return getLogicalInterfacesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance()); } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder( - int index) { - return getLogicalInterfacesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + addLogicalInterfacesBuilder(int index) { + return getLogicalInterfacesFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance()); } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public java.util.List - getLogicalInterfacesBuilderList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder> + getLogicalInterfacesBuilderList() { return getLogicalInterfacesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesFieldBuilder() { if (logicalInterfacesBuilder_ == null) { - logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder>( + logicalInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .Builder, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterfaceOrBuilder>( logicalInterfaces_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2277,9 +2678,9 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } return logicalInterfacesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2289,12 +2690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(); } @@ -2303,16 +2704,16 @@ public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServerNetworkTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerNetworkTemplate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerNetworkTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerNetworkTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2327,6 +2728,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java similarity index 61% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java index 7c1339a..f038bd7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ServerNetworkTemplateOrBuilder extends +public interface ServerNetworkTemplateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -16,10 +34,13 @@ public interface ServerNetworkTemplateOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -28,93 +49,126 @@ public interface ServerNetworkTemplateOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return A list containing the applicableInstanceTypes. */ - java.util.List - getApplicableInstanceTypesList(); + java.util.List getApplicableInstanceTypesList(); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return The count of applicableInstanceTypes. */ int getApplicableInstanceTypesCount(); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ java.lang.String getApplicableInstanceTypes(int index); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - com.google.protobuf.ByteString - getApplicableInstanceTypesBytes(int index); + com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - java.util.List + java.util.List getLogicalInterfacesList(); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces( + int index); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ int getLogicalInterfacesCount(); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesOrBuilderList(); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java index 693c5f0..bde5537 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to start a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} */ -public final class StartInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) StartInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartInstanceRequest.newBuilder() to construct. private StartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StartInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StartInstanceRequest( 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,34 +91,41 @@ private StartInstanceRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message requesting to start a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) com.google.cloud.baremetalsolution.v2.StartInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.StartInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java new file mode 100644 index 0000000..4cb55b2 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java index 5c0a6d8..c708c7e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message from starting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} */ -public final class StartInstanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartInstanceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) StartInstanceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartInstanceResponse.newBuilder() to construct. private StartInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartInstanceResponse() { - } + + private StartInstanceResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StartInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private StartInstanceResponse( 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 StartInstanceResponse( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.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.baremetalsolution.v2.StartInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = + (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message from starting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) com.google.cloud.baremetalsolution.v2.StartInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override @@ -297,7 +325,8 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = + new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); onBuilt(); return result; } @@ -306,38 +335,39 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +375,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,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 +418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.StartInstanceResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(); } @@ -400,16 +432,16 @@ public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java new file mode 100644 index 0000000..a4673c6 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.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/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java index 664e09a..ca5b555 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to stop a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} */ -public final class StopInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) StopInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopInstanceRequest.newBuilder() to construct. private StopInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StopInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StopInstanceRequest( 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,34 +91,41 @@ private StopInstanceRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message requesting to stop a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) com.google.cloud.baremetalsolution.v2.StopInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.StopInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java new file mode 100644 index 0000000..4b93ef8 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java index ef520a4..182ad22 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message from stopping a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} */ -public final class StopInstanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopInstanceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) StopInstanceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopInstanceResponse.newBuilder() to construct. private StopInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopInstanceResponse() { - } + + private StopInstanceResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StopInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private StopInstanceResponse( 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 StopInstanceResponse( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.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.baremetalsolution.v2.StopInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = + (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message from stopping a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) com.google.cloud.baremetalsolution.v2.StopInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override @@ -297,7 +325,8 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = + new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); onBuilt(); return result; } @@ -306,38 +335,39 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +375,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,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 +418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.StopInstanceResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(); } @@ -400,16 +432,16 @@ public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java new file mode 100644 index 0000000..0e0f7b9 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.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/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java index 19dde2e..867bf65 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to updating a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateInstanceRequest() { - } + + private UpdateInstanceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateInstanceRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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 UpdateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Instance instance_; /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance getInstance() { - return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -168,6 +209,7 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -175,6 +217,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -184,6 +228,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -191,6 +236,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -207,6 +254,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -218,8 +266,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (instance_ != null) {
       output.writeMessage(1, getInstance());
     }
@@ -236,12 +283,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (instance_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getInstance());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance());
     }
     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 +296,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.baremetalsolution.v2.UpdateInstanceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj;
 
     if (hasInstance() != other.hasInstance()) return false;
     if (hasInstance()) {
-      if (!getInstance()
-          .equals(other.getInstance())) return false;
+      if (!getInstance().equals(other.getInstance())) 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 +337,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message requesting to updating a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) com.google.cloud.baremetalsolution.v2.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.newBuilder() @@ -411,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(); @@ -440,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -461,7 +514,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); if (instanceBuilder_ == null) { result.instance_ = instance_; } else { @@ -480,38 +534,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) + return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } @@ -545,7 +601,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -557,45 +614,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.baremetalsolution.v2.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) { if (instanceBuilder_ == null) { @@ -611,13 +687,17 @@ public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance( com.google.cloud.baremetalsolution.v2.Instance.Builder builderForValue) { @@ -631,19 +711,25 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -655,13 +741,17 @@ public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance valu return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -675,54 +765,70 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; @@ -730,8 +836,13 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil 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_; /** + * + * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -741,12 +852,15 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -756,16 +870,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -790,6 +909,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -800,8 +921,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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 +932,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -826,7 +948,7 @@ 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 +960,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -860,6 +984,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -871,11 +997,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -890,11 +1018,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -906,21 +1037,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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 +1064,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest();
   }
@@ -944,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateInstanceRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateInstanceRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateInstanceRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateInstanceRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -968,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
similarity index 65%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
index 61fb3c1..90f5ce9 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.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/baremetalsolution/v2/instance.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateInstanceRequestOrBuilder extends
+public interface UpdateInstanceRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.baremetalsolution.v2.Instance getInstance(); /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -50,10 +82,13 @@ public interface UpdateInstanceRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -63,10 +98,13 @@ public interface UpdateInstanceRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
similarity index 67%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
index 448e185..70529ea 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * Message requesting to updating a network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} */ -public final class UpdateNetworkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) UpdateNetworkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNetworkRequest.newBuilder() to construct. private UpdateNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNetworkRequest() { - } + + private UpdateNetworkRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateNetworkRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; - if (network_ != null) { - subBuilder = network_.toBuilder(); - } - network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(network_); - network_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = 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 UpdateNetworkRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Network network_; /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the network field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasNetwork() { return network_ != null; } /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The network. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network getNetwork() { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -166,6 +207,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,6 +215,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -180,6 +224,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -187,6 +232,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -201,6 +248,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,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 (network_ != null) {
       output.writeMessage(1, getNetwork());
     }
@@ -230,12 +277,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (network_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getNetwork());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetwork());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -245,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.baremetalsolution.v2.UpdateNetworkRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj;
 
     if (hasNetwork() != other.hasNetwork()) return false;
     if (hasNetwork()) {
-      if (!getNetwork()
-          .equals(other.getNetwork())) return false;
+      if (!getNetwork().equals(other.getNetwork())) 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;
@@ -287,117 +331,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message requesting to updating a network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) com.google.cloud.baremetalsolution.v2.UpdateNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.newBuilder() @@ -405,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override @@ -455,7 +508,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); if (networkBuilder_ == null) { result.network_ = network_; } else { @@ -474,38 +528,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) + return this; if (other.hasNetwork()) { mergeNetwork(other.getNetwork()); } @@ -539,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,45 +608,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Network network_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networkBuilder_; /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The network. */ public com.google.cloud.baremetalsolution.v2.Network getNetwork() { if (networkBuilder_ == null) { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } else { return networkBuilder_.getMessage(); } } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { if (networkBuilder_ == null) { @@ -605,13 +681,17 @@ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNetwork( com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { @@ -625,19 +705,25 @@ public Builder setNetwork( return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) { if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_) + .mergeFrom(value) + .buildPartial(); } else { network_ = value; } @@ -649,13 +735,17 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNetwork() { if (networkBuilder_ == null) { @@ -669,54 +759,70 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilder(); } else { - return network_ == null ? - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { - networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - getNetwork(), - getParentForChildren(), - isClean()); + networkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), getParentForChildren(), isClean()); network_ = null; } return networkBuilder_; @@ -724,8 +830,13 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde 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_; /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -733,12 +844,15 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -746,16 +860,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -778,6 +897,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -786,8 +907,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -798,6 +918,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -810,7 +932,7 @@ 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;
         }
@@ -822,6 +944,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -842,6 +966,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -851,11 +977,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -868,11 +996,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -882,21 +1013,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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);
     }
 
@@ -906,12 +1040,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest();
   }
@@ -920,16 +1054,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateNetworkRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateNetworkRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateNetworkRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateNetworkRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -944,6 +1078,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
index c43d1e2..fa34464 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateNetworkRequestOrBuilder extends
+public interface UpdateNetworkRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the network field is set. */ boolean hasNetwork(); /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The network. */ com.google.cloud.baremetalsolution.v2.Network getNetwork(); /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -48,10 +80,13 @@ public interface UpdateNetworkRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -59,10 +94,13 @@ public interface UpdateNetworkRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
similarity index 67%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
index 81f29d7..eef8a54 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.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/baremetalsolution/v2/nfs_share.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * Message requesting to updating a NFS share.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} */ -public final class UpdateNfsShareRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNfsShareRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) UpdateNfsShareRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNfsShareRequest.newBuilder() to construct. private UpdateNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNfsShareRequest() { - } + + private UpdateNfsShareRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNfsShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateNfsShareRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateNfsShareRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; - if (nfsShare_ != null) { - subBuilder = nfsShare_.toBuilder(); - } - nfsShare_ = input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nfsShare_); - nfsShare_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; + if (nfsShare_ != null) { + subBuilder = nfsShare_.toBuilder(); + } + nfsShare_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nfsShare_); + nfsShare_ = 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 UpdateNfsShareRequest( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); } public static final int NFS_SHARE_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nfsShare field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasNfsShare() { return nfsShare_ != null; } /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nfsShare. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { - return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + return nfsShare_ == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() + : nfsShare_; } /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -166,6 +207,7 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,6 +215,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -180,6 +224,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -187,6 +232,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -201,6 +248,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,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 (nfsShare_ != null) {
       output.writeMessage(1, getNfsShare());
     }
@@ -230,12 +277,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (nfsShare_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getNfsShare());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNfsShare());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -245,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.baremetalsolution.v2.UpdateNfsShareRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj;
 
     if (hasNfsShare() != other.hasNfsShare()) return false;
     if (hasNfsShare()) {
-      if (!getNfsShare()
-          .equals(other.getNfsShare())) return false;
+      if (!getNfsShare().equals(other.getNfsShare())) 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;
@@ -287,117 +331,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message requesting to updating a NFS share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.newBuilder() @@ -405,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override @@ -455,7 +508,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); if (nfsShareBuilder_ == null) { result.nfsShare_ = nfsShare_; } else { @@ -474,38 +528,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) + return this; if (other.hasNfsShare()) { mergeNfsShare(other.getNfsShare()); } @@ -539,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,45 +608,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsShareBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + nfsShareBuilder_; /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nfsShare field is set. */ public boolean hasNfsShare() { return nfsShareBuilder_ != null || nfsShare_ != null; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nfsShare. */ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { if (nfsShareBuilder_ == null) { - return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + return nfsShare_ == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() + : nfsShare_; } else { return nfsShareBuilder_.getMessage(); } } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsShareBuilder_ == null) { @@ -605,13 +681,17 @@ public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNfsShare( com.google.cloud.baremetalsolution.v2.NfsShare.Builder builderForValue) { @@ -625,19 +705,25 @@ public Builder setNfsShare( return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsShareBuilder_ == null) { if (nfsShare_ != null) { nfsShare_ = - com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_) + .mergeFrom(value) + .buildPartial(); } else { nfsShare_ = value; } @@ -649,13 +735,17 @@ public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare valu return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNfsShare() { if (nfsShareBuilder_ == null) { @@ -669,54 +759,70 @@ public Builder clearNfsShare() { return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsShareBuilder() { - + onChanged(); return getNfsShareFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { if (nfsShareBuilder_ != null) { return nfsShareBuilder_.getMessageOrBuilder(); } else { - return nfsShare_ == null ? - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + return nfsShare_ == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() + : nfsShare_; } } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> getNfsShareFieldBuilder() { if (nfsShareBuilder_ == null) { - nfsShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( - getNfsShare(), - getParentForChildren(), - isClean()); + nfsShareBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + getNfsShare(), getParentForChildren(), isClean()); nfsShare_ = null; } return nfsShareBuilder_; @@ -724,8 +830,13 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil 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_; /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -733,12 +844,15 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -746,16 +860,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -778,6 +897,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -786,8 +907,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -798,6 +918,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -810,7 +932,7 @@ 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;
         }
@@ -822,6 +944,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -842,6 +966,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -851,11 +977,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -868,11 +996,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -882,21 +1013,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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);
     }
 
@@ -906,12 +1040,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest();
   }
@@ -920,16 +1054,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateNfsShareRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateNfsShareRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateNfsShareRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateNfsShareRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -944,6 +1078,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
index 76b8f82..64a6b99 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.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/baremetalsolution/v2/nfs_share.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateNfsShareRequestOrBuilder extends
+public interface UpdateNfsShareRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nfsShare field is set. */ boolean hasNfsShare(); /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nfsShare. */ com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(); /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -48,10 +80,13 @@ public interface UpdateNfsShareRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -59,10 +94,13 @@ public interface UpdateNfsShareRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
similarity index 68%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
index 53ee6b0..38d881f 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.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/baremetalsolution/v2/volume.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * Message for updating a volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ -public final class UpdateVolumeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateVolumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) UpdateVolumeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateVolumeRequest.newBuilder() to construct. private UpdateVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateVolumeRequest() { - } + + private UpdateVolumeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateVolumeRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; - if (volume_ != null) { - subBuilder = volume_.toBuilder(); - } - volume_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(volume_); - volume_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; + if (volume_ != null) { + subBuilder = volume_.toBuilder(); + } + volume_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(volume_); + volume_ = 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 UpdateVolumeRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Volume volume_; /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the volume field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasVolume() { return volume_ != null; } /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The volume. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume getVolume() { - return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; + return volume_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() + : volume_; } /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -170,6 +211,7 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -177,6 +219,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -188,6 +232,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -195,6 +240,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -213,6 +260,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -224,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 (volume_ != null) {
       output.writeMessage(1, getVolume());
     }
@@ -242,12 +289,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (volume_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getVolume());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVolume());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -257,22 +302,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.baremetalsolution.v2.UpdateVolumeRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj;
 
     if (hasVolume() != other.hasVolume()) return false;
     if (hasVolume()) {
-      if (!getVolume()
-          .equals(other.getVolume())) return false;
+      if (!getVolume().equals(other.getVolume())) 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;
@@ -299,117 +343,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message for updating a volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) com.google.cloud.baremetalsolution.v2.UpdateVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.newBuilder() @@ -417,16 +471,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override @@ -467,7 +520,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); if (volumeBuilder_ == null) { result.volume_ = volume_; } else { @@ -486,38 +540,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +580,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) + return this; if (other.hasVolume()) { mergeVolume(other.getVolume()); } @@ -551,7 +607,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,45 +620,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Volume volume_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumeBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + volumeBuilder_; /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the volume field is set. */ public boolean hasVolume() { return volumeBuilder_ != null || volume_ != null; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The volume. */ public com.google.cloud.baremetalsolution.v2.Volume getVolume() { if (volumeBuilder_ == null) { - return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; + return volume_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() + : volume_; } else { return volumeBuilder_.getMessage(); } } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { @@ -617,16 +693,19 @@ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setVolume( - com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { + public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { if (volumeBuilder_ == null) { volume_ = builderForValue.build(); onChanged(); @@ -637,19 +716,25 @@ public Builder setVolume( return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { if (volume_ != null) { volume_ = - com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_) + .mergeFrom(value) + .buildPartial(); } else { volume_ = value; } @@ -661,13 +746,17 @@ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearVolume() { if (volumeBuilder_ == null) { @@ -681,54 +770,70 @@ public Builder clearVolume() { return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumeBuilder() { - + onChanged(); return getVolumeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { if (volumeBuilder_ != null) { return volumeBuilder_.getMessageOrBuilder(); } else { - return volume_ == null ? - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; + return volume_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() + : volume_; } } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumeFieldBuilder() { if (volumeBuilder_ == null) { - volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - getVolume(), - getParentForChildren(), - isClean()); + volumeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + getVolume(), getParentForChildren(), isClean()); volume_ = null; } return volumeBuilder_; @@ -736,8 +841,13 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( 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_; /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -749,12 +859,15 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -766,16 +879,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -802,6 +920,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -814,8 +934,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -826,6 +945,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -842,7 +963,7 @@ 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;
         }
@@ -854,6 +975,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -878,6 +1001,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -891,11 +1016,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -912,11 +1039,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -930,21 +1060,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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);
     }
 
@@ -954,12 +1087,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest();
   }
@@ -968,16 +1101,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateVolumeRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateVolumeRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateVolumeRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateVolumeRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -992,6 +1125,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
index 345ca45..a1d2271 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.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/baremetalsolution/v2/volume.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateVolumeRequestOrBuilder extends
+public interface UpdateVolumeRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the volume field is set. */ boolean hasVolume(); /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The volume. */ com.google.cloud.baremetalsolution.v2.Volume getVolume(); /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -52,10 +84,13 @@ public interface UpdateVolumeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -67,10 +102,13 @@ public interface UpdateVolumeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
similarity index 72%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
index 4209331..e47ad61 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * A network VRF.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ -public final class VRF extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VRF extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF) VRFOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VRF.newBuilder() to construct. private VRF(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VRF() { name_ = ""; state_ = 0; @@ -27,16 +45,15 @@ private VRF() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VRF(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VRF( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,47 +73,58 @@ private VRF( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 50: { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; - if (qosPolicy_ != null) { - subBuilder = qosPolicy_.toBuilder(); + name_ = s; + break; } - qosPolicy_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qosPolicy_); - qosPolicy_ = subBuilder.buildPartial(); + case 40: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; } + case 50: + { + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; + if (qosPolicy_ != null) { + subBuilder = qosPolicy_.toBuilder(); + } + qosPolicy_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qosPolicy_); + qosPolicy_ = subBuilder.buildPartial(); + } - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - vlanAttachments_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vlanAttachments_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment>(); + mutable_bitField0_ |= 0x00000001; + } + vlanAttachments_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,8 +132,7 @@ private VRF( } 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)) { vlanAttachments_ = java.util.Collections.unmodifiableList(vlanAttachments_); @@ -114,29 +141,35 @@ private VRF( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, + com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } /** + * + * *
    * The possible states for this VRF.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.VRF.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The unspecified state.
      * 
@@ -145,6 +178,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The vrf is provisioning.
      * 
@@ -153,6 +188,8 @@ public enum State */ PROVISIONING(1), /** + * + * *
      * The vrf is provisioned.
      * 
@@ -164,6 +201,8 @@ public enum State ; /** + * + * *
      * The unspecified state.
      * 
@@ -172,6 +211,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The vrf is provisioning.
      * 
@@ -180,6 +221,8 @@ public enum State */ public static final int PROVISIONING_VALUE = 1; /** + * + * *
      * The vrf is provisioned.
      * 
@@ -188,7 +231,6 @@ public enum State */ public static final int PROVISIONED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -213,49 +255,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONING; - case 2: return PROVISIONED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return PROVISIONED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.VRF.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -272,51 +314,56 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.VRF.State) } - public interface QosPolicyOrBuilder extends + public interface QosPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; + * * @return The bandwidthGbps. */ double getBandwidthGbps(); } /** + * + * *
    * QOS policy parameters.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class QosPolicy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class QosPolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) QosPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QosPolicy.newBuilder() to construct. private QosPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QosPolicy() { - } + + private QosPolicy() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QosPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private QosPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -335,18 +382,18 @@ private QosPolicy( case 0: done = true; break; - case 9: { - - bandwidthGbps_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 9: + { + bandwidthGbps_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -354,34 +401,39 @@ private QosPolicy( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } public static final int BANDWIDTH_GBPS_FIELD_NUMBER = 1; private double bandwidthGbps_; /** + * + * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; + * * @return The bandwidthGbps. */ @java.lang.Override @@ -390,6 +442,7 @@ public double getBandwidthGbps() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -401,8 +454,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { output.writeDouble(1, bandwidthGbps_); } @@ -416,8 +468,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, bandwidthGbps_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, bandwidthGbps_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -427,16 +478,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.baremetalsolution.v2.VRF.QosPolicy)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = + (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; if (java.lang.Double.doubleToLongBits(getBandwidthGbps()) - != java.lang.Double.doubleToLongBits( - other.getBandwidthGbps())) return false; + != java.lang.Double.doubleToLongBits(other.getBandwidthGbps())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -449,95 +500,104 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BANDWIDTH_GBPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBandwidthGbps())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBandwidthGbps())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -547,27 +607,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * QOS policy parameters.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder() @@ -575,16 +640,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(); @@ -594,9 +658,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override @@ -615,7 +679,8 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = + new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); result.bandwidthGbps_ = bandwidthGbps_; onBuilt(); return result; @@ -625,38 +690,41 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) other); } else { super.mergeFrom(other); return this; @@ -664,7 +732,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) + return this; if (other.getBandwidthGbps() != 0D) { setBandwidthGbps(other.getBandwidthGbps()); } @@ -687,7 +756,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -697,13 +767,16 @@ public Builder mergeFrom( return this; } - private double bandwidthGbps_ ; + private double bandwidthGbps_; /** + * + * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; + * * @return The bandwidthGbps. */ @java.lang.Override @@ -711,34 +784,41 @@ public double getBandwidthGbps() { return bandwidthGbps_; } /** + * + * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; + * * @param value The bandwidthGbps to set. * @return This builder for chaining. */ public Builder setBandwidthGbps(double value) { - + bandwidthGbps_ = value; onChanged(); return this; } /** + * + * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; + * * @return This builder for chaining. */ public Builder clearBandwidthGbps() { - + bandwidthGbps_ = 0D; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -751,12 +831,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) private static final com.google.cloud.baremetalsolution.v2.VRF.QosPolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(); } @@ -765,16 +845,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QosPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QosPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QosPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QosPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -789,79 +869,95 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface VlanAttachmentOrBuilder extends + public interface VlanAttachmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; + * * @return The peerVlanId. */ long getPeerVlanId(); /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The peerIp. */ java.lang.String getPeerIp(); /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The bytes for peerIp. */ - com.google.protobuf.ByteString - getPeerIpBytes(); + com.google.protobuf.ByteString getPeerIpBytes(); /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The routerIp. */ java.lang.String getRouterIp(); /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The bytes for routerIp. */ - com.google.protobuf.ByteString - getRouterIpBytes(); + com.google.protobuf.ByteString getRouterIpBytes(); } /** + * + * *
    * VLAN attachment details.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class VlanAttachment extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class VlanAttachment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) VlanAttachmentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VlanAttachment.newBuilder() to construct. private VlanAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VlanAttachment() { peerIp_ = ""; routerIp_ = ""; @@ -869,16 +965,15 @@ private VlanAttachment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VlanAttachment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VlanAttachment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -897,30 +992,32 @@ private VlanAttachment( case 0: done = true; break; - case 8: { - - peerVlanId_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + peerVlanId_ = input.readInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - peerIp_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + peerIp_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - routerIp_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + routerIp_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -928,34 +1025,39 @@ private VlanAttachment( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } public static final int PEER_VLAN_ID_FIELD_NUMBER = 1; private long peerVlanId_; /** + * + * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; + * * @return The peerVlanId. */ @java.lang.Override @@ -966,11 +1068,14 @@ public long getPeerVlanId() { public static final int PEER_IP_FIELD_NUMBER = 2; private volatile java.lang.Object peerIp_; /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The peerIp. */ @java.lang.Override @@ -979,29 +1084,29 @@ public java.lang.String getPeerIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; } } /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The bytes for peerIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getPeerIpBytes() { + public com.google.protobuf.ByteString getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1012,11 +1117,14 @@ public java.lang.String getPeerIp() { public static final int ROUTER_IP_FIELD_NUMBER = 3; private volatile java.lang.Object routerIp_; /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The routerIp. */ @java.lang.Override @@ -1025,29 +1133,29 @@ public java.lang.String getRouterIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; } } /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The bytes for routerIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getRouterIpBytes() { + public com.google.protobuf.ByteString getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1056,6 +1164,7 @@ public java.lang.String getRouterIp() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1067,8 +1176,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (peerVlanId_ != 0L) { output.writeInt64(1, peerVlanId_); } @@ -1088,8 +1196,7 @@ public int getSerializedSize() { size = 0; if (peerVlanId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, peerVlanId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, peerVlanId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerIp_); @@ -1105,19 +1212,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.baremetalsolution.v2.VRF.VlanAttachment)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = + (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; - if (getPeerVlanId() - != other.getPeerVlanId()) return false; - if (!getPeerIp() - .equals(other.getPeerIp())) return false; - if (!getRouterIp() - .equals(other.getRouterIp())) return false; + if (getPeerVlanId() != other.getPeerVlanId()) return false; + if (!getPeerIp().equals(other.getPeerIp())) return false; + if (!getRouterIp().equals(other.getRouterIp())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1130,8 +1235,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PEER_VLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPeerVlanId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPeerVlanId()); hash = (37 * hash) + PEER_IP_FIELD_NUMBER; hash = (53 * hash) + getPeerIp().hashCode(); hash = (37 * hash) + ROUTER_IP_FIELD_NUMBER; @@ -1142,87 +1246,94 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1232,27 +1343,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * VLAN attachment details.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.newBuilder() @@ -1260,16 +1376,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(); @@ -1283,9 +1398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override @@ -1304,7 +1419,8 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = + new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); result.peerVlanId_ = peerVlanId_; result.peerIp_ = peerIp_; result.routerIp_ = routerIp_; @@ -1316,38 +1432,41 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) other); } else { super.mergeFrom(other); return this; @@ -1355,7 +1474,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) + return this; if (other.getPeerVlanId() != 0L) { setPeerVlanId(other.getPeerVlanId()); } @@ -1386,7 +1506,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1396,13 +1517,16 @@ public Builder mergeFrom( return this; } - private long peerVlanId_ ; + private long peerVlanId_; /** + * + * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; + * * @return The peerVlanId. */ @java.lang.Override @@ -1410,30 +1534,36 @@ public long getPeerVlanId() { return peerVlanId_; } /** + * + * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; + * * @param value The peerVlanId to set. * @return This builder for chaining. */ public Builder setPeerVlanId(long value) { - + peerVlanId_ = value; onChanged(); return this; } /** + * + * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; + * * @return This builder for chaining. */ public Builder clearPeerVlanId() { - + peerVlanId_ = 0L; onChanged(); return this; @@ -1441,18 +1571,20 @@ public Builder clearPeerVlanId() { private java.lang.Object peerIp_ = ""; /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @return The peerIp. */ public java.lang.String getPeerIp() { java.lang.Object ref = peerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; @@ -1461,20 +1593,21 @@ public java.lang.String getPeerIp() { } } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @return The bytes for peerIp. */ - public com.google.protobuf.ByteString - getPeerIpBytes() { + public com.google.protobuf.ByteString getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1482,54 +1615,61 @@ public java.lang.String getPeerIp() { } } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @param value The peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIp( - java.lang.String value) { + public Builder setPeerIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + peerIp_ = value; onChanged(); return this; } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @return This builder for chaining. */ public Builder clearPeerIp() { - + peerIp_ = getDefaultInstance().getPeerIp(); onChanged(); return this; } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @param value The bytes for peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIpBytes( - com.google.protobuf.ByteString value) { + public Builder setPeerIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerIp_ = value; onChanged(); return this; @@ -1537,18 +1677,20 @@ public Builder setPeerIpBytes( private java.lang.Object routerIp_ = ""; /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @return The routerIp. */ public java.lang.String getRouterIp() { java.lang.Object ref = routerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; @@ -1557,20 +1699,21 @@ public java.lang.String getRouterIp() { } } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @return The bytes for routerIp. */ - public com.google.protobuf.ByteString - getRouterIpBytes() { + public com.google.protobuf.ByteString getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1578,58 +1721,66 @@ public java.lang.String getRouterIp() { } } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @param value The routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIp( - java.lang.String value) { + public Builder setRouterIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + routerIp_ = value; onChanged(); return this; } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @return This builder for chaining. */ public Builder clearRouterIp() { - + routerIp_ = getDefaultInstance().getRouterIp(); onChanged(); return this; } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @param value The bytes for routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIpBytes( - com.google.protobuf.ByteString value) { + public Builder setRouterIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routerIp_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1642,12 +1793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) private static final com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(); } @@ -1656,16 +1807,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VlanAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VlanAttachment(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VlanAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VlanAttachment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1680,17 +1831,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1699,29 +1852,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @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 { @@ -1732,38 +1885,50 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = + com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } public static final int QOS_POLICY_FIELD_NUMBER = 6; private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return Whether the qosPolicy field is set. */ @java.lang.Override @@ -1771,18 +1936,25 @@ public boolean hasQosPolicy() { return qosPolicy_ != null; } /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return The qosPolicy. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { - return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; + return qosPolicy_ == null + ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() + : qosPolicy_; } /** + * + * *
    * The QOS policy applied to this VRF.
    * 
@@ -1797,64 +1969,81 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy public static final int VLAN_ATTACHMENTS_FIELD_NUMBER = 7; private java.util.List vlanAttachments_; /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override - public java.util.List getVlanAttachmentsList() { + public java.util.List + getVlanAttachmentsList() { return vlanAttachments_; } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override - public java.util.List + public java.util.List getVlanAttachmentsOrBuilderList() { return vlanAttachments_; } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override public int getVlanAttachmentsCount() { return vlanAttachments_.size(); } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { return vlanAttachments_.get(index); } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder + getVlanAttachmentsOrBuilder(int index) { return vlanAttachments_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1866,8 +2055,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1893,16 +2081,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.VRF.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (qosPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getQosPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getQosPolicy()); } for (int i = 0; i < vlanAttachments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, vlanAttachments_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, vlanAttachments_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1912,23 +2097,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.baremetalsolution.v2.VRF)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF other = (com.google.cloud.baremetalsolution.v2.VRF) obj; + com.google.cloud.baremetalsolution.v2.VRF other = + (com.google.cloud.baremetalsolution.v2.VRF) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasQosPolicy() != other.hasQosPolicy()) return false; if (hasQosPolicy()) { - if (!getQosPolicy() - .equals(other.getQosPolicy())) return false; + if (!getQosPolicy().equals(other.getQosPolicy())) return false; } - if (!getVlanAttachmentsList() - .equals(other.getVlanAttachmentsList())) return false; + if (!getVlanAttachmentsList().equals(other.getVlanAttachmentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1957,118 +2140,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF 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.baremetalsolution.v2.VRF parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 network VRF.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF) com.google.cloud.baremetalsolution.v2.VRFOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, + com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.newBuilder() @@ -2076,17 +2268,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) { getVlanAttachmentsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2110,9 +2302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override @@ -2131,7 +2323,8 @@ public com.google.cloud.baremetalsolution.v2.VRF build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF result = new com.google.cloud.baremetalsolution.v2.VRF(this); + com.google.cloud.baremetalsolution.v2.VRF result = + new com.google.cloud.baremetalsolution.v2.VRF(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.state_ = state_; @@ -2157,38 +2350,39 @@ public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF) other); } else { super.mergeFrom(other); return this; @@ -2225,9 +2419,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF other) { vlanAttachmentsBuilder_ = null; vlanAttachments_ = other.vlanAttachments_; bitField0_ = (bitField0_ & ~0x00000001); - vlanAttachmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVlanAttachmentsFieldBuilder() : null; + vlanAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVlanAttachmentsFieldBuilder() + : null; } else { vlanAttachmentsBuilder_.addAllMessages(other.vlanAttachments_); } @@ -2261,22 +2456,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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; @@ -2285,20 +2483,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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 { @@ -2306,54 +2505,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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 name of the VRF.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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; @@ -2361,51 +2567,65 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = + com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2413,21 +2633,24 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.VRF.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2435,34 +2658,47 @@ public Builder clearState() { private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> qosPolicyBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> + qosPolicyBuilder_; /** + * + * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return Whether the qosPolicy field is set. */ public boolean hasQosPolicy() { return qosPolicyBuilder_ != null || qosPolicy_ != null; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return The qosPolicy. */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { if (qosPolicyBuilder_ == null) { - return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; + return qosPolicy_ == null + ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() + : qosPolicy_; } else { return qosPolicyBuilder_.getMessage(); } } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2483,6 +2719,8 @@ public Builder setQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2501,6 +2739,8 @@ public Builder setQosPolicy( return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2511,7 +2751,9 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic if (qosPolicyBuilder_ == null) { if (qosPolicy_ != null) { qosPolicy_ = - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_) + .mergeFrom(value) + .buildPartial(); } else { qosPolicy_ = value; } @@ -2523,6 +2765,8 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2541,6 +2785,8 @@ public Builder clearQosPolicy() { return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2548,11 +2794,13 @@ public Builder clearQosPolicy() { * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder getQosPolicyBuilder() { - + onChanged(); return getQosPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2563,11 +2811,14 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy if (qosPolicyBuilder_ != null) { return qosPolicyBuilder_.getMessageOrBuilder(); } else { - return qosPolicy_ == null ? - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; + return qosPolicy_ == null + ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() + : qosPolicy_; } } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2575,39 +2826,52 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> getQosPolicyFieldBuilder() { if (qosPolicyBuilder_ == null) { - qosPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( - getQosPolicy(), - getParentForChildren(), - isClean()); + qosPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( + getQosPolicy(), getParentForChildren(), isClean()); qosPolicy_ = null; } return qosPolicyBuilder_; } - private java.util.List vlanAttachments_ = - java.util.Collections.emptyList(); + private java.util.List + vlanAttachments_ = java.util.Collections.emptyList(); + private void ensureVlanAttachmentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = new java.util.ArrayList(vlanAttachments_); + vlanAttachments_ = + new java.util.ArrayList( + vlanAttachments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> vlanAttachmentsBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + vlanAttachmentsBuilder_; /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public java.util.List getVlanAttachmentsList() { + public java.util.List + getVlanAttachmentsList() { if (vlanAttachmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(vlanAttachments_); } else { @@ -2615,11 +2879,14 @@ public java.util.List } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public int getVlanAttachmentsCount() { if (vlanAttachmentsBuilder_ == null) { @@ -2629,11 +2896,14 @@ public int getVlanAttachmentsCount() { } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -2643,11 +2913,14 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachmen } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder setVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -2664,14 +2937,18 @@ public Builder setVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder setVlanAttachments( - int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.set(index, builderForValue.build()); @@ -2682,13 +2959,17 @@ public Builder setVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public Builder addVlanAttachments(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { + public Builder addVlanAttachments( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { if (vlanAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2702,11 +2983,14 @@ public Builder addVlanAttachments(com.google.cloud.baremetalsolution.v2.VRF.Vlan return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -2723,11 +3007,14 @@ public Builder addVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addVlanAttachments( com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { @@ -2741,14 +3028,18 @@ public Builder addVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addVlanAttachments( - int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(index, builderForValue.build()); @@ -2759,18 +3050,21 @@ public Builder addVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addAllVlanAttachments( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vlanAttachments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vlanAttachments_); onChanged(); } else { vlanAttachmentsBuilder_.addAllMessages(values); @@ -2778,11 +3072,14 @@ public Builder addAllVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder clearVlanAttachments() { if (vlanAttachmentsBuilder_ == null) { @@ -2795,11 +3092,14 @@ public Builder clearVlanAttachments() { return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder removeVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -2812,39 +3112,50 @@ public Builder removeVlanAttachments(int index) { return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder getVlanAttachmentsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder + getVlanAttachmentsBuilder(int index) { return getVlanAttachmentsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder + getVlanAttachmentsOrBuilder(int index) { if (vlanAttachmentsBuilder_ == null) { - return vlanAttachments_.get(index); } else { + return vlanAttachments_.get(index); + } else { return vlanAttachmentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public java.util.List - getVlanAttachmentsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + getVlanAttachmentsOrBuilderList() { if (vlanAttachmentsBuilder_ != null) { return vlanAttachmentsBuilder_.getMessageOrBuilderList(); } else { @@ -2852,45 +3163,63 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlan } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder() { - return getVlanAttachmentsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder + addVlanAttachmentsBuilder() { + return getVlanAttachmentsFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder( - int index) { - return getVlanAttachmentsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder + addVlanAttachmentsBuilder(int index) { + return getVlanAttachmentsFieldBuilder() + .addBuilder( + index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public java.util.List - getVlanAttachmentsBuilderList() { + public java.util.List + getVlanAttachmentsBuilderList() { return getVlanAttachmentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> getVlanAttachmentsFieldBuilder() { if (vlanAttachmentsBuilder_ == null) { - vlanAttachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( + vlanAttachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( vlanAttachments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2899,9 +3228,9 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanA } return vlanAttachmentsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2911,12 +3240,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF) private static final com.google.cloud.baremetalsolution.v2.VRF DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF(); } @@ -2925,16 +3254,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VRF parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VRF(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VRF parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VRF(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2949,6 +3278,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java index deba571..fb8d57d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface VRFOrBuilder extends +public interface VRFOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.VRF.State getState(); /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return Whether the qosPolicy field is set. */ boolean hasQosPolicy(); /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return The qosPolicy. */ com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy(); /** + * + * *
    * The QOS policy applied to this VRF.
    * 
@@ -74,45 +109,59 @@ public interface VRFOrBuilder extends com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicyOrBuilder(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - java.util.List - getVlanAttachmentsList(); + java.util.List getVlanAttachmentsList(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ int getVlanAttachmentsCount(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - java.util.List + java.util.List getVlanAttachmentsOrBuilderList(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( int index); diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java index 926e0a1..bdd0c0b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A storage volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ -public final class Volume extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Volume extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume) VolumeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Volume() { name_ = ""; id_ = ""; @@ -30,16 +48,15 @@ private Volume() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Volume(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Volume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,105 +76,117 @@ private Volume( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - storageType_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 32: { - - requestedSizeGib_ = input.readInt64(); - break; - } - case 40: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - currentSizeGib_ = input.readInt64(); - break; - } - case 48: { + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - autoGrownSizeGib_ = input.readInt64(); - break; - } - case 56: { + storageType_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); - remainingSpaceGib_ = input.readInt64(); - break; - } - case 66: { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder subBuilder = null; - if (snapshotReservationDetail_ != null) { - subBuilder = snapshotReservationDetail_.toBuilder(); + state_ = rawValue; + break; } - snapshotReservationDetail_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshotReservationDetail_); - snapshotReservationDetail_ = subBuilder.buildPartial(); + case 32: + { + requestedSizeGib_ = input.readInt64(); + break; } + case 40: + { + currentSizeGib_ = input.readInt64(); + break; + } + case 48: + { + autoGrownSizeGib_ = input.readInt64(); + break; + } + case 56: + { + remainingSpaceGib_ = input.readInt64(); + break; + } + case 66: + { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + subBuilder = null; + if (snapshotReservationDetail_ != null) { + subBuilder = snapshotReservationDetail_.toBuilder(); + } + snapshotReservationDetail_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshotReservationDetail_); + snapshotReservationDetail_ = subBuilder.buildPartial(); + } - break; - } - case 72: { - int rawValue = input.readEnum(); - - snapshotAutoDeleteBehavior_ = rawValue; - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 104: { + case 72: + { + int rawValue = input.readEnum(); - snapshotEnabled_ = input.readBool(); - break; - } - case 112: { + snapshotAutoDeleteBehavior_ = rawValue; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - emergencySizeGib_ = input.readInt64(); - break; - } - case 122: { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 104: + { + snapshotEnabled_ = input.readBool(); + break; + } + case 112: + { + emergencySizeGib_ = input.readInt64(); + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pod_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -165,48 +194,52 @@ private Volume( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_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 12: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, + com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } /** + * + * *
    * The storage type for a volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.StorageType} */ - public enum StorageType - implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The storage type for this volume is unknown.
      * 
@@ -215,6 +248,8 @@ public enum StorageType */ STORAGE_TYPE_UNSPECIFIED(0), /** + * + * *
      * The storage type for this volume is SSD.
      * 
@@ -223,6 +258,8 @@ public enum StorageType */ SSD(1), /** + * + * *
      * This storage type for this volume is HDD.
      * 
@@ -234,6 +271,8 @@ public enum StorageType ; /** + * + * *
      * The storage type for this volume is unknown.
      * 
@@ -242,6 +281,8 @@ public enum StorageType */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The storage type for this volume is SSD.
      * 
@@ -250,6 +291,8 @@ public enum StorageType */ public static final int SSD_VALUE = 1; /** + * + * *
      * This storage type for this volume is HDD.
      * 
@@ -258,7 +301,6 @@ public enum StorageType */ public static final int HDD_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -283,49 +325,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: return STORAGE_TYPE_UNSPECIFIED; - case 1: return SSD; - case 2: return HDD; - default: return null; + case 0: + return STORAGE_TYPE_UNSPECIFIED; + case 1: + return SSD; + case 2: + return HDD; + 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< - StorageType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.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 StorageType findValueByNumber(int number) { + return StorageType.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.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(0); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -343,15 +385,18 @@ private StorageType(int value) { } /** + * + * *
    * The possible states for a storage volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The storage volume is in an unknown state.
      * 
@@ -360,6 +405,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The storage volume is being created.
      * 
@@ -368,6 +415,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The storage volume is ready for use.
      * 
@@ -376,6 +425,8 @@ public enum State */ READY(2), /** + * + * *
      * The storage volume has been requested to be deleted.
      * 
@@ -387,6 +438,8 @@ public enum State ; /** + * + * *
      * The storage volume is in an unknown state.
      * 
@@ -395,6 +448,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The storage volume is being created.
      * 
@@ -403,6 +458,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The storage volume is ready for use.
      * 
@@ -411,6 +468,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * The storage volume has been requested to be deleted.
      * 
@@ -419,7 +478,6 @@ public enum State */ public static final int DELETING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -444,50 +502,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 3: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -505,6 +564,8 @@ private State(int value) { } /** + * + * *
    * The kinds of auto delete behavior to use when snapshot reserved space is
    * full.
@@ -512,9 +573,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior}
    */
-  public enum SnapshotAutoDeleteBehavior
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * The unspecified behavior.
      * 
@@ -523,6 +585,8 @@ public enum SnapshotAutoDeleteBehavior */ SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED(0), /** + * + * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -532,6 +596,8 @@ public enum SnapshotAutoDeleteBehavior
      */
     DISABLED(1),
     /**
+     *
+     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -540,6 +606,8 @@ public enum SnapshotAutoDeleteBehavior */ OLDEST_FIRST(2), /** + * + * *
      * Delete the newest snapshots first.
      * 
@@ -551,6 +619,8 @@ public enum SnapshotAutoDeleteBehavior ; /** + * + * *
      * The unspecified behavior.
      * 
@@ -559,6 +629,8 @@ public enum SnapshotAutoDeleteBehavior */ public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -568,6 +640,8 @@ public enum SnapshotAutoDeleteBehavior
      */
     public static final int DISABLED_VALUE = 1;
     /**
+     *
+     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -576,6 +650,8 @@ public enum SnapshotAutoDeleteBehavior */ public static final int OLDEST_FIRST_VALUE = 2; /** + * + * *
      * Delete the newest snapshots first.
      * 
@@ -584,7 +660,6 @@ public enum SnapshotAutoDeleteBehavior */ public static final int NEWEST_FIRST_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -609,11 +684,16 @@ public static SnapshotAutoDeleteBehavior valueOf(int value) { */ public static SnapshotAutoDeleteBehavior forNumber(int value) { switch (value) { - case 0: return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; - case 1: return DISABLED; - case 2: return OLDEST_FIRST; - case 3: return NEWEST_FIRST; - default: return null; + case 0: + return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return OLDEST_FIRST; + case 3: + return NEWEST_FIRST; + default: + return null; } } @@ -621,28 +701,28 @@ public static SnapshotAutoDeleteBehavior forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SnapshotAutoDeleteBehavior> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SnapshotAutoDeleteBehavior findValueByNumber(int number) { - return SnapshotAutoDeleteBehavior.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 SnapshotAutoDeleteBehavior findValueByNumber(int number) { + return SnapshotAutoDeleteBehavior.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.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(2); } @@ -651,8 +731,7 @@ public SnapshotAutoDeleteBehavior findValueByNumber(int number) { public static SnapshotAutoDeleteBehavior 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; @@ -669,21 +748,27 @@ private SnapshotAutoDeleteBehavior(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior) } - public interface SnapshotReservationDetailOrBuilder extends + public interface SnapshotReservationDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; + * * @return The reservedSpaceGib. */ long getReservedSpaceGib(); /** + * + * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -692,22 +777,28 @@ public interface SnapshotReservationDetailOrBuilder extends
      * 
* * int32 reserved_space_used_percent = 2; + * * @return The reservedSpaceUsedPercent. */ int getReservedSpaceUsedPercent(); /** + * + * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; + * * @return The reservedSpaceRemainingGib. */ long getReservedSpaceRemainingGib(); /** + * + * *
      * Percent of the total Volume size reserved for snapshot copies.
      * Enabling snapshots requires reserving 20% or more of
@@ -717,41 +808,43 @@ public interface SnapshotReservationDetailOrBuilder extends
      * 
* * int32 reserved_space_percent = 4; + * * @return The reservedSpacePercent. */ int getReservedSpacePercent(); } /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class SnapshotReservationDetail extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SnapshotReservationDetail extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) SnapshotReservationDetailOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SnapshotReservationDetail.newBuilder() to construct. private SnapshotReservationDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SnapshotReservationDetail() { - } + + private SnapshotReservationDetail() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SnapshotReservationDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SnapshotReservationDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -770,33 +863,33 @@ private SnapshotReservationDetail( case 0: done = true; break; - case 8: { - - reservedSpaceGib_ = input.readInt64(); - break; - } - case 16: { - - reservedSpaceUsedPercent_ = input.readInt32(); - break; - } - case 24: { - - reservedSpaceRemainingGib_ = input.readInt64(); - break; - } - case 32: { - - reservedSpacePercent_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + reservedSpaceGib_ = input.readInt64(); + break; + } + case 16: + { + reservedSpaceUsedPercent_ = input.readInt32(); + break; + } + case 24: + { + reservedSpaceRemainingGib_ = input.readInt64(); + break; + } + case 32: + { + reservedSpacePercent_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -804,34 +897,39 @@ private SnapshotReservationDetail( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); } public static final int RESERVED_SPACE_GIB_FIELD_NUMBER = 1; private long reservedSpaceGib_; /** + * + * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; + * * @return The reservedSpaceGib. */ @java.lang.Override @@ -842,6 +940,8 @@ public long getReservedSpaceGib() { public static final int RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER = 2; private int reservedSpaceUsedPercent_; /** + * + * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -850,6 +950,7 @@ public long getReservedSpaceGib() {
      * 
* * int32 reserved_space_used_percent = 2; + * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -860,12 +961,15 @@ public int getReservedSpaceUsedPercent() { public static final int RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER = 3; private long reservedSpaceRemainingGib_; /** + * + * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; + * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -876,6 +980,8 @@ public long getReservedSpaceRemainingGib() { public static final int RESERVED_SPACE_PERCENT_FIELD_NUMBER = 4; private int reservedSpacePercent_; /** + * + * *
      * Percent of the total Volume size reserved for snapshot copies.
      * Enabling snapshots requires reserving 20% or more of
@@ -885,6 +991,7 @@ public long getReservedSpaceRemainingGib() {
      * 
* * int32 reserved_space_percent = 4; + * * @return The reservedSpacePercent. */ @java.lang.Override @@ -893,6 +1000,7 @@ public int getReservedSpacePercent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -904,8 +1012,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reservedSpaceGib_ != 0L) { output.writeInt64(1, reservedSpaceGib_); } @@ -928,20 +1035,18 @@ public int getSerializedSize() { size = 0; if (reservedSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, reservedSpaceGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, reservedSpaceGib_); } if (reservedSpaceUsedPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, reservedSpaceUsedPercent_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(2, reservedSpaceUsedPercent_); } if (reservedSpaceRemainingGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, reservedSpaceRemainingGib_); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(3, reservedSpaceRemainingGib_); } if (reservedSpacePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, reservedSpacePercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, reservedSpacePercent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -951,21 +1056,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.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { + if (!(obj + instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = + (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; - if (getReservedSpaceGib() - != other.getReservedSpaceGib()) return false; - if (getReservedSpaceUsedPercent() - != other.getReservedSpaceUsedPercent()) return false; - if (getReservedSpaceRemainingGib() - != other.getReservedSpaceRemainingGib()) return false; - if (getReservedSpacePercent() - != other.getReservedSpacePercent()) return false; + if (getReservedSpaceGib() != other.getReservedSpaceGib()) return false; + if (getReservedSpaceUsedPercent() != other.getReservedSpaceUsedPercent()) return false; + if (getReservedSpaceRemainingGib() != other.getReservedSpaceRemainingGib()) return false; + if (getReservedSpacePercent() != other.getReservedSpacePercent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -978,13 +1081,11 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESERVED_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReservedSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceGib()); hash = (37 * hash) + RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpaceUsedPercent(); hash = (37 * hash) + RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReservedSpaceRemainingGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceRemainingGib()); hash = (37 * hash) + RESERVED_SPACE_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpacePercent(); hash = (29 * hash) + unknownFields.hashCode(); @@ -993,87 +1094,95 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1083,44 +1192,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + .class); } - // Construct using com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() + // Construct using + // com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1136,19 +1251,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail build() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1157,7 +1275,8 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = + new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); result.reservedSpaceGib_ = reservedSpaceGib_; result.reservedSpaceUsedPercent_ = reservedSpaceUsedPercent_; result.reservedSpaceRemainingGib_ = reservedSpaceRemainingGib_; @@ -1170,46 +1289,54 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)other); + if (other + instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { + return mergeFrom( + (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { - if (other == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { + if (other + == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance()) return this; if (other.getReservedSpaceGib() != 0L) { setReservedSpaceGib(other.getReservedSpaceGib()); } @@ -1241,7 +1368,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1251,13 +1380,16 @@ public Builder mergeFrom( return this; } - private long reservedSpaceGib_ ; + private long reservedSpaceGib_; /** + * + * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; + * * @return The reservedSpaceGib. */ @java.lang.Override @@ -1265,37 +1397,45 @@ public long getReservedSpaceGib() { return reservedSpaceGib_; } /** + * + * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; + * * @param value The reservedSpaceGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceGib(long value) { - + reservedSpaceGib_ = value; onChanged(); return this; } /** + * + * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; + * * @return This builder for chaining. */ public Builder clearReservedSpaceGib() { - + reservedSpaceGib_ = 0L; onChanged(); return this; } - private int reservedSpaceUsedPercent_ ; + private int reservedSpaceUsedPercent_; /** + * + * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1304,6 +1444,7 @@ public Builder clearReservedSpaceGib() {
        * 
* * int32 reserved_space_used_percent = 2; + * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -1311,6 +1452,8 @@ public int getReservedSpaceUsedPercent() { return reservedSpaceUsedPercent_; } /** + * + * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1319,16 +1462,19 @@ public int getReservedSpaceUsedPercent() {
        * 
* * int32 reserved_space_used_percent = 2; + * * @param value The reservedSpaceUsedPercent to set. * @return This builder for chaining. */ public Builder setReservedSpaceUsedPercent(int value) { - + reservedSpaceUsedPercent_ = value; onChanged(); return this; } /** + * + * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1337,23 +1483,27 @@ public Builder setReservedSpaceUsedPercent(int value) {
        * 
* * int32 reserved_space_used_percent = 2; + * * @return This builder for chaining. */ public Builder clearReservedSpaceUsedPercent() { - + reservedSpaceUsedPercent_ = 0; onChanged(); return this; } - private long reservedSpaceRemainingGib_ ; + private long reservedSpaceRemainingGib_; /** + * + * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; + * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -1361,39 +1511,47 @@ public long getReservedSpaceRemainingGib() { return reservedSpaceRemainingGib_; } /** + * + * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; + * * @param value The reservedSpaceRemainingGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceRemainingGib(long value) { - + reservedSpaceRemainingGib_ = value; onChanged(); return this; } /** + * + * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; + * * @return This builder for chaining. */ public Builder clearReservedSpaceRemainingGib() { - + reservedSpaceRemainingGib_ = 0L; onChanged(); return this; } - private int reservedSpacePercent_ ; + private int reservedSpacePercent_; /** + * + * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1403,6 +1561,7 @@ public Builder clearReservedSpaceRemainingGib() {
        * 
* * int32 reserved_space_percent = 4; + * * @return The reservedSpacePercent. */ @java.lang.Override @@ -1410,6 +1569,8 @@ public int getReservedSpacePercent() { return reservedSpacePercent_; } /** + * + * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1419,16 +1580,19 @@ public int getReservedSpacePercent() {
        * 
* * int32 reserved_space_percent = 4; + * * @param value The reservedSpacePercent to set. * @return This builder for chaining. */ public Builder setReservedSpacePercent(int value) { - + reservedSpacePercent_ = value; onChanged(); return this; } /** + * + * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1438,14 +1602,16 @@ public Builder setReservedSpacePercent(int value) {
        * 
* * int32 reserved_space_percent = 4; + * * @return This builder for chaining. */ public Builder clearReservedSpacePercent() { - + reservedSpacePercent_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1458,30 +1624,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) - private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); + DEFAULT_INSTANCE = + new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotReservationDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotReservationDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotReservationDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotReservationDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1493,15 +1662,17 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1511,6 +1682,7 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail ge
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1519,14 +1691,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; } } /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1536,16 +1709,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1556,11 +1728,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 11; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ @java.lang.Override @@ -1569,29 +1744,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; } } /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @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 { @@ -1602,65 +1777,90 @@ public java.lang.String getId() { public static final int STORAGE_TYPE_FIELD_NUMBER = 2; private int storageType_; /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The storageType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = + com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED + : result; } public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = + com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED + : result; } public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER = 4; private long requestedSizeGib_; /** + * + * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; + * * @return The requestedSizeGib. */ @java.lang.Override @@ -1671,6 +1871,8 @@ public long getRequestedSizeGib() { public static final int CURRENT_SIZE_GIB_FIELD_NUMBER = 5; private long currentSizeGib_; /** + * + * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -1678,6 +1880,7 @@ public long getRequestedSizeGib() {
    * 
* * int64 current_size_gib = 5; + * * @return The currentSizeGib. */ @java.lang.Override @@ -1688,12 +1891,15 @@ public long getCurrentSizeGib() { public static final int EMERGENCY_SIZE_GIB_FIELD_NUMBER = 14; private long emergencySizeGib_; /** + * + * *
    * Additional emergency size that was requested for this Volume, in GiB.
    * current_size_gib includes this value.
    * 
* * int64 emergency_size_gib = 14; + * * @return The emergencySizeGib. */ @java.lang.Override @@ -1704,12 +1910,15 @@ public long getEmergencySizeGib() { public static final int AUTO_GROWN_SIZE_GIB_FIELD_NUMBER = 6; private long autoGrownSizeGib_; /** + * + * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; + * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -1720,12 +1929,15 @@ public long getAutoGrownSizeGib() { public static final int REMAINING_SPACE_GIB_FIELD_NUMBER = 7; private long remainingSpaceGib_; /** + * + * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; + * * @return The remainingSpaceGib. */ @java.lang.Override @@ -1734,13 +1946,19 @@ public long getRemainingSpaceGib() { } public static final int SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER = 8; - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + snapshotReservationDetail_; /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return Whether the snapshotReservationDetail field is set. */ @java.lang.Override @@ -1748,75 +1966,105 @@ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetail_ != null; } /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return The snapshotReservationDetail. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { - return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getSnapshotReservationDetail() { + return snapshotReservationDetail_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance() + : snapshotReservationDetail_; } /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder + getSnapshotReservationDetailOrBuilder() { return getSnapshotReservationDetail(); } public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER = 9; private int snapshotAutoDeleteBehavior_; /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override + public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The snapshotAutoDeleteBehavior. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( + snapshotAutoDeleteBehavior_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED + : result; } public static final int LABELS_FIELD_NUMBER = 12; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1825,28 +2073,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -1854,11 +2104,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 12; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -1866,16 +2117,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -1883,12 +2134,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 12; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1898,11 +2148,14 @@ public java.lang.String getLabelsOrThrow( public static final int SNAPSHOT_ENABLED_FIELD_NUMBER = 13; private boolean snapshotEnabled_; /** + * + * *
    * Whether snapshots are enabled.
    * 
* * bool snapshot_enabled = 13; + * * @return The snapshotEnabled. */ @java.lang.Override @@ -1913,11 +2166,14 @@ public boolean getSnapshotEnabled() { public static final int POD_FIELD_NUMBER = 15; private volatile java.lang.Object pod_; /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ @java.lang.Override @@ -1926,29 +2182,29 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -1957,6 +2213,7 @@ public java.lang.String getPod() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1968,15 +2225,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, storageType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (requestedSizeGib_ != 0L) { @@ -1994,18 +2253,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (snapshotReservationDetail_ != null) { output.writeMessage(8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { + if (snapshotAutoDeleteBehavior_ + != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED + .getNumber()) { output.writeEnum(9, snapshotAutoDeleteBehavior_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, id_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 12); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); if (snapshotEnabled_ != false) { output.writeBool(13, snapshotEnabled_); } @@ -2027,58 +2285,56 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, storageType_); + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, storageType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (requestedSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, requestedSizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, requestedSizeGib_); } if (currentSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, currentSizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, currentSizeGib_); } if (autoGrownSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, autoGrownSizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, autoGrownSizeGib_); } if (remainingSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, remainingSpaceGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, remainingSpaceGib_); } if (snapshotReservationDetail_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSnapshotReservationDetail()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, snapshotAutoDeleteBehavior_); + if (snapshotAutoDeleteBehavior_ + != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, snapshotAutoDeleteBehavior_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, labels__); } if (snapshotEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, snapshotEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, snapshotEnabled_); } if (emergencySizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, emergencySizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, emergencySizeGib_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, pod_); @@ -2091,41 +2347,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Volume)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume other = (com.google.cloud.baremetalsolution.v2.Volume) obj; + com.google.cloud.baremetalsolution.v2.Volume other = + (com.google.cloud.baremetalsolution.v2.Volume) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (storageType_ != other.storageType_) return false; if (state_ != other.state_) return false; - if (getRequestedSizeGib() - != other.getRequestedSizeGib()) return false; - if (getCurrentSizeGib() - != other.getCurrentSizeGib()) return false; - if (getEmergencySizeGib() - != other.getEmergencySizeGib()) return false; - if (getAutoGrownSizeGib() - != other.getAutoGrownSizeGib()) return false; - if (getRemainingSpaceGib() - != other.getRemainingSpaceGib()) return false; + if (getRequestedSizeGib() != other.getRequestedSizeGib()) return false; + if (getCurrentSizeGib() != other.getCurrentSizeGib()) return false; + if (getEmergencySizeGib() != other.getEmergencySizeGib()) return false; + if (getAutoGrownSizeGib() != other.getAutoGrownSizeGib()) return false; + if (getRemainingSpaceGib() != other.getRemainingSpaceGib()) return false; if (hasSnapshotReservationDetail() != other.hasSnapshotReservationDetail()) return false; if (hasSnapshotReservationDetail()) { - if (!getSnapshotReservationDetail() - .equals(other.getSnapshotReservationDetail())) return false; + if (!getSnapshotReservationDetail().equals(other.getSnapshotReservationDetail())) + return false; } if (snapshotAutoDeleteBehavior_ != other.snapshotAutoDeleteBehavior_) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getSnapshotEnabled() - != other.getSnapshotEnabled()) return false; - if (!getPod() - .equals(other.getPod())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getSnapshotEnabled() != other.getSnapshotEnabled()) return false; + if (!getPod().equals(other.getPod())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2146,20 +2393,15 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + REQUESTED_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestedSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestedSizeGib()); hash = (37 * hash) + CURRENT_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurrentSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurrentSizeGib()); hash = (37 * hash) + EMERGENCY_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEmergencySizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEmergencySizeGib()); hash = (37 * hash) + AUTO_GROWN_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAutoGrownSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAutoGrownSizeGib()); hash = (37 * hash) + REMAINING_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRemainingSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRemainingSpaceGib()); if (hasSnapshotReservationDetail()) { hash = (37 * hash) + SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getSnapshotReservationDetail().hashCode(); @@ -2171,8 +2413,7 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + SNAPSHOT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSnapshotEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSnapshotEnabled()); hash = (37 * hash) + POD_FIELD_NUMBER; hash = (53 * hash) + getPod().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -2180,140 +2421,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume 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.baremetalsolution.v2.Volume parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume) com.google.cloud.baremetalsolution.v2.VolumeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 12: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 12: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, + com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Volume.newBuilder() @@ -2321,16 +2569,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(); @@ -2369,9 +2616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @java.lang.Override @@ -2390,7 +2637,8 @@ public com.google.cloud.baremetalsolution.v2.Volume build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume result = new com.google.cloud.baremetalsolution.v2.Volume(this); + com.google.cloud.baremetalsolution.v2.Volume result = + new com.google.cloud.baremetalsolution.v2.Volume(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -2419,38 +2667,39 @@ public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Volume) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume) other); } else { super.mergeFrom(other); return this; @@ -2494,8 +2743,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume other) { if (other.snapshotAutoDeleteBehavior_ != 0) { setSnapshotAutoDeleteBehaviorValue(other.getSnapshotAutoDeleteBehaviorValue()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.getSnapshotEnabled() != false) { setSnapshotEnabled(other.getSnapshotEnabled()); } @@ -2531,10 +2779,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2544,13 +2795,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2559,6 +2810,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2568,15 +2821,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2584,6 +2836,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2593,20 +2847,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2616,15 +2872,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2634,16 +2893,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2651,18 +2910,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -2671,20 +2932,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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 { @@ -2692,54 +2954,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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; } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -2747,51 +3016,67 @@ public Builder setIdBytes( private int storageType_ = 0; /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = + com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED + : result; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @param value The storageType to set. * @return This builder for chaining. */ @@ -2799,21 +3084,24 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Volume.Stora if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -2821,51 +3109,67 @@ public Builder clearStorageType() { private int state_ = 0; /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = + com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2873,33 +3177,39 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Volume.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long requestedSizeGib_ ; + private long requestedSizeGib_; /** + * + * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; + * * @return The requestedSizeGib. */ @java.lang.Override @@ -2907,37 +3217,45 @@ public long getRequestedSizeGib() { return requestedSizeGib_; } /** + * + * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; + * * @param value The requestedSizeGib to set. * @return This builder for chaining. */ public Builder setRequestedSizeGib(long value) { - + requestedSizeGib_ = value; onChanged(); return this; } /** + * + * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; + * * @return This builder for chaining. */ public Builder clearRequestedSizeGib() { - + requestedSizeGib_ = 0L; onChanged(); return this; } - private long currentSizeGib_ ; + private long currentSizeGib_; /** + * + * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2945,6 +3263,7 @@ public Builder clearRequestedSizeGib() {
      * 
* * int64 current_size_gib = 5; + * * @return The currentSizeGib. */ @java.lang.Override @@ -2952,6 +3271,8 @@ public long getCurrentSizeGib() { return currentSizeGib_; } /** + * + * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2959,16 +3280,19 @@ public long getCurrentSizeGib() {
      * 
* * int64 current_size_gib = 5; + * * @param value The currentSizeGib to set. * @return This builder for chaining. */ public Builder setCurrentSizeGib(long value) { - + currentSizeGib_ = value; onChanged(); return this; } /** + * + * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2976,23 +3300,27 @@ public Builder setCurrentSizeGib(long value) {
      * 
* * int64 current_size_gib = 5; + * * @return This builder for chaining. */ public Builder clearCurrentSizeGib() { - + currentSizeGib_ = 0L; onChanged(); return this; } - private long emergencySizeGib_ ; + private long emergencySizeGib_; /** + * + * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; + * * @return The emergencySizeGib. */ @java.lang.Override @@ -3000,45 +3328,54 @@ public long getEmergencySizeGib() { return emergencySizeGib_; } /** + * + * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; + * * @param value The emergencySizeGib to set. * @return This builder for chaining. */ public Builder setEmergencySizeGib(long value) { - + emergencySizeGib_ = value; onChanged(); return this; } /** + * + * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; + * * @return This builder for chaining. */ public Builder clearEmergencySizeGib() { - + emergencySizeGib_ = 0L; onChanged(); return this; } - private long autoGrownSizeGib_ ; + private long autoGrownSizeGib_; /** + * + * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; + * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -3046,45 +3383,54 @@ public long getAutoGrownSizeGib() { return autoGrownSizeGib_; } /** + * + * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; + * * @param value The autoGrownSizeGib to set. * @return This builder for chaining. */ public Builder setAutoGrownSizeGib(long value) { - + autoGrownSizeGib_ = value; onChanged(); return this; } /** + * + * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; + * * @return This builder for chaining. */ public Builder clearAutoGrownSizeGib() { - + autoGrownSizeGib_ = 0L; onChanged(); return this; } - private long remainingSpaceGib_ ; + private long remainingSpaceGib_; /** + * + * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; + * * @return The remainingSpaceGib. */ @java.lang.Override @@ -3092,74 +3438,103 @@ public long getRemainingSpaceGib() { return remainingSpaceGib_; } /** + * + * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; + * * @param value The remainingSpaceGib to set. * @return This builder for chaining. */ public Builder setRemainingSpaceGib(long value) { - + remainingSpaceGib_ = value; onChanged(); return this; } /** + * + * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; + * * @return This builder for chaining. */ public Builder clearRemainingSpaceGib() { - + remainingSpaceGib_ = 0L; onChanged(); return this; } - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + snapshotReservationDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> snapshotReservationDetailBuilder_; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> + snapshotReservationDetailBuilder_; /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return Whether the snapshotReservationDetail field is set. */ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetailBuilder_ != null || snapshotReservationDetail_ != null; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return The snapshotReservationDetail. */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { - return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; + return snapshotReservationDetail_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance() + : snapshotReservationDetail_; } else { return snapshotReservationDetailBuilder_.getMessage(); } } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public Builder setSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder setSnapshotReservationDetail( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3173,14 +3548,19 @@ public Builder setSnapshotReservationDetail(com.google.cloud.baremetalsolution.v return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ public Builder setSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder builderForValue) { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + builderForValue) { if (snapshotReservationDetailBuilder_ == null) { snapshotReservationDetail_ = builderForValue.build(); onChanged(); @@ -3191,17 +3571,25 @@ public Builder setSnapshotReservationDetail( return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public Builder mergeSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder mergeSnapshotReservationDetail( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (snapshotReservationDetail_ != null) { snapshotReservationDetail_ = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder(snapshotReservationDetail_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder( + snapshotReservationDetail_) + .mergeFrom(value) + .buildPartial(); } else { snapshotReservationDetail_ = value; } @@ -3213,11 +3601,15 @@ public Builder mergeSnapshotReservationDetail(com.google.cloud.baremetalsolution return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ public Builder clearSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { @@ -3231,48 +3623,67 @@ public Builder clearSnapshotReservationDetail() { return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder getSnapshotReservationDetailBuilder() { - + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + getSnapshotReservationDetailBuilder() { + onChanged(); return getSnapshotReservationDetailFieldBuilder().getBuilder(); } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder + getSnapshotReservationDetailOrBuilder() { if (snapshotReservationDetailBuilder_ != null) { return snapshotReservationDetailBuilder_.getMessageOrBuilder(); } else { - return snapshotReservationDetail_ == null ? - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; + return snapshotReservationDetail_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance() + : snapshotReservationDetail_; } } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> getSnapshotReservationDetailFieldBuilder() { if (snapshotReservationDetailBuilder_ == null) { - snapshotReservationDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( - getSnapshotReservationDetail(), - getParentForChildren(), - isClean()); + snapshotReservationDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( + getSnapshotReservationDetail(), getParentForChildren(), isClean()); snapshotReservationDetail_ = null; } return snapshotReservationDetailBuilder_; @@ -3280,94 +3691,125 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrB private int snapshotAutoDeleteBehavior_ = 0; /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override + public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @param value The enum numeric value on the wire for snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ public Builder setSnapshotAutoDeleteBehaviorValue(int value) { - + snapshotAutoDeleteBehavior_ = value; onChanged(); return this; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The snapshotAutoDeleteBehavior. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( + snapshotAutoDeleteBehavior_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED + : result; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @param value The snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ - public Builder setSnapshotAutoDeleteBehavior(com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { + public Builder setSnapshotAutoDeleteBehavior( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { if (value == null) { throw new NullPointerException(); } - + snapshotAutoDeleteBehavior_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return This builder for chaining. */ public Builder clearSnapshotAutoDeleteBehavior() { - + snapshotAutoDeleteBehavior_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3379,28 +3821,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3408,11 +3852,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 12; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3420,16 +3865,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3437,12 +3883,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 12; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3450,74 +3895,74 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private boolean snapshotEnabled_ ; + private boolean snapshotEnabled_; /** + * + * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; + * * @return The snapshotEnabled. */ @java.lang.Override @@ -3525,30 +3970,36 @@ public boolean getSnapshotEnabled() { return snapshotEnabled_; } /** + * + * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; + * * @param value The snapshotEnabled to set. * @return This builder for chaining. */ public Builder setSnapshotEnabled(boolean value) { - + snapshotEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; + * * @return This builder for chaining. */ public Builder clearSnapshotEnabled() { - + snapshotEnabled_ = false; onChanged(); return this; @@ -3556,18 +4007,20 @@ public Builder clearSnapshotEnabled() { private java.lang.Object pod_ = ""; /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -3576,20 +4029,21 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -3597,61 +4051,68 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod( - java.lang.String value) { + public Builder setPod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes( - com.google.protobuf.ByteString value) { + public Builder setPodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = 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); } @@ -3661,12 +4122,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume) private static final com.google.cloud.baremetalsolution.v2.Volume DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume(); } @@ -3675,16 +4136,16 @@ public static com.google.cloud.baremetalsolution.v2.Volume getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Volume parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Volume(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Volume parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Volume(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3699,6 +4160,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Volume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java index a2d3039..2946abb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface VolumeOrBuilder extends +public interface VolumeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -17,10 +35,13 @@ public interface VolumeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -30,80 +51,102 @@ public interface VolumeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Volume.State getState(); /** + * + * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; + * * @return The requestedSizeGib. */ long getRequestedSizeGib(); /** + * + * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -111,90 +154,129 @@ public interface VolumeOrBuilder extends
    * 
* * int64 current_size_gib = 5; + * * @return The currentSizeGib. */ long getCurrentSizeGib(); /** + * + * *
    * Additional emergency size that was requested for this Volume, in GiB.
    * current_size_gib includes this value.
    * 
* * int64 emergency_size_gib = 14; + * * @return The emergencySizeGib. */ long getEmergencySizeGib(); /** + * + * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; + * * @return The autoGrownSizeGib. */ long getAutoGrownSizeGib(); /** + * + * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; + * * @return The remainingSpaceGib. */ long getRemainingSpaceGib(); /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return Whether the snapshotReservationDetail field is set. */ boolean hasSnapshotReservationDetail(); /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return The snapshotReservationDetail. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getSnapshotReservationDetail(); /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder + getSnapshotReservationDetailOrBuilder(); /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ int getSnapshotAutoDeleteBehaviorValue(); /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The snapshotAutoDeleteBehavior. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + getSnapshotAutoDeleteBehavior(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -203,30 +285,31 @@ public interface VolumeOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -235,48 +318,56 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Whether snapshots are enabled.
    * 
* * bool snapshot_enabled = 13; + * * @return The snapshotEnabled. */ boolean getSnapshotEnabled(); /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ java.lang.String getPod(); /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - com.google.protobuf.ByteString - getPodBytes(); + com.google.protobuf.ByteString getPodBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java new file mode 100644 index 0000000..0ec60b4 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java @@ -0,0 +1,230 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class VolumeProto { + private VolumeProto() {} + + 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_baremetalsolution_v2_Volume_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" + + "me.proto\022!google.cloud.baremetalsolution" + + ".v2\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032 google/protobuf" + + "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" + + "\01625.google.cloud.baremetalsolution.v2.Vo" + + "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" + + ".cloud.baremetalsolution.v2.Volume.State" + + "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" + + "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" + + "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" + + "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" + + "tion_detail\030\010 \001(\0132C.google.cloud.baremet" + + "alsolution.v2.Volume.SnapshotReservation" + + "Detail\022k\n\035snapshot_auto_delete_behavior\030" + + "\t \001(\0162D.google.cloud.baremetalsolution.v" + + "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" + + "abels\030\014 \003(\01325.google.cloud.baremetalsolu" + + "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" + + "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" + + "hotReservationDetail\022\032\n\022reserved_space_g" + + "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" + + "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " + + "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" + + "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" + + "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" + + "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" + + "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" + + "olution.googleapis.com/Volume\0228projects/" + + "{project}/locations/{location}/volumes/{" + + "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" + + "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." + + "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" + + "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" + + "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" + + "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" + + "oogle.cloud.baremetalsolution.v2.VolumeB" + + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" + + "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." + + "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" + + "\371\001\n%com.google.cloud.baremetalsolution.v" + + "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" + + "roto/googleapis/cloud/baremetalsolution/" + + "v2;baremetalsolution\252\002!Google.Cloud.Bare" + + "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" + + "lSolution\\V2\352\002$Google::Cloud::BareMetalS" + + "olution::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, + new java.lang.String[] { + "Name", + "Id", + "StorageType", + "State", + "RequestedSizeGib", + "CurrentSizeGib", + "EmergencySizeGib", + "AutoGrownSizeGib", + "RemainingSpaceGib", + "SnapshotReservationDetail", + "SnapshotAutoDeleteBehavior", + "Labels", + "SnapshotEnabled", + "Pod", + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, + new java.lang.String[] { + "ReservedSpaceGib", + "ReservedSpaceUsedPercent", + "ReservedSpaceRemainingGib", + "ReservedSpacePercent", + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, + new java.lang.String[] { + "Volumes", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, + new java.lang.String[] { + "Volume", "UpdateMask", + }); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, + new java.lang.String[] { + "Volume", "SizeGib", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java similarity index 94% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java index a8ffec7..9b38708 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider1_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider1_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings; diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 87% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java index 564e794..0935bcf 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.Instance; import com.google.protobuf.FieldMask; @@ -37,4 +38,5 @@ public static void syncUpdateInstanceInstanceFieldmask() throws Exception { } } } -// [END baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +// [END +// baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java similarity index 93% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java index dcb0b17..9747c60 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.Network; import com.google.protobuf.FieldMask; diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java similarity index 87% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java index b825ac2..f7da42b 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.NfsShare; import com.google.protobuf.FieldMask; @@ -37,4 +38,5 @@ public static void syncUpdateNfsShareNfsshareFieldmask() throws Exception { } } } -// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +// [END +// baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java From b9367aead603af4c3338cbc2204410478bf499b8 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 23 Jun 2022 12:01:21 -0400 Subject: [PATCH 5/7] Update pom.xml --- google-cloud-bare-metal-solution/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-bare-metal-solution/pom.xml b/google-cloud-bare-metal-solution/pom.xml index 7d5c483..1fb0c9a 100644 --- a/google-cloud-bare-metal-solution/pom.xml +++ b/google-cloud-bare-metal-solution/pom.xml @@ -58,6 +58,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -77,12 +81,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + From 1bfeeb6c4f0ba589481db10e02227d9d5bbfb25b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 21:33:36 +0000 Subject: [PATCH 6/7] fix: update gapic-generator-java with mock service generation fixes PiperOrigin-RevId: 457524730 Source-Link: https://github.com/googleapis/googleapis/commit/917e7f21cb1dc062744c6694437cdd46219f28cb Source-Link: https://github.com/googleapis/googleapis-gen/commit/2497f9a069d3f6b2d6810d5a4e239cda1e7e5a39 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5N2Y5YTA2OWQzZjZiMmQ2ODEwZDVhNGUyMzljZGExZTdlNWEzOSJ9 --- .../v2/BareMetalSolutionGrpc.java | 2624 ----------------- .../v2/BareMetalSolutionClient.java | 48 +- .../v2/BareMetalSolutionSettings.java | 7 +- .../baremetalsolution/v2/gapic_metadata.json | 0 .../baremetalsolution/v2/package-info.java | 0 .../v2/stub/BareMetalSolutionStub.java | 0 .../stub/BareMetalSolutionStubSettings.java | 6 +- .../GrpcBareMetalSolutionCallableFactory.java | 0 .../v2/stub/GrpcBareMetalSolutionStub.java | 1 + ...pJsonBareMetalSolutionCallableFactory.java | 0 .../stub/HttpJsonBareMetalSolutionStub.java | 1 + .../BareMetalSolutionClientHttpJsonTest.java | 0 .../v2/BareMetalSolutionClientTest.java | 0 .../v2/MockBareMetalSolution.java | 0 .../v2/MockBareMetalSolutionImpl.java | 0 .../v2/BareMetalSolutionGrpc.java | 1975 +++++++++++++ .../v2/BareMetalSolutionProto.java | 218 ++ .../v2/DetachLunRequest.java | 449 ++- .../v2/DetachLunRequestOrBuilder.java | 49 + .../v2/GetInstanceRequest.java | 342 +-- .../v2/GetInstanceRequestOrBuilder.java | 29 + .../baremetalsolution/v2/GetLunRequest.java | 339 +-- .../v2/GetLunRequestOrBuilder.java | 29 + .../v2/GetNetworkRequest.java | 342 +-- .../v2/GetNetworkRequestOrBuilder.java | 29 + .../v2/GetNfsShareRequest.java | 342 +-- .../v2/GetNfsShareRequestOrBuilder.java | 29 + .../v2/GetVolumeRequest.java | 342 +-- .../v2/GetVolumeRequestOrBuilder.java | 29 + .../cloud/baremetalsolution/v2/Instance.java | 1991 +++++-------- .../baremetalsolution/v2/InstanceName.java | 0 .../v2/InstanceOrBuilder.java | 215 +- .../baremetalsolution/v2/InstanceProto.java | 283 ++ .../v2/ListInstancesRequest.java | 534 ++-- .../v2/ListInstancesRequestOrBuilder.java | 56 +- .../v2/ListInstancesResponse.java | 571 ++-- .../v2/ListInstancesResponseOrBuilder.java | 63 +- .../baremetalsolution/v2/ListLunsRequest.java | 455 ++- .../v2/ListLunsRequestOrBuilder.java | 47 +- .../v2/ListLunsResponse.java | 572 ++-- .../v2/ListLunsResponseOrBuilder.java | 63 +- .../v2/ListNetworkUsageRequest.java | 350 +-- .../v2/ListNetworkUsageRequestOrBuilder.java | 29 + .../v2/ListNetworkUsageResponse.java | 387 +-- .../v2/ListNetworkUsageResponseOrBuilder.java | 36 +- .../v2/ListNetworksRequest.java | 534 ++-- .../v2/ListNetworksRequestOrBuilder.java | 56 +- .../v2/ListNetworksResponse.java | 574 ++-- .../v2/ListNetworksResponseOrBuilder.java | 63 +- .../v2/ListNfsSharesRequest.java | 534 ++-- .../v2/ListNfsSharesRequestOrBuilder.java | 56 +- .../v2/ListNfsSharesResponse.java | 571 ++-- .../v2/ListNfsSharesResponseOrBuilder.java | 63 +- .../v2/ListVolumesRequest.java | 534 ++-- .../v2/ListVolumesRequestOrBuilder.java | 56 +- .../v2/ListVolumesResponse.java | 570 ++-- .../v2/ListVolumesResponseOrBuilder.java | 63 +- .../baremetalsolution/v2/LocationName.java | 0 .../v2/LogicalInterface.java | 1369 ++++----- .../v2/LogicalInterfaceOrBuilder.java | 74 +- .../cloud/baremetalsolution/v2/Lun.java | 1048 +++---- .../cloud/baremetalsolution/v2/LunName.java | 0 .../baremetalsolution/v2/LunOrBuilder.java | 81 +- .../cloud/baremetalsolution/v2/LunProto.java | 126 + .../baremetalsolution/v2/NFSShareName.java | 0 .../cloud/baremetalsolution/v2/Network.java | 1705 +++++------ .../v2/NetworkAddressReservation.java | 493 ++-- .../NetworkAddressReservationOrBuilder.java | 45 +- .../baremetalsolution/v2/NetworkName.java | 0 .../v2/NetworkOrBuilder.java | 170 +- .../baremetalsolution/v2/NetworkProto.java | 283 ++ .../baremetalsolution/v2/NetworkUsage.java | 443 ++- .../v2/NetworkUsageOrBuilder.java | 44 +- .../cloud/baremetalsolution/v2/NfsShare.java | 1891 +++++------- .../v2/NfsShareOrBuilder.java | 111 +- .../baremetalsolution/v2/NfsShareProto.java | 171 ++ .../v2/OperationMetadata.java | 855 +++--- .../v2/OperationMetadataOrBuilder.java | 91 +- .../v2/ResetInstanceRequest.java | 342 +-- .../v2/ResetInstanceRequestOrBuilder.java | 29 + .../v2/ResetInstanceResponse.java | 238 +- .../v2/ResetInstanceResponseOrBuilder.java | 9 + .../v2/ResizeVolumeRequest.java | 379 +-- .../v2/ResizeVolumeRequestOrBuilder.java | 39 + .../v2/ServerNetworkTemplate.java | 1387 ++++----- .../v2/ServerNetworkTemplateOrBuilder.java | 88 +- .../v2/StartInstanceRequest.java | 342 +-- .../v2/StartInstanceRequestOrBuilder.java | 29 + .../v2/StartInstanceResponse.java | 238 +- .../v2/StartInstanceResponseOrBuilder.java | 9 + .../v2/StopInstanceRequest.java | 342 +-- .../v2/StopInstanceRequestOrBuilder.java | 29 + .../v2/StopInstanceResponse.java | 238 +- .../v2/StopInstanceResponseOrBuilder.java | 9 + .../v2/UpdateInstanceRequest.java | 480 ++- .../v2/UpdateInstanceRequestOrBuilder.java | 46 +- .../v2/UpdateNetworkRequest.java | 480 ++- .../v2/UpdateNetworkRequestOrBuilder.java | 46 +- .../v2/UpdateNfsShareRequest.java | 480 ++- .../v2/UpdateNfsShareRequestOrBuilder.java | 46 +- .../v2/UpdateVolumeRequest.java | 483 ++- .../v2/UpdateVolumeRequestOrBuilder.java | 46 +- .../cloud/baremetalsolution/v2/VRF.java | 1457 ++++----- .../baremetalsolution/v2/VRFOrBuilder.java | 71 +- .../cloud/baremetalsolution/v2/Volume.java | 2005 +++++-------- .../baremetalsolution/v2/VolumeName.java | 0 .../baremetalsolution/v2/VolumeOrBuilder.java | 149 +- .../baremetalsolution/v2/VolumeProto.java | 192 ++ .../v2/baremetalsolution.proto | 0 .../cloud/baremetalsolution/v2/instance.proto | 0 .../cloud/baremetalsolution/v2/lun.proto | 0 .../cloud/baremetalsolution/v2/network.proto | 0 .../baremetalsolution/v2/nfs_share.proto | 0 .../cloud/baremetalsolution/v2/volume.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 3 +- .../create/SyncCreateSetEndpoint.java | 0 .../detachlun/AsyncDetachLun.java | 0 .../detachlun/AsyncDetachLunLRO.java | 0 .../detachlun/SyncDetachLun.java | 0 .../SyncDetachLunInstancenameLunname.java | 0 .../SyncDetachLunInstancenameString.java | 0 .../detachlun/SyncDetachLunStringLunname.java | 0 .../detachlun/SyncDetachLunStringString.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../getlun/AsyncGetLun.java | 0 .../getlun/SyncGetLun.java | 0 .../getlun/SyncGetLunLunname.java | 0 .../getlun/SyncGetLunString.java | 0 .../getnetwork/AsyncGetNetwork.java | 0 .../getnetwork/SyncGetNetwork.java | 0 .../getnetwork/SyncGetNetworkNetworkname.java | 0 .../getnetwork/SyncGetNetworkString.java | 0 .../getnfsshare/AsyncGetNfsShare.java | 0 .../getnfsshare/SyncGetNfsShare.java | 0 .../SyncGetNfsShareNfssharename.java | 0 .../getnfsshare/SyncGetNfsShareString.java | 0 .../getvolume/AsyncGetVolume.java | 0 .../getvolume/SyncGetVolume.java | 0 .../getvolume/SyncGetVolumeString.java | 0 .../getvolume/SyncGetVolumeVolumename.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../listluns/AsyncListLuns.java | 0 .../listluns/AsyncListLunsPaged.java | 0 .../listluns/SyncListLuns.java | 0 .../listluns/SyncListLunsString.java | 0 .../listluns/SyncListLunsVolumename.java | 0 .../listnetworks/AsyncListNetworks.java | 0 .../listnetworks/AsyncListNetworksPaged.java | 0 .../listnetworks/SyncListNetworks.java | 0 .../SyncListNetworksLocationname.java | 0 .../listnetworks/SyncListNetworksString.java | 0 .../AsyncListNetworkUsage.java | 0 .../SyncListNetworkUsage.java | 0 .../SyncListNetworkUsageLocationname.java | 0 .../SyncListNetworkUsageString.java | 0 .../listnfsshares/AsyncListNfsShares.java | 0 .../AsyncListNfsSharesPaged.java | 0 .../listnfsshares/SyncListNfsShares.java | 0 .../SyncListNfsSharesLocationname.java | 0 .../SyncListNfsSharesString.java | 0 .../listvolumes/AsyncListVolumes.java | 0 .../listvolumes/AsyncListVolumesPaged.java | 0 .../listvolumes/SyncListVolumes.java | 0 .../SyncListVolumesLocationname.java | 0 .../listvolumes/SyncListVolumesString.java | 0 .../resetinstance/AsyncResetInstance.java | 0 .../resetinstance/AsyncResetInstanceLRO.java | 0 .../resetinstance/SyncResetInstance.java | 0 .../SyncResetInstanceInstancename.java | 0 .../SyncResetInstanceString.java | 0 .../resizevolume/AsyncResizeVolume.java | 0 .../resizevolume/AsyncResizeVolumeLRO.java | 0 .../resizevolume/SyncResizeVolume.java | 0 .../SyncResizeVolumeStringLong.java | 0 .../SyncResizeVolumeVolumenameLong.java | 0 .../startinstance/AsyncStartInstance.java | 0 .../startinstance/AsyncStartInstanceLRO.java | 0 .../startinstance/SyncStartInstance.java | 0 .../SyncStartInstanceInstancename.java | 0 .../SyncStartInstanceString.java | 0 .../stopinstance/AsyncStopInstance.java | 0 .../stopinstance/AsyncStopInstanceLRO.java | 0 .../stopinstance/SyncStopInstance.java | 0 .../SyncStopInstanceInstancename.java | 0 .../stopinstance/SyncStopInstanceString.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 6 +- .../updatenetwork/AsyncUpdateNetwork.java | 0 .../updatenetwork/AsyncUpdateNetworkLRO.java | 0 .../updatenetwork/SyncUpdateNetwork.java | 0 .../SyncUpdateNetworkNetworkFieldmask.java | 3 +- .../updatenfsshare/AsyncUpdateNfsShare.java | 0 .../AsyncUpdateNfsShareLRO.java | 0 .../updatenfsshare/SyncUpdateNfsShare.java | 0 .../SyncUpdateNfsShareNfsshareFieldmask.java | 6 +- .../updatevolume/AsyncUpdateVolume.java | 0 .../updatevolume/AsyncUpdateVolumeLRO.java | 0 .../updatevolume/SyncUpdateVolume.java | 0 .../SyncUpdateVolumeVolumeFieldmask.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../v2/BareMetalSolutionProto.java | 238 -- .../v2/DetachLunRequestOrBuilder.java | 83 - .../v2/GetInstanceRequestOrBuilder.java | 54 - .../v2/GetLunRequestOrBuilder.java | 54 - .../v2/GetNetworkRequestOrBuilder.java | 54 - .../v2/GetNfsShareRequestOrBuilder.java | 54 - .../v2/GetVolumeRequestOrBuilder.java | 54 - .../baremetalsolution/v2/InstanceProto.java | 325 -- .../v2/ListNetworkUsageRequestOrBuilder.java | 54 - .../cloud/baremetalsolution/v2/LunProto.java | 153 - .../baremetalsolution/v2/NetworkProto.java | 327 -- .../baremetalsolution/v2/NfsShareProto.java | 202 -- .../v2/ResetInstanceRequestOrBuilder.java | 54 - .../v2/ResetInstanceResponseOrBuilder.java | 24 - .../v2/ResizeVolumeRequestOrBuilder.java | 67 - .../v2/StartInstanceRequestOrBuilder.java | 54 - .../v2/StartInstanceResponseOrBuilder.java | 24 - .../v2/StopInstanceRequestOrBuilder.java | 54 - .../v2/StopInstanceResponseOrBuilder.java | 24 - .../baremetalsolution/v2/VolumeProto.java | 230 -- 231 files changed, 14569 insertions(+), 22916 deletions(-) delete mode 100644 grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java (99%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java (98%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java (99%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java (99%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java (99%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java (100%) rename {google-cloud-bare-metal-solution => owl-bot-staging/v2/google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java (100%) create mode 100644 owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java (74%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java (83%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java (56%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java (67%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java (52%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java (71%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java (64%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java (56%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java (56%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java (74%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java (56%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java (65%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java (51%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java (73%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java (78%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java (78%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java (69%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java (67%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java (71%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java (70%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java (71%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java (74%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java (67%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java (65%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java (61%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java (67%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java (65%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java (67%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java (64%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java (67%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java (64%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java (68%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java (69%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java (72%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java (70%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java (73%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/network.proto (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto (100%) rename {proto-google-cloud-bare-metal-solution-v2 => owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java (94%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (87%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java (93%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java (87%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v2/samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java (100%) delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java delete mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java diff --git a/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java deleted file mode 100644 index cf4ba73..0000000 --- a/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java +++ /dev/null @@ -1,2624 +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.baremetalsolution.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Performs management operations on Bare Metal Solution servers.
- * The `baremetalsolution.googleapis.com` service provides management
- * capabilities for Bare Metal Solution servers. To access the API methods, you
- * must assign Bare Metal Solution IAM roles containing the desired permissions
- * to your staff in your Google Cloud project. You must also enable the Bare
- * Metal Solution API. Once enabled, the methods act
- * upon specific servers in your Bare Metal Solution environment.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BareMetalSolutionGrpc { - - private BareMetalSolutionGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - getListInstancesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - getListInstancesMethod; - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - BareMetalSolutionGrpc.getListInstancesMethod = - getListInstancesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance> - getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance> - getGetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance> - getGetInstanceMethod; - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - BareMetalSolutionGrpc.getGetInstanceMethod = - getGetInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { - BareMetalSolutionGrpc.getUpdateInstanceMethod = - getUpdateInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation> - getResetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetInstance", - requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation> - getResetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation> - getResetInstanceMethod; - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - BareMetalSolutionGrpc.getResetInstanceMethod = - getResetInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) - .build(); - } - } - } - return getResetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation> - getStartInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartInstance", - requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation> - getStartInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation> - getStartInstanceMethod; - if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { - BareMetalSolutionGrpc.getStartInstanceMethod = - getStartInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) - .build(); - } - } - } - return getStartInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation> - getStopInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopInstance", - requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation> - getStopInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation> - getStopInstanceMethod; - if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { - BareMetalSolutionGrpc.getStopInstanceMethod = - getStopInstanceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) - .build(); - } - } - } - return getStopInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, com.google.longrunning.Operation> - getDetachLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetachLun", - requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, com.google.longrunning.Operation> - getDetachLunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, - com.google.longrunning.Operation> - getDetachLunMethod; - if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { - BareMetalSolutionGrpc.getDetachLunMethod = - getDetachLunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.DetachLunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) - .build(); - } - } - } - return getDetachLunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - getListVolumesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumes", - requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - getListVolumesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - getListVolumesMethod; - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - BareMetalSolutionGrpc.getListVolumesMethod = - getListVolumesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) - .build(); - } - } - } - return getListVolumesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume> - getGetVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolume", - requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Volume.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume> - getGetVolumeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume> - getGetVolumeMethod; - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - BareMetalSolutionGrpc.getGetVolumeMethod = - getGetVolumeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) - .build(); - } - } - } - return getGetVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation> - getUpdateVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", - requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation> - getUpdateVolumeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation> - getUpdateVolumeMethod; - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - BareMetalSolutionGrpc.getUpdateVolumeMethod = - getUpdateVolumeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) - .build(); - } - } - } - return getUpdateVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation> - getResizeVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", - requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation> - getResizeVolumeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation> - getResizeVolumeMethod; - if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { - BareMetalSolutionGrpc.getResizeVolumeMethod = - getResizeVolumeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) - .build(); - } - } - } - return getResizeVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - getListNetworksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworks", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - getListNetworksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - getListNetworksMethod; - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - BareMetalSolutionGrpc.getListNetworksMethod = - getListNetworksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) - .build(); - } - } - } - return getListNetworksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> - getListNetworkUsageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> - getListNetworkUsageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> - getListNetworkUsageMethod; - if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { - BareMetalSolutionGrpc.getListNetworkUsageMethod = - getListNetworkUsageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) - .build(); - } - } - } - return getListNetworkUsageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network> - getGetNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNetwork", - requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Network.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network> - getGetNetworkMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network> - getGetNetworkMethod; - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - BareMetalSolutionGrpc.getGetNetworkMethod = - getGetNetworkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) - .build(); - } - } - } - return getGetNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation> - getUpdateNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", - requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation> - getUpdateNetworkMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation> - getUpdateNetworkMethod; - if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { - BareMetalSolutionGrpc.getUpdateNetworkMethod = - getUpdateNetworkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) - .build(); - } - } - } - return getUpdateNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun> - getGetLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLun", - requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Lun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun> - getGetLunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun> - getGetLunMethod; - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - BareMetalSolutionGrpc.getGetLunMethod = - getGetLunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetLunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) - .build(); - } - } - } - return getGetLunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - getListLunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLuns", - requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - getListLunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - getListLunsMethod; - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - BareMetalSolutionGrpc.getListLunsMethod = - getListLunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) - .build(); - } - } - } - return getListLunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare> - getGetNfsShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", - requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare> - getGetNfsShareMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare> - getGetNfsShareMethod; - if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { - BareMetalSolutionGrpc.getGetNfsShareMethod = - getGetNfsShareMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) - .build(); - } - } - } - return getGetNfsShareMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> - getListNfsSharesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", - requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> - getListNfsSharesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> - getListNfsSharesMethod; - if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { - BareMetalSolutionGrpc.getListNfsSharesMethod = - getListNfsSharesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) - .build(); - } - } - } - return getListNfsSharesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation> - getUpdateNfsShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", - requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation> - getUpdateNfsShareMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation> - getUpdateNfsShareMethod; - if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { - BareMetalSolutionGrpc.getUpdateNfsShareMethod = - getUpdateNfsShareMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) - .build(); - } - } - } - return getUpdateNfsShareMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - }; - return BareMetalSolutionStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BareMetalSolutionBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - }; - return BareMetalSolutionBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BareMetalSolutionFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - }; - return BareMetalSolutionFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public abstract static class BareMetalSolutionImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Update details of a single server.
-     * 
- */ - public void updateInstance( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResetInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts a server that was shutdown.
-     * 
- */ - public void startInstance( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Stop a running server.
-     * 
- */ - public void stopInstance( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Detach LUN from Instance.
-     * 
- */ - public void detachLun( - com.google.cloud.baremetalsolution.v2.DetachLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListVolumesMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateVolumeMethod(), responseObserver); - } - - /** - * - * - *
-     * Emergency Volume resize.
-     * 
- */ - public void resizeVolume( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResizeVolumeMethod(), responseObserver); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNetworksMethod(), responseObserver); - } - - /** - * - * - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public void listNetworkUsage( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNetworkUsageMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); - } - - /** - * - * - *
-     * Update details of a single network.
-     * 
- */ - public void updateNetwork( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateNetworkMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Get details of a single NFS share.
-     * 
- */ - public void getNfsShare( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNfsShareMethod(), responseObserver); - } - - /** - * - * - *
-     * List NFS shares.
-     * 
- */ - public void listNfsShares( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNfsSharesMethod(), responseObserver); - } - - /** - * - * - *
-     * Update details of a single NFS share.
-     * 
- */ - public void updateNfsShare( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateNfsShareMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance>(this, METHODID_GET_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getResetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_RESET_INSTANCE))) - .addMethod( - getStartInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_START_INSTANCE))) - .addMethod( - getStopInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_STOP_INSTANCE))) - .addMethod( - getDetachLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, - com.google.longrunning.Operation>(this, METHODID_DETACH_LUN))) - .addMethod( - getListVolumesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( - this, METHODID_LIST_VOLUMES))) - .addMethod( - getGetVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume>(this, METHODID_GET_VOLUME))) - .addMethod( - getUpdateVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_VOLUME))) - .addMethod( - getResizeVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation>(this, METHODID_RESIZE_VOLUME))) - .addMethod( - getListNetworksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( - this, METHODID_LIST_NETWORKS))) - .addMethod( - getListNetworkUsageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( - this, METHODID_LIST_NETWORK_USAGE))) - .addMethod( - getGetNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network>(this, METHODID_GET_NETWORK))) - .addMethod( - getUpdateNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_NETWORK))) - .addMethod( - getGetLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun>(this, METHODID_GET_LUN))) - .addMethod( - getListLunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse>( - this, METHODID_LIST_LUNS))) - .addMethod( - getGetNfsShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare>( - this, METHODID_GET_NFS_SHARE))) - .addMethod( - getListNfsSharesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( - this, METHODID_LIST_NFS_SHARES))) - .addMethod( - getUpdateNfsShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_NFS_SHARE))) - .build(); - } - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionStub - extends io.grpc.stub.AbstractAsyncStub { - private BareMetalSolutionStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update details of a single server.
-     * 
- */ - public void updateInstance( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Starts a server that was shutdown.
-     * 
- */ - public void startInstance( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stop a running server.
-     * 
- */ - public void stopInstance( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Detach LUN from Instance.
-     * 
- */ - public void detachLun( - com.google.cloud.baremetalsolution.v2.DetachLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Emergency Volume resize.
-     * 
- */ - public void resizeVolume( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public void listNetworkUsage( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Update details of a single network.
-     * 
- */ - public void updateNetwork( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Get details of a single NFS share.
-     * 
- */ - public void getNfsShare( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List NFS shares.
-     * 
- */ - public void listNfsShares( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update details of a single NFS share.
-     * 
- */ - public void updateNfsShare( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BareMetalSolutionBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Instance getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update details of a single server.
-     * 
- */ - public com.google.longrunning.Operation updateInstance( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.longrunning.Operation resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts a server that was shutdown.
-     * 
- */ - public com.google.longrunning.Operation startInstance( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stop a running server.
-     * 
- */ - public com.google.longrunning.Operation stopInstance( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Detach LUN from Instance.
-     * 
- */ - public com.google.longrunning.Operation detachLun( - com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetachLunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Volume getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.longrunning.Operation updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Emergency Volume resize.
-     * 
- */ - public com.google.longrunning.Operation resizeVolume( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResizeVolumeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Network getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNetworkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update details of a single network.
-     * 
- */ - public com.google.longrunning.Operation updateNetwork( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Lun getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get details of a single NFS share.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNfsShareMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List NFS shares.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNfsSharesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update details of a single NFS share.
-     * 
- */ - public com.google.longrunning.Operation updateNfsShare( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BareMetalSolutionFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListInstancesResponse> - listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details about a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Instance> - getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update details of a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts a server that was shutdown.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stop a running server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Detach LUN from Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListVolumesResponse> - listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Volume> - getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Emergency Volume resize.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListNetworksResponse> - listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> - listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Network> - getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.Lun> - getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListLunsResponse> - listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get details of a single NFS share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.NfsShare> - getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List NFS shares.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> - listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update details of a single NFS share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_UPDATE_INSTANCE = 2; - private static final int METHODID_RESET_INSTANCE = 3; - private static final int METHODID_START_INSTANCE = 4; - private static final int METHODID_STOP_INSTANCE = 5; - private static final int METHODID_DETACH_LUN = 6; - private static final int METHODID_LIST_VOLUMES = 7; - private static final int METHODID_GET_VOLUME = 8; - private static final int METHODID_UPDATE_VOLUME = 9; - private static final int METHODID_RESIZE_VOLUME = 10; - private static final int METHODID_LIST_NETWORKS = 11; - private static final int METHODID_LIST_NETWORK_USAGE = 12; - private static final int METHODID_GET_NETWORK = 13; - private static final int METHODID_UPDATE_NETWORK = 14; - private static final int METHODID_GET_LUN = 15; - private static final int METHODID_LIST_LUNS = 16; - private static final int METHODID_GET_NFS_SHARE = 17; - private static final int METHODID_LIST_NFS_SHARES = 18; - private static final int METHODID_UPDATE_NFS_SHARE = 19; - - 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 BareMetalSolutionImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances( - (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListInstancesResponse>) - responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance( - (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESET_INSTANCE: - serviceImpl.resetInstance( - (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_INSTANCE: - serviceImpl.startInstance( - (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_INSTANCE: - serviceImpl.stopInstance( - (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DETACH_LUN: - serviceImpl.detachLun( - (com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VOLUMES: - serviceImpl.listVolumes( - (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListVolumesResponse>) - responseObserver); - break; - case METHODID_GET_VOLUME: - serviceImpl.getVolume( - (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_VOLUME: - serviceImpl.updateVolume( - (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESIZE_VOLUME: - serviceImpl.resizeVolume( - (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NETWORKS: - serviceImpl.listNetworks( - (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListNetworksResponse>) - responseObserver); - break; - case METHODID_LIST_NETWORK_USAGE: - serviceImpl.listNetworkUsage( - (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>) - responseObserver); - break; - case METHODID_GET_NETWORK: - serviceImpl.getNetwork( - (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_NETWORK: - serviceImpl.updateNetwork( - (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LUN: - serviceImpl.getLun( - (com.google.cloud.baremetalsolution.v2.GetLunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_LUNS: - serviceImpl.listLuns( - (com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_NFS_SHARE: - serviceImpl.getNfsShare( - (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_NFS_SHARES: - serviceImpl.listNfsShares( - (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>) - responseObserver); - break; - case METHODID_UPDATE_NFS_SHARE: - serviceImpl.updateNfsShare( - (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BareMetalSolutionBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BareMetalSolution"); - } - } - - private static final class BareMetalSolutionFileDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier { - BareMetalSolutionFileDescriptorSupplier() {} - } - - private static final class BareMetalSolutionMethodDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getResetInstanceMethod()) - .addMethod(getStartInstanceMethod()) - .addMethod(getStopInstanceMethod()) - .addMethod(getDetachLunMethod()) - .addMethod(getListVolumesMethod()) - .addMethod(getGetVolumeMethod()) - .addMethod(getUpdateVolumeMethod()) - .addMethod(getResizeVolumeMethod()) - .addMethod(getListNetworksMethod()) - .addMethod(getListNetworkUsageMethod()) - .addMethod(getGetNetworkMethod()) - .addMethod(getUpdateNetworkMethod()) - .addMethod(getGetLunMethod()) - .addMethod(getListLunsMethod()) - .addMethod(getGetNfsShareMethod()) - .addMethod(getListNfsSharesMethod()) - .addMethod(getUpdateNfsShareMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java similarity index 99% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java index 75c818d..91c169c 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; @@ -67,13 +68,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. *
* @@ -197,6 +198,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ + @BetaApi public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } @@ -2723,10 +2725,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListInstancesPagedResponse extends AbstractPagedListResponse< - ListInstancesRequest, - ListInstancesResponse, - Instance, - ListInstancesPage, + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, ListInstancesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2776,10 +2775,7 @@ public ApiFuture createPageAsync( public static class ListInstancesFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstancesRequest, - ListInstancesResponse, - Instance, - ListInstancesPage, + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, ListInstancesFixedSizeCollection> { private ListInstancesFixedSizeCollection(List pages, int collectionSize) { @@ -2799,10 +2795,7 @@ protected ListInstancesFixedSizeCollection createCollection( public static class ListVolumesPagedResponse extends AbstractPagedListResponse< - ListVolumesRequest, - ListVolumesResponse, - Volume, - ListVolumesPage, + ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, ListVolumesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2849,10 +2842,7 @@ public ApiFuture createPageAsync( public static class ListVolumesFixedSizeCollection extends AbstractFixedSizeCollection< - ListVolumesRequest, - ListVolumesResponse, - Volume, - ListVolumesPage, + ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, ListVolumesFixedSizeCollection> { private ListVolumesFixedSizeCollection(List pages, int collectionSize) { @@ -2872,10 +2862,7 @@ protected ListVolumesFixedSizeCollection createCollection( public static class ListNetworksPagedResponse extends AbstractPagedListResponse< - ListNetworksRequest, - ListNetworksResponse, - Network, - ListNetworksPage, + ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, ListNetworksFixedSizeCollection> { public static ApiFuture createAsync( @@ -2924,10 +2911,7 @@ public ApiFuture createPageAsync( public static class ListNetworksFixedSizeCollection extends AbstractFixedSizeCollection< - ListNetworksRequest, - ListNetworksResponse, - Network, - ListNetworksPage, + ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, ListNetworksFixedSizeCollection> { private ListNetworksFixedSizeCollection(List pages, int collectionSize) { @@ -3010,10 +2994,7 @@ protected ListLunsFixedSizeCollection createCollection( public static class ListNfsSharesPagedResponse extends AbstractPagedListResponse< - ListNfsSharesRequest, - ListNfsSharesResponse, - NfsShare, - ListNfsSharesPage, + ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3063,10 +3044,7 @@ public ApiFuture createPageAsync( public static class ListNfsSharesFixedSizeCollection extends AbstractFixedSizeCollection< - ListNfsSharesRequest, - ListNfsSharesResponse, - NfsShare, - ListNfsSharesPage, + ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { private ListNfsSharesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java similarity index 98% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java index ead7404..b5ada0f 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.baremetalsolution.v2.stub.BareMetalSolutionStubSettings; @@ -48,10 +49,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json similarity index 100% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java similarity index 100% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java similarity index 100% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java similarity index 99% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java index 6866d5c..5ddb3e8 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java @@ -103,10 +103,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java similarity index 100% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java similarity index 99% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java index 0e6e0e1..b55630f 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java @@ -70,6 +70,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java similarity index 100% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java diff --git a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java similarity index 99% rename from google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java index 819488a..3b99d89 100644 --- a/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java +++ b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java @@ -34,6 +34,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java similarity index 100% rename from google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java diff --git a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java similarity index 100% rename from google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java diff --git a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java similarity index 100% rename from google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java diff --git a/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java b/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java similarity index 100% rename from google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java rename to owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java diff --git a/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java new file mode 100644 index 0000000..d21be35 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java @@ -0,0 +1,1975 @@ +package com.google.cloud.baremetalsolution.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Performs management operations on Bare Metal Solution servers.
+ * The `baremetalsolution.googleapis.com` service provides management
+ * capabilities for Bare Metal Solution servers. To access the API methods, you
+ * must assign Bare Metal Solution IAM roles containing the desired permissions
+ * to your staff in your Google Cloud project. You must also enable the Bare
+ * Metal Solution API. Once enabled, the methods act
+ * upon specific servers in your Bare Metal Solution environment.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BareMetalSolutionGrpc { + + private BareMetalSolutionGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListInstancesMethod() { + io.grpc.MethodDescriptor getListInstancesMethod; + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + BareMetalSolutionGrpc.getListInstancesMethod = getListInstancesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetInstanceMethod() { + io.grpc.MethodDescriptor getGetInstanceMethod; + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + BareMetalSolutionGrpc.getGetInstanceMethod = getGetInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { + io.grpc.MethodDescriptor getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + BareMetalSolutionGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getResetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetInstance", + requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getResetInstanceMethod() { + io.grpc.MethodDescriptor getResetInstanceMethod; + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + BareMetalSolutionGrpc.getResetInstanceMethod = getResetInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) + .build(); + } + } + } + return getResetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartInstance", + requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartInstanceMethod() { + io.grpc.MethodDescriptor getStartInstanceMethod; + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + BareMetalSolutionGrpc.getStartInstanceMethod = getStartInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) + .build(); + } + } + } + return getStartInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopInstance", + requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopInstanceMethod() { + io.grpc.MethodDescriptor getStopInstanceMethod; + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + BareMetalSolutionGrpc.getStopInstanceMethod = getStopInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) + .build(); + } + } + } + return getStopInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getDetachLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetachLun", + requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDetachLunMethod() { + io.grpc.MethodDescriptor getDetachLunMethod; + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + BareMetalSolutionGrpc.getDetachLunMethod = getDetachLunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) + .build(); + } + } + } + return getDetachLunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListVolumesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVolumes", + requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListVolumesMethod() { + io.grpc.MethodDescriptor getListVolumesMethod; + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + BareMetalSolutionGrpc.getListVolumesMethod = getListVolumesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) + .build(); + } + } + } + return getListVolumesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVolume", + requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Volume.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetVolumeMethod() { + io.grpc.MethodDescriptor getGetVolumeMethod; + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + BareMetalSolutionGrpc.getGetVolumeMethod = getGetVolumeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) + .build(); + } + } + } + return getGetVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", + requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateVolumeMethod() { + io.grpc.MethodDescriptor getUpdateVolumeMethod; + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + BareMetalSolutionGrpc.getUpdateVolumeMethod = getUpdateVolumeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) + .build(); + } + } + } + return getUpdateVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor getResizeVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", + requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getResizeVolumeMethod() { + io.grpc.MethodDescriptor getResizeVolumeMethod; + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + BareMetalSolutionGrpc.getResizeVolumeMethod = getResizeVolumeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) + .build(); + } + } + } + return getResizeVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNetworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworks", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNetworksMethod() { + io.grpc.MethodDescriptor getListNetworksMethod; + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + BareMetalSolutionGrpc.getListNetworksMethod = getListNetworksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) + .build(); + } + } + } + return getListNetworksMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNetworkUsageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNetworkUsageMethod() { + io.grpc.MethodDescriptor getListNetworkUsageMethod; + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + BareMetalSolutionGrpc.getListNetworkUsageMethod = getListNetworkUsageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) + .build(); + } + } + } + return getListNetworkUsageMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNetwork", + requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Network.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNetworkMethod() { + io.grpc.MethodDescriptor getGetNetworkMethod; + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + BareMetalSolutionGrpc.getGetNetworkMethod = getGetNetworkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) + .build(); + } + } + } + return getGetNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateNetworkMethod() { + io.grpc.MethodDescriptor getUpdateNetworkMethod; + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + BareMetalSolutionGrpc.getUpdateNetworkMethod = getUpdateNetworkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) + .build(); + } + } + } + return getUpdateNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLun", + requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Lun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLunMethod() { + io.grpc.MethodDescriptor getGetLunMethod; + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + BareMetalSolutionGrpc.getGetLunMethod = getGetLunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) + .build(); + } + } + } + return getGetLunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListLunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLuns", + requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListLunsMethod() { + io.grpc.MethodDescriptor getListLunsMethod; + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + BareMetalSolutionGrpc.getListLunsMethod = getListLunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) + .build(); + } + } + } + return getListLunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNfsShareMethod() { + io.grpc.MethodDescriptor getGetNfsShareMethod; + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + BareMetalSolutionGrpc.getGetNfsShareMethod = getGetNfsShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) + .build(); + } + } + } + return getGetNfsShareMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNfsSharesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", + requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNfsSharesMethod() { + io.grpc.MethodDescriptor getListNfsSharesMethod; + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + BareMetalSolutionGrpc.getListNfsSharesMethod = getListNfsSharesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) + .build(); + } + } + } + return getListNfsSharesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateNfsShareMethod() { + io.grpc.MethodDescriptor getUpdateNfsShareMethod; + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + BareMetalSolutionGrpc.getUpdateNfsShareMethod = getUpdateNfsShareMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) + .build(); + } + } + } + return getUpdateNfsShareMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + }; + return BareMetalSolutionStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BareMetalSolutionBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + }; + return BareMetalSolutionBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static BareMetalSolutionFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + }; + return BareMetalSolutionFutureStub.newStub(factory, channel); + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static abstract class BareMetalSolutionImplBase implements io.grpc.BindableService { + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetInstanceMethod(), responseObserver); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartInstanceMethod(), responseObserver); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopInstanceMethod(), responseObserver); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVolumesMethod(), responseObserver); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateVolumeMethod(), responseObserver); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResizeVolumeMethod(), responseObserver); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworksMethod(), responseObserver); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworkUsageMethod(), responseObserver); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNetworkMethod(), responseObserver); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNfsShareMethod(), responseObserver); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNfsSharesMethod(), responseObserver); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNfsShareMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance>( + this, METHODID_GET_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getResetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_RESET_INSTANCE))) + .addMethod( + getStartInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_START_INSTANCE))) + .addMethod( + getStopInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_STOP_INSTANCE))) + .addMethod( + getDetachLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, + com.google.longrunning.Operation>( + this, METHODID_DETACH_LUN))) + .addMethod( + getListVolumesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( + this, METHODID_LIST_VOLUMES))) + .addMethod( + getGetVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume>( + this, METHODID_GET_VOLUME))) + .addMethod( + getUpdateVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_VOLUME))) + .addMethod( + getResizeVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation>( + this, METHODID_RESIZE_VOLUME))) + .addMethod( + getListNetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( + this, METHODID_LIST_NETWORKS))) + .addMethod( + getListNetworkUsageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( + this, METHODID_LIST_NETWORK_USAGE))) + .addMethod( + getGetNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network>( + this, METHODID_GET_NETWORK))) + .addMethod( + getUpdateNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_NETWORK))) + .addMethod( + getGetLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun>( + this, METHODID_GET_LUN))) + .addMethod( + getListLunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse>( + this, METHODID_LIST_LUNS))) + .addMethod( + getGetNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare>( + this, METHODID_GET_NFS_SHARE))) + .addMethod( + getListNfsSharesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( + this, METHODID_LIST_NFS_SHARES))) + .addMethod( + getUpdateNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_NFS_SHARE))) + .build(); + } + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionStub extends io.grpc.stub.AbstractAsyncStub { + private BareMetalSolutionStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BareMetalSolutionBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Instance getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.longrunning.Operation resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.longrunning.Operation startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public com.google.longrunning.Operation stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.longrunning.Operation detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetachLunMethod(), getCallOptions(), request); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVolumesMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Volume getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVolumeMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.longrunning.Operation updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.longrunning.Operation resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResizeVolumeMethod(), getCallOptions(), request); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworksMethod(), getCallOptions(), request); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Network getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNetworkMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.longrunning.Operation updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Lun getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLunMethod(), getCallOptions(), request); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNfsShareMethod(), getCallOptions(), request); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNfsSharesMethod(), getCallOptions(), request); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.longrunning.Operation updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionFutureStub extends io.grpc.stub.AbstractFutureStub { + private BareMetalSolutionFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + + /** + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Stop a running server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); + } + + /** + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); + } + + /** + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); + } + + /** + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); + } + + /** + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request); + } + + /** + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); + } + + /** + *
+     * List NFS shares.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); + } + + /** + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_UPDATE_INSTANCE = 2; + private static final int METHODID_RESET_INSTANCE = 3; + private static final int METHODID_START_INSTANCE = 4; + private static final int METHODID_STOP_INSTANCE = 5; + private static final int METHODID_DETACH_LUN = 6; + private static final int METHODID_LIST_VOLUMES = 7; + private static final int METHODID_GET_VOLUME = 8; + private static final int METHODID_UPDATE_VOLUME = 9; + private static final int METHODID_RESIZE_VOLUME = 10; + private static final int METHODID_LIST_NETWORKS = 11; + private static final int METHODID_LIST_NETWORK_USAGE = 12; + private static final int METHODID_GET_NETWORK = 13; + private static final int METHODID_UPDATE_NETWORK = 14; + private static final int METHODID_GET_LUN = 15; + private static final int METHODID_LIST_LUNS = 16; + private static final int METHODID_GET_NFS_SHARE = 17; + private static final int METHODID_LIST_NFS_SHARES = 18; + private static final int METHODID_UPDATE_NFS_SHARE = 19; + + 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 BareMetalSolutionImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_INSTANCE: + serviceImpl.resetInstance((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_INSTANCE: + serviceImpl.startInstance((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_INSTANCE: + serviceImpl.stopInstance((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETACH_LUN: + serviceImpl.detachLun((com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOLUMES: + serviceImpl.listVolumes((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_VOLUME: + serviceImpl.getVolume((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_VOLUME: + serviceImpl.updateVolume((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESIZE_VOLUME: + serviceImpl.resizeVolume((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NETWORKS: + serviceImpl.listNetworks((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NETWORK_USAGE: + serviceImpl.listNetworkUsage((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NETWORK: + serviceImpl.getNetwork((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NETWORK: + serviceImpl.updateNetwork((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LUN: + serviceImpl.getLun((com.google.cloud.baremetalsolution.v2.GetLunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LUNS: + serviceImpl.listLuns((com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NFS_SHARE: + serviceImpl.getNfsShare((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NFS_SHARES: + serviceImpl.listNfsShares((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NFS_SHARE: + serviceImpl.updateNfsShare((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BareMetalSolutionBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BareMetalSolution"); + } + } + + private static final class BareMetalSolutionFileDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier { + BareMetalSolutionFileDescriptorSupplier() {} + } + + private static final class BareMetalSolutionMethodDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getResetInstanceMethod()) + .addMethod(getStartInstanceMethod()) + .addMethod(getStopInstanceMethod()) + .addMethod(getDetachLunMethod()) + .addMethod(getListVolumesMethod()) + .addMethod(getGetVolumeMethod()) + .addMethod(getUpdateVolumeMethod()) + .addMethod(getResizeVolumeMethod()) + .addMethod(getListNetworksMethod()) + .addMethod(getListNetworkUsageMethod()) + .addMethod(getGetNetworkMethod()) + .addMethod(getUpdateNetworkMethod()) + .addMethod(getGetLunMethod()) + .addMethod(getListLunsMethod()) + .addMethod(getGetNfsShareMethod()) + .addMethod(getListNfsSharesMethod()) + .addMethod(getUpdateNfsShareMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java new file mode 100644 index 0000000..2ce6b05 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java @@ -0,0 +1,218 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class BareMetalSolutionProto { + private BareMetalSolutionProto() {} + 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_baremetalsolution_v2_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/baremetalsolution/v2/bare" + + "metalsolution.proto\022!google.cloud.bareme" + + "talsolution.v2\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\0320google/cloud/bar" + + "emetalsolution/v2/instance.proto\032+google" + + "/cloud/baremetalsolution/v2/lun.proto\032/g" + + "oogle/cloud/baremetalsolution/v2/network" + + ".proto\0321google/cloud/baremetalsolution/v" + + "2/nfs_share.proto\032.google/cloud/baremeta" + + "lsolution/v2/volume.proto\032#google/longru" + + "nning/operations.proto\032\037google/protobuf/" + + "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" + + "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " + + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" + + "setInstanceResponse2\335 \n\021BareMetalSolutio" + + "n\022\302\001\n\rListInstances\0227.google.cloud.barem" + + "etalsolution.v2.ListInstancesRequest\0328.g" + + "oogle.cloud.baremetalsolution.v2.ListIns" + + "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" + + "ects/*/locations/*}/instances\332A\006parent\022\257" + + "\001\n\013GetInstance\0225.google.cloud.baremetals" + + "olution.v2.GetInstanceRequest\032+.google.c" + + "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" + + "\002/\022-/v2/{name=projects/*/locations/*/ins" + + "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" + + "ogle.cloud.baremetalsolution.v2.UpdateIn" + + "stanceRequest\032\035.google.longrunning.Opera" + + "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" + + "s/*/locations/*/instances/*}:\010instance\332A" + + "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" + + "ationMetadata\022\333\001\n\rResetInstance\0227.google" + + ".cloud.baremetalsolution.v2.ResetInstanc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" + + "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" + + "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" + + "StartInstance\0227.google.cloud.baremetalso" + + "lution.v2.StartInstanceRequest\032\035.google." + + "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" + + "=projects/*/locations/*/instances/*}:sta" + + "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" + + "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" + + "gle.cloud.baremetalsolution.v2.StopInsta" + + "nceRequest\032\035.google.longrunning.Operatio" + + "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" + + "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" + + "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" + + "DetachLun\0223.google.cloud.baremetalsoluti" + + "on.v2.DetachLunRequest\032\035.google.longrunn" + + "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" + + "jects/*/locations/*/instances/*}:detachL" + + "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" + + "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" + + "oud.baremetalsolution.v2.ListVolumesRequ" + + "est\0326.google.cloud.baremetalsolution.v2." + + "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" + + "=projects/*/locations/*}/volumes\332A\006paren" + + "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" + + "solution.v2.GetVolumeRequest\032).google.cl" + + "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" + + "+/v2/{name=projects/*/locations/*/volume" + + "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" + + "oud.baremetalsolution.v2.UpdateVolumeReq" + + "uest\032\035.google.longrunning.Operation\"u\202\323\344" + + "\223\002<22/v2/{volume.name=projects/*/locatio" + + "ns/*/volumes/*}:\006volume\332A\022volume,update_" + + "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" + + "esizeVolume\0226.google.cloud.baremetalsolu" + + "tion.v2.ResizeVolumeRequest\032\035.google.lon" + + "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" + + "projects/*/locations/*/volumes/*}:resize" + + ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" + + "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" + + "oud.baremetalsolution.v2.ListNetworksReq" + + "uest\0327.google.cloud.baremetalsolution.v2" + + ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" + + "nt=projects/*/locations/*}/networks\332A\006pa" + + "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" + + ".baremetalsolution.v2.ListNetworkUsageRe" + + "quest\032;.google.cloud.baremetalsolution.v" + + "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" + + "{location=projects/*/locations/*}/networ" + + "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" + + "twork\0224.google.cloud.baremetalsolution.v" + + "2.GetNetworkRequest\032*.google.cloud.barem" + + "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" + + "me=projects/*/locations/*/networks/*}\332A\004" + + "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" + + "remetalsolution.v2.UpdateNetworkRequest\032" + + "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" + + "/v2/{network.name=projects/*/locations/*" + + "/networks/*}:\007network\332A\023network,update_m" + + "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" + + "etLun\0220.google.cloud.baremetalsolution.v" + + "2.GetLunRequest\032&.google.cloud.baremetal" + + "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" + + "cts/*/locations/*/volumes/*/luns/*}\332A\004na" + + "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" + + "solution.v2.ListLunsRequest\0323.google.clo" + + "ud.baremetalsolution.v2.ListLunsResponse" + + "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" + + "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" + + "Share\0225.google.cloud.baremetalsolution.v" + + "2.GetNfsShareRequest\032+.google.cloud.bare" + + "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" + + "name=projects/*/locations/*/nfsShares/*}" + + "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" + + ".baremetalsolution.v2.ListNfsSharesReque" + + "st\0328.google.cloud.baremetalsolution.v2.L" + + "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" + + "t=projects/*/locations/*}/nfsShares\332A\006pa" + + "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" + + "aremetalsolution.v2.UpdateNfsShareReques" + + "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" + + "D27/v2/{nfs_share.name=projects/*/locati" + + "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" + + "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" + + "adata\032T\312A baremetalsolution.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\204\002\n%com.google.cloud.baremet" + + "alsolution.v2B\026BareMetalSolutionProtoP\001Z" + + "Rgoogle.golang.org/genproto/googleapis/c" + + "loud/baremetalsolution/v2;baremetalsolut" + + "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" + + "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" + + "ogle::Cloud::BareMetalSolution::V2b\006prot" + + "o3" + }; + 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java similarity index 63% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java index ec51b3a..6074780 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for detach specific LUN from an Instance.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} */ -public final class DetachLunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetachLunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) DetachLunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetachLunRequest.newBuilder() to construct. private DetachLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetachLunRequest() { instance_ = ""; lun_ = ""; @@ -44,15 +26,16 @@ private DetachLunRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetachLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetachLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private DetachLunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - instance_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instance_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - lun_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + lun_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,41 +80,34 @@ private DetachLunRequest( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, - com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private volatile java.lang.Object instance_; /** - * - * *
    * Required. Name of the instance.
    * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The instance. */ @java.lang.Override @@ -142,31 +116,29 @@ public java.lang.String getInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; } } /** - * - * *
    * Required. Name of the instance.
    * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for instance. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceBytes() { + public com.google.protobuf.ByteString + getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instance_ = b; return b; } else { @@ -177,16 +149,11 @@ public com.google.protobuf.ByteString getInstanceBytes() { public static final int LUN_FIELD_NUMBER = 2; private volatile java.lang.Object lun_; /** - * - * *
    * Required. Name of the Lun to detach.
    * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The lun. */ @java.lang.Override @@ -195,31 +162,29 @@ public java.lang.String getLun() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lun_ = s; return s; } } /** - * - * *
    * Required. Name of the Lun to detach.
    * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for lun. */ @java.lang.Override - public com.google.protobuf.ByteString getLunBytes() { + public com.google.protobuf.ByteString + getLunBytes() { java.lang.Object ref = lun_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lun_ = b; return b; } else { @@ -228,7 +193,6 @@ public com.google.protobuf.ByteString getLunBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); } @@ -270,16 +235,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.DetachLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.DetachLunRequest other = - (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; + com.google.cloud.baremetalsolution.v2.DetachLunRequest other = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; - if (!getInstance().equals(other.getInstance())) return false; - if (!getLun().equals(other.getLun())) return false; + if (!getInstance() + .equals(other.getInstance())) return false; + if (!getLun() + .equals(other.getLun())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,127 +267,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for detach specific LUN from an Instance.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) com.google.cloud.baremetalsolution.v2.DetachLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, - com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.DetachLunRequest.newBuilder() @@ -429,15 +385,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override @@ -470,8 +427,7 @@ public com.google.cloud.baremetalsolution.v2.DetachLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.DetachLunRequest result = - new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); + com.google.cloud.baremetalsolution.v2.DetachLunRequest result = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); result.instance_ = instance_; result.lun_ = lun_; onBuilt(); @@ -482,39 +438,38 @@ public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.DetachLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest)other); } else { super.mergeFrom(other); return this; @@ -522,8 +477,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.DetachLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) return this; if (!other.getInstance().isEmpty()) { instance_ = other.instance_; onChanged(); @@ -551,8 +505,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,22 +517,18 @@ public Builder mergeFrom( private java.lang.Object instance_ = ""; /** - * - * *
      * Required. Name of the instance.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The instance. */ public java.lang.String getInstance() { java.lang.Object ref = instance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; @@ -588,23 +537,20 @@ public java.lang.String getInstance() { } } /** - * - * *
      * Required. Name of the instance.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for instance. */ - public com.google.protobuf.ByteString getInstanceBytes() { + public com.google.protobuf.ByteString + getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instance_ = b; return b; } else { @@ -612,67 +558,54 @@ public com.google.protobuf.ByteString getInstanceBytes() { } } /** - * - * *
      * Required. Name of the instance.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The instance to set. * @return This builder for chaining. */ - public Builder setInstance(java.lang.String value) { + public Builder setInstance( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instance_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the instance.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearInstance() { - + instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /** - * - * *
      * Required. Name of the instance.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for instance to set. * @return This builder for chaining. */ - public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; onChanged(); return this; @@ -680,22 +613,18 @@ public Builder setInstanceBytes(com.google.protobuf.ByteString value) { private java.lang.Object lun_ = ""; /** - * - * *
      * Required. Name of the Lun to detach.
      * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The lun. */ public java.lang.String getLun() { java.lang.Object ref = lun_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lun_ = s; return s; @@ -704,23 +633,20 @@ public java.lang.String getLun() { } } /** - * - * *
      * Required. Name of the Lun to detach.
      * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for lun. */ - public com.google.protobuf.ByteString getLunBytes() { + public com.google.protobuf.ByteString + getLunBytes() { java.lang.Object ref = lun_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lun_ = b; return b; } else { @@ -728,74 +654,61 @@ public com.google.protobuf.ByteString getLunBytes() { } } /** - * - * *
      * Required. Name of the Lun to detach.
      * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The lun to set. * @return This builder for chaining. */ - public Builder setLun(java.lang.String value) { + public Builder setLun( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lun_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the Lun to detach.
      * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLun() { - + lun_ = getDefaultInstance().getLun(); onChanged(); return this; } /** - * - * *
      * Required. Name of the Lun to detach.
      * 
* - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for lun to set. * @return This builder for chaining. */ - public Builder setLunBytes(com.google.protobuf.ByteString value) { + public Builder setLunBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lun_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) private static final com.google.cloud.baremetalsolution.v2.DetachLunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(); } @@ -819,16 +732,16 @@ public static com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetachLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetachLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetachLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetachLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java new file mode 100644 index 0000000..5ac8a36 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface DetachLunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the instance.
+   * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The instance. + */ + java.lang.String getInstance(); + /** + *
+   * Required. Name of the instance.
+   * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for instance. + */ + com.google.protobuf.ByteString + getInstanceBytes(); + + /** + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The lun. + */ + java.lang.String getLun(); + /** + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for lun. + */ + com.google.protobuf.ByteString + getLunBytes(); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java index 5990f0f..03dcb9d 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting server information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ -public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) GetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetInstanceRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private GetInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = - (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting server information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) com.google.cloud.baremetalsolution.v2.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetInstanceRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..e956437 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java index 4f0939b..32ab528 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting storage lun information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ -public final class GetLunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetLunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetLunRequest) GetLunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetLunRequest.newBuilder() to construct. private GetLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetLunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetLunRequest( 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,41 +73,34 @@ private GetLunRequest( } 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.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetLunRequest other = - (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; + com.google.cloud.baremetalsolution.v2.GetLunRequest other = (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting storage lun information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetLunRequest) com.google.cloud.baremetalsolution.v2.GetLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetLunRequest.newBuilder() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetLunRequest result = - new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); + com.google.cloud.baremetalsolution.v2.GetLunRequest result = new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest)other); } else { super.mergeFrom(other); return this; @@ -448,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -473,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -510,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -534,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -611,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetLunRequest) private static final com.google.cloud.baremetalsolution.v2.GetLunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetLunRequest(); } @@ -625,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java new file mode 100644 index 0000000..d320c48 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetLunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java index c7048ac..8b4f73a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting network information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ -public final class GetNetworkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNetworkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) GetNetworkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNetworkRequest.newBuilder() to construct. private GetNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNetworkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetNetworkRequest( 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,41 +73,34 @@ private GetNetworkRequest( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = - (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting network information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) com.google.cloud.baremetalsolution.v2.GetNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNetworkRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = - new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) private static final com.google.cloud.baremetalsolution.v2.GetNetworkRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNetworkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNetworkRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNetworkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNetworkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java new file mode 100644 index 0000000..59b3157 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNetworkRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java index 30fffbf..888e6a6 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting NFS share information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} */ -public final class GetNfsShareRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNfsShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) GetNfsShareRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNfsShareRequest.newBuilder() to construct. private GetNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNfsShareRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNfsShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetNfsShareRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetNfsShareRequest( 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,41 +73,34 @@ private GetNfsShareRequest( } 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.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = - (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting NFS share information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) com.google.cloud.baremetalsolution.v2.GetNfsShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = - new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) private static final com.google.cloud.baremetalsolution.v2.GetNfsShareRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNfsShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNfsShareRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNfsShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNfsShareRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java new file mode 100644 index 0000000..f17088b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNfsShareRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java index 1a670e5..01d7345 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting storage volume information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ -public final class GetVolumeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetVolumeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) GetVolumeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetVolumeRequest.newBuilder() to construct. private GetVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetVolumeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetVolumeRequest( 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,41 +73,34 @@ private GetVolumeRequest( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = - (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting storage volume information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) com.google.cloud.baremetalsolution.v2.GetVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetVolumeRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = - new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.GetVolumeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java new file mode 100644 index 0000000..ed4c7ee --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetVolumeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java similarity index 74% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java index 66c8eeb..293d61c 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Instance) InstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Instance() { name_ = ""; id_ = ""; @@ -52,15 +34,16 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Instance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -80,152 +63,131 @@ private Instance( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 40: - { - int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 48: - { - hyperthreadingEnabled_ = input.readBool(); - break; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - luns_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + machineType_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 48: { + + hyperthreadingEnabled_ = input.readBool(); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - networks_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - networks_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 80: - { - interactiveSerialConsoleEnabled_ = input.readBool(); - break; + luns_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + networks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); + networks_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; + } + case 80: { - id_ = s; - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); + interactiveSerialConsoleEnabled_ = input.readBool(); + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); - osImage_ = s; - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; - } - case 114: - { - java.lang.String s = input.readStringRequireUtf8(); + osImage_ = s; + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); - networkTemplate_ = s; - break; - } - case 122: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - logicalInterfaces_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.LogicalInterface>(); - mutable_bitField0_ |= 0x00000008; - } - logicalInterfaces_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), - extensionRegistry)); - break; + pod_ = s; + break; + } + case 114: { + java.lang.String s = input.readStringRequireUtf8(); + + networkTemplate_ = s; + break; + } + case 122: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + logicalInterfaces_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + logicalInterfaces_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -233,7 +195,8 @@ private Instance( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -248,46 +211,41 @@ private Instance( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, - com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); } /** - * - * *
    * The possible states for this server.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The server is in an unknown state.
      * 
@@ -296,8 +254,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The server is being provisioned.
      * 
@@ -306,8 +262,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROVISIONING(1), /** - * - * *
      * The server is running.
      * 
@@ -316,8 +270,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The server has been deleted.
      * 
@@ -329,8 +281,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The server is in an unknown state.
      * 
@@ -339,8 +289,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The server is being provisioned.
      * 
@@ -349,8 +297,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONING_VALUE = 1; /** - * - * *
      * The server is running.
      * 
@@ -359,8 +305,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The server has been deleted.
      * 
@@ -369,6 +313,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -393,51 +338,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return RUNNING; - case 3: - return DELETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return RUNNING; + case 3: return DELETED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Instance.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -457,8 +401,6 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -468,7 +410,6 @@ private State(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -477,15 +418,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; } } /** - * - * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -495,15 +435,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,14 +455,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ID_FIELD_NUMBER = 11; private volatile java.lang.Object id_; /** - * - * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; - * * @return The id. */ @java.lang.Override @@ -530,29 +468,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; } } /** - * - * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; - * * @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 { @@ -563,15 +501,11 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -579,15 +513,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -595,14 +525,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -612,15 +539,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -628,15 +551,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -644,14 +563,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -661,8 +577,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MACHINE_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object machineType_; /** - * - * *
    * The server type.
    * [Available server
@@ -670,7 +584,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string machine_type = 4; - * * @return The machineType. */ @java.lang.Override @@ -679,15 +592,14 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** - * - * *
    * The server type.
    * [Available server
@@ -695,15 +607,16 @@ public java.lang.String getMachineType() {
    * 
* * string machine_type = 4; - * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -714,53 +627,39 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** - * - * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Instance.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = - com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; } public static final int HYPERTHREADING_ENABLED_FIELD_NUMBER = 6; private boolean hyperthreadingEnabled_; /** - * - * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; - * * @return The hyperthreadingEnabled. */ @java.lang.Override @@ -769,23 +668,24 @@ public boolean getHyperthreadingEnabled() { } public static final int LABELS_FIELD_NUMBER = 7; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -794,30 +694,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -825,12 +723,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 7; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -838,16 +735,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -855,11 +752,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -869,8 +767,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int LUNS_FIELD_NUMBER = 8; private java.util.List luns_; /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -882,8 +778,6 @@ public java.util.List getLunsList() { return luns_; } /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -891,13 +785,11 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -909,8 +801,6 @@ public int getLunsCount() { return luns_.size(); } /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -922,8 +812,6 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -931,15 +819,14 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { return luns_.get(index); } public static final int NETWORKS_FIELD_NUMBER = 9; private java.util.List networks_; /** - * - * *
    * List of networks associated with this server.
    * 
@@ -951,8 +838,6 @@ public java.util.List getNetworks return networks_; } /** - * - * *
    * List of networks associated with this server.
    * 
@@ -960,13 +845,11 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** - * - * *
    * List of networks associated with this server.
    * 
@@ -978,8 +861,6 @@ public int getNetworksCount() { return networks_.size(); } /** - * - * *
    * List of networks associated with this server.
    * 
@@ -991,8 +872,6 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** - * - * *
    * List of networks associated with this server.
    * 
@@ -1000,15 +879,14 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { return networks_.get(index); } public static final int INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER = 10; private boolean interactiveSerialConsoleEnabled_; /** - * - * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -1016,7 +894,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild
    * 
* * bool interactive_serial_console_enabled = 10; - * * @return The interactiveSerialConsoleEnabled. */ @java.lang.Override @@ -1027,14 +904,11 @@ public boolean getInteractiveSerialConsoleEnabled() { public static final int OS_IMAGE_FIELD_NUMBER = 12; private volatile java.lang.Object osImage_; /** - * - * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; - * * @return The osImage. */ @java.lang.Override @@ -1043,29 +917,29 @@ public java.lang.String getOsImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osImage_ = s; return s; } } /** - * - * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; - * * @return The bytes for osImage. */ @java.lang.Override - public com.google.protobuf.ByteString getOsImageBytes() { + public com.google.protobuf.ByteString + getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); osImage_ = b; return b; } else { @@ -1076,8 +950,6 @@ public com.google.protobuf.ByteString getOsImageBytes() { public static final int POD_FIELD_NUMBER = 13; private volatile java.lang.Object pod_; /** - * - * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -1086,7 +958,6 @@ public com.google.protobuf.ByteString getOsImageBytes() {
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ @java.lang.Override @@ -1095,15 +966,14 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** - * - * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -1112,15 +982,16 @@ public java.lang.String getPod() {
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString getPodBytes() { + public com.google.protobuf.ByteString + getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pod_ = b; return b; } else { @@ -1131,8 +1002,6 @@ public com.google.protobuf.ByteString getPodBytes() { public static final int NETWORK_TEMPLATE_FIELD_NUMBER = 14; private volatile java.lang.Object networkTemplate_; /** - * - * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -1140,7 +1009,6 @@ public com.google.protobuf.ByteString getPodBytes() {
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The networkTemplate. */ @java.lang.Override @@ -1149,15 +1017,14 @@ public java.lang.String getNetworkTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkTemplate_ = s; return s; } } /** - * - * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -1165,15 +1032,16 @@ public java.lang.String getNetworkTemplate() {
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for networkTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkTemplateBytes() { + public com.google.protobuf.ByteString + getNetworkTemplateBytes() { java.lang.Object ref = networkTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkTemplate_ = b; return b; } else { @@ -1184,8 +1052,6 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() { public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 15; private java.util.List logicalInterfaces_; /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1196,17 +1062,13 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ @java.lang.Override - public java.util.List - getLogicalInterfacesList() { + public java.util.List getLogicalInterfacesList() { return logicalInterfaces_; } /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1217,17 +1079,14 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ @java.lang.Override - public java.util.List + public java.util.List getLogicalInterfacesOrBuilderList() { return logicalInterfaces_; } /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1238,16 +1097,13 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ @java.lang.Override public int getLogicalInterfacesCount() { return logicalInterfaces_.size(); } /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1258,16 +1114,13 @@ public int getLogicalInterfacesCount() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { return logicalInterfaces_.get(index); } /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1278,17 +1131,15 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder - getLogicalInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { return logicalInterfaces_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1300,7 +1151,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_); } @@ -1313,15 +1165,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineType_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (hyperthreadingEnabled_ != false) { output.writeBool(6, hyperthreadingEnabled_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 7); for (int i = 0; i < luns_.size(); i++) { output.writeMessage(8, luns_.get(i)); } @@ -1359,41 +1214,45 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineType_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (hyperthreadingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, hyperthreadingEnabled_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, hyperthreadingEnabled_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, labels__); } for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, luns_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, networks_.get(i)); } if (interactiveSerialConsoleEnabled_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 10, interactiveSerialConsoleEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, interactiveSerialConsoleEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); @@ -1408,8 +1267,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, networkTemplate_); } for (int i = 0; i < logicalInterfaces_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(15, logicalInterfaces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, logicalInterfaces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1419,36 +1278,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Instance)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Instance other = - (com.google.cloud.baremetalsolution.v2.Instance) obj; + com.google.cloud.baremetalsolution.v2.Instance other = (com.google.cloud.baremetalsolution.v2.Instance) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getMachineType().equals(other.getMachineType())) return false; + if (!getMachineType() + .equals(other.getMachineType())) return false; if (state_ != other.state_) return false; - if (getHyperthreadingEnabled() != other.getHyperthreadingEnabled()) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getLunsList().equals(other.getLunsList())) return false; - if (!getNetworksList().equals(other.getNetworksList())) return false; - if (getInteractiveSerialConsoleEnabled() != other.getInteractiveSerialConsoleEnabled()) - return false; - if (!getOsImage().equals(other.getOsImage())) return false; - if (!getPod().equals(other.getPod())) return false; - if (!getNetworkTemplate().equals(other.getNetworkTemplate())) return false; - if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false; + if (getHyperthreadingEnabled() + != other.getHyperthreadingEnabled()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getLunsList() + .equals(other.getLunsList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (getInteractiveSerialConsoleEnabled() + != other.getInteractiveSerialConsoleEnabled()) return false; + if (!getOsImage() + .equals(other.getOsImage())) return false; + if (!getPod() + .equals(other.getPod())) return false; + if (!getNetworkTemplate() + .equals(other.getNetworkTemplate())) return false; + if (!getLogicalInterfacesList() + .equals(other.getLogicalInterfacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1477,7 +1348,8 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + HYPERTHREADING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHyperthreadingEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHyperthreadingEnabled()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -1491,9 +1363,8 @@ public int hashCode() { hash = (53 * hash) + getNetworksList().hashCode(); } hash = (37 * hash) + INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getInteractiveSerialConsoleEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInteractiveSerialConsoleEnabled()); hash = (37 * hash) + OS_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getOsImage().hashCode(); hash = (37 * hash) + POD_FIELD_NUMBER; @@ -1509,147 +1380,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Instance) com.google.cloud.baremetalsolution.v2.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 7: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, - com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Instance.newBuilder() @@ -1657,19 +1521,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLunsFieldBuilder(); getNetworksFieldBuilder(); getLogicalInterfacesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1726,9 +1590,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @java.lang.Override @@ -1747,8 +1611,7 @@ public com.google.cloud.baremetalsolution.v2.Instance build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { - com.google.cloud.baremetalsolution.v2.Instance result = - new com.google.cloud.baremetalsolution.v2.Instance(this); + com.google.cloud.baremetalsolution.v2.Instance result = new com.google.cloud.baremetalsolution.v2.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -1806,39 +1669,38 @@ public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Instance) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance)other); } else { super.mergeFrom(other); return this; @@ -1871,7 +1733,8 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { if (other.getHyperthreadingEnabled() != false) { setHyperthreadingEnabled(other.getHyperthreadingEnabled()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -1890,10 +1753,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000002); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLunsFieldBuilder() - : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLunsFieldBuilder() : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -1917,10 +1779,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -1959,10 +1820,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { logicalInterfacesBuilder_ = null; logicalInterfaces_ = other.logicalInterfaces_; bitField0_ = (bitField0_ & ~0x00000008); - logicalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogicalInterfacesFieldBuilder() - : null; + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogicalInterfacesFieldBuilder() : null; } else { logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); } @@ -1996,13 +1856,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2012,13 +1869,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2027,8 +1884,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2038,14 +1893,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2053,8 +1909,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2064,22 +1918,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2089,18 +1941,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2110,16 +1959,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2127,20 +1976,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; - * * @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; @@ -2149,21 +1996,20 @@ public java.lang.String getId() { } } /** - * - * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; - * * @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 { @@ -2171,61 +2017,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; - * * @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; } /** - * - * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; - * * @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; @@ -2233,58 +2072,39 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2300,17 +2120,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2321,21 +2138,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2347,15 +2160,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2369,64 +2178,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Create a time stamp.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2434,58 +2227,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2501,17 +2275,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2522,21 +2293,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2548,15 +2315,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2570,64 +2333,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Update a time stamp.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2635,8 +2382,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object machineType_ = ""; /** - * - * *
      * The server type.
      * [Available server
@@ -2644,13 +2389,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string machine_type = 4; - * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -2659,8 +2404,6 @@ public java.lang.String getMachineType() { } } /** - * - * *
      * The server type.
      * [Available server
@@ -2668,14 +2411,15 @@ public java.lang.String getMachineType() {
      * 
* * string machine_type = 4; - * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -2683,8 +2427,6 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } } /** - * - * *
      * The server type.
      * [Available server
@@ -2692,22 +2434,20 @@ public com.google.protobuf.ByteString getMachineTypeBytes() {
      * 
* * string machine_type = 4; - * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType(java.lang.String value) { + public Builder setMachineType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** - * - * *
      * The server type.
      * [Available server
@@ -2715,18 +2455,15 @@ public Builder setMachineType(java.lang.String value) {
      * 
* * string machine_type = 4; - * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** - * - * *
      * The server type.
      * [Available server
@@ -2734,16 +2471,16 @@ public Builder clearMachineType() {
      * 
* * string machine_type = 4; - * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; @@ -2751,67 +2488,51 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = - com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2819,40 +2540,34 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Instance.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private boolean hyperthreadingEnabled_; + private boolean hyperthreadingEnabled_ ; /** - * - * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; - * * @return The hyperthreadingEnabled. */ @java.lang.Override @@ -2860,58 +2575,53 @@ public boolean getHyperthreadingEnabled() { return hyperthreadingEnabled_; } /** - * - * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; - * * @param value The hyperthreadingEnabled to set. * @return This builder for chaining. */ public Builder setHyperthreadingEnabled(boolean value) { - + hyperthreadingEnabled_ = value; onChanged(); return this; } /** - * - * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; - * * @return This builder for chaining. */ public Builder clearHyperthreadingEnabled() { - + hyperthreadingEnabled_ = false; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2923,30 +2633,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2954,12 +2662,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 7; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2967,17 +2674,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2985,11 +2691,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2997,83 +2704,80 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.util.List luns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> - lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3088,8 +2792,6 @@ public java.util.List getLunsList() { } } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3104,8 +2806,6 @@ public int getLunsCount() { } } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3120,15 +2820,14 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3142,8 +2841,6 @@ public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun valu return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3162,8 +2859,6 @@ public Builder setLuns( return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3184,15 +2879,14 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3206,15 +2900,14 @@ public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun valu return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns( + com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -3225,8 +2918,6 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builder return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3245,8 +2936,6 @@ public Builder addLuns( return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3257,7 +2946,8 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -3265,8 +2955,6 @@ public Builder addAllLuns( return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3284,8 +2972,6 @@ public Builder clearLuns() { return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3303,44 +2989,39 @@ public Builder removeLuns(int index) { return this; } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( + int index) { return getLunsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { if (lunsBuilder_ == null) { - return luns_.get(index); - } else { + return luns_.get(index); } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -3348,8 +3029,6 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int i } } /** - * - * *
      * List of LUNs associated with this server.
      * 
@@ -3357,72 +3036,60 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int i * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { - return getLunsFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( + int index) { + return getLunsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** - * - * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public java.util.List getLunsBuilderList() { + public java.util.List + getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); luns_ = null; } return lunsBuilder_; } private java.util.List networks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - networks_ = - new java.util.ArrayList(networks_); + networks_ = new java.util.ArrayList(networks_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3437,8 +3104,6 @@ public java.util.List getNetworks } } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3453,8 +3118,6 @@ public int getNetworksCount() { } } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3469,15 +3132,14 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3491,8 +3153,6 @@ public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Netw return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3511,8 +3171,6 @@ public Builder setNetworks( return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3533,15 +3191,14 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3555,8 +3212,6 @@ public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Netw return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3575,8 +3230,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3595,8 +3248,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3607,7 +3258,8 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -3615,8 +3267,6 @@ public Builder addAllNetworks( return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3634,8 +3284,6 @@ public Builder clearNetworks() { return this; } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3653,44 +3301,39 @@ public Builder removeNetworks(int index) { return this; } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( + int index) { return getNetworksFieldBuilder().getBuilder(index); } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { if (networksBuilder_ == null) { - return networks_.get(index); - } else { + return networks_.get(index); } else { return networksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -3698,8 +3341,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** - * - * *
      * List of networks associated with this server.
      * 
@@ -3707,57 +3348,49 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { - return getNetworksFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( + int index) { + return getNetworksFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** - * - * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); networks_ = null; } return networksBuilder_; } - private boolean interactiveSerialConsoleEnabled_; + private boolean interactiveSerialConsoleEnabled_ ; /** - * - * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3765,7 +3398,6 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(
      * 
* * bool interactive_serial_console_enabled = 10; - * * @return The interactiveSerialConsoleEnabled. */ @java.lang.Override @@ -3773,8 +3405,6 @@ public boolean getInteractiveSerialConsoleEnabled() { return interactiveSerialConsoleEnabled_; } /** - * - * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3782,19 +3412,16 @@ public boolean getInteractiveSerialConsoleEnabled() {
      * 
* * bool interactive_serial_console_enabled = 10; - * * @param value The interactiveSerialConsoleEnabled to set. * @return This builder for chaining. */ public Builder setInteractiveSerialConsoleEnabled(boolean value) { - + interactiveSerialConsoleEnabled_ = value; onChanged(); return this; } /** - * - * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3802,11 +3429,10 @@ public Builder setInteractiveSerialConsoleEnabled(boolean value) {
      * 
* * bool interactive_serial_console_enabled = 10; - * * @return This builder for chaining. */ public Builder clearInteractiveSerialConsoleEnabled() { - + interactiveSerialConsoleEnabled_ = false; onChanged(); return this; @@ -3814,20 +3440,18 @@ public Builder clearInteractiveSerialConsoleEnabled() { private java.lang.Object osImage_ = ""; /** - * - * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; - * * @return The osImage. */ public java.lang.String getOsImage() { java.lang.Object ref = osImage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osImage_ = s; return s; @@ -3836,21 +3460,20 @@ public java.lang.String getOsImage() { } } /** - * - * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; - * * @return The bytes for osImage. */ - public com.google.protobuf.ByteString getOsImageBytes() { + public com.google.protobuf.ByteString + getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); osImage_ = b; return b; } else { @@ -3858,61 +3481,54 @@ public com.google.protobuf.ByteString getOsImageBytes() { } } /** - * - * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; - * * @param value The osImage to set. * @return This builder for chaining. */ - public Builder setOsImage(java.lang.String value) { + public Builder setOsImage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + osImage_ = value; onChanged(); return this; } /** - * - * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; - * * @return This builder for chaining. */ public Builder clearOsImage() { - + osImage_ = getDefaultInstance().getOsImage(); onChanged(); return this; } /** - * - * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; - * * @param value The bytes for osImage to set. * @return This builder for chaining. */ - public Builder setOsImageBytes(com.google.protobuf.ByteString value) { + public Builder setOsImageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + osImage_ = value; onChanged(); return this; @@ -3920,8 +3536,6 @@ public Builder setOsImageBytes(com.google.protobuf.ByteString value) { private java.lang.Object pod_ = ""; /** - * - * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3930,13 +3544,13 @@ public Builder setOsImageBytes(com.google.protobuf.ByteString value) {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -3945,8 +3559,6 @@ public java.lang.String getPod() { } } /** - * - * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3955,14 +3567,15 @@ public java.lang.String getPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ - public com.google.protobuf.ByteString getPodBytes() { + public com.google.protobuf.ByteString + getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pod_ = b; return b; } else { @@ -3970,8 +3583,6 @@ public com.google.protobuf.ByteString getPodBytes() { } } /** - * - * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3980,22 +3591,20 @@ public com.google.protobuf.ByteString getPodBytes() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod(java.lang.String value) { + public Builder setPod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -4004,18 +3613,15 @@ public Builder setPod(java.lang.String value) {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** - * - * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -4024,16 +3630,16 @@ public Builder clearPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes(com.google.protobuf.ByteString value) { + public Builder setPodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = value; onChanged(); return this; @@ -4041,8 +3647,6 @@ public Builder setPodBytes(com.google.protobuf.ByteString value) { private java.lang.Object networkTemplate_ = ""; /** - * - * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -4050,13 +3654,13 @@ public Builder setPodBytes(com.google.protobuf.ByteString value) {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The networkTemplate. */ public java.lang.String getNetworkTemplate() { java.lang.Object ref = networkTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkTemplate_ = s; return s; @@ -4065,8 +3669,6 @@ public java.lang.String getNetworkTemplate() { } } /** - * - * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -4074,14 +3676,15 @@ public java.lang.String getNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for networkTemplate. */ - public com.google.protobuf.ByteString getNetworkTemplateBytes() { + public com.google.protobuf.ByteString + getNetworkTemplateBytes() { java.lang.Object ref = networkTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkTemplate_ = b; return b; } else { @@ -4089,8 +3692,6 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() { } } /** - * - * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -4098,22 +3699,20 @@ public com.google.protobuf.ByteString getNetworkTemplateBytes() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @param value The networkTemplate to set. * @return This builder for chaining. */ - public Builder setNetworkTemplate(java.lang.String value) { + public Builder setNetworkTemplate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + networkTemplate_ = value; onChanged(); return this; } /** - * - * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -4121,18 +3720,15 @@ public Builder setNetworkTemplate(java.lang.String value) {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearNetworkTemplate() { - + networkTemplate_ = getDefaultInstance().getNetworkTemplate(); onChanged(); return this; } /** - * - * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -4140,42 +3736,34 @@ public Builder clearNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for networkTemplate to set. * @return This builder for chaining. */ - public Builder setNetworkTemplateBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkTemplateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkTemplate_ = value; onChanged(); return this; } - private java.util.List - logicalInterfaces_ = java.util.Collections.emptyList(); - + private java.util.List logicalInterfaces_ = + java.util.Collections.emptyList(); private void ensureLogicalInterfacesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - logicalInterfaces_ = - new java.util.ArrayList( - logicalInterfaces_); + logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, - com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, - com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> - logicalInterfacesBuilder_; + com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4186,11 +3774,9 @@ private void ensureLogicalInterfacesIsMutable() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public java.util.List - getLogicalInterfacesList() { + public java.util.List getLogicalInterfacesList() { if (logicalInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalInterfaces_); } else { @@ -4198,8 +3784,6 @@ private void ensureLogicalInterfacesIsMutable() { } } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4210,8 +3794,7 @@ private void ensureLogicalInterfacesIsMutable() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public int getLogicalInterfacesCount() { if (logicalInterfacesBuilder_ == null) { @@ -4221,8 +3804,6 @@ public int getLogicalInterfacesCount() { } } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4233,8 +3814,7 @@ public int getLogicalInterfacesCount() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -4244,8 +3824,6 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac } } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4256,8 +3834,7 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder setLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { @@ -4274,8 +3851,6 @@ public Builder setLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4286,8 +3861,7 @@ public Builder setLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder setLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -4301,8 +3875,6 @@ public Builder setLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4313,11 +3885,9 @@ public Builder setLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public Builder addLogicalInterfaces( - com.google.cloud.baremetalsolution.v2.LogicalInterface value) { + public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4331,8 +3901,6 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4343,8 +3911,7 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder addLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { @@ -4361,8 +3928,6 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4373,8 +3938,7 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder addLogicalInterfaces( com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -4388,8 +3952,6 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4400,8 +3962,7 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder addLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -4415,8 +3976,6 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4427,15 +3986,14 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder addAllLogicalInterfaces( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalInterfaces_); onChanged(); } else { logicalInterfacesBuilder_.addAllMessages(values); @@ -4443,8 +4001,6 @@ public Builder addAllLogicalInterfaces( return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4455,8 +4011,7 @@ public Builder addAllLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder clearLogicalInterfaces() { if (logicalInterfacesBuilder_ == null) { @@ -4469,8 +4024,6 @@ public Builder clearLogicalInterfaces() { return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4481,8 +4034,7 @@ public Builder clearLogicalInterfaces() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ public Builder removeLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -4495,8 +4047,6 @@ public Builder removeLogicalInterfaces(int index) { return this; } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4507,16 +4057,13 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder - getLogicalInterfacesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder getLogicalInterfacesBuilder( + int index) { return getLogicalInterfacesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4527,20 +4074,16 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder - getLogicalInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { if (logicalInterfacesBuilder_ == null) { - return logicalInterfaces_.get(index); - } else { + return logicalInterfaces_.get(index); } else { return logicalInterfacesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4551,11 +4094,10 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public java.util.List - getLogicalInterfacesOrBuilderList() { + public java.util.List + getLogicalInterfacesOrBuilderList() { if (logicalInterfacesBuilder_ != null) { return logicalInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -4563,8 +4105,6 @@ public Builder removeLogicalInterfaces(int index) { } } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4575,17 +4115,13 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder - addLogicalInterfacesBuilder() { - return getLogicalInterfacesFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4596,18 +4132,14 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder - addLogicalInterfacesBuilder(int index) { - return getLogicalInterfacesFieldBuilder() - .addBuilder( - index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder( + int index) { + return getLogicalInterfacesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); } /** - * - * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4618,25 +4150,18 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - public java.util.List - getLogicalInterfacesBuilderList() { + public java.util.List + getLogicalInterfacesBuilderList() { return getLogicalInterfacesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, - com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, - com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> getLogicalInterfacesFieldBuilder() { if (logicalInterfacesBuilder_ == null) { - logicalInterfacesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, - com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, - com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( + logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( logicalInterfaces_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -4645,9 +4170,9 @@ public Builder removeLogicalInterfaces(int index) { } return logicalInterfacesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4657,12 +4182,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Instance) private static final com.google.cloud.baremetalsolution.v2.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Instance(); } @@ -4671,16 +4196,16 @@ public static com.google.cloud.baremetalsolution.v2.Instance getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4695,4 +4220,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java similarity index 83% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java index d375ed9..eccecfd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -35,13 +17,10 @@ public interface InstanceOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -51,115 +30,86 @@ public interface InstanceOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * The server type.
    * [Available server
@@ -167,13 +117,10 @@ public interface InstanceOrBuilder
    * 
* * string machine_type = 4; - * * @return The machineType. */ java.lang.String getMachineType(); /** - * - * *
    * The server type.
    * [Available server
@@ -181,53 +128,42 @@ public interface InstanceOrBuilder
    * 
* * string machine_type = 4; - * * @return The bytes for machineType. */ - com.google.protobuf.ByteString getMachineTypeBytes(); + com.google.protobuf.ByteString + getMachineTypeBytes(); /** - * - * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Instance.State getState(); /** - * - * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; - * * @return The hyperthreadingEnabled. */ boolean getHyperthreadingEnabled(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -236,31 +172,30 @@ public interface InstanceOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -269,34 +204,31 @@ public interface InstanceOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List getLunsList(); + java.util.List + getLunsList(); /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -305,8 +237,6 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** - * - * *
    * List of LUNs associated with this server.
    * 
@@ -315,40 +245,34 @@ java.lang.String getLabelsOrDefault( */ int getLunsCount(); /** - * - * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** - * - * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index); /** - * - * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List getNetworksList(); + java.util.List + getNetworksList(); /** - * - * *
    * List of networks associated with this server.
    * 
@@ -357,8 +281,6 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** - * - * *
    * List of networks associated with this server.
    * 
@@ -367,30 +289,25 @@ java.lang.String getLabelsOrDefault( */ int getNetworksCount(); /** - * - * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** - * - * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index); /** - * - * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -398,39 +315,31 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool interactive_serial_console_enabled = 10; - * * @return The interactiveSerialConsoleEnabled. */ boolean getInteractiveSerialConsoleEnabled(); /** - * - * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; - * * @return The osImage. */ java.lang.String getOsImage(); /** - * - * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; - * * @return The bytes for osImage. */ - com.google.protobuf.ByteString getOsImageBytes(); + com.google.protobuf.ByteString + getOsImageBytes(); /** - * - * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -439,13 +348,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ java.lang.String getPod(); /** - * - * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -454,14 +360,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ - com.google.protobuf.ByteString getPodBytes(); + com.google.protobuf.ByteString + getPodBytes(); /** - * - * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -469,13 +373,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The networkTemplate. */ java.lang.String getNetworkTemplate(); /** - * - * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -483,14 +384,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for networkTemplate. */ - com.google.protobuf.ByteString getNetworkTemplateBytes(); + com.google.protobuf.ByteString + getNetworkTemplateBytes(); /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -501,13 +400,11 @@ java.lang.String getLabelsOrDefault(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - java.util.List getLogicalInterfacesList(); + java.util.List + getLogicalInterfacesList(); /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -518,13 +415,10 @@ java.lang.String getLabelsOrDefault(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index); /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -535,13 +429,10 @@ java.lang.String getLabelsOrDefault(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ int getLogicalInterfacesCount(); /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -552,14 +443,11 @@ java.lang.String getLabelsOrDefault(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ - java.util.List + java.util.List getLogicalInterfacesOrBuilderList(); /** - * - * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -570,8 +458,7 @@ java.lang.String getLabelsOrDefault(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; */ com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( int index); diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java new file mode 100644 index 0000000..1c4d7e3 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java @@ -0,0 +1,283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class InstanceProto { + private InstanceProto() {} + 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_baremetalsolution_v2_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/baremetalsolution/v2/inst" + + "ance.proto\022!google.cloud.baremetalsoluti" + + "on.v2\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032+google/cloud/" + + "baremetalsolution/v2/lun.proto\032/google/c" + + "loud/baremetalsolution/v2/network.proto\032" + + " google/protobuf/field_mask.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" + + "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" + + "solution.v2.Instance.State\022\036\n\026hyperthrea" + + "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" + + "gle.cloud.baremetalsolution.v2.Instance." + + "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" + + ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " + + "\003(\0132*.google.cloud.baremetalsolution.v2." + + "Network\022*\n\"interactive_serial_console_en" + + "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" + + "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" + + "baremetalsolution.googleapis.com/ServerN" + + "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" + + "(\01323.google.cloud.baremetalsolution.v2.L" + + "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" + + "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" + + "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" + + "+.google.cloud.baremetalsolution.v2.Inst" + + "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" + + "instance\030\001 \001(\0132+.google.cloud.baremetals" + + "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" + + "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")baremetalsolution.googleapis.com/Instan" + + "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" + + "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" + + "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" + + "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" + + "leapis.com/Instance\"\222\001\n\020DetachLunRequest" + + "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" + + "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" + + "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" + + ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" + + "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" + + "oogle.cloud.baremetalsolution.v2.ServerN" + + "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" + + "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" + + "2W.google.cloud.baremetalsolution.v2.Ser" + + "verNetworkTemplate.LogicalInterface.Inte" + + "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" + + "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" + + "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" + + "n.googleapis.com/ServerNetworkTemplate\022W" + + "projects/{project}/locations/{location}/" + + "serverNetworkTemplate/{server_network_te" + + "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" + + "InstanceResponseB\373\001\n%com.google.cloud.ba" + + "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/baremetalsolution/v2;baremetalsolution\252" + + "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" + + "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" + + "::Cloud::BareMetalSolution::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, + new java.lang.String[] { "Name", "Id", "CreateTime", "UpdateTime", "MachineType", "State", "HyperthreadingEnabled", "Labels", "Luns", "Networks", "InteractiveSerialConsoleEnabled", "OsImage", "Pod", "NetworkTemplate", "LogicalInterfaces", }); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "Instance", "UpdateMask", }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, + new java.lang.String[] { "Instance", "Lun", }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, + new java.lang.String[] { "Name", "ApplicableInstanceTypes", "LogicalInterfaces", }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, + new java.lang.String[] { "Name", "Type", "Required", }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, + new java.lang.String[] { }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java index 8419229..7c955f4 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ -public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) ListInstancesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstancesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListInstancesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,34 @@ private ListInstancesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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 @@ -155,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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 { @@ -190,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -225,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -258,14 +223,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -274,29 +236,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -305,7 +267,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +278,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_); } @@ -343,7 +305,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_); @@ -359,18 +322,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.baremetalsolution.v2.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = - (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.cloud.baremetalsolution.v2.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesRequest.newBuilder() @@ -524,15 +480,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override @@ -569,8 +526,7 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = - new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -583,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * - * string parent = 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; @@ -696,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * - * string parent = 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 { @@ -720,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * - * 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. Parent value for ListInstancesRequest.
      * 
* - * - * string 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. Parent value for ListInstancesRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -804,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -843,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -865,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -887,61 +808,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -949,20 +863,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -971,21 +883,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -993,68 +904,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1064,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) private static final com.google.cloud.baremetalsolution.v2.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(); } @@ -1078,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1102,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java index 10c9345..1d504fd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java @@ -1,118 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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. Parent value for ListInstancesRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java index 69f116a..9d37ccd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message for the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ -public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) ListInstancesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstancesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,37 @@ private ListInstancesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instances_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instances_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,7 +94,8 @@ private ListInstancesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -128,27 +107,22 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** - * - * *
    * The list of servers.
    * 
@@ -160,8 +134,6 @@ public java.util.List getInstanc return instances_; } /** - * - * *
    * The list of servers.
    * 
@@ -169,13 +141,11 @@ public java.util.List getInstanc * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public java.util.List + public java.util.List getInstancesOrBuilderList() { return instances_; } /** - * - * *
    * The list of servers.
    * 
@@ -187,8 +157,6 @@ public int getInstancesCount() { return instances_.size(); } /** - * - * *
    * The list of servers.
    * 
@@ -200,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { return instances_.get(index); } /** - * - * *
    * The list of servers.
    * 
@@ -209,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( + int index) { return instances_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -265,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -308,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = - (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.cloud.baremetalsolution.v2.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesResponse.newBuilder() @@ -543,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getInstancesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override @@ -592,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = - new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -678,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResp instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -720,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,29 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList(instances_); + instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> - instancesBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instancesBuilder_; /** - * - * *
      * The list of servers.
      * 
@@ -767,8 +701,6 @@ public java.util.List getInstanc } } /** - * - * *
      * The list of servers.
      * 
@@ -783,8 +715,6 @@ public int getInstancesCount() { } } /** - * - * *
      * The list of servers.
      * 
@@ -799,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { } } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder setInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder setInstances( + int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setInstances(int index, com.google.cloud.baremetalsolution.v2.Ins return this; } /** - * - * *
      * The list of servers.
      * 
@@ -841,8 +768,6 @@ public Builder setInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -863,15 +788,14 @@ public Builder addInstances(com.google.cloud.baremetalsolution.v2.Instance value return this; } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder addInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder addInstances( + int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,8 +809,6 @@ public Builder addInstances(int index, com.google.cloud.baremetalsolution.v2.Ins return this; } /** - * - * *
      * The list of servers.
      * 
@@ -905,8 +827,6 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -925,8 +845,6 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -937,7 +855,8 @@ public Builder addAllInstances( java.lang.Iterable values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); @@ -945,8 +864,6 @@ public Builder addAllInstances( return this; } /** - * - * *
      * The list of servers.
      * 
@@ -964,8 +881,6 @@ public Builder clearInstances() { return this; } /** - * - * *
      * The list of servers.
      * 
@@ -983,20 +898,17 @@ public Builder removeInstances(int index) { return this; } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder( + int index) { return getInstancesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of servers.
      * 
@@ -1006,22 +918,19 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilde public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( int index) { if (instancesBuilder_ == null) { - return instances_.get(index); - } else { + return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -1029,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui } } /** - * - * *
      * The list of servers.
      * 
@@ -1038,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + return getInstancesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder(int index) { - return getInstancesFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** - * - * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + instances_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); instances_ = null; } return instancesBuilder_; @@ -1087,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1109,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1131,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1244,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1337,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1370,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) private static final com.google.cloud.baremetalsolution.v2.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(); } @@ -1384,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1408,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java index 65768d2..5523911 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List getInstancesList(); + java.util.List + getInstancesList(); /** - * - * *
    * The list of servers.
    * 
@@ -44,8 +25,6 @@ public interface ListInstancesResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Instance getInstances(int index); /** - * - * *
    * The list of servers.
    * 
@@ -54,100 +33,82 @@ public interface ListInstancesResponseOrBuilder */ int getInstancesCount(); /** - * - * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** - * - * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java similarity index 67% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java index 625cb29..78bf806 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ -public final class ListLunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) ListLunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLunsRequest.newBuilder() to construct. private ListLunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLunsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListLunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListLunsRequest( 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,41 +85,34 @@ private ListLunsRequest( } 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.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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 @@ -147,31 +121,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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 { @@ -182,15 +154,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -201,14 +170,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -217,29 +183,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -248,7 +214,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +225,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_); } @@ -283,7 +249,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_); @@ -296,17 +263,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.baremetalsolution.v2.ListLunsRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsRequest other = - (com.google.cloud.baremetalsolution.v2.ListLunsRequest) obj; + com.google.cloud.baremetalsolution.v2.ListLunsRequest other = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) 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; } @@ -330,127 +299,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.cloud.baremetalsolution.v2.ListLunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsRequest.newBuilder() @@ -458,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override @@ -501,8 +461,7 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsRequest result = - new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); + com.google.cloud.baremetalsolution.v2.ListLunsRequest result = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -514,39 +473,38 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest)other); } else { super.mergeFrom(other); return this; @@ -554,8 +512,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -586,8 +543,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,22 +555,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * - * string parent = 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; @@ -623,23 +575,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * - * string parent = 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 { @@ -647,83 +596,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * - * 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. Parent value for ListLunsRequest.
      * 
* - * - * string 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. Parent value for ListLunsRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -731,38 +664,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -770,20 +697,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -792,21 +717,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -814,68 +738,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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); } @@ -885,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) private static final com.google.cloud.baremetalsolution.v2.ListLunsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(); } @@ -899,16 +816,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,4 +840,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java index c79ee15..633ab6f 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java @@ -1,93 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsRequestOrBuilder - extends +public interface ListLunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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. Parent value for ListLunsRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java index e1c0471..46512a7 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ -public final class ListLunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListLunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) ListLunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListLunsResponse.newBuilder() to construct. private ListLunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListLunsResponse() { luns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListLunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListLunsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - luns_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + luns_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListLunsResponse( } 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)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -127,27 +107,22 @@ private ListLunsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } public static final int LUNS_FIELD_NUMBER = 1; private java.util.List luns_; /** - * - * *
    * The list of luns.
    * 
@@ -159,8 +134,6 @@ public java.util.List getLunsList() { return luns_; } /** - * - * *
    * The list of luns.
    * 
@@ -168,13 +141,11 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** - * - * *
    * The list of luns.
    * 
@@ -186,8 +157,6 @@ public int getLunsCount() { return luns_.size(); } /** - * - * *
    * The list of luns.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** - * - * *
    * The list of luns.
    * 
@@ -208,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { return luns_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -264,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -307,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < luns_.size(); i++) { output.writeMessage(1, luns_.get(i)); } @@ -355,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, luns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -376,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsResponse other = - (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; + com.google.cloud.baremetalsolution.v2.ListLunsResponse other = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; - if (!getLunsList().equals(other.getLunsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getLunsList() + .equals(other.getLunsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.cloud.baremetalsolution.v2.ListLunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsResponse.newBuilder() @@ -542,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override @@ -591,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsResponse result = - new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); + com.google.cloud.baremetalsolution.v2.ListLunsResponse result = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); int from_bitField0_ = bitField0_; if (lunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -617,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse)other); } else { super.mergeFrom(other); return this; @@ -657,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) return this; if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -677,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000001); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLunsFieldBuilder() - : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLunsFieldBuilder() : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -719,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -729,28 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List luns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> - lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; /** - * - * *
      * The list of luns.
      * 
@@ -765,8 +701,6 @@ public java.util.List getLunsList() { } } /** - * - * *
      * The list of luns.
      * 
@@ -781,8 +715,6 @@ public int getLunsCount() { } } /** - * - * *
      * The list of luns.
      * 
@@ -797,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,8 +750,6 @@ public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun valu return this; } /** - * - * *
      * The list of luns.
      * 
@@ -839,8 +768,6 @@ public Builder setLuns( return this; } /** - * - * *
      * The list of luns.
      * 
@@ -861,15 +788,14 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns( + int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -883,15 +809,14 @@ public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun valu return this; } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns( + com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -902,8 +827,6 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builder return this; } /** - * - * *
      * The list of luns.
      * 
@@ -922,8 +845,6 @@ public Builder addLuns( return this; } /** - * - * *
      * The list of luns.
      * 
@@ -934,7 +855,8 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -942,8 +864,6 @@ public Builder addAllLuns( return this; } /** - * - * *
      * The list of luns.
      * 
@@ -961,8 +881,6 @@ public Builder clearLuns() { return this; } /** - * - * *
      * The list of luns.
      * 
@@ -980,44 +898,39 @@ public Builder removeLuns(int index) { return this; } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( + int index) { return getLunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index) { if (lunsBuilder_ == null) { - return luns_.get(index); - } else { + return luns_.get(index); } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -1025,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int i } } /** - * - * *
      * The list of luns.
      * 
@@ -1034,47 +945,42 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int i * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { - return getLunsFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( + int index) { + return getLunsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** - * - * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List getLunsBuilderList() { + public java.util.List + getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, - com.google.cloud.baremetalsolution.v2.Lun.Builder, - com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); luns_ = null; } return lunsBuilder_; @@ -1082,20 +988,18 @@ public java.util.List getLuns private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1104,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1126,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1239,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1332,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1365,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) private static final com.google.cloud.baremetalsolution.v2.ListLunsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(); } @@ -1379,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1403,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java index 4e01c38..23a95a3 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsResponseOrBuilder - extends +public interface ListLunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List getLunsList(); + java.util.List + getLunsList(); /** - * - * *
    * The list of luns.
    * 
@@ -44,8 +25,6 @@ public interface ListLunsResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** - * - * *
    * The list of luns.
    * 
@@ -54,100 +33,82 @@ public interface ListLunsResponseOrBuilder */ int getLunsCount(); /** - * - * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** - * - * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java similarity index 63% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java index 98e6e14..4c7201a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Request to get networks with IPs.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} */ -public final class ListNetworkUsageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNetworkUsageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) ListNetworkUsageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNetworkUsageRequest.newBuilder() to construct. private ListNetworkUsageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNetworkUsageRequest() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNetworkUsageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNetworkUsageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ListNetworkUsageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + location_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private ListNetworkUsageRequest( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** - * - * *
    * Required. Parent value (project and location).
    * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The location. */ @java.lang.Override @@ -134,31 +109,29 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
    * Required. Parent value (project and location).
    * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = - (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; - if (!getLocation().equals(other.getLocation())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to get networks with IPs.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,14 +341,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance(); } @@ -399,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = - new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); result.location_ = location_; onBuilt(); return result; @@ -410,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)other); } else { super.mergeFrom(other); return this; @@ -450,9 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other) { - if (other - == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -476,9 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** - * - * *
      * Required. Parent value (project and location).
      * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -514,23 +467,20 @@ public java.lang.String getLocation() { } } /** - * - * *
      * Required. Parent value (project and location).
      * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -538,74 +488,61 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
      * Required. Parent value (project and location).
      * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
      * Required. Parent value (project and location).
      * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
      * Required. Parent value (project and location).
      * 
* - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = 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); } @@ -615,13 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(); } @@ -630,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworkUsageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworkUsageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java new file mode 100644 index 0000000..e4cb363 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ListNetworkUsageRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent value (project and location).
+   * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The location. + */ + java.lang.String getLocation(); + /** + *
+   * Required. Parent value (project and location).
+   * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for location. + */ + com.google.protobuf.ByteString + getLocationBytes(); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java similarity index 71% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java index 78f0f77..470b090 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response with Networks with IPs
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} */ -public final class ListNetworkUsageResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNetworkUsageResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) ListNetworkUsageResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNetworkUsageResponse.newBuilder() to construct. private ListNetworkUsageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNetworkUsageResponse() { networks_ = 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 ListNetworkUsageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNetworkUsageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,26 +54,22 @@ private ListNetworkUsageResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - networks_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.NetworkUsage.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + networks_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkUsage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,7 +77,8 @@ private ListNetworkUsageResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -107,27 +87,22 @@ private ListNetworkUsageResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** - * - * *
    * Networks with IPs.
    * 
@@ -139,8 +114,6 @@ public java.util.List getNet return networks_; } /** - * - * *
    * Networks with IPs.
    * 
@@ -148,13 +121,11 @@ public java.util.List getNet * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** - * - * *
    * Networks with IPs.
    * 
@@ -166,8 +137,6 @@ public int getNetworksCount() { return networks_.size(); } /** - * - * *
    * Networks with IPs.
    * 
@@ -179,8 +148,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) return networks_.get(index); } /** - * - * *
    * Networks with IPs.
    * 
@@ -194,7 +161,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +172,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 < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -220,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, networks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,15 +198,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.baremetalsolution.v2.ListNetworkUsageResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = - (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; - if (!getNetworksList().equals(other.getNetworksList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 with Networks with IPs
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.newBuilder() @@ -388,17 +346,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) { getNetworksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -412,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance(); } @@ -434,8 +391,7 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = - new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -454,39 +410,38 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse)other); } else { super.mergeFrom(other); return this; @@ -494,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other) { - if (other - == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -515,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageR networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -543,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,29 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = - new java.util.ArrayList(networks_); + networks_ = new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, - com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> - networksBuilder_; + com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> networksBuilder_; /** - * - * *
      * Networks with IPs.
      * 
@@ -591,8 +533,6 @@ public java.util.List getNet } } /** - * - * *
      * Networks with IPs.
      * 
@@ -607,8 +547,6 @@ public int getNetworksCount() { } } /** - * - * *
      * Networks with IPs.
      * 
@@ -623,8 +561,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) } } /** - * - * *
      * Networks with IPs.
      * 
@@ -646,8 +582,6 @@ public Builder setNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -666,8 +600,6 @@ public Builder setNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -688,8 +620,6 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.NetworkUsage va return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -711,8 +641,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -731,8 +659,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -751,8 +677,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -763,7 +687,8 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -771,8 +696,6 @@ public Builder addAllNetworks( return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -790,8 +713,6 @@ public Builder clearNetworks() { return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -809,8 +730,6 @@ public Builder removeNetworks(int index) { return this; } /** - * - * *
      * Networks with IPs.
      * 
@@ -822,8 +741,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBui return getNetworksFieldBuilder().getBuilder(index); } /** - * - * *
      * Networks with IPs.
      * 
@@ -833,22 +750,19 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBui public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( int index) { if (networksBuilder_ == null) { - return networks_.get(index); - } else { + return networks_.get(index); } else { return networksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Networks with IPs.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -856,8 +770,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr } } /** - * - * *
      * Networks with IPs.
      * 
@@ -865,12 +777,10 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder() { - return getNetworksFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + return getNetworksFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); } /** - * - * *
      * Networks with IPs.
      * 
@@ -879,43 +789,37 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBui */ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder( int index) { - return getNetworksFieldBuilder() - .addBuilder( - index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + return getNetworksFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); } /** - * - * *
      * Networks with IPs.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, - com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> + com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, - com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( - networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( + networks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); networks_ = null; } return networksBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -925,32 +829,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) - private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworkUsageResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworkUsageResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,8 +864,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java index ef8a66b..6d55ac6 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworkUsageResponseOrBuilder - extends +public interface ListNetworkUsageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - java.util.List getNetworksList(); + java.util.List + getNetworksList(); /** - * - * *
    * Networks with IPs.
    * 
@@ -44,8 +25,6 @@ public interface ListNetworkUsageResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index); /** - * - * *
    * Networks with IPs.
    * 
@@ -54,24 +33,21 @@ public interface ListNetworkUsageResponseOrBuilder */ int getNetworksCount(); /** - * - * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** - * - * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( + int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java index 276a02f..02b44ee 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ -public final class ListNetworksRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNetworksRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) ListNetworksRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNetworksRequest.newBuilder() to construct. private ListNetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNetworksRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListNetworksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNetworksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNetworksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListNetworksRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,34 @@ private ListNetworksRequest( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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 @@ -155,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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 { @@ -190,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -225,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -258,14 +223,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -274,29 +236,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -305,7 +267,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +278,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_); } @@ -343,7 +305,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_); @@ -359,18 +322,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.baremetalsolution.v2.ListNetworksRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = - (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.cloud.baremetalsolution.v2.ListNetworksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksRequest.newBuilder() @@ -524,15 +480,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override @@ -569,8 +526,7 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = - new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -583,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * - * string parent = 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; @@ -696,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * - * string parent = 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 { @@ -720,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * - * 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. Parent value for ListNetworksRequest.
      * 
* - * - * string 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. Parent value for ListNetworksRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -804,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -843,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -865,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -887,61 +808,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -949,20 +863,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -971,21 +883,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -993,68 +904,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1064,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) private static final com.google.cloud.baremetalsolution.v2.ListNetworksRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(); } @@ -1078,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1102,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java index f0ccc2f..4c26a87 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java @@ -1,118 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksRequestOrBuilder - extends +public interface ListNetworksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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. Parent value for ListNetworksRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java index ce6d426..f98c159 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ -public final class ListNetworksResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNetworksResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) ListNetworksResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNetworksResponse.newBuilder() to construct. private ListNetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNetworksResponse() { networks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListNetworksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNetworksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNetworksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,37 @@ private ListNetworksResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - networks_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + networks_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,7 +94,8 @@ private ListNetworksResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -128,27 +107,22 @@ private ListNetworksResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** - * - * *
    * The list of networks.
    * 
@@ -160,8 +134,6 @@ public java.util.List getNetworks return networks_; } /** - * - * *
    * The list of networks.
    * 
@@ -169,13 +141,11 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** - * - * *
    * The list of networks.
    * 
@@ -187,8 +157,6 @@ public int getNetworksCount() { return networks_.size(); } /** - * - * *
    * The list of networks.
    * 
@@ -200,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** - * - * *
    * The list of networks.
    * 
@@ -209,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { return networks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -265,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -308,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworksResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = - (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; - if (!getNetworksList().equals(other.getNetworksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getNetworksList() + .equals(other.getNetworksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.cloud.baremetalsolution.v2.ListNetworksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksResponse.newBuilder() @@ -543,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getNetworksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override @@ -592,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = - new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -678,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRespo networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworksFieldBuilder() - : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -720,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,29 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = - new java.util.ArrayList(networks_); + networks_ = new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; /** - * - * *
      * The list of networks.
      * 
@@ -767,8 +701,6 @@ public java.util.List getNetworks } } /** - * - * *
      * The list of networks.
      * 
@@ -783,8 +715,6 @@ public int getNetworksCount() { } } /** - * - * *
      * The list of networks.
      * 
@@ -799,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Netw return this; } /** - * - * *
      * The list of networks.
      * 
@@ -841,8 +768,6 @@ public Builder setNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -863,15 +788,14 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks( + int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,8 +809,6 @@ public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Netw return this; } /** - * - * *
      * The list of networks.
      * 
@@ -905,8 +827,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -925,8 +845,6 @@ public Builder addNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -937,7 +855,8 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -945,8 +864,6 @@ public Builder addAllNetworks( return this; } /** - * - * *
      * The list of networks.
      * 
@@ -964,8 +881,6 @@ public Builder clearNetworks() { return this; } /** - * - * *
      * The list of networks.
      * 
@@ -983,44 +898,39 @@ public Builder removeNetworks(int index) { return this; } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( + int index) { return getNetworksFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index) { if (networksBuilder_ == null) { - return networks_.get(index); - } else { + return networks_.get(index); } else { return networksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -1028,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** - * - * *
      * The list of networks.
      * 
@@ -1037,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { - return getNetworksFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( + int index) { + return getNetworksFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** - * - * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); networks_ = null; } return networksBuilder_; @@ -1086,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1108,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1130,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1243,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1336,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1369,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) private static final com.google.cloud.baremetalsolution.v2.ListNetworksResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(); } @@ -1383,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1407,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java index 8718101..8b09c36 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksResponseOrBuilder - extends +public interface ListNetworksResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List getNetworksList(); + java.util.List + getNetworksList(); /** - * - * *
    * The list of networks.
    * 
@@ -44,8 +25,6 @@ public interface ListNetworksResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** - * - * *
    * The list of networks.
    * 
@@ -54,100 +33,82 @@ public interface ListNetworksResponseOrBuilder */ int getNetworksCount(); /** - * - * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** - * - * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java index ff77931..27cd94f 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of NFS shares.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} */ -public final class ListNfsSharesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNfsSharesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) ListNfsSharesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNfsSharesRequest.newBuilder() to construct. private ListNfsSharesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNfsSharesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListNfsSharesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNfsSharesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNfsSharesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListNfsSharesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,34 @@ private ListNfsSharesRequest( } 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.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * - * string parent = 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 @@ -155,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * - * string parent = 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 { @@ -190,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -225,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -258,14 +223,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -274,29 +236,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -305,7 +267,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +278,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_); } @@ -343,7 +305,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_); @@ -359,18 +322,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.baremetalsolution.v2.ListNfsSharesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = - (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of NFS shares.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) com.google.cloud.baremetalsolution.v2.ListNfsSharesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.newBuilder() @@ -524,15 +480,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override @@ -569,8 +526,7 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = - new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -583,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * - * string parent = 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; @@ -696,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * - * string parent = 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 { @@ -720,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * - * 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. Parent value for ListNfsSharesRequest.
      * 
* - * - * string 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. Parent value for ListNfsSharesRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -804,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -843,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -865,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -887,61 +808,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -949,20 +863,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -971,21 +883,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -993,68 +904,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1064,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(); } @@ -1078,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNfsSharesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNfsSharesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1102,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java index 195f826..c1029fe 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java @@ -1,118 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNfsSharesRequestOrBuilder - extends +public interface ListNfsSharesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * - * string parent = 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. Parent value for ListNfsSharesRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java similarity index 74% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java index c9c1e94..95fe371 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of NFS shares.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} */ -public final class ListNfsSharesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNfsSharesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) ListNfsSharesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNfsSharesResponse.newBuilder() to construct. private ListNfsSharesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNfsSharesResponse() { nfsShares_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListNfsSharesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNfsSharesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNfsSharesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,42 +56,37 @@ private ListNfsSharesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nfsShares_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nfsShares_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nfsShares_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + nfsShares_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,7 +94,8 @@ private ListNfsSharesResponse( } 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)) { nfsShares_ = java.util.Collections.unmodifiableList(nfsShares_); @@ -128,27 +107,22 @@ private ListNfsSharesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); } public static final int NFS_SHARES_FIELD_NUMBER = 1; private java.util.List nfsShares_; /** - * - * *
    * The list of NFS shares.
    * 
@@ -160,8 +134,6 @@ public java.util.List getNfsShar return nfsShares_; } /** - * - * *
    * The list of NFS shares.
    * 
@@ -169,13 +141,11 @@ public java.util.List getNfsShar * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNfsSharesOrBuilderList() { return nfsShares_; } /** - * - * *
    * The list of NFS shares.
    * 
@@ -187,8 +157,6 @@ public int getNfsSharesCount() { return nfsShares_.size(); } /** - * - * *
    * The list of NFS shares.
    * 
@@ -200,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { return nfsShares_.get(index); } /** - * - * *
    * The list of NFS shares.
    * 
@@ -209,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( + int index) { return nfsShares_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -265,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -308,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < nfsShares_.size(); i++) { output.writeMessage(1, nfsShares_.get(i)); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nfsShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nfsShares_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nfsShares_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = - (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; - if (!getNfsSharesList().equals(other.getNfsSharesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getNfsSharesList() + .equals(other.getNfsSharesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of NFS shares.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) com.google.cloud.baremetalsolution.v2.ListNfsSharesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.newBuilder() @@ -543,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getNfsSharesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override @@ -592,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = - new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); int from_bitField0_ = bitField0_; if (nfsSharesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) return this; if (nfsSharesBuilder_ == null) { if (!other.nfsShares_.isEmpty()) { if (nfsShares_.isEmpty()) { @@ -678,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResp nfsSharesBuilder_ = null; nfsShares_ = other.nfsShares_; bitField0_ = (bitField0_ & ~0x00000001); - nfsSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNfsSharesFieldBuilder() - : null; + nfsSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNfsSharesFieldBuilder() : null; } else { nfsSharesBuilder_.addAllMessages(other.nfsShares_); } @@ -720,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,29 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List nfsShares_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNfsSharesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsShares_ = - new java.util.ArrayList(nfsShares_); + nfsShares_ = new java.util.ArrayList(nfsShares_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> - nfsSharesBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsSharesBuilder_; /** - * - * *
      * The list of NFS shares.
      * 
@@ -767,8 +701,6 @@ public java.util.List getNfsShar } } /** - * - * *
      * The list of NFS shares.
      * 
@@ -783,8 +715,6 @@ public int getNfsSharesCount() { } } /** - * - * *
      * The list of NFS shares.
      * 
@@ -799,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { } } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public Builder setNfsShares(int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + public Builder setNfsShares( + int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setNfsShares(int index, com.google.cloud.baremetalsolution.v2.Nfs return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -841,8 +768,6 @@ public Builder setNfsShares( return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -863,15 +788,14 @@ public Builder addNfsShares(com.google.cloud.baremetalsolution.v2.NfsShare value return this; } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public Builder addNfsShares(int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + public Builder addNfsShares( + int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,8 +809,6 @@ public Builder addNfsShares(int index, com.google.cloud.baremetalsolution.v2.Nfs return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -905,8 +827,6 @@ public Builder addNfsShares( return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -925,8 +845,6 @@ public Builder addNfsShares( return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -937,7 +855,8 @@ public Builder addAllNfsShares( java.lang.Iterable values) { if (nfsSharesBuilder_ == null) { ensureNfsSharesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsShares_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nfsShares_); onChanged(); } else { nfsSharesBuilder_.addAllMessages(values); @@ -945,8 +864,6 @@ public Builder addAllNfsShares( return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -964,8 +881,6 @@ public Builder clearNfsShares() { return this; } /** - * - * *
      * The list of NFS shares.
      * 
@@ -983,20 +898,17 @@ public Builder removeNfsShares(int index) { return this; } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder( + int index) { return getNfsSharesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of NFS shares.
      * 
@@ -1006,22 +918,19 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilde public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( int index) { if (nfsSharesBuilder_ == null) { - return nfsShares_.get(index); - } else { + return nfsShares_.get(index); } else { return nfsSharesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public java.util.List - getNfsSharesOrBuilderList() { + public java.util.List + getNfsSharesOrBuilderList() { if (nfsSharesBuilder_ != null) { return nfsSharesBuilder_.getMessageOrBuilderList(); } else { @@ -1029,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBui } } /** - * - * *
      * The list of NFS shares.
      * 
@@ -1038,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBui * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder() { - return getNfsSharesFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + return getNfsSharesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder(int index) { - return getNfsSharesFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder( + int index) { + return getNfsSharesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); } /** - * - * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public java.util.List - getNfsSharesBuilderList() { + public java.util.List + getNfsSharesBuilderList() { return getNfsSharesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> getNfsSharesFieldBuilder() { if (nfsSharesBuilder_ == null) { - nfsSharesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( - nfsShares_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nfsSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + nfsShares_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); nfsShares_ = null; } return nfsSharesBuilder_; @@ -1087,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -1109,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1131,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1244,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1337,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1370,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(); } @@ -1384,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNfsSharesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNfsSharesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1408,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java index 219771e..4e3cedd 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNfsSharesResponseOrBuilder - extends +public interface ListNfsSharesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - java.util.List getNfsSharesList(); + java.util.List + getNfsSharesList(); /** - * - * *
    * The list of NFS shares.
    * 
@@ -44,8 +25,6 @@ public interface ListNfsSharesResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index); /** - * - * *
    * The list of NFS shares.
    * 
@@ -54,100 +33,82 @@ public interface ListNfsSharesResponseOrBuilder */ int getNfsSharesCount(); /** - * - * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - java.util.List + java.util.List getNfsSharesOrBuilderList(); /** - * - * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java index 31b65d9..3fb2e23 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message for requesting a list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ -public final class ListVolumesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVolumesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) ListVolumesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVolumesRequest.newBuilder() to construct. private ListVolumesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVolumesRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListVolumesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVolumesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVolumesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListVolumesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,34 @@ private ListVolumesRequest( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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 @@ -155,31 +128,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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 { @@ -190,15 +161,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,14 +177,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -225,29 +190,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -258,14 +223,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -274,29 +236,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -305,7 +267,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +278,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_); } @@ -343,7 +305,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_); @@ -359,18 +322,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.baremetalsolution.v2.ListVolumesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = - (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for requesting a list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.cloud.baremetalsolution.v2.ListVolumesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesRequest.newBuilder() @@ -524,15 +480,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override @@ -569,8 +526,7 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = - new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -583,39 +539,38 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,22 +625,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * - * string parent = 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; @@ -696,23 +645,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * - * string parent = 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 { @@ -720,83 +666,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * - * 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. Parent value for ListVolumesRequest.
      * 
* - * - * string 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. Parent value for ListVolumesRequest.
      * 
* - * - * 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_ ; /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -804,38 +734,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** - * - * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -843,20 +767,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -865,21 +787,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -887,61 +808,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -949,20 +863,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -971,21 +883,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -993,68 +904,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1064,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) private static final com.google.cloud.baremetalsolution.v2.ListVolumesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(); } @@ -1078,16 +982,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1102,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java index 6db8315..4b30dd3 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java @@ -1,118 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesRequestOrBuilder - extends +public interface ListVolumesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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. Parent value for ListVolumesRequest.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java index 06aba84..0af4bba 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message containing the list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ -public final class ListVolumesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVolumesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) ListVolumesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVolumesResponse.newBuilder() to construct. private ListVolumesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVolumesResponse() { volumes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListVolumesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVolumesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVolumesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListVolumesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - volumes_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + volumes_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListVolumesResponse( } 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)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); @@ -127,27 +107,22 @@ private ListVolumesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } public static final int VOLUMES_FIELD_NUMBER = 1; private java.util.List volumes_; /** - * - * *
    * The list of storage volumes.
    * 
@@ -159,8 +134,6 @@ public java.util.List getVolumesLi return volumes_; } /** - * - * *
    * The list of storage volumes.
    * 
@@ -168,13 +141,11 @@ public java.util.List getVolumesLi * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** - * - * *
    * The list of storage volumes.
    * 
@@ -186,8 +157,6 @@ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
    * The list of storage volumes.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** - * - * *
    * The list of storage volumes.
    * 
@@ -208,21 +175,19 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { return volumes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,29 +196,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -264,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -307,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(1, volumes_.get(i)); } @@ -355,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, volumes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -376,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = - (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; - if (!getVolumesList().equals(other.getVolumesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message containing the list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.cloud.baremetalsolution.v2.ListVolumesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesResponse.newBuilder() @@ -542,17 +490,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getVolumesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override @@ -591,8 +539,7 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = - new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); int from_bitField0_ = bitField0_; if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -617,39 +564,38 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse)other); } else { super.mergeFrom(other); return this; @@ -657,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) return this; if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { @@ -677,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRespon volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); - volumesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVolumesFieldBuilder() - : null; + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVolumesFieldBuilder() : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } @@ -719,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -729,28 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List volumes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> - volumesBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumesBuilder_; /** - * - * *
      * The list of storage volumes.
      * 
@@ -765,8 +701,6 @@ public java.util.List getVolumesLi } } /** - * - * *
      * The list of storage volumes.
      * 
@@ -781,8 +715,6 @@ public int getVolumesCount() { } } /** - * - * *
      * The list of storage volumes.
      * 
@@ -797,15 +729,14 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { } } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder setVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder setVolumes( + int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,8 +750,6 @@ public Builder setVolumes(int index, com.google.cloud.baremetalsolution.v2.Volum return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -839,8 +768,6 @@ public Builder setVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -861,15 +788,14 @@ public Builder addVolumes(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder addVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder addVolumes( + int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -883,8 +809,6 @@ public Builder addVolumes(int index, com.google.cloud.baremetalsolution.v2.Volum return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -903,8 +827,6 @@ public Builder addVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -923,8 +845,6 @@ public Builder addVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -935,7 +855,8 @@ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); @@ -943,8 +864,6 @@ public Builder addAllVolumes( return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -962,8 +881,6 @@ public Builder clearVolumes() { return this; } /** - * - * *
      * The list of storage volumes.
      * 
@@ -981,44 +898,39 @@ public Builder removeVolumes(int index) { return this; } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder( + int index) { return getVolumesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { if (volumesBuilder_ == null) { - return volumes_.get(index); - } else { + return volumes_.get(index); } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -1026,8 +938,6 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder } } /** - * - * *
      * The list of storage volumes.
      * 
@@ -1035,48 +945,42 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder() - .addBuilder(com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder(int index) { - return getVolumesFieldBuilder() - .addBuilder(index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder( + int index) { + return getVolumesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** - * - * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesBuilderList() { + public java.util.List + getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - volumes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + volumes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); volumes_ = null; } return volumesBuilder_; @@ -1084,20 +988,18 @@ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1106,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1128,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1241,90 +1125,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1334,30 +1208,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1367,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) private static final com.google.cloud.baremetalsolution.v2.ListVolumesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(); } @@ -1381,16 +1253,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1405,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java index 4d4b8f6..52657e8 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesResponseOrBuilder - extends +public interface ListVolumesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List getVolumesList(); + java.util.List + getVolumesList(); /** - * - * *
    * The list of storage volumes.
    * 
@@ -44,8 +25,6 @@ public interface ListVolumesResponseOrBuilder */ com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index); /** - * - * *
    * The list of storage volumes.
    * 
@@ -54,100 +33,82 @@ public interface ListVolumesResponseOrBuilder */ int getVolumesCount(); /** - * - * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List + java.util.List getVolumesOrBuilderList(); /** - * - * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( + int index); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java index 2a49f8b..e418612 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Each logical interface represents a logical abstraction of the underlying
  * physical interface (for eg. bond, nic) of the instance. Each logical
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface}
  */
-public final class LogicalInterface extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LogicalInterface extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface)
     LogicalInterfaceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LogicalInterface.newBuilder() to construct.
   private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LogicalInterface() {
     logicalNetworkInterfaces_ = java.util.Collections.emptyList();
     name_ = "";
@@ -47,15 +29,16 @@ private LogicalInterface() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogicalInterface();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LogicalInterface(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,41 +58,33 @@ private LogicalInterface(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                logicalNetworkInterfaces_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.baremetalsolution.v2.LogicalInterface
-                            .LogicalNetworkInterface>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              logicalNetworkInterfaces_.add(
-                  input.readMessage(
-                      com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface
-                          .parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              logicalNetworkInterfaces_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            logicalNetworkInterfaces_.add(
+                input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 24:
-            {
-              interfaceIndex_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          case 24: {
+
+            interfaceIndex_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -117,171 +92,139 @@ private LogicalInterface(
     } 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)) {
-        logicalNetworkInterfaces_ =
-            java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
+        logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.baremetalsolution.v2.NetworkProto
-        .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.baremetalsolution.v2.NetworkProto
-        .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
+    return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.class,
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
   }
 
-  public interface LogicalNetworkInterfaceOrBuilder
-      extends
+  public interface LogicalNetworkInterfaceOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Name of the network
      * 
* * string network = 1; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
      * Name of the network
      * 
* * string network = 1; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
      * IP address in the network
      * 
* * string ip_address = 2; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
      * IP address in the network
      * 
* * string ip_address = 2; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); /** - * - * *
      * Whether this interface is the default gateway for the instance. Only
      * one interface can be the default gateway for the instance.
      * 
* * bool default_gateway = 3; - * * @return The defaultGateway. */ boolean getDefaultGateway(); /** - * - * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The enum numeric value on the wire for networkType. */ int getNetworkTypeValue(); /** - * - * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The networkType. */ com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType(); /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; - * * @return The id. */ java.lang.String getId(); /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); } /** - * - * *
    * Each logical network interface is effectively a network and IP pair.
    * 
* - * Protobuf type {@code - * google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} */ - public static final class LogicalNetworkInterface extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LogicalNetworkInterface extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) LogicalNetworkInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogicalNetworkInterface.newBuilder() to construct. private LogicalNetworkInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LogicalNetworkInterface() { network_ = ""; ipAddress_ = ""; @@ -291,15 +234,16 @@ private LogicalNetworkInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogicalNetworkInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LogicalNetworkInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -318,46 +262,42 @@ private LogicalNetworkInterface( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - network_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + network_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - ipAddress_ = s; - break; - } - case 24: - { - defaultGateway_ = input.readBool(); - break; - } - case 32: - { - int rawValue = input.readEnum(); + ipAddress_ = s; + break; + } + case 24: { - networkType_ = rawValue; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + defaultGateway_ = input.readBool(); + break; + } + case 32: { + int rawValue = input.readEnum(); - id_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + networkType_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -365,40 +305,34 @@ private LogicalNetworkInterface( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - .class); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** - * - * *
      * Name of the network
      * 
* * string network = 1; - * * @return The network. */ @java.lang.Override @@ -407,29 +341,29 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
      * Name of the network
      * 
* * string network = 1; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -440,14 +374,11 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int IP_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object ipAddress_; /** - * - * *
      * IP address in the network
      * 
* * string ip_address = 2; - * * @return The ipAddress. */ @java.lang.Override @@ -456,29 +387,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** - * - * *
      * IP address in the network
      * 
* * string ip_address = 2; - * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -489,15 +420,12 @@ public com.google.protobuf.ByteString getIpAddressBytes() { public static final int DEFAULT_GATEWAY_FIELD_NUMBER = 3; private boolean defaultGateway_; /** - * - * *
      * Whether this interface is the default gateway for the instance. Only
      * one interface can be the default gateway for the instance.
      * 
* * bool default_gateway = 3; - * * @return The defaultGateway. */ @java.lang.Override @@ -508,52 +436,38 @@ public boolean getDefaultGateway() { public static final int NETWORK_TYPE_FIELD_NUMBER = 4; private int networkType_; /** - * - * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The enum numeric value on the wire for networkType. */ - @java.lang.Override - public int getNetworkTypeValue() { + @java.lang.Override public int getNetworkTypeValue() { return networkType_; } /** - * - * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The networkType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = - com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; } public static final int ID_FIELD_NUMBER = 5; private volatile java.lang.Object id_; /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; - * * @return The id. */ @java.lang.Override @@ -562,29 +476,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; } } /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; - * * @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 { @@ -593,7 +507,6 @@ public com.google.protobuf.ByteString getIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -605,7 +518,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(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -615,8 +529,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (defaultGateway_ != false) { output.writeBool(3, defaultGateway_); } - if (networkType_ - != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, networkType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { @@ -638,11 +551,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_); } if (defaultGateway_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, defaultGateway_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, defaultGateway_); } - if (networkType_ - != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, networkType_); + if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, networkType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, id_); @@ -655,21 +569,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.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = - (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (getDefaultGateway() != other.getDefaultGateway()) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (getDefaultGateway() + != other.getDefaultGateway()) return false; if (networkType_ != other.networkType_) return false; - if (!getId().equals(other.getId())) return false; + if (!getId() + .equals(other.getId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -686,7 +601,8 @@ public int hashCode() { hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); hash = (37 * hash) + DEFAULT_GATEWAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultGateway()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDefaultGateway()); hash = (37 * hash) + NETWORK_TYPE_FIELD_NUMBER; hash = (53 * hash) + networkType_; hash = (37 * hash) + ID_FIELD_NUMBER; @@ -696,101 +612,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -800,52 +703,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Each logical network interface is effectively a network and IP pair.
      * 
* - * Protobuf type {@code - * google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .class, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .Builder.class); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); } - // Construct using - // com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() + // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -863,23 +758,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - build() { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = - buildPartial(); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface build() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -887,11 +778,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - buildPartial() { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = - new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface( - this); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface buildPartial() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(this); result.network_ = network_; result.ipAddress_ = ipAddress_; result.defaultGateway_ = defaultGateway_; @@ -905,56 +793,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) - other); + if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { - if (other - == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { + if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -988,14 +866,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - parsedMessage = null; + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1007,20 +882,18 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** - * - * *
        * Name of the network
        * 
* * string network = 1; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1029,21 +902,20 @@ public java.lang.String getNetwork() { } } /** - * - * *
        * Name of the network
        * 
* * string network = 1; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -1051,61 +923,54 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
        * Name of the network
        * 
* * string network = 1; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
        * Name of the network
        * 
* * string network = 1; - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
        * Name of the network
        * 
* * string network = 1; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -1113,20 +978,18 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipAddress_ = ""; /** - * - * *
        * IP address in the network
        * 
* * string ip_address = 2; - * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -1135,21 +998,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
        * IP address in the network
        * 
* * string ip_address = 2; - * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -1157,77 +1019,67 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
        * IP address in the network
        * 
* * string ip_address = 2; - * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress(java.lang.String value) { + public Builder setIpAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** - * - * *
        * IP address in the network
        * 
* * string ip_address = 2; - * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** - * - * *
        * IP address in the network
        * 
* * string ip_address = 2; - * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private boolean defaultGateway_; + private boolean defaultGateway_ ; /** - * - * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; - * * @return The defaultGateway. */ @java.lang.Override @@ -1235,38 +1087,32 @@ public boolean getDefaultGateway() { return defaultGateway_; } /** - * - * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; - * * @param value The defaultGateway to set. * @return This builder for chaining. */ public Builder setDefaultGateway(boolean value) { - + defaultGateway_ = value; onChanged(); return this; } /** - * - * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; - * * @return This builder for chaining. */ public Builder clearDefaultGateway() { - + defaultGateway_ = false; onChanged(); return this; @@ -1274,67 +1120,51 @@ public Builder clearDefaultGateway() { private int networkType_ = 0; /** - * - * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The enum numeric value on the wire for networkType. */ - @java.lang.Override - public int getNetworkTypeValue() { + @java.lang.Override public int getNetworkTypeValue() { return networkType_; } /** - * - * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @param value The enum numeric value on the wire for networkType to set. * @return This builder for chaining. */ public Builder setNetworkTypeValue(int value) { - + networkType_ = value; onChanged(); return this; } /** - * - * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return The networkType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = - com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; } /** - * - * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @param value The networkType to set. * @return This builder for chaining. */ @@ -1342,24 +1172,21 @@ public Builder setNetworkType(com.google.cloud.baremetalsolution.v2.Network.Type if (value == null) { throw new NullPointerException(); } - + networkType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; - * * @return This builder for chaining. */ public Builder clearNetworkType() { - + networkType_ = 0; onChanged(); return this; @@ -1367,20 +1194,18 @@ public Builder clearNetworkType() { private java.lang.Object id_ = ""; /** - * - * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; - * * @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; @@ -1389,21 +1214,20 @@ public java.lang.String getId() { } } /** - * - * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; - * * @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 { @@ -1411,66 +1235,58 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; - * * @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; } /** - * - * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; - * * @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; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1483,34 +1299,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) - private static final com.google.cloud.baremetalsolution.v2.LogicalInterface - .LogicalNetworkInterface - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalNetworkInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalNetworkInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalNetworkInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalNetworkInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1522,112 +1334,81 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int LOGICAL_NETWORK_INTERFACES_FIELD_NUMBER = 1; - private java.util.List< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> - logicalNetworkInterfaces_; + private java.util.List logicalNetworkInterfaces_; /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> - getLogicalNetworkInterfacesList() { + public java.util.List getLogicalNetworkInterfacesList() { return logicalNetworkInterfaces_; } /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.LogicalInterface - .LogicalNetworkInterfaceOrBuilder> + public java.util.List getLogicalNetworkInterfacesOrBuilderList() { return logicalNetworkInterfaces_; } /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ @java.lang.Override public int getLogicalNetworkInterfacesCount() { return logicalNetworkInterfaces_.size(); } /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getLogicalNetworkInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { return logicalNetworkInterfaces_.get(index); } /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder - getLogicalNetworkInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( + int index) { return logicalNetworkInterfaces_.get(index); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -1636,30 +1417,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; } } /** - * - * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * 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 { @@ -1670,15 +1451,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INTERFACE_INDEX_FIELD_NUMBER = 3; private int interfaceIndex_; /** - * - * *
    * The index of the logical interface mapping to the index of the hardware
    * bond or nic on the chosen network template.
    * 
* * int32 interface_index = 3; - * * @return The interfaceIndex. */ @java.lang.Override @@ -1687,7 +1465,6 @@ public int getInterfaceIndex() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1699,7 +1476,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 < logicalNetworkInterfaces_.size(); i++) { output.writeMessage(1, logicalNetworkInterfaces_.get(i)); } @@ -1719,15 +1497,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < logicalNetworkInterfaces_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, logicalNetworkInterfaces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, logicalNetworkInterfaces_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (interfaceIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, interfaceIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, interfaceIndex_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1737,18 +1515,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.baremetalsolution.v2.LogicalInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.LogicalInterface other = - (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; + com.google.cloud.baremetalsolution.v2.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; - if (!getLogicalNetworkInterfacesList().equals(other.getLogicalNetworkInterfacesList())) - return false; - if (!getName().equals(other.getName())) return false; - if (getInterfaceIndex() != other.getInterfaceIndex()) return false; + if (!getLogicalNetworkInterfacesList() + .equals(other.getLogicalNetworkInterfacesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getInterfaceIndex() + != other.getInterfaceIndex()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1774,104 +1553,96 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Each logical interface represents a logical abstraction of the underlying
    * physical interface (for eg. bond, nic) of the instance. Each logical
@@ -1881,23 +1652,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface)
       com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto
-          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto
-          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
+      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.baremetalsolution.v2.LogicalInterface.class,
-              com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
+              com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
     }
 
     // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.newBuilder()
@@ -1905,17 +1674,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) {
         getLogicalNetworkInterfacesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1933,9 +1702,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto
-          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
     }
 
     @java.lang.Override
@@ -1954,13 +1723,11 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface build() {
 
     @java.lang.Override
     public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() {
-      com.google.cloud.baremetalsolution.v2.LogicalInterface result =
-          new com.google.cloud.baremetalsolution.v2.LogicalInterface(this);
+      com.google.cloud.baremetalsolution.v2.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface(this);
       int from_bitField0_ = bitField0_;
       if (logicalNetworkInterfacesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          logicalNetworkInterfaces_ =
-              java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
+          logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.logicalNetworkInterfaces_ = logicalNetworkInterfaces_;
@@ -1977,39 +1744,38 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface) {
-        return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface) other);
+        return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2017,8 +1783,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface other) {
-      if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()) return this;
       if (logicalNetworkInterfacesBuilder_ == null) {
         if (!other.logicalNetworkInterfaces_.isEmpty()) {
           if (logicalNetworkInterfaces_.isEmpty()) {
@@ -2037,10 +1802,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface
             logicalNetworkInterfacesBuilder_ = null;
             logicalNetworkInterfaces_ = other.logicalNetworkInterfaces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            logicalNetworkInterfacesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getLogicalNetworkInterfacesFieldBuilder()
-                    : null;
+            logicalNetworkInterfacesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getLogicalNetworkInterfacesFieldBuilder() : null;
           } else {
             logicalNetworkInterfacesBuilder_.addAllMessages(other.logicalNetworkInterfaces_);
           }
@@ -2072,8 +1836,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2082,43 +1845,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List<
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>
-        logicalNetworkInterfaces_ = java.util.Collections.emptyList();
-
+    private java.util.List logicalNetworkInterfaces_ =
+      java.util.Collections.emptyList();
     private void ensureLogicalNetworkInterfacesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        logicalNetworkInterfaces_ =
-            new java.util.ArrayList<
-                com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>(
-                logicalNetworkInterfaces_);
+        logicalNetworkInterfaces_ = new java.util.ArrayList(logicalNetworkInterfaces_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface,
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder,
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>
-        logicalNetworkInterfacesBuilder_;
+        com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> logicalNetworkInterfacesBuilder_;
 
     /**
-     *
-     *
      * 
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public java.util.List< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> - getLogicalNetworkInterfacesList() { + public java.util.List getLogicalNetworkInterfacesList() { if (logicalNetworkInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalNetworkInterfaces_); } else { @@ -2126,15 +1874,11 @@ private void ensureLogicalNetworkInterfacesIsMutable() { } } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public int getLogicalNetworkInterfacesCount() { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2144,18 +1888,13 @@ public int getLogicalNetworkInterfacesCount() { } } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getLogicalNetworkInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { if (logicalNetworkInterfacesBuilder_ == null) { return logicalNetworkInterfaces_.get(index); } else { @@ -2163,19 +1902,14 @@ public int getLogicalNetworkInterfacesCount() { } } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder setLogicalNetworkInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2189,20 +1923,14 @@ public Builder setLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder setLogicalNetworkInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.set(index, builderForValue.build()); @@ -2213,18 +1941,13 @@ public Builder setLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public Builder addLogicalNetworkInterfaces( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + public Builder addLogicalNetworkInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2238,19 +1961,14 @@ public Builder addLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder addLogicalNetworkInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2264,19 +1982,14 @@ public Builder addLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder addLogicalNetworkInterfaces( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - builderForValue) { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.add(builderForValue.build()); @@ -2287,20 +2000,14 @@ public Builder addLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder addLogicalNetworkInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.add(index, builderForValue.build()); @@ -2311,24 +2018,18 @@ public Builder addLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder addAllLogicalNetworkInterfaces( - java.lang.Iterable< - ? extends - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> - values) { + java.lang.Iterable values) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalNetworkInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalNetworkInterfaces_); onChanged(); } else { logicalNetworkInterfacesBuilder_.addAllMessages(values); @@ -2336,15 +2037,11 @@ public Builder addAllLogicalNetworkInterfaces( return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder clearLogicalNetworkInterfaces() { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2357,15 +2054,11 @@ public Builder clearLogicalNetworkInterfaces() { return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ public Builder removeLogicalNetworkInterfaces(int index) { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2378,55 +2071,39 @@ public Builder removeLogicalNetworkInterfaces(int index) { return this; } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - getLogicalNetworkInterfacesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder getLogicalNetworkInterfacesBuilder( + int index) { return getLogicalNetworkInterfacesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder - getLogicalNetworkInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( + int index) { if (logicalNetworkInterfacesBuilder_ == null) { - return logicalNetworkInterfaces_.get(index); - } else { + return logicalNetworkInterfaces_.get(index); } else { return logicalNetworkInterfacesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.LogicalInterface - .LogicalNetworkInterfaceOrBuilder> - getLogicalNetworkInterfacesOrBuilderList() { + public java.util.List + getLogicalNetworkInterfacesOrBuilderList() { if (logicalNetworkInterfacesBuilder_ != null) { return logicalNetworkInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -2434,72 +2111,45 @@ public Builder removeLogicalNetworkInterfaces(int index) { } } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - addLogicalNetworkInterfacesBuilder() { - return getLogicalNetworkInterfacesFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder() { + return getLogicalNetworkInterfacesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder - addLogicalNetworkInterfacesBuilder(int index) { - return getLogicalNetworkInterfacesFieldBuilder() - .addBuilder( - index, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder( + int index) { + return getLogicalNetworkInterfacesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); } /** - * - * *
      * List of logical network interfaces within a logical interface.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - public java.util.List< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder> - getLogicalNetworkInterfacesBuilderList() { + public java.util.List + getLogicalNetworkInterfacesBuilderList() { return getLogicalNetworkInterfacesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesFieldBuilder() { if (logicalNetworkInterfacesBuilder_ == null) { - logicalNetworkInterfacesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - .Builder, - com.google.cloud.baremetalsolution.v2.LogicalInterface - .LogicalNetworkInterfaceOrBuilder>( + logicalNetworkInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>( logicalNetworkInterfaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2511,21 +2161,19 @@ public Builder removeLogicalNetworkInterfaces(int index) { private java.lang.Object name_ = ""; /** - * - * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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; @@ -2534,22 +2182,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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 { @@ -2557,80 +2204,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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; } /** - * - * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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 int interfaceIndex_; + private int interfaceIndex_ ; /** - * - * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; - * * @return The interfaceIndex. */ @java.lang.Override @@ -2638,45 +2275,39 @@ public int getInterfaceIndex() { return interfaceIndex_; } /** - * - * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; - * * @param value The interfaceIndex to set. * @return This builder for chaining. */ public Builder setInterfaceIndex(int value) { - + interfaceIndex_ = value; onChanged(); return this; } /** - * - * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; - * * @return This builder for chaining. */ public Builder clearInterfaceIndex() { - + interfaceIndex_ = 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); } @@ -2686,12 +2317,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface) private static final com.google.cloud.baremetalsolution.v2.LogicalInterface DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface(); } @@ -2700,16 +2331,16 @@ public static com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2724,4 +2355,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java similarity index 51% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java index f3faf3f..da8ff8e 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java @@ -1,133 +1,85 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface LogicalInterfaceOrBuilder - extends +public interface LogicalInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - java.util.List + java.util.List getLogicalNetworkInterfacesList(); /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface - getLogicalNetworkInterfaces(int index); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index); /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ int getLogicalNetworkInterfacesCount(); /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.LogicalInterface - .LogicalNetworkInterfaceOrBuilder> + java.util.List getLogicalNetworkInterfacesOrBuilderList(); /** - * - * *
    * List of logical network interfaces within a logical interface.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; - * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; */ - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder - getLogicalNetworkInterfacesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( + int index); /** - * - * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The index of the logical interface mapping to the index of the hardware
    * bond or nic on the chosen network template.
    * 
* * int32 interface_index = 3; - * * @return The interfaceIndex. */ int getInterfaceIndex(); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java index cbd6146..d586da5 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A storage volume logical unit number (LUN).
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ -public final class Lun extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Lun extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Lun) LunOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Lun.newBuilder() to construct. private Lun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Lun() { name_ = ""; id_ = ""; @@ -49,15 +31,16 @@ private Lun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Lun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Lun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,77 +59,70 @@ private Lun( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 24: - { - sizeGb_ = input.readInt64(); - break; - } - case 32: - { - int rawValue = input.readEnum(); + state_ = rawValue; + break; + } + case 24: { - multiprotocolType_ = rawValue; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + sizeGb_ = input.readInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); - storageVolume_ = s; - break; - } - case 48: - { - shareable_ = input.readBool(); - break; - } - case 56: - { - bootLun_ = input.readBool(); - break; - } - case 64: - { - int rawValue = input.readEnum(); + multiprotocolType_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - storageType_ = rawValue; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); + storageVolume_ = s; + break; + } + case 48: { - wwid_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + shareable_ = input.readBool(); + break; + } + case 56: { - id_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + bootLun_ = input.readBool(); + break; + } + case 64: { + int rawValue = input.readEnum(); + + storageType_ = rawValue; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + wwid_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -154,41 +130,36 @@ private Lun( } 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.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, - com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } /** - * - * *
    * The possible states for the LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The LUN is in an unknown state.
      * 
@@ -197,8 +168,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The LUN is being created.
      * 
@@ -207,8 +176,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The LUN is being updated.
      * 
@@ -217,8 +184,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(2), /** - * - * *
      * The LUN is ready for use.
      * 
@@ -227,8 +192,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(3), /** - * - * *
      * The LUN has been requested to be deleted.
      * 
@@ -240,8 +203,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The LUN is in an unknown state.
      * 
@@ -250,8 +211,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The LUN is being created.
      * 
@@ -260,8 +219,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The LUN is being updated.
      * 
@@ -270,8 +227,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 2; /** - * - * *
      * The LUN is ready for use.
      * 
@@ -280,8 +235,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 3; /** - * - * *
      * The LUN has been requested to be deleted.
      * 
@@ -290,6 +243,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -314,53 +268,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return UPDATING; - case 3: - return READY; - case 4: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return UPDATING; + case 3: return READY; + case 4: return DELETING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -378,18 +330,15 @@ private State(int value) { } /** - * - * *
    * Display the operating systems present for the LUN multiprotocol type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.MultiprotocolType} */ - public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum { + public enum MultiprotocolType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Server has no OS specified.
      * 
@@ -398,8 +347,6 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum */ MULTIPROTOCOL_TYPE_UNSPECIFIED(0), /** - * - * *
      * Server with Linux OS.
      * 
@@ -411,8 +358,6 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Server has no OS specified.
      * 
@@ -421,8 +366,6 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum */ public static final int MULTIPROTOCOL_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Server with Linux OS.
      * 
@@ -431,6 +374,7 @@ public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum */ public static final int LINUX_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -455,12 +399,9 @@ public static MultiprotocolType valueOf(int value) { */ public static MultiprotocolType forNumber(int value) { switch (value) { - case 0: - return MULTIPROTOCOL_TYPE_UNSPECIFIED; - case 1: - return LINUX; - default: - return null; + case 0: return MULTIPROTOCOL_TYPE_UNSPECIFIED; + case 1: return LINUX; + default: return null; } } @@ -468,28 +409,28 @@ public static MultiprotocolType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + MultiprotocolType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MultiprotocolType findValueByNumber(int number) { + return MultiprotocolType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MultiprotocolType findValueByNumber(int number) { - return MultiprotocolType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(1); } @@ -498,7 +439,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static MultiprotocolType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -516,18 +458,15 @@ private MultiprotocolType(int value) { } /** - * - * *
    * The storage types for a LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.StorageType} */ - public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The storage type for this LUN is unknown.
      * 
@@ -536,8 +475,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ STORAGE_TYPE_UNSPECIFIED(0), /** - * - * *
      * This storage type for this LUN is SSD.
      * 
@@ -546,8 +483,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ SSD(1), /** - * - * *
      * This storage type for this LUN is HDD.
      * 
@@ -559,8 +494,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The storage type for this LUN is unknown.
      * 
@@ -569,8 +502,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * This storage type for this LUN is SSD.
      * 
@@ -579,8 +510,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SSD_VALUE = 1; /** - * - * *
      * This storage type for this LUN is HDD.
      * 
@@ -589,6 +518,7 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HDD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -613,49 +543,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: - return STORAGE_TYPE_UNSPECIFIED; - case 1: - return SSD; - case 2: - return HDD; - default: - return null; + case 0: return STORAGE_TYPE_UNSPECIFIED; + case 1: return SSD; + case 2: return HDD; + 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< + StorageType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageType findValueByNumber(int number) { + return StorageType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(2); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -675,14 +605,11 @@ private StorageType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -691,29 +618,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -724,14 +651,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** - * - * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; - * * @return The id. */ @java.lang.Override @@ -740,29 +664,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; } } /** - * - * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; - * * @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 { @@ -773,50 +697,38 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Lun.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = - com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } public static final int SIZE_GB_FIELD_NUMBER = 3; private long sizeGb_; /** - * - * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; - * * @return The sizeGb. */ @java.lang.Override @@ -827,54 +739,40 @@ public long getSizeGb() { public static final int MULTIPROTOCOL_TYPE_FIELD_NUMBER = 4; private int multiprotocolType_; /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override - public int getMultiprotocolTypeValue() { + @java.lang.Override public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The multiprotocolType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; } public static final int STORAGE_VOLUME_FIELD_NUMBER = 5; private volatile java.lang.Object storageVolume_; /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The storageVolume. */ @java.lang.Override @@ -883,29 +781,29 @@ public java.lang.String getStorageVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; } } /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for storageVolume. */ @java.lang.Override - public com.google.protobuf.ByteString getStorageVolumeBytes() { + public com.google.protobuf.ByteString + getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -916,14 +814,11 @@ public com.google.protobuf.ByteString getStorageVolumeBytes() { public static final int SHAREABLE_FIELD_NUMBER = 6; private boolean shareable_; /** - * - * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; - * * @return The shareable. */ @java.lang.Override @@ -934,14 +829,11 @@ public boolean getShareable() { public static final int BOOT_LUN_FIELD_NUMBER = 7; private boolean bootLun_; /** - * - * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; - * * @return The bootLun. */ @java.lang.Override @@ -952,52 +844,38 @@ public boolean getBootLun() { public static final int STORAGE_TYPE_FIELD_NUMBER = 8; private int storageType_; /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The storageType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = - com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; } public static final int WWID_FIELD_NUMBER = 9; private volatile java.lang.Object wwid_; /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The wwid. */ @java.lang.Override @@ -1006,29 +884,29 @@ public java.lang.String getWwid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; } } /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The bytes for wwid. */ @java.lang.Override - public com.google.protobuf.ByteString getWwidBytes() { + public com.google.protobuf.ByteString + getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); wwid_ = b; return b; } else { @@ -1037,7 +915,6 @@ public com.google.protobuf.ByteString getWwidBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1049,7 +926,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_); } @@ -1059,10 +937,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sizeGb_ != 0L) { output.writeInt64(3, sizeGb_); } - if (multiprotocolType_ - != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType - .MULTIPROTOCOL_TYPE_UNSPECIFIED - .getNumber()) { + if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { @@ -1074,9 +949,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (bootLun_ != false) { output.writeBool(7, bootLun_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { + if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { @@ -1098,30 +971,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.Lun.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (sizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, sizeGb_); } - if (multiprotocolType_ - != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType - .MULTIPROTOCOL_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, multiprotocolType_); + if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageVolume_); } if (shareable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, shareable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, shareable_); } if (bootLun_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, bootLun_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, bootLun_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, storageType_); + if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, wwid_); @@ -1137,24 +1011,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Lun)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Lun other = - (com.google.cloud.baremetalsolution.v2.Lun) obj; + com.google.cloud.baremetalsolution.v2.Lun other = (com.google.cloud.baremetalsolution.v2.Lun) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; if (state_ != other.state_) return false; - if (getSizeGb() != other.getSizeGb()) return false; + if (getSizeGb() + != other.getSizeGb()) return false; if (multiprotocolType_ != other.multiprotocolType_) return false; - if (!getStorageVolume().equals(other.getStorageVolume())) return false; - if (getShareable() != other.getShareable()) return false; - if (getBootLun() != other.getBootLun()) return false; + if (!getStorageVolume() + .equals(other.getStorageVolume())) return false; + if (getShareable() + != other.getShareable()) return false; + if (getBootLun() + != other.getBootLun()) return false; if (storageType_ != other.storageType_) return false; - if (!getWwid().equals(other.getWwid())) return false; + if (!getWwid() + .equals(other.getWwid())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1173,15 +1053,18 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeGb()); hash = (37 * hash) + MULTIPROTOCOL_TYPE_FIELD_NUMBER; hash = (53 * hash) + multiprotocolType_; hash = (37 * hash) + STORAGE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getStorageVolume().hashCode(); hash = (37 * hash) + SHAREABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShareable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShareable()); hash = (37 * hash) + BOOT_LUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBootLun()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBootLun()); hash = (37 * hash) + STORAGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + storageType_; hash = (37 * hash) + WWID_FIELD_NUMBER; @@ -1191,127 +1074,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun 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.baremetalsolution.v2.Lun parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Lun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume logical unit number (LUN).
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Lun) com.google.cloud.baremetalsolution.v2.LunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, - com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Lun.newBuilder() @@ -1319,15 +1193,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(); @@ -1355,9 +1230,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto - .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override @@ -1376,8 +1251,7 @@ public com.google.cloud.baremetalsolution.v2.Lun build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { - com.google.cloud.baremetalsolution.v2.Lun result = - new com.google.cloud.baremetalsolution.v2.Lun(this); + com.google.cloud.baremetalsolution.v2.Lun result = new com.google.cloud.baremetalsolution.v2.Lun(this); result.name_ = name_; result.id_ = id_; result.state_ = state_; @@ -1396,39 +1270,38 @@ public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Lun) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun)other); } else { super.mergeFrom(other); return this; @@ -1502,20 +1375,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1524,21 +1395,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1546,61 +1416,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1608,20 +1471,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; - * * @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; @@ -1630,21 +1491,20 @@ public java.lang.String getId() { } } /** - * - * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; - * * @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 { @@ -1652,61 +1512,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; - * * @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; } /** - * - * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; - * * @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; @@ -1714,65 +1567,51 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = - com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1780,39 +1619,33 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Lun.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long sizeGb_; + private long sizeGb_ ; /** - * - * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; - * * @return The sizeGb. */ @java.lang.Override @@ -1820,36 +1653,30 @@ public long getSizeGb() { return sizeGb_; } /** - * - * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; - * * @param value The sizeGb to set. * @return This builder for chaining. */ public Builder setSizeGb(long value) { - + sizeGb_ = value; onChanged(); return this; } /** - * - * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; - * * @return This builder for chaining. */ public Builder clearSizeGb() { - + sizeGb_ = 0L; onChanged(); return this; @@ -1857,98 +1684,78 @@ public Builder clearSizeGb() { private int multiprotocolType_ = 0; /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override - public int getMultiprotocolTypeValue() { + @java.lang.Override public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @param value The enum numeric value on the wire for multiprotocolType to set. * @return This builder for chaining. */ public Builder setMultiprotocolTypeValue(int value) { - + multiprotocolType_ = value; onChanged(); return this; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The multiprotocolType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @param value The multiprotocolType to set. * @return This builder for chaining. */ - public Builder setMultiprotocolType( - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { + public Builder setMultiprotocolType(com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { if (value == null) { throw new NullPointerException(); } - + multiprotocolType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return This builder for chaining. */ public Builder clearMultiprotocolType() { - + multiprotocolType_ = 0; onChanged(); return this; @@ -1956,20 +1763,18 @@ public Builder clearMultiprotocolType() { private java.lang.Object storageVolume_ = ""; /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The storageVolume. */ public java.lang.String getStorageVolume() { java.lang.Object ref = storageVolume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; @@ -1978,21 +1783,20 @@ public java.lang.String getStorageVolume() { } } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for storageVolume. */ - public com.google.protobuf.ByteString getStorageVolumeBytes() { + public com.google.protobuf.ByteString + getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -2000,76 +1804,66 @@ public com.google.protobuf.ByteString getStorageVolumeBytes() { } } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @param value The storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolume(java.lang.String value) { + public Builder setStorageVolume( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + storageVolume_ = value; onChanged(); return this; } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearStorageVolume() { - + storageVolume_ = getDefaultInstance().getStorageVolume(); onChanged(); return this; } /** - * - * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolumeBytes(com.google.protobuf.ByteString value) { + public Builder setStorageVolumeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageVolume_ = value; onChanged(); return this; } - private boolean shareable_; + private boolean shareable_ ; /** - * - * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; - * * @return The shareable. */ @java.lang.Override @@ -2077,51 +1871,42 @@ public boolean getShareable() { return shareable_; } /** - * - * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; - * * @param value The shareable to set. * @return This builder for chaining. */ public Builder setShareable(boolean value) { - + shareable_ = value; onChanged(); return this; } /** - * - * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; - * * @return This builder for chaining. */ public Builder clearShareable() { - + shareable_ = false; onChanged(); return this; } - private boolean bootLun_; + private boolean bootLun_ ; /** - * - * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; - * * @return The bootLun. */ @java.lang.Override @@ -2129,36 +1914,30 @@ public boolean getBootLun() { return bootLun_; } /** - * - * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; - * * @param value The bootLun to set. * @return This builder for chaining. */ public Builder setBootLun(boolean value) { - + bootLun_ = value; onChanged(); return this; } /** - * - * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; - * * @return This builder for chaining. */ public Builder clearBootLun() { - + bootLun_ = false; onChanged(); return this; @@ -2166,67 +1945,51 @@ public Builder clearBootLun() { private int storageType_ = 0; /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = - com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @param value The storageType to set. * @return This builder for chaining. */ @@ -2234,24 +1997,21 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Lun.StorageT if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -2259,20 +2019,18 @@ public Builder clearStorageType() { private java.lang.Object wwid_ = ""; /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @return The wwid. */ public java.lang.String getWwid() { java.lang.Object ref = wwid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; @@ -2281,21 +2039,20 @@ public java.lang.String getWwid() { } } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @return The bytes for wwid. */ - public com.google.protobuf.ByteString getWwidBytes() { + public com.google.protobuf.ByteString + getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); wwid_ = b; return b; } else { @@ -2303,68 +2060,61 @@ public com.google.protobuf.ByteString getWwidBytes() { } } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @param value The wwid to set. * @return This builder for chaining. */ - public Builder setWwid(java.lang.String value) { + public Builder setWwid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + wwid_ = value; onChanged(); return this; } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @return This builder for chaining. */ public Builder clearWwid() { - + wwid_ = getDefaultInstance().getWwid(); onChanged(); return this; } /** - * - * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; - * * @param value The bytes for wwid to set. * @return This builder for chaining. */ - public Builder setWwidBytes(com.google.protobuf.ByteString value) { + public Builder setWwidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + wwid_ = 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); } @@ -2374,12 +2124,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Lun) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Lun) private static final com.google.cloud.baremetalsolution.v2.Lun DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Lun(); } @@ -2388,16 +2138,16 @@ public static com.google.cloud.baremetalsolution.v2.Lun getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Lun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Lun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Lun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Lun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2412,4 +2162,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Lun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java similarity index 78% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java index df63068..eae3681 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java @@ -1,241 +1,178 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface LunOrBuilder - extends +public interface LunOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Lun) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Lun.State getState(); /** - * - * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; - * * @return The sizeGb. */ long getSizeGb(); /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The enum numeric value on the wire for multiprotocolType. */ int getMultiprotocolTypeValue(); /** - * - * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; - * * @return The multiprotocolType. */ com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType(); /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The storageVolume. */ java.lang.String getStorageVolume(); /** - * - * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for storageVolume. */ - com.google.protobuf.ByteString getStorageVolumeBytes(); + com.google.protobuf.ByteString + getStorageVolumeBytes(); /** - * - * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; - * * @return The shareable. */ boolean getShareable(); /** - * - * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; - * * @return The bootLun. */ boolean getBootLun(); /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** - * - * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; - * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType(); /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The wwid. */ java.lang.String getWwid(); /** - * - * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; - * * @return The bytes for wwid. */ - com.google.protobuf.ByteString getWwidBytes(); + com.google.protobuf.ByteString + getWwidBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java new file mode 100644 index 0000000..88b187e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class LunProto { + private LunProto() {} + 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_baremetalsolution_v2_Lun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." + + "proto\022!google.cloud.baremetalsolution.v2" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" + + "gle.cloud.baremetalsolution.v2.Lun.State" + + "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" + + "\004 \001(\01628.google.cloud.baremetalsolution.v" + + "2.Lun.MultiprotocolType\022D\n\016storage_volum" + + "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" + + "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" + + "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" + + "e.cloud.baremetalsolution.v2.Lun.Storage" + + "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" + + "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" + + "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" + + "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" + + "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" + + "$baremetalsolution.googleapis.com/Lun\022Cp" + + "rojects/{project}/locations/{location}/v" + + "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" + + "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" + + "tion.googleapis.com/Lun\"y\n\017ListLunsReque" + + "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" + + "ution.googleapis.com/Volume\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" + + "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" + + "metalsolution.v2.Lun\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" + + "e.cloud.baremetalsolution.v2B\010LunProtoP\001" + + "ZRgoogle.golang.org/genproto/googleapis/" + + "cloud/baremetalsolution/v2;baremetalsolu" + + "tion\252\002!Google.Cloud.BareMetalSolution.V2" + + "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" + + "oogle::Cloud::BareMetalSolution::V2b\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, + new java.lang.String[] { "Name", "Id", "State", "SizeGb", "MultiprotocolType", "StorageVolume", "Shareable", "BootLun", "StorageType", "Wwid", }); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, + new java.lang.String[] { "Luns", "NextPageToken", "Unreachable", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java index 3977086..26b360f 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A Network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} */ -public final class Network extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Network extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Network) NetworkOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Network.newBuilder() to construct. private Network(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Network() { name_ = ""; id_ = ""; @@ -52,15 +34,16 @@ private Network() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Network(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Network( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -80,122 +63,105 @@ private Network( case 0: done = true; break; - case 16: - { - int rawValue = input.readEnum(); + case 16: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - ipAddress_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - macAddress_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - macAddress_.add(s); - break; + ipAddress_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + macAddress_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + macAddress_.add(s); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 48: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - vlanId_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + vlanId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - cidr_ = s; - break; + cidr_ = s; + break; + } + case 74: { + com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; + if (vrf_ != null) { + subBuilder = vrf_.toBuilder(); } - case 74: - { - com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; - if (vrf_ != null) { - subBuilder = vrf_.toBuilder(); - } - vrf_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vrf_); - vrf_ = subBuilder.buildPartial(); - } - - break; + vrf_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(vrf_); + vrf_ = subBuilder.buildPartial(); } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); - servicesCidr_ = s; - break; + id_ = s; + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 106: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - reservations_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>(); - mutable_bitField0_ |= 0x00000004; - } - reservations_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), - extensionRegistry)); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + servicesCidr_ = s; + break; + } + case 106: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + reservations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + reservations_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -203,7 +169,8 @@ private Network( } 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)) { macAddress_ = macAddress_.getUnmodifiableView(); @@ -215,46 +182,41 @@ private Network( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_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 11: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, - com.google.cloud.baremetalsolution.v2.Network.Builder.class); + com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); } /** - * - * *
    * Network type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified value.
      * 
@@ -263,8 +225,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Client network, a network peered to a Google Cloud VPC.
      * 
@@ -273,8 +233,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ CLIENT(1), /** - * - * *
      * Private network, a network local to the Bare Metal Solution environment.
      * 
@@ -286,8 +244,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified value.
      * 
@@ -296,8 +252,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Client network, a network peered to a Google Cloud VPC.
      * 
@@ -306,8 +260,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLIENT_VALUE = 1; /** - * - * *
      * Private network, a network local to the Bare Metal Solution environment.
      * 
@@ -316,6 +268,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRIVATE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -340,49 +293,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return CLIENT; - case 2: - return PRIVATE; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return CLIENT; + case 2: return PRIVATE; + 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -400,18 +353,15 @@ private Type(int value) { } /** - * - * *
    * The possible states for this Network.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The Network is in an unknown state.
      * 
@@ -420,8 +370,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The Network is provisioning.
      * 
@@ -430,8 +378,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROVISIONING(1), /** - * - * *
      * The Network has been provisioned.
      * 
@@ -443,8 +389,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The Network is in an unknown state.
      * 
@@ -453,8 +397,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Network is provisioning.
      * 
@@ -463,8 +405,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONING_VALUE = 1; /** - * - * *
      * The Network has been provisioned.
      * 
@@ -473,6 +413,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -497,49 +438,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return PROVISIONED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return PROVISIONED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -559,8 +500,6 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 5; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -570,7 +509,6 @@ private State(int value) {
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -579,15 +517,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; } } /** - * - * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -597,15 +534,16 @@ public java.lang.String getName() {
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -616,14 +554,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** - * - * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; - * * @return The id. */ @java.lang.Override @@ -632,29 +567,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; } } /** - * - * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; - * * @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 { @@ -665,52 +600,38 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network.Type getType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = - com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; } public static final int IP_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object ipAddress_; /** - * - * *
    * IP address configured.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ @java.lang.Override @@ -719,29 +640,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** - * - * *
    * IP address configured.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -752,42 +673,34 @@ public com.google.protobuf.ByteString getIpAddressBytes() { public static final int MAC_ADDRESS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList macAddress_; /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @return A list containing the macAddress. */ - public com.google.protobuf.ProtocolStringList getMacAddressList() { + public com.google.protobuf.ProtocolStringList + getMacAddressList() { return macAddress_; } /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @return The count of macAddress. */ public int getMacAddressCount() { return macAddress_.size(); } /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @param index The index of the element to return. * @return The macAddress at the given index. */ @@ -795,70 +708,54 @@ public java.lang.String getMacAddress(int index) { return macAddress_.get(index); } /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - public com.google.protobuf.ByteString getMacAddressBytes(int index) { + public com.google.protobuf.ByteString + getMacAddressBytes(int index) { return macAddress_.getByteString(index); } public static final int STATE_FIELD_NUMBER = 6; private int state_; /** - * - * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Network.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = - com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; } public static final int VLAN_ID_FIELD_NUMBER = 7; private volatile java.lang.Object vlanId_; /** - * - * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; - * * @return The vlanId. */ @java.lang.Override @@ -867,29 +764,29 @@ public java.lang.String getVlanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vlanId_ = s; return s; } } /** - * - * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; - * * @return The bytes for vlanId. */ @java.lang.Override - public com.google.protobuf.ByteString getVlanIdBytes() { + public com.google.protobuf.ByteString + getVlanIdBytes() { java.lang.Object ref = vlanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vlanId_ = b; return b; } else { @@ -900,14 +797,11 @@ public com.google.protobuf.ByteString getVlanIdBytes() { public static final int CIDR_FIELD_NUMBER = 8; private volatile java.lang.Object cidr_; /** - * - * *
    * The cidr of the Network.
    * 
* * string cidr = 8; - * * @return The cidr. */ @java.lang.Override @@ -916,29 +810,29 @@ public java.lang.String getCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; } } /** - * - * *
    * The cidr of the Network.
    * 
* * string cidr = 8; - * * @return The bytes for cidr. */ @java.lang.Override - public com.google.protobuf.ByteString getCidrBytes() { + public com.google.protobuf.ByteString + getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cidr_ = b; return b; } else { @@ -949,14 +843,11 @@ public com.google.protobuf.ByteString getCidrBytes() { public static final int VRF_FIELD_NUMBER = 9; private com.google.cloud.baremetalsolution.v2.VRF vrf_; /** - * - * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return Whether the vrf field is set. */ @java.lang.Override @@ -964,14 +855,11 @@ public boolean hasVrf() { return vrf_ != null; } /** - * - * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return The vrf. */ @java.lang.Override @@ -979,8 +867,6 @@ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; } /** - * - * *
    * The vrf for the Network.
    * 
@@ -993,23 +879,24 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 11; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1018,30 +905,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -1049,12 +934,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 11; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -1062,16 +946,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -1079,11 +963,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1093,14 +978,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int SERVICES_CIDR_FIELD_NUMBER = 12; private volatile java.lang.Object servicesCidr_; /** - * - * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; - * * @return The servicesCidr. */ @java.lang.Override @@ -1109,29 +991,29 @@ public java.lang.String getServicesCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servicesCidr_ = s; return s; } } /** - * - * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; - * * @return The bytes for servicesCidr. */ @java.lang.Override - public com.google.protobuf.ByteString getServicesCidrBytes() { + public com.google.protobuf.ByteString + getServicesCidrBytes() { java.lang.Object ref = servicesCidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servicesCidr_ = b; return b; } else { @@ -1140,96 +1022,76 @@ public com.google.protobuf.ByteString getServicesCidrBytes() { } public static final int RESERVATIONS_FIELD_NUMBER = 13; - private java.util.List - reservations_; + private java.util.List reservations_; /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ @java.lang.Override - public java.util.List - getReservationsList() { + public java.util.List getReservationsList() { return reservations_; } /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + public java.util.List getReservationsOrBuilderList() { return reservations_; } /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ @java.lang.Override public int getReservationsCount() { return reservations_.size(); } /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { return reservations_.get(index); } /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder - getReservationsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( + int index) { return reservations_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1241,7 +1103,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 (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } @@ -1254,8 +1117,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { @@ -1270,8 +1132,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, id_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 11); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, servicesCidr_); } @@ -1288,7 +1154,8 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); @@ -1304,9 +1171,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vlanId_); @@ -1315,26 +1182,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cidr_); } if (vrf_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getVrf()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getVrf()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, id_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, servicesCidr_); } for (int i = 0; i < reservations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, reservations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, reservations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1344,29 +1213,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Network)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Network other = - (com.google.cloud.baremetalsolution.v2.Network) obj; + com.google.cloud.baremetalsolution.v2.Network other = (com.google.cloud.baremetalsolution.v2.Network) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; if (type_ != other.type_) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (!getMacAddressList().equals(other.getMacAddressList())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (!getMacAddressList() + .equals(other.getMacAddressList())) return false; if (state_ != other.state_) return false; - if (!getVlanId().equals(other.getVlanId())) return false; - if (!getCidr().equals(other.getCidr())) return false; + if (!getVlanId() + .equals(other.getVlanId())) return false; + if (!getCidr() + .equals(other.getCidr())) return false; if (hasVrf() != other.hasVrf()) return false; if (hasVrf()) { - if (!getVrf().equals(other.getVrf())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getServicesCidr().equals(other.getServicesCidr())) return false; - if (!getReservationsList().equals(other.getReservationsList())) return false; + if (!getVrf() + .equals(other.getVrf())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getServicesCidr() + .equals(other.getServicesCidr())) return false; + if (!getReservationsList() + .equals(other.getReservationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1415,147 +1293,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network 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.baremetalsolution.v2.Network parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Network prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Network) com.google.cloud.baremetalsolution.v2.NetworkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 11: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 11: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, - com.google.cloud.baremetalsolution.v2.Network.Builder.class); + com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Network.newBuilder() @@ -1563,17 +1434,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) { getReservationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1612,9 +1483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; } @java.lang.Override @@ -1633,8 +1504,7 @@ public com.google.cloud.baremetalsolution.v2.Network build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network buildPartial() { - com.google.cloud.baremetalsolution.v2.Network result = - new com.google.cloud.baremetalsolution.v2.Network(this); + com.google.cloud.baremetalsolution.v2.Network result = new com.google.cloud.baremetalsolution.v2.Network(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -1673,39 +1543,38 @@ public com.google.cloud.baremetalsolution.v2.Network buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Network) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Network) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Network)other); } else { super.mergeFrom(other); return this; @@ -1753,7 +1622,8 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { if (other.hasVrf()) { mergeVrf(other.getVrf()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getServicesCidr().isEmpty()) { servicesCidr_ = other.servicesCidr_; onChanged(); @@ -1776,10 +1646,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { reservationsBuilder_ = null; reservations_ = other.reservations_; bitField0_ = (bitField0_ & ~0x00000004); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReservationsFieldBuilder() - : null; + reservationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReservationsFieldBuilder() : null; } else { reservationsBuilder_.addAllMessages(other.reservations_); } @@ -1813,13 +1682,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1829,13 +1695,13 @@ public Builder mergeFrom(
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1844,8 +1710,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1855,14 +1719,15 @@ public java.lang.String getName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1870,8 +1735,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1881,22 +1744,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1906,18 +1767,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1927,16 +1785,16 @@ public Builder clearName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1944,20 +1802,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; - * * @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; @@ -1966,21 +1822,20 @@ public java.lang.String getId() { } } /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; - * * @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 { @@ -1988,61 +1843,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; - * * @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; } /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; - * * @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; @@ -2050,67 +1898,51 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The type. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = - com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; } /** - * - * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @param value The type to set. * @return This builder for chaining. */ @@ -2118,24 +1950,21 @@ public Builder setType(com.google.cloud.baremetalsolution.v2.Network.Type value) if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -2143,20 +1972,18 @@ public Builder clearType() { private java.lang.Object ipAddress_ = ""; /** - * - * *
      * IP address configured.
      * 
* * string ip_address = 3; - * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -2165,21 +1992,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
      * IP address configured.
      * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -2187,112 +2013,95 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
      * IP address configured.
      * 
* * string ip_address = 3; - * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress(java.lang.String value) { + public Builder setIpAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** - * - * *
      * IP address configured.
      * 
* * string ip_address = 3; - * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** - * - * *
      * IP address configured.
      * 
* * string ip_address = 3; - * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList macAddress_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMacAddressIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { macAddress_ = new com.google.protobuf.LazyStringArrayList(macAddress_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @return A list containing the macAddress. */ - public com.google.protobuf.ProtocolStringList getMacAddressList() { + public com.google.protobuf.ProtocolStringList + getMacAddressList() { return macAddress_.getUnmodifiableView(); } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @return The count of macAddress. */ public int getMacAddressCount() { return macAddress_.size(); } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param index The index of the element to return. * @return The macAddress at the given index. */ @@ -2300,90 +2109,80 @@ public java.lang.String getMacAddress(int index) { return macAddress_.get(index); } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - public com.google.protobuf.ByteString getMacAddressBytes(int index) { + public com.google.protobuf.ByteString + getMacAddressBytes(int index) { return macAddress_.getByteString(index); } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param index The index to set the value at. * @param value The macAddress to set. * @return This builder for chaining. */ - public Builder setMacAddress(int index, java.lang.String value) { + public Builder setMacAddress( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); macAddress_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param value The macAddress to add. * @return This builder for chaining. */ - public Builder addMacAddress(java.lang.String value) { + public Builder addMacAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); macAddress_.add(value); onChanged(); return this; } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param values The macAddress to add. * @return This builder for chaining. */ - public Builder addAllMacAddress(java.lang.Iterable values) { + public Builder addAllMacAddress( + java.lang.Iterable values) { ensureMacAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, macAddress_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, macAddress_); onChanged(); return this; } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @return This builder for chaining. */ public Builder clearMacAddress() { @@ -2393,22 +2192,20 @@ public Builder clearMacAddress() { return this; } /** - * - * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; - * * @param value The bytes of the macAddress to add. * @return This builder for chaining. */ - public Builder addMacAddressBytes(com.google.protobuf.ByteString value) { + public Builder addMacAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMacAddressIsMutable(); macAddress_.add(value); onChanged(); @@ -2417,67 +2214,51 @@ public Builder addMacAddressBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = - com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; } /** - * - * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2485,24 +2266,21 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Network.State valu if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2510,20 +2288,18 @@ public Builder clearState() { private java.lang.Object vlanId_ = ""; /** - * - * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; - * * @return The vlanId. */ public java.lang.String getVlanId() { java.lang.Object ref = vlanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vlanId_ = s; return s; @@ -2532,21 +2308,20 @@ public java.lang.String getVlanId() { } } /** - * - * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; - * * @return The bytes for vlanId. */ - public com.google.protobuf.ByteString getVlanIdBytes() { + public com.google.protobuf.ByteString + getVlanIdBytes() { java.lang.Object ref = vlanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vlanId_ = b; return b; } else { @@ -2554,61 +2329,54 @@ public com.google.protobuf.ByteString getVlanIdBytes() { } } /** - * - * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; - * * @param value The vlanId to set. * @return This builder for chaining. */ - public Builder setVlanId(java.lang.String value) { + public Builder setVlanId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vlanId_ = value; onChanged(); return this; } /** - * - * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; - * * @return This builder for chaining. */ public Builder clearVlanId() { - + vlanId_ = getDefaultInstance().getVlanId(); onChanged(); return this; } /** - * - * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; - * * @param value The bytes for vlanId to set. * @return This builder for chaining. */ - public Builder setVlanIdBytes(com.google.protobuf.ByteString value) { + public Builder setVlanIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vlanId_ = value; onChanged(); return this; @@ -2616,20 +2384,18 @@ public Builder setVlanIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object cidr_ = ""; /** - * - * *
      * The cidr of the Network.
      * 
* * string cidr = 8; - * * @return The cidr. */ public java.lang.String getCidr() { java.lang.Object ref = cidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; @@ -2638,21 +2404,20 @@ public java.lang.String getCidr() { } } /** - * - * *
      * The cidr of the Network.
      * 
* * string cidr = 8; - * * @return The bytes for cidr. */ - public com.google.protobuf.ByteString getCidrBytes() { + public com.google.protobuf.ByteString + getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cidr_ = b; return b; } else { @@ -2660,61 +2425,54 @@ public com.google.protobuf.ByteString getCidrBytes() { } } /** - * - * *
      * The cidr of the Network.
      * 
* * string cidr = 8; - * * @param value The cidr to set. * @return This builder for chaining. */ - public Builder setCidr(java.lang.String value) { + public Builder setCidr( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cidr_ = value; onChanged(); return this; } /** - * - * *
      * The cidr of the Network.
      * 
* * string cidr = 8; - * * @return This builder for chaining. */ public Builder clearCidr() { - + cidr_ = getDefaultInstance().getCidr(); onChanged(); return this; } /** - * - * *
      * The cidr of the Network.
      * 
* * string cidr = 8; - * * @param value The bytes for cidr to set. * @return This builder for chaining. */ - public Builder setCidrBytes(com.google.protobuf.ByteString value) { + public Builder setCidrBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidr_ = value; onChanged(); return this; @@ -2722,33 +2480,24 @@ public Builder setCidrBytes(com.google.protobuf.ByteString value) { private com.google.cloud.baremetalsolution.v2.VRF vrf_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, - com.google.cloud.baremetalsolution.v2.VRF.Builder, - com.google.cloud.baremetalsolution.v2.VRFOrBuilder> - vrfBuilder_; + com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> vrfBuilder_; /** - * - * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return Whether the vrf field is set. */ public boolean hasVrf() { return vrfBuilder_ != null || vrf_ != null; } /** - * - * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return The vrf. */ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { @@ -2759,8 +2508,6 @@ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { } } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2781,15 +2528,14 @@ public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF value) { return this; } /** - * - * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ - public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { + public Builder setVrf( + com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { if (vrfBuilder_ == null) { vrf_ = builderForValue.build(); onChanged(); @@ -2800,8 +2546,6 @@ public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF.Builder builderF return this; } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2812,14 +2556,7 @@ public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { if (vrfBuilder_ == null) { if (vrf_ != null) { vrf_ = - com.google - .cloud - .baremetalsolution - .v2 - .VRF - .newBuilder(vrf_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.VRF.newBuilder(vrf_).mergeFrom(value).buildPartial(); } else { vrf_ = value; } @@ -2831,8 +2568,6 @@ public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { return this; } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2851,8 +2586,6 @@ public Builder clearVrf() { return this; } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2860,13 +2593,11 @@ public Builder clearVrf() { * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ public com.google.cloud.baremetalsolution.v2.VRF.Builder getVrfBuilder() { - + onChanged(); return getVrfFieldBuilder().getBuilder(); } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2877,12 +2608,11 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { if (vrfBuilder_ != null) { return vrfBuilder_.getMessageOrBuilder(); } else { - return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; + return vrf_ == null ? + com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; } } /** - * - * *
      * The vrf for the Network.
      * 
@@ -2890,37 +2620,35 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, - com.google.cloud.baremetalsolution.v2.VRF.Builder, - com.google.cloud.baremetalsolution.v2.VRFOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> getVrfFieldBuilder() { if (vrfBuilder_ == null) { - vrfBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, - com.google.cloud.baremetalsolution.v2.VRF.Builder, - com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( - getVrf(), getParentForChildren(), isClean()); + vrfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( + getVrf(), + getParentForChildren(), + isClean()); vrf_ = null; } return vrfBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2932,30 +2660,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2963,12 +2689,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 11; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2976,17 +2701,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -2994,11 +2718,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3006,80 +2731,81 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object servicesCidr_ = ""; /** - * - * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; - * * @return The servicesCidr. */ public java.lang.String getServicesCidr() { java.lang.Object ref = servicesCidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servicesCidr_ = s; return s; @@ -3088,21 +2814,20 @@ public java.lang.String getServicesCidr() { } } /** - * - * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; - * * @return The bytes for servicesCidr. */ - public com.google.protobuf.ByteString getServicesCidrBytes() { + public com.google.protobuf.ByteString + getServicesCidrBytes() { java.lang.Object ref = servicesCidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); servicesCidr_ = b; return b; } else { @@ -3110,99 +2835,81 @@ public com.google.protobuf.ByteString getServicesCidrBytes() { } } /** - * - * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; - * * @param value The servicesCidr to set. * @return This builder for chaining. */ - public Builder setServicesCidr(java.lang.String value) { + public Builder setServicesCidr( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + servicesCidr_ = value; onChanged(); return this; } /** - * - * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; - * * @return This builder for chaining. */ public Builder clearServicesCidr() { - + servicesCidr_ = getDefaultInstance().getServicesCidr(); onChanged(); return this; } /** - * - * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; - * * @param value The bytes for servicesCidr to set. * @return This builder for chaining. */ - public Builder setServicesCidrBytes(com.google.protobuf.ByteString value) { + public Builder setServicesCidrBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesCidr_ = value; onChanged(); return this; } - private java.util.List - reservations_ = java.util.Collections.emptyList(); - + private java.util.List reservations_ = + java.util.Collections.emptyList(); private void ensureReservationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - reservations_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>(reservations_); + reservations_ = new java.util.ArrayList(reservations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> - reservationsBuilder_; + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> reservationsBuilder_; /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public java.util.List - getReservationsList() { + public java.util.List getReservationsList() { if (reservationsBuilder_ == null) { return java.util.Collections.unmodifiableList(reservations_); } else { @@ -3210,17 +2917,13 @@ private void ensureReservationsIsMutable() { } } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public int getReservationsCount() { if (reservationsBuilder_ == null) { @@ -3230,20 +2933,15 @@ public int getReservationsCount() { } } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { if (reservationsBuilder_ == null) { return reservations_.get(index); } else { @@ -3251,17 +2949,13 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReserv } } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder setReservations( int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { @@ -3278,21 +2972,16 @@ public Builder setReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder setReservations( - int index, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.set(index, builderForValue.build()); @@ -3303,20 +2992,15 @@ public Builder setReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public Builder addReservations( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { + public Builder addReservations(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { if (reservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3330,17 +3014,13 @@ public Builder addReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder addReservations( int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { @@ -3357,17 +3037,13 @@ public Builder addReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder addReservations( com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { @@ -3381,21 +3057,16 @@ public Builder addReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder addReservations( - int index, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.add(index, builderForValue.build()); @@ -3406,25 +3077,20 @@ public Builder addReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder addAllReservations( - java.lang.Iterable< - ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservation> - values) { + java.lang.Iterable values) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, reservations_); onChanged(); } else { reservationsBuilder_.addAllMessages(values); @@ -3432,17 +3098,13 @@ public Builder addAllReservations( return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder clearReservations() { if (reservationsBuilder_ == null) { @@ -3455,17 +3117,13 @@ public Builder clearReservations() { return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ public Builder removeReservations(int index) { if (reservationsBuilder_ == null) { @@ -3478,59 +3136,45 @@ public Builder removeReservations(int index) { return this; } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder - getReservationsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder getReservationsBuilder( + int index) { return getReservationsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder - getReservationsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( + int index) { if (reservationsBuilder_ == null) { - return reservations_.get(index); - } else { + return reservations_.get(index); } else { return reservationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> - getReservationsOrBuilderList() { + public java.util.List + getReservationsOrBuilderList() { if (reservationsBuilder_ != null) { return reservationsBuilder_.getMessageOrBuilderList(); } else { @@ -3538,81 +3182,62 @@ public Builder removeReservations(int index) { } } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder - addReservationsBuilder() { - return getReservationsFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder() { + return getReservationsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder - addReservationsBuilder(int index) { - return getReservationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder( + int index) { + return getReservationsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); } /** - * - * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - public java.util.List - getReservationsBuilderList() { + public java.util.List + getReservationsBuilderList() { return getReservationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> getReservationsFieldBuilder() { if (reservationsBuilder_ == null) { - reservationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( - reservations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( + reservations_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); reservations_ = null; } return reservationsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3622,12 +3247,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Network) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Network) private static final com.google.cloud.baremetalsolution.v2.Network DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Network(); } @@ -3636,16 +3261,16 @@ public static com.google.cloud.baremetalsolution.v2.Network getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Network parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Network(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Network parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Network(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3660,4 +3285,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Network getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java index fa6c9b0..30e66f8 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A reservation of one or more addresses in a network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} */ -public final class NetworkAddressReservation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NetworkAddressReservation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) NetworkAddressReservationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NetworkAddressReservation.newBuilder() to construct. private NetworkAddressReservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkAddressReservation() { startAddress_ = ""; endAddress_ = ""; @@ -45,15 +27,16 @@ private NetworkAddressReservation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkAddressReservation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NetworkAddressReservation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private NetworkAddressReservation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - startAddress_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + startAddress_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - endAddress_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + endAddress_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - note_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + note_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,40 +87,35 @@ private NetworkAddressReservation( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); } public static final int START_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object startAddress_; /** - * - * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; - * * @return The startAddress. */ @java.lang.Override @@ -149,30 +124,30 @@ public java.lang.String getStartAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startAddress_ = s; return s; } } /** - * - * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; - * * @return The bytes for startAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getStartAddressBytes() { + public com.google.protobuf.ByteString + getStartAddressBytes() { java.lang.Object ref = startAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); startAddress_ = b; return b; } else { @@ -183,8 +158,6 @@ public com.google.protobuf.ByteString getStartAddressBytes() { public static final int END_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object endAddress_; /** - * - * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -193,7 +166,6 @@ public com.google.protobuf.ByteString getStartAddressBytes() {
    * 
* * string end_address = 2; - * * @return The endAddress. */ @java.lang.Override @@ -202,15 +174,14 @@ public java.lang.String getEndAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endAddress_ = s; return s; } } /** - * - * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -219,15 +190,16 @@ public java.lang.String getEndAddress() {
    * 
* * string end_address = 2; - * * @return The bytes for endAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getEndAddressBytes() { + public com.google.protobuf.ByteString + getEndAddressBytes() { java.lang.Object ref = endAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); endAddress_ = b; return b; } else { @@ -238,14 +210,11 @@ public com.google.protobuf.ByteString getEndAddressBytes() { public static final int NOTE_FIELD_NUMBER = 3; private volatile java.lang.Object note_; /** - * - * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; - * * @return The note. */ @java.lang.Override @@ -254,29 +223,29 @@ public java.lang.String getNote() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); note_ = s; return s; } } /** - * - * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; - * * @return The bytes for note. */ @java.lang.Override - public com.google.protobuf.ByteString getNoteBytes() { + public com.google.protobuf.ByteString + getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); note_ = b; return b; } else { @@ -285,7 +254,6 @@ public com.google.protobuf.ByteString getNoteBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,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(startAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startAddress_); } @@ -333,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.baremetalsolution.v2.NetworkAddressReservation)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = - (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; - if (!getStartAddress().equals(other.getStartAddress())) return false; - if (!getEndAddress().equals(other.getEndAddress())) return false; - if (!getNote().equals(other.getNote())) return false; + if (!getStartAddress() + .equals(other.getStartAddress())) return false; + if (!getEndAddress() + .equals(other.getEndAddress())) return false; + if (!getNote() + .equals(other.getNote())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -367,127 +338,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 reservation of one or more addresses in a network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.newBuilder() @@ -495,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(); @@ -517,14 +479,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance(); } @@ -539,8 +500,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPartial() { - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = - new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); result.startAddress_ = startAddress_; result.endAddress_ = endAddress_; result.note_ = note_; @@ -552,50 +512,46 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { - if (other - == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { + if (other == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) return this; if (!other.getStartAddress().isEmpty()) { startAddress_ = other.startAddress_; onChanged(); @@ -627,9 +583,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -641,21 +595,19 @@ public Builder mergeFrom( private java.lang.Object startAddress_ = ""; /** - * - * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; - * * @return The startAddress. */ public java.lang.String getStartAddress() { java.lang.Object ref = startAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startAddress_ = s; return s; @@ -664,22 +616,21 @@ public java.lang.String getStartAddress() { } } /** - * - * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; - * * @return The bytes for startAddress. */ - public com.google.protobuf.ByteString getStartAddressBytes() { + public com.google.protobuf.ByteString + getStartAddressBytes() { java.lang.Object ref = startAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); startAddress_ = b; return b; } else { @@ -687,64 +638,57 @@ public com.google.protobuf.ByteString getStartAddressBytes() { } } /** - * - * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; - * * @param value The startAddress to set. * @return This builder for chaining. */ - public Builder setStartAddress(java.lang.String value) { + public Builder setStartAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + startAddress_ = value; onChanged(); return this; } /** - * - * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; - * * @return This builder for chaining. */ public Builder clearStartAddress() { - + startAddress_ = getDefaultInstance().getStartAddress(); onChanged(); return this; } /** - * - * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; - * * @param value The bytes for startAddress to set. * @return This builder for chaining. */ - public Builder setStartAddressBytes(com.google.protobuf.ByteString value) { + public Builder setStartAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + startAddress_ = value; onChanged(); return this; @@ -752,8 +696,6 @@ public Builder setStartAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object endAddress_ = ""; /** - * - * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -762,13 +704,13 @@ public Builder setStartAddressBytes(com.google.protobuf.ByteString value) {
      * 
* * string end_address = 2; - * * @return The endAddress. */ public java.lang.String getEndAddress() { java.lang.Object ref = endAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endAddress_ = s; return s; @@ -777,8 +719,6 @@ public java.lang.String getEndAddress() { } } /** - * - * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -787,14 +727,15 @@ public java.lang.String getEndAddress() {
      * 
* * string end_address = 2; - * * @return The bytes for endAddress. */ - public com.google.protobuf.ByteString getEndAddressBytes() { + public com.google.protobuf.ByteString + getEndAddressBytes() { java.lang.Object ref = endAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); endAddress_ = b; return b; } else { @@ -802,8 +743,6 @@ public com.google.protobuf.ByteString getEndAddressBytes() { } } /** - * - * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -812,22 +751,20 @@ public com.google.protobuf.ByteString getEndAddressBytes() {
      * 
* * string end_address = 2; - * * @param value The endAddress to set. * @return This builder for chaining. */ - public Builder setEndAddress(java.lang.String value) { + public Builder setEndAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endAddress_ = value; onChanged(); return this; } /** - * - * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -836,18 +773,15 @@ public Builder setEndAddress(java.lang.String value) {
      * 
* * string end_address = 2; - * * @return This builder for chaining. */ public Builder clearEndAddress() { - + endAddress_ = getDefaultInstance().getEndAddress(); onChanged(); return this; } /** - * - * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -856,16 +790,16 @@ public Builder clearEndAddress() {
      * 
* * string end_address = 2; - * * @param value The bytes for endAddress to set. * @return This builder for chaining. */ - public Builder setEndAddressBytes(com.google.protobuf.ByteString value) { + public Builder setEndAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endAddress_ = value; onChanged(); return this; @@ -873,20 +807,18 @@ public Builder setEndAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object note_ = ""; /** - * - * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; - * * @return The note. */ public java.lang.String getNote() { java.lang.Object ref = note_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); note_ = s; return s; @@ -895,21 +827,20 @@ public java.lang.String getNote() { } } /** - * - * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; - * * @return The bytes for note. */ - public com.google.protobuf.ByteString getNoteBytes() { + public com.google.protobuf.ByteString + getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); note_ = b; return b; } else { @@ -917,68 +848,61 @@ public com.google.protobuf.ByteString getNoteBytes() { } } /** - * - * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; - * * @param value The note to set. * @return This builder for chaining. */ - public Builder setNote(java.lang.String value) { + public Builder setNote( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + note_ = value; onChanged(); return this; } /** - * - * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; - * * @return This builder for chaining. */ public Builder clearNote() { - + note_ = getDefaultInstance().getNote(); onChanged(); return this; } /** - * - * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; - * * @param value The bytes for note to set. * @return This builder for chaining. */ - public Builder setNoteBytes(com.google.protobuf.ByteString value) { + public Builder setNoteBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + note_ = 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); } @@ -988,32 +912,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) - private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkAddressReservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkAddressReservation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkAddressReservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkAddressReservation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,8 +947,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java index a9839c9..9f27f17 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkAddressReservationOrBuilder - extends +public interface NetworkAddressReservationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkAddressReservation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; - * * @return The startAddress. */ java.lang.String getStartAddress(); /** - * - * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; - * * @return The bytes for startAddress. */ - com.google.protobuf.ByteString getStartAddressBytes(); + com.google.protobuf.ByteString + getStartAddressBytes(); /** - * - * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -61,13 +38,10 @@ public interface NetworkAddressReservationOrBuilder
    * 
* * string end_address = 2; - * * @return The endAddress. */ java.lang.String getEndAddress(); /** - * - * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -76,33 +50,28 @@ public interface NetworkAddressReservationOrBuilder
    * 
* * string end_address = 2; - * * @return The bytes for endAddress. */ - com.google.protobuf.ByteString getEndAddressBytes(); + com.google.protobuf.ByteString + getEndAddressBytes(); /** - * - * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; - * * @return The note. */ java.lang.String getNote(); /** - * - * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; - * * @return The bytes for note. */ - com.google.protobuf.ByteString getNoteBytes(); + com.google.protobuf.ByteString + getNoteBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java similarity index 78% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java index 8f4c764..a9ee27f 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkOrBuilder - extends +public interface NetworkOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Network) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -35,13 +17,10 @@ public interface NetworkOrBuilder
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -51,239 +30,189 @@ public interface NetworkOrBuilder
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; - * * @return The type. */ com.google.cloud.baremetalsolution.v2.Network.Type getType(); /** - * - * *
    * IP address configured.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
    * IP address configured.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @return A list containing the macAddress. */ - java.util.List getMacAddressList(); + java.util.List + getMacAddressList(); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @return The count of macAddress. */ int getMacAddressCount(); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @param index The index of the element to return. * @return The macAddress at the given index. */ java.lang.String getMacAddress(int index); /** - * - * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; - * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - com.google.protobuf.ByteString getMacAddressBytes(int index); + com.google.protobuf.ByteString + getMacAddressBytes(int index); /** - * - * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Network.State getState(); /** - * - * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; - * * @return The vlanId. */ java.lang.String getVlanId(); /** - * - * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; - * * @return The bytes for vlanId. */ - com.google.protobuf.ByteString getVlanIdBytes(); + com.google.protobuf.ByteString + getVlanIdBytes(); /** - * - * *
    * The cidr of the Network.
    * 
* * string cidr = 8; - * * @return The cidr. */ java.lang.String getCidr(); /** - * - * *
    * The cidr of the Network.
    * 
* * string cidr = 8; - * * @return The bytes for cidr. */ - com.google.protobuf.ByteString getCidrBytes(); + com.google.protobuf.ByteString + getCidrBytes(); /** - * - * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return Whether the vrf field is set. */ boolean hasVrf(); /** - * - * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; - * * @return The vrf. */ com.google.cloud.baremetalsolution.v2.VRF getVrf(); /** - * - * *
    * The vrf for the Network.
    * 
@@ -293,8 +222,6 @@ public interface NetworkOrBuilder com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -303,31 +230,30 @@ public interface NetworkOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -336,111 +262,91 @@ public interface NetworkOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; - * * @return The servicesCidr. */ java.lang.String getServicesCidr(); /** - * - * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; - * * @return The bytes for servicesCidr. */ - com.google.protobuf.ByteString getServicesCidrBytes(); + com.google.protobuf.ByteString + getServicesCidrBytes(); /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - java.util.List + java.util.List getReservationsList(); /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index); /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ int getReservationsCount(); /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ - java.util.List + java.util.List getReservationsOrBuilderList(); /** - * - * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; - * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; */ com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( int index); diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java new file mode 100644 index 0000000..e830e19 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java @@ -0,0 +1,283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NetworkProto { + private NetworkProto() {} + 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_baremetalsolution_v2_Network_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" + + "ork.proto\022!google.cloud.baremetalsolutio" + + "n.v2\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032 google/protobu" + + "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" + + " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" + + "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" + + "metalsolution.v2.Network.State\022\017\n\007vlan_i" + + "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" + + "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" + + "bels\030\013 \003(\01326.google.cloud.baremetalsolut" + + "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" + + "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" + + ".cloud.baremetalsolution.v2.NetworkAddre" + + "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" + + "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" + + "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" + + "lution.googleapis.com/Network\022:projects/" + + "{project}/locations/{location}/networks/" + + "{network}\"U\n\031NetworkAddressReservation\022\025" + + "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" + + "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" + + "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" + + "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" + + "0.google.cloud.baremetalsolution.v2.VRF." + + "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" + + "ogle.cloud.baremetalsolution.v2.VRF.Vlan" + + "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" + + "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" + + "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " + + "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" + + "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" + + "alInterface\022o\n\032logical_network_interface" + + "s\030\001 \003(\0132K.google.cloud.baremetalsolution" + + ".v2.LogicalInterface.LogicalNetworkInter" + + "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " + + "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" + + "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" + + "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" + + "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" + + "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" + + "(\0132*.google.cloud.baremetalsolution.v2.N" + + "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" + + "\007network\030\001 \001(\0132*.google.cloud.baremetals" + + "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" + + "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" + + ".baremetalsolution.v2.Network\022\020\n\010used_ip" + + "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" + + "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\"]\n\030ListNetworkUsageRespo" + + "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" + + "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" + + "oogle.cloud.baremetalsolution.v2B\014Networ" + + "kProtoP\001ZRgoogle.golang.org/genproto/goo" + + "gleapis/cloud/baremetalsolution/v2;barem" + + "etalsolution\252\002!Google.Cloud.BareMetalSol" + + "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" + + "n\\V2\352\002$Google::Cloud::BareMetalSolution:" + + ":V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, + new java.lang.String[] { "Name", "Id", "Type", "IpAddress", "MacAddress", "State", "VlanId", "Cidr", "Vrf", "Labels", "ServicesCidr", "Reservations", }); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, + new java.lang.String[] { "StartAddress", "EndAddress", "Note", }); + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, + new java.lang.String[] { "Name", "State", "QosPolicy", "VlanAttachments", }); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, + new java.lang.String[] { "BandwidthGbps", }); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, + new java.lang.String[] { "PeerVlanId", "PeerIp", "RouterIp", }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, + new java.lang.String[] { "LogicalNetworkInterfaces", "Name", "InterfaceIndex", }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, + new java.lang.String[] { "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", }); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, + new java.lang.String[] { "Networks", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, + new java.lang.String[] { "Network", "UpdateMask", }); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, + new java.lang.String[] { "Network", "UsedIps", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, + new java.lang.String[] { "Location", }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, + new java.lang.String[] { "Networks", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java similarity index 69% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java index 19550dd..3ffd7b9 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Network with all used IP addresses.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} */ -public final class NetworkUsage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NetworkUsage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkUsage) NetworkUsageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NetworkUsage.newBuilder() to construct. private NetworkUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkUsage() { usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkUsage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NetworkUsage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,39 +54,35 @@ private NetworkUsage( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; - if (network_ != null) { - subBuilder = network_.toBuilder(); - } - network_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(network_); - network_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - usedIps_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - usedIps_.add(s); - break; + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + usedIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + usedIps_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +90,8 @@ private NetworkUsage( } 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)) { usedIps_ = usedIps_.getUnmodifiableView(); @@ -120,33 +100,27 @@ private NetworkUsage( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkUsage.class, - com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Network network_; /** - * - * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return Whether the network field is set. */ @java.lang.Override @@ -154,25 +128,18 @@ public boolean hasNetwork() { return network_ != null; } /** - * - * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return The network. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network getNetwork() { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } /** - * - * *
    * Network.
    * 
@@ -187,42 +154,34 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde public static final int USED_IPS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList usedIps_; /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @return A list containing the usedIps. */ - public com.google.protobuf.ProtocolStringList getUsedIpsList() { + public com.google.protobuf.ProtocolStringList + getUsedIpsList() { return usedIps_; } /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @return The count of usedIps. */ public int getUsedIpsCount() { return usedIps_.size(); } /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @param index The index of the element to return. * @return The usedIps at the given index. */ @@ -230,23 +189,20 @@ public java.lang.String getUsedIps(int index) { return usedIps_.get(index); } /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - public com.google.protobuf.ByteString getUsedIpsBytes(int index) { + public com.google.protobuf.ByteString + getUsedIpsBytes(int index) { return usedIps_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,7 +214,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 (network_ != null) { output.writeMessage(1, getNetwork()); } @@ -275,7 +232,8 @@ public int getSerializedSize() { size = 0; if (network_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetwork()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNetwork()); } { int dataSize = 0; @@ -293,19 +251,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.baremetalsolution.v2.NetworkUsage)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NetworkUsage other = - (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; + com.google.cloud.baremetalsolution.v2.NetworkUsage other = (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; if (hasNetwork() != other.hasNetwork()) return false; if (hasNetwork()) { - if (!getNetwork().equals(other.getNetwork())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; } - if (!getUsedIpsList().equals(other.getUsedIpsList())) return false; + if (!getUsedIpsList() + .equals(other.getUsedIpsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,126 +290,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Network with all used IP addresses.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkUsage) com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkUsage.class, - com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkUsage.newBuilder() @@ -458,15 +408,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(); @@ -482,9 +433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override @@ -503,8 +454,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { - com.google.cloud.baremetalsolution.v2.NetworkUsage result = - new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); + com.google.cloud.baremetalsolution.v2.NetworkUsage result = new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); int from_bitField0_ = bitField0_; if (networkBuilder_ == null) { result.network_ = network_; @@ -524,39 +474,38 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkUsage) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage)other); } else { super.mergeFrom(other); return this; @@ -564,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkUsage other) { - if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) return this; if (other.hasNetwork()) { mergeNetwork(other.getNetwork()); } @@ -598,8 +546,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,52 +555,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.baremetalsolution.v2.Network network_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - networkBuilder_; + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; /** - * - * *
      * Network.
      * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** - * - * *
      * Network.
      * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return The network. */ public com.google.cloud.baremetalsolution.v2.Network getNetwork() { if (networkBuilder_ == null) { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } else { return networkBuilder_.getMessage(); } } /** - * - * *
      * Network.
      * 
@@ -674,8 +607,6 @@ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { return this; } /** - * - * *
      * Network.
      * 
@@ -694,8 +625,6 @@ public Builder setNetwork( return this; } /** - * - * *
      * Network.
      * 
@@ -706,9 +635,7 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); } else { network_ = value; } @@ -720,8 +647,6 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** - * - * *
      * Network.
      * 
@@ -740,8 +665,6 @@ public Builder clearNetwork() { return this; } /** - * - * *
      * Network.
      * 
@@ -749,13 +672,11 @@ public Builder clearNetwork() { * .google.cloud.baremetalsolution.v2.Network network = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** - * - * *
      * Network.
      * 
@@ -766,14 +687,11 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilder(); } else { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } } /** - * - * *
      * Network.
      * 
@@ -781,68 +699,55 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde * .google.cloud.baremetalsolution.v2.Network network = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { - networkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - getNetwork(), getParentForChildren(), isClean()); + networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), + getParentForChildren(), + isClean()); network_ = null; } return networkBuilder_; } - private com.google.protobuf.LazyStringList usedIps_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUsedIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { usedIps_ = new com.google.protobuf.LazyStringArrayList(usedIps_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @return A list containing the usedIps. */ - public com.google.protobuf.ProtocolStringList getUsedIpsList() { + public com.google.protobuf.ProtocolStringList + getUsedIpsList() { return usedIps_.getUnmodifiableView(); } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @return The count of usedIps. */ public int getUsedIpsCount() { return usedIps_.size(); } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param index The index of the element to return. * @return The usedIps at the given index. */ @@ -850,90 +755,80 @@ public java.lang.String getUsedIps(int index) { return usedIps_.get(index); } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - public com.google.protobuf.ByteString getUsedIpsBytes(int index) { + public com.google.protobuf.ByteString + getUsedIpsBytes(int index) { return usedIps_.getByteString(index); } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param index The index to set the value at. * @param value The usedIps to set. * @return This builder for chaining. */ - public Builder setUsedIps(int index, java.lang.String value) { + public Builder setUsedIps( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUsedIpsIsMutable(); + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); usedIps_.set(index, value); onChanged(); return this; } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param value The usedIps to add. * @return This builder for chaining. */ - public Builder addUsedIps(java.lang.String value) { + public Builder addUsedIps( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUsedIpsIsMutable(); + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); usedIps_.add(value); onChanged(); return this; } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param values The usedIps to add. * @return This builder for chaining. */ - public Builder addAllUsedIps(java.lang.Iterable values) { + public Builder addAllUsedIps( + java.lang.Iterable values) { ensureUsedIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, usedIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, usedIps_); onChanged(); return this; } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @return This builder for chaining. */ public Builder clearUsedIps() { @@ -943,30 +838,28 @@ public Builder clearUsedIps() { return this; } /** - * - * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; - * * @param value The bytes of the usedIps to add. * @return This builder for chaining. */ - public Builder addUsedIpsBytes(com.google.protobuf.ByteString value) { + public Builder addUsedIpsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUsedIpsIsMutable(); usedIps_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -976,12 +869,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkUsage) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkUsage) private static final com.google.cloud.baremetalsolution.v2.NetworkUsage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkUsage(); } @@ -990,16 +883,16 @@ public static com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkUsage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkUsage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkUsage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1014,4 +907,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java similarity index 67% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java index 60acf99..ea45772 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkUsageOrBuilder - extends +public interface NetworkUsageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkUsage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return Whether the network field is set. */ boolean hasNetwork(); /** - * - * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; - * * @return The network. */ com.google.cloud.baremetalsolution.v2.Network getNetwork(); /** - * - * *
    * Network.
    * 
@@ -59,53 +35,43 @@ public interface NetworkUsageOrBuilder com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @return A list containing the usedIps. */ - java.util.List getUsedIpsList(); + java.util.List + getUsedIpsList(); /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @return The count of usedIps. */ int getUsedIpsCount(); /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @param index The index of the element to return. * @return The usedIps at the given index. */ java.lang.String getUsedIps(int index); /** - * - * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; - * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - com.google.protobuf.ByteString getUsedIpsBytes(int index); + com.google.protobuf.ByteString + getUsedIpsBytes(int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java similarity index 71% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java index b8bb184..7be4d09 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * An NFS share.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} */ -public final class NfsShare extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NfsShare extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare) NfsShareOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NfsShare.newBuilder() to construct. private NfsShare(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NfsShare() { name_ = ""; nfsShareId_ = ""; @@ -47,15 +29,16 @@ private NfsShare() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NfsShare(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NfsShare( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,68 +58,59 @@ private NfsShare( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nfsShareId_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + nfsShareId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - volume_ = s; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedClients_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient>(); - mutable_bitField0_ |= 0x00000001; - } - allowedClients_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), - extensionRegistry)); - break; + volume_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedClients_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + allowedClients_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +118,8 @@ private NfsShare( } 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)) { allowedClients_ = java.util.Collections.unmodifiableList(allowedClients_); @@ -153,46 +128,41 @@ private NfsShare( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.class, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); } /** - * - * *
    * The possible states for this NFS share.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The share is in an unknown state.
      * 
@@ -201,8 +171,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The share has been provisioned.
      * 
@@ -214,8 +182,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The share is in an unknown state.
      * 
@@ -224,8 +190,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The share has been provisioned.
      * 
@@ -234,6 +198,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONED_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -258,47 +223,48 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -316,18 +282,15 @@ private State(int value) { } /** - * - * *
    * The possible mount permissions.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.MountPermissions} */ - public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum { + public enum MountPermissions + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Permissions were not specified.
      * 
@@ -336,8 +299,6 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum */ MOUNT_PERMISSIONS_UNSPECIFIED(0), /** - * - * *
      * NFS share can be mount with read-only permissions.
      * 
@@ -346,8 +307,6 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum */ READ(1), /** - * - * *
      * NFS share can be mount with read-write permissions.
      * 
@@ -359,8 +318,6 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Permissions were not specified.
      * 
@@ -369,8 +326,6 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum */ public static final int MOUNT_PERMISSIONS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * NFS share can be mount with read-only permissions.
      * 
@@ -379,8 +334,6 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum */ public static final int READ_VALUE = 1; /** - * - * *
      * NFS share can be mount with read-write permissions.
      * 
@@ -389,6 +342,7 @@ public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum */ public static final int READ_WRITE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -413,42 +367,39 @@ public static MountPermissions valueOf(int value) { */ public static MountPermissions forNumber(int value) { switch (value) { - case 0: - return MOUNT_PERMISSIONS_UNSPECIFIED; - case 1: - return READ; - case 2: - return READ_WRITE; - default: - return null; + case 0: return MOUNT_PERMISSIONS_UNSPECIFIED; + case 1: return READ; + case 2: return READ_WRITE; + 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< + MountPermissions> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MountPermissions findValueByNumber(int number) { + return MountPermissions.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MountPermissions findValueByNumber(int number) { - return MountPermissions.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(1); } @@ -457,7 +408,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static MountPermissions 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; @@ -474,142 +426,110 @@ private MountPermissions(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.NfsShare.MountPermissions) } - public interface AllowedClientOrBuilder - extends + public interface AllowedClientOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; - * * @return The shareIp. */ java.lang.String getShareIp(); /** - * - * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; - * * @return The bytes for shareIp. */ - com.google.protobuf.ByteString getShareIpBytes(); + com.google.protobuf.ByteString + getShareIpBytes(); /** - * - * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; - * * @return The allowedClientsCidr. */ java.lang.String getAllowedClientsCidr(); /** - * - * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; - * * @return The bytes for allowedClientsCidr. */ - com.google.protobuf.ByteString getAllowedClientsCidrBytes(); + com.google.protobuf.ByteString + getAllowedClientsCidrBytes(); /** - * - * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The enum numeric value on the wire for mountPermissions. */ int getMountPermissionsValue(); /** - * - * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The mountPermissions. */ com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions(); /** - * - * *
      * Allow dev flag.  Which controls whether to allow creation of devices.
      * 
* * bool allow_dev = 5; - * * @return The allowDev. */ boolean getAllowDev(); /** - * - * *
      * Allow the setuid flag.
      * 
* * bool allow_suid = 6; - * * @return The allowSuid. */ boolean getAllowSuid(); /** - * - * *
      * Disable root squashing, which is a feature of NFS.
      * Root squash is a special mapping of the remote superuser (root) identity
@@ -617,30 +537,26 @@ public interface AllowedClientOrBuilder
      * 
* * bool no_root_squash = 7; - * * @return The noRootSquash. */ boolean getNoRootSquash(); } /** - * - * *
    * Represents an 'access point' for the share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} */ - public static final class AllowedClient extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AllowedClient extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) AllowedClientOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowedClient.newBuilder() to construct. private AllowedClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AllowedClient() { network_ = ""; shareIp_ = ""; @@ -650,15 +566,16 @@ private AllowedClient() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AllowedClient(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AllowedClient( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -677,56 +594,52 @@ private AllowedClient( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - network_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + network_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - shareIp_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + shareIp_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - allowedClientsCidr_ = s; - break; - } - case 32: - { - int rawValue = input.readEnum(); + allowedClientsCidr_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); - mountPermissions_ = rawValue; - break; - } - case 40: - { - allowDev_ = input.readBool(); - break; - } - case 48: - { - allowSuid_ = input.readBool(); - break; - } - case 56: - { - noRootSquash_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mountPermissions_ = rawValue; + break; + } + case 40: { + + allowDev_ = input.readBool(); + break; + } + case 48: { + + allowSuid_ = input.readBool(); + break; + } + case 56: { + + noRootSquash_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,39 +647,34 @@ private AllowedClient( } 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.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** - * - * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The network. */ @java.lang.Override @@ -775,29 +683,29 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -808,14 +716,11 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int SHARE_IP_FIELD_NUMBER = 2; private volatile java.lang.Object shareIp_; /** - * - * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; - * * @return The shareIp. */ @java.lang.Override @@ -824,29 +729,29 @@ public java.lang.String getShareIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareIp_ = s; return s; } } /** - * - * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; - * * @return The bytes for shareIp. */ @java.lang.Override - public com.google.protobuf.ByteString getShareIpBytes() { + public com.google.protobuf.ByteString + getShareIpBytes() { java.lang.Object ref = shareIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shareIp_ = b; return b; } else { @@ -857,14 +762,11 @@ public com.google.protobuf.ByteString getShareIpBytes() { public static final int ALLOWED_CLIENTS_CIDR_FIELD_NUMBER = 3; private volatile java.lang.Object allowedClientsCidr_; /** - * - * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; - * * @return The allowedClientsCidr. */ @java.lang.Override @@ -873,29 +775,29 @@ public java.lang.String getAllowedClientsCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClientsCidr_ = s; return s; } } /** - * - * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; - * * @return The bytes for allowedClientsCidr. */ @java.lang.Override - public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { + public com.google.protobuf.ByteString + getAllowedClientsCidrBytes() { java.lang.Object ref = allowedClientsCidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); allowedClientsCidr_ = b; return b; } else { @@ -906,55 +808,38 @@ public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { public static final int MOUNT_PERMISSIONS_FIELD_NUMBER = 4; private int mountPermissions_; /** - * - * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The enum numeric value on the wire for mountPermissions. */ - @java.lang.Override - public int getMountPermissionsValue() { + @java.lang.Override public int getMountPermissionsValue() { return mountPermissions_; } /** - * - * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The mountPermissions. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf( - mountPermissions_); - return result == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; } public static final int ALLOW_DEV_FIELD_NUMBER = 5; private boolean allowDev_; /** - * - * *
      * Allow dev flag.  Which controls whether to allow creation of devices.
      * 
* * bool allow_dev = 5; - * * @return The allowDev. */ @java.lang.Override @@ -965,14 +850,11 @@ public boolean getAllowDev() { public static final int ALLOW_SUID_FIELD_NUMBER = 6; private boolean allowSuid_; /** - * - * *
      * Allow the setuid flag.
      * 
* * bool allow_suid = 6; - * * @return The allowSuid. */ @java.lang.Override @@ -983,8 +865,6 @@ public boolean getAllowSuid() { public static final int NO_ROOT_SQUASH_FIELD_NUMBER = 7; private boolean noRootSquash_; /** - * - * *
      * Disable root squashing, which is a feature of NFS.
      * Root squash is a special mapping of the remote superuser (root) identity
@@ -992,7 +872,6 @@ public boolean getAllowSuid() {
      * 
* * bool no_root_squash = 7; - * * @return The noRootSquash. */ @java.lang.Override @@ -1001,7 +880,6 @@ public boolean getNoRootSquash() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1013,7 +891,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(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -1023,10 +902,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allowedClientsCidr_); } - if (mountPermissions_ - != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions - .MOUNT_PERMISSIONS_UNSPECIFIED - .getNumber()) { + if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { output.writeEnum(4, mountPermissions_); } if (allowDev_ != false) { @@ -1056,20 +932,21 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, allowedClientsCidr_); } - if (mountPermissions_ - != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions - .MOUNT_PERMISSIONS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, mountPermissions_); + if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, mountPermissions_); } if (allowDev_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowDev_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, allowDev_); } if (allowSuid_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowSuid_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, allowSuid_); } if (noRootSquash_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, noRootSquash_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, noRootSquash_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1079,21 +956,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.baremetalsolution.v2.NfsShare.AllowedClient)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = - (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getShareIp().equals(other.getShareIp())) return false; - if (!getAllowedClientsCidr().equals(other.getAllowedClientsCidr())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getShareIp() + .equals(other.getShareIp())) return false; + if (!getAllowedClientsCidr() + .equals(other.getAllowedClientsCidr())) return false; if (mountPermissions_ != other.mountPermissions_) return false; - if (getAllowDev() != other.getAllowDev()) return false; - if (getAllowSuid() != other.getAllowSuid()) return false; - if (getNoRootSquash() != other.getNoRootSquash()) return false; + if (getAllowDev() + != other.getAllowDev()) return false; + if (getAllowSuid() + != other.getAllowSuid()) return false; + if (getNoRootSquash() + != other.getNoRootSquash()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1114,105 +996,101 @@ public int hashCode() { hash = (37 * hash) + MOUNT_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + mountPermissions_; hash = (37 * hash) + ALLOW_DEV_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowDev()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowDev()); hash = (37 * hash) + ALLOW_SUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowSuid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowSuid()); hash = (37 * hash) + NO_ROOT_SQUASH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoRootSquash()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNoRootSquash()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1222,32 +1100,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represents an 'access point' for the share.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.newBuilder() @@ -1255,15 +1128,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(); @@ -1285,14 +1159,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance(); } @@ -1307,8 +1180,7 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial() { - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = - new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); result.network_ = network_; result.shareIp_ = shareIp_; result.allowedClientsCidr_ = allowedClientsCidr_; @@ -1324,41 +1196,38 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient)other); } else { super.mergeFrom(other); return this; @@ -1366,9 +1235,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other) { - if (other - == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -1412,9 +1279,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1426,20 +1291,18 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** - * - * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1448,21 +1311,20 @@ public java.lang.String getNetwork() { } } /** - * - * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -1470,61 +1332,54 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -1532,20 +1387,18 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object shareIp_ = ""; /** - * - * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; - * * @return The shareIp. */ public java.lang.String getShareIp() { java.lang.Object ref = shareIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareIp_ = s; return s; @@ -1554,21 +1407,20 @@ public java.lang.String getShareIp() { } } /** - * - * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; - * * @return The bytes for shareIp. */ - public com.google.protobuf.ByteString getShareIpBytes() { + public com.google.protobuf.ByteString + getShareIpBytes() { java.lang.Object ref = shareIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shareIp_ = b; return b; } else { @@ -1576,61 +1428,54 @@ public com.google.protobuf.ByteString getShareIpBytes() { } } /** - * - * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; - * * @param value The shareIp to set. * @return This builder for chaining. */ - public Builder setShareIp(java.lang.String value) { + public Builder setShareIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + shareIp_ = value; onChanged(); return this; } /** - * - * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; - * * @return This builder for chaining. */ public Builder clearShareIp() { - + shareIp_ = getDefaultInstance().getShareIp(); onChanged(); return this; } /** - * - * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; - * * @param value The bytes for shareIp to set. * @return This builder for chaining. */ - public Builder setShareIpBytes(com.google.protobuf.ByteString value) { + public Builder setShareIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shareIp_ = value; onChanged(); return this; @@ -1638,20 +1483,18 @@ public Builder setShareIpBytes(com.google.protobuf.ByteString value) { private java.lang.Object allowedClientsCidr_ = ""; /** - * - * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; - * * @return The allowedClientsCidr. */ public java.lang.String getAllowedClientsCidr() { java.lang.Object ref = allowedClientsCidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClientsCidr_ = s; return s; @@ -1660,21 +1503,20 @@ public java.lang.String getAllowedClientsCidr() { } } /** - * - * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; - * * @return The bytes for allowedClientsCidr. */ - public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { + public com.google.protobuf.ByteString + getAllowedClientsCidrBytes() { java.lang.Object ref = allowedClientsCidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); allowedClientsCidr_ = b; return b; } else { @@ -1682,61 +1524,54 @@ public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { } } /** - * - * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; - * * @param value The allowedClientsCidr to set. * @return This builder for chaining. */ - public Builder setAllowedClientsCidr(java.lang.String value) { + public Builder setAllowedClientsCidr( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + allowedClientsCidr_ = value; onChanged(); return this; } /** - * - * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; - * * @return This builder for chaining. */ public Builder clearAllowedClientsCidr() { - + allowedClientsCidr_ = getDefaultInstance().getAllowedClientsCidr(); onChanged(); return this; } /** - * - * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; - * * @param value The bytes for allowedClientsCidr to set. * @return This builder for chaining. */ - public Builder setAllowedClientsCidrBytes(com.google.protobuf.ByteString value) { + public Builder setAllowedClientsCidrBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowedClientsCidr_ = value; onChanged(); return this; @@ -1744,114 +1579,85 @@ public Builder setAllowedClientsCidrBytes(com.google.protobuf.ByteString value) private int mountPermissions_ = 0; /** - * - * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The enum numeric value on the wire for mountPermissions. */ - @java.lang.Override - public int getMountPermissionsValue() { + @java.lang.Override public int getMountPermissionsValue() { return mountPermissions_; } /** - * - * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @param value The enum numeric value on the wire for mountPermissions to set. * @return This builder for chaining. */ public Builder setMountPermissionsValue(int value) { - + mountPermissions_ = value; onChanged(); return this; } /** - * - * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return The mountPermissions. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf( - mountPermissions_); - return result == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; } /** - * - * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @param value The mountPermissions to set. * @return This builder for chaining. */ - public Builder setMountPermissions( - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { + public Builder setMountPermissions(com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { if (value == null) { throw new NullPointerException(); } - + mountPermissions_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; * @return This builder for chaining. */ public Builder clearMountPermissions() { - + mountPermissions_ = 0; onChanged(); return this; } - private boolean allowDev_; + private boolean allowDev_ ; /** - * - * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; - * * @return The allowDev. */ @java.lang.Override @@ -1859,51 +1665,42 @@ public boolean getAllowDev() { return allowDev_; } /** - * - * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; - * * @param value The allowDev to set. * @return This builder for chaining. */ public Builder setAllowDev(boolean value) { - + allowDev_ = value; onChanged(); return this; } /** - * - * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; - * * @return This builder for chaining. */ public Builder clearAllowDev() { - + allowDev_ = false; onChanged(); return this; } - private boolean allowSuid_; + private boolean allowSuid_ ; /** - * - * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; - * * @return The allowSuid. */ @java.lang.Override @@ -1911,45 +1708,37 @@ public boolean getAllowSuid() { return allowSuid_; } /** - * - * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; - * * @param value The allowSuid to set. * @return This builder for chaining. */ public Builder setAllowSuid(boolean value) { - + allowSuid_ = value; onChanged(); return this; } /** - * - * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; - * * @return This builder for chaining. */ public Builder clearAllowSuid() { - + allowSuid_ = false; onChanged(); return this; } - private boolean noRootSquash_; + private boolean noRootSquash_ ; /** - * - * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1957,7 +1746,6 @@ public Builder clearAllowSuid() {
        * 
* * bool no_root_squash = 7; - * * @return The noRootSquash. */ @java.lang.Override @@ -1965,8 +1753,6 @@ public boolean getNoRootSquash() { return noRootSquash_; } /** - * - * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1974,19 +1760,16 @@ public boolean getNoRootSquash() {
        * 
* * bool no_root_squash = 7; - * * @param value The noRootSquash to set. * @return This builder for chaining. */ public Builder setNoRootSquash(boolean value) { - + noRootSquash_ = value; onChanged(); return this; } /** - * - * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1994,16 +1777,14 @@ public Builder setNoRootSquash(boolean value) {
        * 
* * bool no_root_squash = 7; - * * @return This builder for chaining. */ public Builder clearNoRootSquash() { - + noRootSquash_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2016,32 +1797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) - private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedClient parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedClient(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedClient parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedClient(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2053,23 +1832,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -2078,29 +1854,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2111,14 +1887,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NFS_SHARE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nfsShareId_; /** - * - * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nfsShareId. */ @java.lang.Override @@ -2127,29 +1900,29 @@ public java.lang.String getNfsShareId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nfsShareId_ = s; return s; } } /** - * - * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nfsShareId. */ @java.lang.Override - public com.google.protobuf.ByteString getNfsShareIdBytes() { + public com.google.protobuf.ByteString + getNfsShareIdBytes() { java.lang.Object ref = nfsShareId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nfsShareId_ = b; return b; } else { @@ -2160,52 +1933,38 @@ public com.google.protobuf.ByteString getNfsShareIdBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.State result = - com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; } public static final int VOLUME_FIELD_NUMBER = 4; private volatile java.lang.Object volume_; /** - * - * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The volume. */ @java.lang.Override @@ -2214,29 +1973,29 @@ public java.lang.String getVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; } } /** - * - * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for volume. */ @java.lang.Override - public com.google.protobuf.ByteString getVolumeBytes() { + public com.google.protobuf.ByteString + getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volume_ = b; return b; } else { @@ -2245,101 +2004,84 @@ public com.google.protobuf.ByteString getVolumeBytes() { } public static final int ALLOWED_CLIENTS_FIELD_NUMBER = 5; - private java.util.List - allowedClients_; + private java.util.List allowedClients_; /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ @java.lang.Override - public java.util.List - getAllowedClientsList() { + public java.util.List getAllowedClientsList() { return allowedClients_; } /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + public java.util.List getAllowedClientsOrBuilderList() { return allowedClients_; } /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ @java.lang.Override public int getAllowedClientsCount() { return allowedClients_.size(); } /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { return allowedClients_.get(index); } /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder - getAllowedClientsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( + int index) { return allowedClients_.get(index); } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -2348,30 +2090,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2379,12 +2119,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2392,16 +2131,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2409,11 +2148,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2421,7 +2161,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2433,15 +2172,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nfsShareId_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { @@ -2450,8 +2189,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < allowedClients_.size(); i++) { output.writeMessage(5, allowedClients_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); unknownFields.writeTo(output); } @@ -2467,25 +2210,26 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nfsShareId_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volume_); } for (int i = 0; i < allowedClients_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, allowedClients_.get(i)); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, allowedClients_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2495,20 +2239,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.baremetalsolution.v2.NfsShare)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NfsShare other = - (com.google.cloud.baremetalsolution.v2.NfsShare) obj; + com.google.cloud.baremetalsolution.v2.NfsShare other = (com.google.cloud.baremetalsolution.v2.NfsShare) obj; - if (!getName().equals(other.getName())) return false; - if (!getNfsShareId().equals(other.getNfsShareId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getNfsShareId() + .equals(other.getNfsShareId())) return false; if (state_ != other.state_) return false; - if (!getVolume().equals(other.getVolume())) return false; - if (!getAllowedClientsList().equals(other.getAllowedClientsList())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getVolume() + .equals(other.getVolume())) return false; + if (!getAllowedClientsList() + .equals(other.getAllowedClientsList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2541,147 +2289,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare 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.baremetalsolution.v2.NfsShare parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An NFS share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare) com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.class, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder() @@ -2689,17 +2430,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) { getAllowedClientsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2722,9 +2463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @java.lang.Override @@ -2743,8 +2484,7 @@ public com.google.cloud.baremetalsolution.v2.NfsShare build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { - com.google.cloud.baremetalsolution.v2.NfsShare result = - new com.google.cloud.baremetalsolution.v2.NfsShare(this); + com.google.cloud.baremetalsolution.v2.NfsShare result = new com.google.cloud.baremetalsolution.v2.NfsShare(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.nfsShareId_ = nfsShareId_; @@ -2769,39 +2509,38 @@ public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare)other); } else { super.mergeFrom(other); return this; @@ -2843,16 +2582,16 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare other) { allowedClientsBuilder_ = null; allowedClients_ = other.allowedClients_; bitField0_ = (bitField0_ & ~0x00000001); - allowedClientsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAllowedClientsFieldBuilder() - : null; + allowedClientsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAllowedClientsFieldBuilder() : null; } else { allowedClientsBuilder_.addAllMessages(other.allowedClients_); } } } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2881,25 +2620,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2908,21 +2644,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2930,61 +2665,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2992,20 +2720,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object nfsShareId_ = ""; /** - * - * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nfsShareId. */ public java.lang.String getNfsShareId() { java.lang.Object ref = nfsShareId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nfsShareId_ = s; return s; @@ -3014,21 +2740,20 @@ public java.lang.String getNfsShareId() { } } /** - * - * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nfsShareId. */ - public com.google.protobuf.ByteString getNfsShareIdBytes() { + public com.google.protobuf.ByteString + getNfsShareIdBytes() { java.lang.Object ref = nfsShareId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nfsShareId_ = b; return b; } else { @@ -3036,61 +2761,54 @@ public com.google.protobuf.ByteString getNfsShareIdBytes() { } } /** - * - * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nfsShareId to set. * @return This builder for chaining. */ - public Builder setNfsShareId(java.lang.String value) { + public Builder setNfsShareId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nfsShareId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNfsShareId() { - + nfsShareId_ = getDefaultInstance().getNfsShareId(); onChanged(); return this; } /** - * - * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nfsShareId to set. * @return This builder for chaining. */ - public Builder setNfsShareIdBytes(com.google.protobuf.ByteString value) { + public Builder setNfsShareIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nfsShareId_ = value; onChanged(); return this; @@ -3098,67 +2816,51 @@ public Builder setNfsShareIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.State result = - com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -3166,24 +2868,21 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.NfsShare.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3191,20 +2890,18 @@ public Builder clearState() { private java.lang.Object volume_ = ""; /** - * - * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The volume. */ public java.lang.String getVolume() { java.lang.Object ref = volume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; @@ -3213,21 +2910,20 @@ public java.lang.String getVolume() { } } /** - * - * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for volume. */ - public com.google.protobuf.ByteString getVolumeBytes() { + public com.google.protobuf.ByteString + getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volume_ = b; return b; } else { @@ -3235,96 +2931,79 @@ public com.google.protobuf.ByteString getVolumeBytes() { } } /** - * - * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @param value The volume to set. * @return This builder for chaining. */ - public Builder setVolume(java.lang.String value) { + public Builder setVolume( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volume_ = value; onChanged(); return this; } /** - * - * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearVolume() { - + volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** - * - * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for volume to set. * @return This builder for chaining. */ - public Builder setVolumeBytes(com.google.protobuf.ByteString value) { + public Builder setVolumeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volume_ = value; onChanged(); return this; } - private java.util.List - allowedClients_ = java.util.Collections.emptyList(); - + private java.util.List allowedClients_ = + java.util.Collections.emptyList(); private void ensureAllowedClientsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedClients_ = - new java.util.ArrayList( - allowedClients_); + allowedClients_ = new java.util.ArrayList(allowedClients_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> - allowedClientsBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> allowedClientsBuilder_; /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public java.util.List - getAllowedClientsList() { + public java.util.List getAllowedClientsList() { if (allowedClientsBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedClients_); } else { @@ -3332,14 +3011,11 @@ private void ensureAllowedClientsIsMutable() { } } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public int getAllowedClientsCount() { if (allowedClientsBuilder_ == null) { @@ -3349,17 +3025,13 @@ public int getAllowedClientsCount() { } } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { if (allowedClientsBuilder_ == null) { return allowedClients_.get(index); } else { @@ -3367,14 +3039,11 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedCl } } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder setAllowedClients( int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { @@ -3391,18 +3060,14 @@ public Builder setAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder setAllowedClients( - int index, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); allowedClients_.set(index, builderForValue.build()); @@ -3413,17 +3078,13 @@ public Builder setAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public Builder addAllowedClients( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { + public Builder addAllowedClients(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { if (allowedClientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3437,14 +3098,11 @@ public Builder addAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder addAllowedClients( int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { @@ -3461,14 +3119,11 @@ public Builder addAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder addAllowedClients( com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { @@ -3482,18 +3137,14 @@ public Builder addAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder addAllowedClients( - int index, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); allowedClients_.add(index, builderForValue.build()); @@ -3504,21 +3155,18 @@ public Builder addAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder addAllAllowedClients( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedClients_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedClients_); onChanged(); } else { allowedClientsBuilder_.addAllMessages(values); @@ -3526,14 +3174,11 @@ public Builder addAllAllowedClients( return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder clearAllowedClients() { if (allowedClientsBuilder_ == null) { @@ -3546,14 +3191,11 @@ public Builder clearAllowedClients() { return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ public Builder removeAllowedClients(int index) { if (allowedClientsBuilder_ == null) { @@ -3566,50 +3208,39 @@ public Builder removeAllowedClients(int index) { return this; } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder - getAllowedClientsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder getAllowedClientsBuilder( + int index) { return getAllowedClientsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder - getAllowedClientsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( + int index) { if (allowedClientsBuilder_ == null) { - return allowedClients_.get(index); - } else { + return allowedClients_.get(index); } else { return allowedClientsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> - getAllowedClientsOrBuilderList() { + public java.util.List + getAllowedClientsOrBuilderList() { if (allowedClientsBuilder_ != null) { return allowedClientsBuilder_.getMessageOrBuilderList(); } else { @@ -3617,64 +3248,45 @@ public Builder removeAllowedClients(int index) { } } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder - addAllowedClientsBuilder() { - return getAllowedClientsFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder() { + return getAllowedClientsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder - addAllowedClientsBuilder(int index) { - return getAllowedClientsFieldBuilder() - .addBuilder( - index, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder( + int index) { + return getAllowedClientsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); } /** - * - * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - public java.util.List - getAllowedClientsBuilderList() { + public java.util.List + getAllowedClientsBuilderList() { return getAllowedClientsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> getAllowedClientsFieldBuilder() { if (allowedClientsBuilder_ == null) { - allowedClientsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( + allowedClientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( allowedClients_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3684,21 +3296,22 @@ public Builder removeAllowedClients(int index) { return allowedClientsBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3710,30 +3323,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3741,12 +3352,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3754,17 +3364,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3772,11 +3381,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3784,66 +3394,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3853,12 +3466,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare) private static final com.google.cloud.baremetalsolution.v2.NfsShare DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare(); } @@ -3867,16 +3480,16 @@ public static com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsShare parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NfsShare(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsShare parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NfsShare(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3891,4 +3504,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java index 89eba99..b7ebe95 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java @@ -1,190 +1,136 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface NfsShareOrBuilder - extends +public interface NfsShareOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nfsShareId. */ java.lang.String getNfsShareId(); /** - * - * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nfsShareId. */ - com.google.protobuf.ByteString getNfsShareIdBytes(); + com.google.protobuf.ByteString + getNfsShareIdBytes(); /** - * - * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.NfsShare.State getState(); /** - * - * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The volume. */ java.lang.String getVolume(); /** - * - * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for volume. */ - com.google.protobuf.ByteString getVolumeBytes(); + com.google.protobuf.ByteString + getVolumeBytes(); /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - java.util.List + java.util.List getAllowedClientsList(); /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index); /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ int getAllowedClientsCount(); /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ - java.util.List + java.util.List getAllowedClientsOrBuilderList(); /** - * - * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; - * + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; */ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( int index); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -193,31 +139,30 @@ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowed */ int getLabelsCount(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -226,18 +171,18 @@ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowed */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java new file mode 100644 index 0000000..ba39d39 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NfsShareProto { + private NfsShareProto() {} + 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_baremetalsolution_v2_NfsShare_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/baremetalsolution/v2/nfs_" + + "share.proto\022!google.cloud.baremetalsolut" + + "ion.v2\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032 google/proto" + + "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" + + "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" + + "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" + + "\tB,\372A)\n\'baremetalsolution.googleapis.com" + + "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" + + "e.cloud.baremetalsolution.v2.NfsShare.Al" + + "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" + + "ud.baremetalsolution.v2.NfsShare.LabelsE" + + "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" + + "-\372A*\n(baremetalsolution.googleapis.com/N" + + "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" + + "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" + + "\0162<.google.cloud.baremetalsolution.v2.Nf" + + "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" + + "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" + + "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" + + "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" + + "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" + + "olution.googleapis.com/NFSShare\022=project" + + "s/{project}/locations/{location}/nfsShar" + + "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" + + "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" + + "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" + + "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" + + "\030\001 \003(\0132+.google.cloud.baremetalsolution." + + "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" + + "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" + + "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\373\001\n%com.google.cloud.baremetalsolution" + + ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" + + "genproto/googleapis/cloud/baremetalsolut" + + "ion/v2;baremetalsolution\252\002!Google.Cloud." + + "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" + + "MetalSolution\\V2\352\002$Google::Cloud::BareMe" + + "talSolution::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, + new java.lang.String[] { "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, + new java.lang.String[] { "Network", "ShareIp", "AllowedClientsCidr", "MountPermissions", "AllowDev", "AllowSuid", "NoRootSquash", }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, + new java.lang.String[] { "NfsShares", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, + new java.lang.String[] { "NfsShare", "UpdateMask", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java similarity index 71% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java index a5cd605..ce84b7e 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Represents the metadata from a long-running operation.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,40 +125,34 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, - com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -207,14 +172,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -224,15 +186,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -256,14 +210,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -289,29 +237,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -338,29 +283,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -387,29 +329,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -420,8 +362,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -430,7 +370,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -441,14 +380,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -457,29 +393,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -488,7 +424,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -532,10 +468,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -547,7 +485,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -560,27 +499,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.OperationMetadata other = - (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; + com.google.cloud.baremetalsolution.v2.OperationMetadata other = (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -607,7 +552,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -616,127 +562,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata from a long-running operation.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.cloud.baremetalsolution.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, - com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.OperationMetadata.newBuilder() @@ -744,15 +680,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -782,9 +719,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -803,8 +740,7 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { - com.google.cloud.baremetalsolution.v2.OperationMetadata result = - new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); + com.google.cloud.baremetalsolution.v2.OperationMetadata result = new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -828,39 +764,38 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -868,8 +803,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.OperationMetadata other) { - if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -914,8 +848,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -927,58 +860,39 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -994,17 +908,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1015,21 +926,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1041,15 +948,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1063,64 +966,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1128,35 +1015,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1167,14 +1043,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1190,16 +1063,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1210,20 +1081,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1235,14 +1103,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1256,59 +1121,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1316,20 +1170,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1338,21 +1190,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1360,61 +1211,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1422,20 +1266,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1444,21 +1286,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1466,61 +1307,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1528,20 +1362,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1550,21 +1382,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1572,70 +1403,61 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1644,7 +1466,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1652,8 +1473,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1662,19 +1481,16 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1683,11 +1499,10 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1695,20 +1510,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1717,21 +1530,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1739,68 +1551,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1810,12 +1615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.OperationMetadata) private static final com.google.cloud.baremetalsolution.v2.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.OperationMetadata(); } @@ -1824,16 +1629,16 @@ public static com.google.cloud.baremetalsolution.v2.OperationMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1848,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java index 5d598a7..28fd6c5 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java index bebcfd2..f4cba4a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message requesting to reset a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ -public final class ResetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) ResetInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResetInstanceRequest.newBuilder() to construct. private ResetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ResetInstanceRequest( 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,41 +73,34 @@ private ResetInstanceRequest( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = - (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message requesting to reset a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) com.google.cloud.baremetalsolution.v2.ResetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..6068d11 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java similarity index 67% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java index 8c117cb..4fc6068 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.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/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message from resetting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ -public final class ResetInstanceResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResetInstanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) ResetInstanceResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResetInstanceResponse.newBuilder() to construct. private ResetInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ResetInstanceResponse() {} + private ResetInstanceResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResetInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResetInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private ResetInstanceResponse( 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 ResetInstanceResponse( } 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.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.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.baremetalsolution.v2.ResetInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = - (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,127 +141,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message from resetting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) com.google.cloud.baremetalsolution.v2.ResetInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.newBuilder() @@ -288,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(); @@ -304,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto - .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override @@ -325,8 +297,7 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = - new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); onBuilt(); return result; } @@ -335,39 +306,38 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse)other); } else { super.mergeFrom(other); return this; @@ -375,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -406,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); } @@ -418,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(); } @@ -432,16 +400,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -456,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java new file mode 100644 index 0000000..f9e4cd0 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java index 44bea73..c6bff70 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Request for emergency resize Volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} */ -public final class ResizeVolumeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResizeVolumeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) ResizeVolumeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResizeVolumeRequest.newBuilder() to construct. private ResizeVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResizeVolumeRequest() { volume_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResizeVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResizeVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,25 +53,24 @@ private ResizeVolumeRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - volume_ = s; - break; - } - case 16: - { - sizeGib_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + volume_ = s; + break; + } + case 16: { + + sizeGib_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,41 +78,34 @@ private ResizeVolumeRequest( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private volatile java.lang.Object volume_; /** - * - * *
    * Required. Volume to resize.
    * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The volume. */ @java.lang.Override @@ -139,31 +114,29 @@ public java.lang.String getVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; } } /** - * - * *
    * Required. Volume to resize.
    * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for volume. */ @java.lang.Override - public com.google.protobuf.ByteString getVolumeBytes() { + public com.google.protobuf.ByteString + getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volume_ = b; return b; } else { @@ -174,14 +147,11 @@ public com.google.protobuf.ByteString getVolumeBytes() { public static final int SIZE_GIB_FIELD_NUMBER = 2; private long sizeGib_; /** - * - * *
    * New Volume size, in GiB.
    * 
* * int64 size_gib = 2; - * * @return The sizeGib. */ @java.lang.Override @@ -190,7 +160,6 @@ public long getSizeGib() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +171,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(volume_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volume_); } @@ -222,7 +192,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volume_); } if (sizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, sizeGib_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,16 +203,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = - (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; - if (!getVolume().equals(other.getVolume())) return false; - if (getSizeGib() != other.getSizeGib()) return false; + if (!getVolume() + .equals(other.getVolume())) return false; + if (getSizeGib() + != other.getSizeGib()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -256,134 +228,125 @@ public int hashCode() { hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + getVolume().hashCode(); hash = (37 * hash) + SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeGib()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 emergency resize Volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) com.google.cloud.baremetalsolution.v2.ResizeVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.newBuilder() @@ -391,15 +354,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(); @@ -411,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override @@ -432,8 +396,7 @@ public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = - new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); result.volume_ = volume_; result.sizeGib_ = sizeGib_; onBuilt(); @@ -444,39 +407,38 @@ public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest)other); } else { super.mergeFrom(other); return this; @@ -484,8 +446,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) return this; if (!other.getVolume().isEmpty()) { volume_ = other.volume_; onChanged(); @@ -512,8 +473,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,22 +485,18 @@ public Builder mergeFrom( private java.lang.Object volume_ = ""; /** - * - * *
      * Required. Volume to resize.
      * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The volume. */ public java.lang.String getVolume() { java.lang.Object ref = volume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; @@ -549,23 +505,20 @@ public java.lang.String getVolume() { } } /** - * - * *
      * Required. Volume to resize.
      * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for volume. */ - public com.google.protobuf.ByteString getVolumeBytes() { + public com.google.protobuf.ByteString + getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); volume_ = b; return b; } else { @@ -573,82 +526,66 @@ public com.google.protobuf.ByteString getVolumeBytes() { } } /** - * - * *
      * Required. Volume to resize.
      * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The volume to set. * @return This builder for chaining. */ - public Builder setVolume(java.lang.String value) { + public Builder setVolume( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volume_ = value; onChanged(); return this; } /** - * - * *
      * Required. Volume to resize.
      * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearVolume() { - + volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** - * - * *
      * Required. Volume to resize.
      * 
* - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for volume to set. * @return This builder for chaining. */ - public Builder setVolumeBytes(com.google.protobuf.ByteString value) { + public Builder setVolumeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volume_ = value; onChanged(); return this; } - private long sizeGib_; + private long sizeGib_ ; /** - * - * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; - * * @return The sizeGib. */ @java.lang.Override @@ -656,43 +593,37 @@ public long getSizeGib() { return sizeGib_; } /** - * - * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; - * * @param value The sizeGib to set. * @return This builder for chaining. */ public Builder setSizeGib(long value) { - + sizeGib_ = value; onChanged(); return this; } /** - * - * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; - * * @return This builder for chaining. */ public Builder clearSizeGib() { - + sizeGib_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -702,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(); } @@ -716,16 +647,16 @@ public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResizeVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResizeVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResizeVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResizeVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,4 +671,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java new file mode 100644 index 0000000..2fc28ec --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResizeVolumeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Volume to resize.
+   * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The volume. + */ + java.lang.String getVolume(); + /** + *
+   * Required. Volume to resize.
+   * 
+ * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for volume. + */ + com.google.protobuf.ByteString + getVolumeBytes(); + + /** + *
+   * New Volume size, in GiB.
+   * 
+ * + * int64 size_gib = 2; + * @return The sizeGib. + */ + long getSizeGib(); +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java index 6992d46..694ee3d 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Network template.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} */ -public final class ServerNetworkTemplate extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ServerNetworkTemplate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) ServerNetworkTemplateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ServerNetworkTemplate.newBuilder() to construct. private ServerNetworkTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ServerNetworkTemplate() { name_ = ""; applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private ServerNetworkTemplate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ServerNetworkTemplate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ServerNetworkTemplate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,37 @@ private ServerNetworkTemplate( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - applicableInstanceTypes_.add(s); - break; + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - logicalInterfaces_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate - .LogicalInterface>(); - mutable_bitField0_ |= 0x00000002; - } - logicalInterfaces_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .parser(), - extensionRegistry)); - break; + applicableInstanceTypes_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + logicalInterfaces_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + logicalInterfaces_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,7 +94,8 @@ private ServerNetworkTemplate( } 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)) { applicableInstanceTypes_ = applicableInstanceTypes_.getUnmodifiableView(); @@ -132,30 +107,24 @@ private ServerNetworkTemplate( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); } - public interface LogicalInterfaceOrBuilder - extends + public interface LogicalInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -165,13 +134,10 @@ public interface LogicalInterfaceOrBuilder
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -181,73 +147,56 @@ public interface LogicalInterfaceOrBuilder
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Interface type.
      * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Interface type.
      * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The type. */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType - getType(); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType(); /** - * - * *
      * If true, interface must have network connected.
      * 
* * bool required = 3; - * * @return The required. */ boolean getRequired(); } /** - * - * *
    * Logical interface.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} */ - public static final class LogicalInterface extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LogicalInterface extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) LogicalInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogicalInterface.newBuilder() to construct. private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LogicalInterface() { name_ = ""; type_ = 0; @@ -255,15 +204,16 @@ private LogicalInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogicalInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LogicalInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -282,32 +232,30 @@ private LogicalInterface( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 24: - { - required_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = rawValue; + break; + } + case 24: { + + required_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -315,43 +263,36 @@ private LogicalInterface( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - .class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); } /** - * - * *
      * Interface type.
      * 
* - * Protobuf enum {@code - * google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} + * Protobuf enum {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} */ - public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { + public enum InterfaceType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified value.
        * 
@@ -360,8 +301,6 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { */ INTERFACE_TYPE_UNSPECIFIED(0), /** - * - * *
        * Bond interface type.
        * 
@@ -370,8 +309,6 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { */ BOND(1), /** - * - * *
        * NIC interface type.
        * 
@@ -383,8 +320,6 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified value.
        * 
@@ -393,8 +328,6 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERFACE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Bond interface type.
        * 
@@ -403,8 +336,6 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BOND_VALUE = 1; /** - * - * *
        * NIC interface type.
        * 
@@ -413,6 +344,7 @@ public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NIC_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -437,46 +369,40 @@ public static InterfaceType valueOf(int value) { */ public static InterfaceType forNumber(int value) { switch (value) { - case 0: - return INTERFACE_TYPE_UNSPECIFIED; - case 1: - return BOND; - case 2: - return NIC; - default: - return null; + case 0: return INTERFACE_TYPE_UNSPECIFIED; + case 1: return BOND; + case 2: return NIC; + 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< + InterfaceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InterfaceType findValueByNumber(int number) { + return InterfaceType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InterfaceType findValueByNumber(int number) { - return InterfaceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDescriptor().getEnumTypes().get(0); } private static final InterfaceType[] VALUES = values(); @@ -484,7 +410,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static InterfaceType 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; @@ -504,8 +431,6 @@ private InterfaceType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -515,7 +440,6 @@ private InterfaceType(int value) {
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -524,15 +448,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; } } /** - * - * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -542,15 +465,16 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @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 { @@ -561,61 +485,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
      * Interface type.
      * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Interface type.
      * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The type. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType - getType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType - result = - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.valueOf(type_); - return result == null - ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; } public static final int REQUIRED_FIELD_NUMBER = 3; private boolean required_; /** - * - * *
      * If true, interface must have network connected.
      * 
* * bool required = 3; - * * @return The required. */ @java.lang.Override @@ -624,7 +525,6 @@ public boolean getRequired() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,14 +536,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ - != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.INTERFACE_TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (required_ != false) { @@ -661,14 +559,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ - != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.INTERFACE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (required_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, required_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, required_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -678,19 +575,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.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = - (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (type_ != other.type_) return false; - if (getRequired() != other.getRequired()) return false; + if (getRequired() + != other.getRequired()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -707,107 +603,95 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequired()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -817,51 +701,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Logical interface.
      * 
* - * Protobuf type {@code - * google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} + * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - .class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); } - // Construct using - // com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() + // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -875,22 +752,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface build() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = - buildPartial(); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -898,10 +772,8 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - buildPartial() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = - new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface buildPartial() { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); result.name_ = name_; result.type_ = type_; result.required_ = required_; @@ -913,55 +785,46 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) other); + if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { - if (other - == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { + if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -987,14 +850,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = - null; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1006,8 +866,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -1017,13 +875,13 @@ public Builder mergeFrom(
        * 
* * string name = 1; - * * @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; @@ -1032,8 +890,6 @@ public java.lang.String getName() { } } /** - * - * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -1043,14 +899,15 @@ public java.lang.String getName() {
        * 
* * string name = 1; - * * @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 { @@ -1058,8 +915,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -1069,22 +924,20 @@ public com.google.protobuf.ByteString getNameBytes() {
        * 
* * string name = 1; - * * @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; } /** - * - * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -1094,18 +947,15 @@ public Builder setName(java.lang.String value) {
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -1115,16 +965,16 @@ public Builder clearName() {
        * 
* * string name = 1; - * * @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; @@ -1132,124 +982,85 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
        * Interface type.
        * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Interface type.
        * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Interface type.
        * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return The type. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType - getType() { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType - result = - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.valueOf(type_); - return result == null - ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .InterfaceType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); + return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; } /** - * - * *
        * Interface type.
        * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType - value) { + public Builder setType(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Interface type.
        * 
* - * - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; - * - * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean required_; + private boolean required_ ; /** - * - * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; - * * @return The required. */ @java.lang.Override @@ -1257,41 +1068,34 @@ public boolean getRequired() { return required_; } /** - * - * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; - * * @param value The required to set. * @return This builder for chaining. */ public Builder setRequired(boolean value) { - + required_ = value; onChanged(); return this; } /** - * - * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; - * * @return This builder for chaining. */ public Builder clearRequired() { - + required_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1304,34 +1108,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) - private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate - .LogicalInterface - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1343,17 +1143,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1362,7 +1160,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1371,15 +1168,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; } } /** - * - * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1388,15 +1184,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1407,42 +1204,34 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int APPLICABLE_INSTANCE_TYPES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList applicableInstanceTypes_; /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @return A list containing the applicableInstanceTypes. */ - public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList() { + public com.google.protobuf.ProtocolStringList + getApplicableInstanceTypesList() { return applicableInstanceTypes_; } /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @return The count of applicableInstanceTypes. */ public int getApplicableInstanceTypesCount() { return applicableInstanceTypes_.size(); } /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ @@ -1450,110 +1239,80 @@ public java.lang.String getApplicableInstanceTypes(int index) { return applicableInstanceTypes_.get(index); } /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - public com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index) { + public com.google.protobuf.ByteString + getApplicableInstanceTypesBytes(int index) { return applicableInstanceTypes_.getByteString(index); } public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 3; - private java.util.List< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> - logicalInterfaces_; + private java.util.List logicalInterfaces_; /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ @java.lang.Override - public java.util.List< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> - getLogicalInterfacesList() { + public java.util.List getLogicalInterfacesList() { return logicalInterfaces_; } /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + public java.util.List getLogicalInterfacesOrBuilderList() { return logicalInterfaces_; } /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ @java.lang.Override public int getLogicalInterfacesCount() { return logicalInterfaces_.size(); } /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - getLogicalInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { return logicalInterfaces_.get(index); } /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder - getLogicalInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { return logicalInterfaces_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1565,13 +1324,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < applicableInstanceTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, applicableInstanceTypes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicableInstanceTypes_.getRaw(i)); } for (int i = 0; i < logicalInterfaces_.size(); i++) { output.writeMessage(3, logicalInterfaces_.get(i)); @@ -1597,8 +1356,8 @@ public int getSerializedSize() { size += 1 * getApplicableInstanceTypesList().size(); } for (int i = 0; i < logicalInterfaces_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, logicalInterfaces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, logicalInterfaces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1608,18 +1367,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.baremetalsolution.v2.ServerNetworkTemplate)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = - (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; - if (!getName().equals(other.getName())) return false; - if (!getApplicableInstanceTypesList().equals(other.getApplicableInstanceTypesList())) - return false; - if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getApplicableInstanceTypesList() + .equals(other.getApplicableInstanceTypesList())) return false; + if (!getLogicalInterfacesList() + .equals(other.getLogicalInterfacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1647,127 +1407,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Network template.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) com.google.cloud.baremetalsolution.v2.ServerNetworkTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.newBuilder() @@ -1775,17 +1525,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) { getLogicalInterfacesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1803,9 +1553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override @@ -1824,8 +1574,7 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = - new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1850,39 +1599,38 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate)other); } else { super.mergeFrom(other); return this; @@ -1890,8 +1638,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other) { - if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1924,10 +1671,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemp logicalInterfacesBuilder_ = null; logicalInterfaces_ = other.logicalInterfaces_; bitField0_ = (bitField0_ & ~0x00000002); - logicalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogicalInterfacesFieldBuilder() - : null; + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogicalInterfacesFieldBuilder() : null; } else { logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); } @@ -1952,8 +1698,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1962,13 +1707,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1977,13 +1719,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1992,8 +1734,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -2002,14 +1742,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2017,8 +1758,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -2027,22 +1766,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -2051,18 +1788,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -2071,68 +1805,57 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList applicableInstanceTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureApplicableInstanceTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - applicableInstanceTypes_ = - new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); + applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @return A list containing the applicableInstanceTypes. */ - public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList() { + public com.google.protobuf.ProtocolStringList + getApplicableInstanceTypesList() { return applicableInstanceTypes_.getUnmodifiableView(); } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @return The count of applicableInstanceTypes. */ public int getApplicableInstanceTypesCount() { return applicableInstanceTypes_.size(); } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ @@ -2140,90 +1863,80 @@ public java.lang.String getApplicableInstanceTypes(int index) { return applicableInstanceTypes_.get(index); } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - public com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index) { + public com.google.protobuf.ByteString + getApplicableInstanceTypesBytes(int index) { return applicableInstanceTypes_.getByteString(index); } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param index The index to set the value at. * @param value The applicableInstanceTypes to set. * @return This builder for chaining. */ - public Builder setApplicableInstanceTypes(int index, java.lang.String value) { + public Builder setApplicableInstanceTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureApplicableInstanceTypesIsMutable(); + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param value The applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addApplicableInstanceTypes(java.lang.String value) { + public Builder addApplicableInstanceTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureApplicableInstanceTypesIsMutable(); + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.add(value); onChanged(); return this; } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param values The applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addAllApplicableInstanceTypes(java.lang.Iterable values) { + public Builder addAllApplicableInstanceTypes( + java.lang.Iterable values) { ensureApplicableInstanceTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicableInstanceTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, applicableInstanceTypes_); onChanged(); return this; } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @return This builder for chaining. */ public Builder clearApplicableInstanceTypes() { @@ -2233,62 +1946,46 @@ public Builder clearApplicableInstanceTypes() { return this; } /** - * - * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; - * * @param value The bytes of the applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addApplicableInstanceTypesBytes(com.google.protobuf.ByteString value) { + public Builder addApplicableInstanceTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.add(value); onChanged(); return this; } - private java.util.List< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> - logicalInterfaces_ = java.util.Collections.emptyList(); - + private java.util.List logicalInterfaces_ = + java.util.Collections.emptyList(); private void ensureLogicalInterfacesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - logicalInterfaces_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface>( - logicalInterfaces_); + logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> - logicalInterfacesBuilder_; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public java.util.List< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> - getLogicalInterfacesList() { + public java.util.List getLogicalInterfacesList() { if (logicalInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalInterfaces_); } else { @@ -2296,15 +1993,11 @@ private void ensureLogicalInterfacesIsMutable() { } } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public int getLogicalInterfacesCount() { if (logicalInterfacesBuilder_ == null) { @@ -2314,18 +2007,13 @@ public int getLogicalInterfacesCount() { } } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - getLogicalInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { return logicalInterfaces_.get(index); } else { @@ -2333,19 +2021,14 @@ public int getLogicalInterfacesCount() { } } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder setLogicalInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2359,20 +2042,14 @@ public Builder setLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder setLogicalInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.set(index, builderForValue.build()); @@ -2383,18 +2060,13 @@ public Builder setLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public Builder addLogicalInterfaces( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2408,19 +2080,14 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder addLogicalInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2434,19 +2101,14 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder addLogicalInterfaces( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - builderForValue) { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.add(builderForValue.build()); @@ -2457,20 +2119,14 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder addLogicalInterfaces( - int index, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.add(index, builderForValue.build()); @@ -2481,24 +2137,18 @@ public Builder addLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder addAllLogicalInterfaces( - java.lang.Iterable< - ? extends - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> - values) { + java.lang.Iterable values) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalInterfaces_); onChanged(); } else { logicalInterfacesBuilder_.addAllMessages(values); @@ -2506,15 +2156,11 @@ public Builder addAllLogicalInterfaces( return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder clearLogicalInterfaces() { if (logicalInterfacesBuilder_ == null) { @@ -2527,15 +2173,11 @@ public Builder clearLogicalInterfaces() { return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ public Builder removeLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -2548,55 +2190,39 @@ public Builder removeLogicalInterfaces(int index) { return this; } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - getLogicalInterfacesBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder getLogicalInterfacesBuilder( + int index) { return getLogicalInterfacesFieldBuilder().getBuilder(index); } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder - getLogicalInterfacesOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index) { if (logicalInterfacesBuilder_ == null) { - return logicalInterfaces_.get(index); - } else { + return logicalInterfaces_.get(index); } else { return logicalInterfacesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate - .LogicalInterfaceOrBuilder> - getLogicalInterfacesOrBuilderList() { + public java.util.List + getLogicalInterfacesOrBuilderList() { if (logicalInterfacesBuilder_ != null) { return logicalInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -2604,72 +2230,45 @@ public Builder removeLogicalInterfaces(int index) { } } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - addLogicalInterfacesBuilder() { - return getLogicalInterfacesFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder - addLogicalInterfacesBuilder(int index) { - return getLogicalInterfacesFieldBuilder() - .addBuilder( - index, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder( + int index) { + return getLogicalInterfacesFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); } /** - * - * *
      * Logical interfaces.
      * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - public java.util.List< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder> - getLogicalInterfacesBuilderList() { + public java.util.List + getLogicalInterfacesBuilderList() { return getLogicalInterfacesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesFieldBuilder() { if (logicalInterfacesBuilder_ == null) { - logicalInterfacesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface - .Builder, - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate - .LogicalInterfaceOrBuilder>( + logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder>( logicalInterfaces_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2678,9 +2277,9 @@ public Builder removeLogicalInterfaces(int index) { } return logicalInterfacesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2690,12 +2289,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(); } @@ -2704,16 +2303,16 @@ public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServerNetworkTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerNetworkTemplate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerNetworkTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerNetworkTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2728,4 +2327,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java similarity index 61% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java index f038bd7..7c1339a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ServerNetworkTemplateOrBuilder - extends +public interface ServerNetworkTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -34,13 +16,10 @@ public interface ServerNetworkTemplateOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -49,126 +28,93 @@ public interface ServerNetworkTemplateOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @return A list containing the applicableInstanceTypes. */ - java.util.List getApplicableInstanceTypesList(); + java.util.List + getApplicableInstanceTypesList(); /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @return The count of applicableInstanceTypes. */ int getApplicableInstanceTypesCount(); /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ java.lang.String getApplicableInstanceTypes(int index); /** - * - * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; - * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index); + com.google.protobuf.ByteString + getApplicableInstanceTypesBytes(int index); /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - java.util.List + java.util.List getLogicalInterfacesList(); /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces( - int index); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index); /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ int getLogicalInterfacesCount(); /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - java.util.List< - ? extends - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + java.util.List getLogicalInterfacesOrBuilderList(); /** - * - * *
    * Logical interfaces.
    * 
* - * - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; - * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder - getLogicalInterfacesOrBuilder(int index); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( + int index); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java similarity index 65% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java index bde5537..693c5f0 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message requesting to start a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} */ -public final class StartInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) StartInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartInstanceRequest.newBuilder() to construct. private StartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StartInstanceRequest( 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,41 +73,34 @@ private StartInstanceRequest( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = - (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message requesting to start a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) com.google.cloud.baremetalsolution.v2.StartInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.StartInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java new file mode 100644 index 0000000..51f49d0 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java similarity index 66% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java index c708c7e..5c0a6d8 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message from starting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} */ -public final class StartInstanceResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartInstanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) StartInstanceResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartInstanceResponse.newBuilder() to construct. private StartInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StartInstanceResponse() {} + private StartInstanceResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private StartInstanceResponse( 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 StartInstanceResponse( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.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.baremetalsolution.v2.StartInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = - (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,127 +141,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message from starting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) com.google.cloud.baremetalsolution.v2.StartInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceResponse.newBuilder() @@ -288,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(); @@ -304,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override @@ -325,8 +297,7 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = - new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); onBuilt(); return result; } @@ -335,39 +306,38 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse)other); } else { super.mergeFrom(other); return this; @@ -375,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -406,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); } @@ -418,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.StartInstanceResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(); } @@ -432,16 +400,16 @@ public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -456,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java new file mode 100644 index 0000000..d1a3887 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java similarity index 64% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java index ca5b555..664e09a 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message requesting to stop a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} */ -public final class StopInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) StopInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopInstanceRequest.newBuilder() to construct. private StopInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StopInstanceRequest( 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,41 +73,34 @@ private StopInstanceRequest( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the resource.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = - (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message requesting to stop a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) com.google.cloud.baremetalsolution.v2.StopInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * string name = 1 [(.google.api.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,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the resource.
      * 
* - * - * 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. Name of the resource.
      * 
* - * - * string 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. Name of the resource.
      * 
* - * - * 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.StopInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java new file mode 100644 index 0000000..ba9234c --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the resource.
+   * 
+ * + * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java similarity index 67% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java index 182ad22..ef520a4 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Response message from stopping a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} */ -public final class StopInstanceResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopInstanceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) StopInstanceResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopInstanceResponse.newBuilder() to construct. private StopInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StopInstanceResponse() {} + private StopInstanceResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private StopInstanceResponse( 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 StopInstanceResponse( } 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.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.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.baremetalsolution.v2.StopInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = - (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,127 +141,117 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message from stopping a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) com.google.cloud.baremetalsolution.v2.StopInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceResponse.newBuilder() @@ -288,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(); @@ -304,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override @@ -325,8 +297,7 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = - new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); onBuilt(); return result; } @@ -335,39 +306,38 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse)other); } else { super.mergeFrom(other); return this; @@ -375,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -406,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); } @@ -418,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.StopInstanceResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(); } @@ -432,16 +400,16 @@ public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -456,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java new file mode 100644 index 0000000..cc35d1f --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java similarity index 68% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java index 867bf65..19dde2e 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * Message requesting to updating a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateInstanceRequest() {} + private UpdateInstanceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateInstanceRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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 UpdateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Instance instance_; /** - * - * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -157,38 +129,27 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance getInstance() { - return instance_ == null - ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { @@ -198,8 +159,6 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -209,7 +168,6 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -217,8 +175,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -228,7 +184,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -236,8 +191,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -254,7 +207,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -266,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 (instance_ != null) {
       output.writeMessage(1, getInstance());
     }
@@ -283,10 +236,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (instance_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getInstance());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -296,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.baremetalsolution.v2.UpdateInstanceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other =
-        (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj;
 
     if (hasInstance() != other.hasInstance()) return false;
     if (hasInstance()) {
-      if (!getInstance().equals(other.getInstance())) return false;
+      if (!getInstance()
+          .equals(other.getInstance())) 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;
@@ -337,127 +293,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Message requesting to updating a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) com.google.cloud.baremetalsolution.v2.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.newBuilder() @@ -465,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(); @@ -493,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -514,8 +461,7 @@ public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = - new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); if (instanceBuilder_ == null) { result.instance_ = instance_; } else { @@ -534,39 +480,38 @@ public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -574,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } @@ -601,8 +545,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,64 +557,45 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.baremetalsolution.v2.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) { if (instanceBuilder_ == null) { @@ -687,17 +611,13 @@ public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) return this; } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance( com.google.cloud.baremetalsolution.v2.Instance.Builder builderForValue) { @@ -711,25 +631,19 @@ public Builder setInstance( return this; } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -741,17 +655,13 @@ public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance valu return this; } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -765,70 +675,54 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, - com.google.cloud.baremetalsolution.v2.Instance.Builder, - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); instance_ = null; } return instanceBuilder_; @@ -836,13 +730,8 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil 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_; /** - * - * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -852,15 +741,12 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -870,21 +756,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -909,8 +790,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -921,7 +800,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -932,8 +812,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -948,7 +826,7 @@ 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;
         }
@@ -960,8 +838,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -984,8 +860,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -997,13 +871,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -1018,14 +890,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -1037,24 +906,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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> 
         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);
     }
 
@@ -1064,12 +930,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest();
   }
@@ -1078,16 +944,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateInstanceRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateInstanceRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateInstanceRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateInstanceRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1102,4 +968,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
similarity index 65%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
index 90f5ce9..61fb3c1 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.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/baremetalsolution/v2/instance.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateInstanceRequestOrBuilder
-    extends
+public interface UpdateInstanceRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.baremetalsolution.v2.Instance getInstance(); /** - * - * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder(); /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -82,13 +50,10 @@ public interface UpdateInstanceRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -98,13 +63,10 @@ public interface UpdateInstanceRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The currently supported fields are:
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
similarity index 67%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
index 70529ea..448e185 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
- *
- *
  * 
  * Message requesting to updating a network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} */ -public final class UpdateNetworkRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateNetworkRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) UpdateNetworkRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateNetworkRequest.newBuilder() to construct. private UpdateNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateNetworkRequest() {} + private UpdateNetworkRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateNetworkRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; - if (network_ != null) { - subBuilder = network_.toBuilder(); - } - network_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(network_); - network_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = 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 UpdateNetworkRequest( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Network network_; /** - * - * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the network field is set. */ @java.lang.Override @@ -157,38 +129,27 @@ public boolean hasNetwork() { return network_ != null; } /** - * - * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The network. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network getNetwork() { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } /** - * - * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { @@ -198,8 +159,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -207,7 +166,6 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -215,8 +173,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -224,7 +180,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -232,8 +187,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -248,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -260,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 (network_ != null) {
       output.writeMessage(1, getNetwork());
     }
@@ -277,10 +230,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (network_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetwork());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getNetwork());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -290,21 +245,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.baremetalsolution.v2.UpdateNetworkRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other =
-        (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj;
 
     if (hasNetwork() != other.hasNetwork()) return false;
     if (hasNetwork()) {
-      if (!getNetwork().equals(other.getNetwork())) return false;
+      if (!getNetwork()
+          .equals(other.getNetwork())) 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;
@@ -331,127 +287,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Message requesting to updating a network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) com.google.cloud.baremetalsolution.v2.UpdateNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.newBuilder() @@ -459,15 +405,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 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override @@ -508,8 +455,7 @@ public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = - new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); if (networkBuilder_ == null) { result.network_ = network_; } else { @@ -528,39 +474,38 @@ public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest)other); } else { super.mergeFrom(other); return this; @@ -568,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) return this; if (other.hasNetwork()) { mergeNetwork(other.getNetwork()); } @@ -595,8 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,64 +551,45 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Network network_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> - networkBuilder_; + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The network. */ public com.google.cloud.baremetalsolution.v2.Network getNetwork() { if (networkBuilder_ == null) { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } else { return networkBuilder_.getMessage(); } } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { if (networkBuilder_ == null) { @@ -681,17 +605,13 @@ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { return this; } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNetwork( com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { @@ -705,25 +625,19 @@ public Builder setNetwork( return this; } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) { if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); } else { network_ = value; } @@ -735,17 +649,13 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNetwork() { if (networkBuilder_ == null) { @@ -759,70 +669,54 @@ public Builder clearNetwork() { return this; } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilder(); } else { - return network_ == null - ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() - : network_; + return network_ == null ? + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; } } /** - * - * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { - networkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, - com.google.cloud.baremetalsolution.v2.Network.Builder, - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - getNetwork(), getParentForChildren(), isClean()); + networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), + getParentForChildren(), + isClean()); network_ = null; } return networkBuilder_; @@ -830,13 +724,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde 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_; /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -844,15 +733,12 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -860,21 +746,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -897,8 +778,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -907,7 +786,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -918,8 +798,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -932,7 +810,7 @@ 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 +822,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -966,8 +842,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -977,13 +851,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -996,14 +868,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1013,24 +882,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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> 
         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);
     }
 
@@ -1040,12 +906,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest();
   }
@@ -1054,16 +920,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateNetworkRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateNetworkRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateNetworkRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateNetworkRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1078,4 +944,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
similarity index 64%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
index fa34464..c43d1e2 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateNetworkRequestOrBuilder
-    extends
+public interface UpdateNetworkRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the network field is set. */ boolean hasNetwork(); /** - * - * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The network. */ com.google.cloud.baremetalsolution.v2.Network getNetwork(); /** - * - * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -80,13 +48,10 @@ public interface UpdateNetworkRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -94,13 +59,10 @@ public interface UpdateNetworkRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
similarity index 67%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
index eef8a54..81f29d7 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.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/baremetalsolution/v2/nfs_share.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
- *
- *
  * 
  * Message requesting to updating a NFS share.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} */ -public final class UpdateNfsShareRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateNfsShareRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) UpdateNfsShareRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateNfsShareRequest.newBuilder() to construct. private UpdateNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateNfsShareRequest() {} + private UpdateNfsShareRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateNfsShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateNfsShareRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateNfsShareRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; - if (nfsShare_ != null) { - subBuilder = nfsShare_.toBuilder(); - } - nfsShare_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nfsShare_); - nfsShare_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; + if (nfsShare_ != null) { + subBuilder = nfsShare_.toBuilder(); + } + nfsShare_ = input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nfsShare_); + nfsShare_ = 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 UpdateNfsShareRequest( } 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.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); } public static final int NFS_SHARE_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; /** - * - * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nfsShare field is set. */ @java.lang.Override @@ -157,38 +129,27 @@ public boolean hasNfsShare() { return nfsShare_ != null; } /** - * - * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The nfsShare. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { - return nfsShare_ == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() - : nfsShare_; + return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; } /** - * - * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { @@ -198,8 +159,6 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -207,7 +166,6 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -215,8 +173,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -224,7 +180,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -232,8 +187,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -248,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -260,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 (nfsShare_ != null) {
       output.writeMessage(1, getNfsShare());
     }
@@ -277,10 +230,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (nfsShare_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNfsShare());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getNfsShare());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -290,21 +245,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.baremetalsolution.v2.UpdateNfsShareRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other =
-        (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj;
 
     if (hasNfsShare() != other.hasNfsShare()) return false;
     if (hasNfsShare()) {
-      if (!getNfsShare().equals(other.getNfsShare())) return false;
+      if (!getNfsShare()
+          .equals(other.getNfsShare())) 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;
@@ -331,127 +287,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Message requesting to updating a NFS share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.newBuilder() @@ -459,15 +405,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 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override @@ -508,8 +455,7 @@ public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = - new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); if (nfsShareBuilder_ == null) { result.nfsShare_ = nfsShare_; } else { @@ -528,39 +474,38 @@ public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)other); } else { super.mergeFrom(other); return this; @@ -568,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) return this; if (other.hasNfsShare()) { mergeNfsShare(other.getNfsShare()); } @@ -595,8 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,64 +551,45 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> - nfsShareBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsShareBuilder_; /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nfsShare field is set. */ public boolean hasNfsShare() { return nfsShareBuilder_ != null || nfsShare_ != null; } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The nfsShare. */ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { if (nfsShareBuilder_ == null) { - return nfsShare_ == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() - : nfsShare_; + return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; } else { return nfsShareBuilder_.getMessage(); } } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsShareBuilder_ == null) { @@ -681,17 +605,13 @@ public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) return this; } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNfsShare( com.google.cloud.baremetalsolution.v2.NfsShare.Builder builderForValue) { @@ -705,25 +625,19 @@ public Builder setNfsShare( return this; } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsShareBuilder_ == null) { if (nfsShare_ != null) { nfsShare_ = - com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_).mergeFrom(value).buildPartial(); } else { nfsShare_ = value; } @@ -735,17 +649,13 @@ public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare valu return this; } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNfsShare() { if (nfsShareBuilder_ == null) { @@ -759,70 +669,54 @@ public Builder clearNfsShare() { return this; } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsShareBuilder() { - + onChanged(); return getNfsShareFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { if (nfsShareBuilder_ != null) { return nfsShareBuilder_.getMessageOrBuilder(); } else { - return nfsShare_ == null - ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() - : nfsShare_; + return nfsShare_ == null ? + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; } } /** - * - * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> getNfsShareFieldBuilder() { if (nfsShareBuilder_ == null) { - nfsShareBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, - com.google.cloud.baremetalsolution.v2.NfsShare.Builder, - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( - getNfsShare(), getParentForChildren(), isClean()); + nfsShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + getNfsShare(), + getParentForChildren(), + isClean()); nfsShare_ = null; } return nfsShareBuilder_; @@ -830,13 +724,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil 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_; /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -844,15 +733,12 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -860,21 +746,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -897,8 +778,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -907,7 +786,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -918,8 +798,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -932,7 +810,7 @@ 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 +822,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -966,8 +842,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -977,13 +851,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -996,14 +868,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1013,24 +882,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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> 
         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);
     }
 
@@ -1040,12 +906,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest();
   }
@@ -1054,16 +920,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateNfsShareRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateNfsShareRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateNfsShareRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateNfsShareRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1078,4 +944,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
similarity index 64%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
index 64a6b99..76b8f82 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.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/baremetalsolution/v2/nfs_share.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateNfsShareRequestOrBuilder
-    extends
+public interface UpdateNfsShareRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nfsShare field is set. */ boolean hasNfsShare(); /** - * - * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The nfsShare. */ com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(); /** - * - * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -80,13 +48,10 @@ public interface UpdateNfsShareRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -94,13 +59,10 @@ public interface UpdateNfsShareRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
similarity index 68%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
index 38d881f..53ee6b0 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.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/baremetalsolution/v2/volume.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
- *
- *
  * 
  * Message for updating a volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ -public final class UpdateVolumeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateVolumeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) UpdateVolumeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateVolumeRequest.newBuilder() to construct. private UpdateVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateVolumeRequest() {} + private UpdateVolumeRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateVolumeRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; - if (volume_ != null) { - subBuilder = volume_.toBuilder(); - } - volume_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(volume_); - volume_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; + if (volume_ != null) { + subBuilder = volume_.toBuilder(); + } + volume_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(volume_); + volume_ = 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 UpdateVolumeRequest( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Volume volume_; /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the volume field is set. */ @java.lang.Override @@ -157,38 +129,27 @@ public boolean hasVolume() { return volume_ != null; } /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The volume. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume getVolume() { - return volume_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() - : volume_; + return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; } /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { @@ -198,8 +159,6 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -211,7 +170,6 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -219,8 +177,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -232,7 +188,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -240,8 +195,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -260,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -272,7 +224,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (volume_ != null) {
       output.writeMessage(1, getVolume());
     }
@@ -289,10 +242,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (volume_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVolume());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getVolume());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -302,21 +257,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other =
-        (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj;
 
     if (hasVolume() != other.hasVolume()) return false;
     if (hasVolume()) {
-      if (!getVolume().equals(other.getVolume())) return false;
+      if (!getVolume()
+          .equals(other.getVolume())) 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;
@@ -343,127 +299,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Message for updating a volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) com.google.cloud.baremetalsolution.v2.UpdateVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.newBuilder() @@ -471,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override @@ -520,8 +467,7 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = - new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); if (volumeBuilder_ == null) { result.volume_ = volume_; } else { @@ -540,39 +486,38 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest)other); } else { super.mergeFrom(other); return this; @@ -580,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) return this; if (other.hasVolume()) { mergeVolume(other.getVolume()); } @@ -607,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,64 +563,45 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Volume volume_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> - volumeBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumeBuilder_; /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the volume field is set. */ public boolean hasVolume() { return volumeBuilder_ != null || volume_ != null; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The volume. */ public com.google.cloud.baremetalsolution.v2.Volume getVolume() { if (volumeBuilder_ == null) { - return volume_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() - : volume_; + return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; } else { return volumeBuilder_.getMessage(); } } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { @@ -693,19 +617,16 @@ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { + public Builder setVolume( + com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { if (volumeBuilder_ == null) { volume_ = builderForValue.build(); onChanged(); @@ -716,25 +637,19 @@ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume.Builder bu return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { if (volume_ != null) { volume_ = - com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_).mergeFrom(value).buildPartial(); } else { volume_ = value; } @@ -746,17 +661,13 @@ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearVolume() { if (volumeBuilder_ == null) { @@ -770,70 +681,54 @@ public Builder clearVolume() { return this; } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumeBuilder() { - + onChanged(); return getVolumeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { if (volumeBuilder_ != null) { return volumeBuilder_.getMessageOrBuilder(); } else { - return volume_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() - : volume_; + return volume_ == null ? + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; } } /** - * - * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumeFieldBuilder() { if (volumeBuilder_ == null) { - volumeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, - com.google.cloud.baremetalsolution.v2.Volume.Builder, - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - getVolume(), getParentForChildren(), isClean()); + volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + getVolume(), + getParentForChildren(), + isClean()); volume_ = null; } return volumeBuilder_; @@ -841,13 +736,8 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( 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_; /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -859,15 +749,12 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -879,21 +766,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -920,8 +802,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -934,7 +814,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -945,8 +826,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -963,7 +842,7 @@ 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;
         }
@@ -975,8 +854,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1001,8 +878,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1016,13 +891,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1039,14 +912,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -1060,24 +930,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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> 
         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);
     }
 
@@ -1087,12 +954,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest();
   }
@@ -1101,16 +968,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateVolumeRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateVolumeRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateVolumeRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateVolumeRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1125,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
similarity index 69%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
index a1d2271..345ca45 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.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/baremetalsolution/v2/volume.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateVolumeRequestOrBuilder
-    extends
+public interface UpdateVolumeRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the volume field is set. */ boolean hasVolume(); /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The volume. */ com.google.cloud.baremetalsolution.v2.Volume getVolume(); /** - * - * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -84,13 +52,10 @@ public interface UpdateVolumeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -102,13 +67,10 @@ public interface UpdateVolumeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
similarity index 72%
rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
index e47ad61..4209331 100644
--- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
+++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
- *
- *
  * 
  * A network VRF.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ -public final class VRF extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VRF extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF) VRFOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VRF.newBuilder() to construct. private VRF(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VRF() { name_ = ""; state_ = 0; @@ -45,15 +27,16 @@ private VRF() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VRF(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VRF( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,58 +56,47 @@ private VRF( 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 40: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 50: { + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; + if (qosPolicy_ != null) { + subBuilder = qosPolicy_.toBuilder(); } - case 50: - { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; - if (qosPolicy_ != null) { - subBuilder = qosPolicy_.toBuilder(); - } - qosPolicy_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qosPolicy_); - qosPolicy_ = subBuilder.buildPartial(); - } - - break; + qosPolicy_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qosPolicy_); + qosPolicy_ = subBuilder.buildPartial(); } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = - new java.util.ArrayList< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment>(); - mutable_bitField0_ |= 0x00000001; - } - vlanAttachments_.add( - input.readMessage( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), - extensionRegistry)); - break; + + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vlanAttachments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + vlanAttachments_.add( + input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -132,7 +104,8 @@ private VRF( } 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)) { vlanAttachments_ = java.util.Collections.unmodifiableList(vlanAttachments_); @@ -141,35 +114,29 @@ private VRF( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, - com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } /** - * - * *
    * The possible states for this VRF.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.VRF.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The unspecified state.
      * 
@@ -178,8 +145,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The vrf is provisioning.
      * 
@@ -188,8 +153,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PROVISIONING(1), /** - * - * *
      * The vrf is provisioned.
      * 
@@ -201,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The unspecified state.
      * 
@@ -211,8 +172,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The vrf is provisioning.
      * 
@@ -221,8 +180,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONING_VALUE = 1; /** - * - * *
      * The vrf is provisioned.
      * 
@@ -231,6 +188,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROVISIONED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -255,49 +213,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return PROVISIONED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return PROVISIONING; + case 2: return PROVISIONED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.VRF.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -314,56 +272,51 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.VRF.State) } - public interface QosPolicyOrBuilder - extends + public interface QosPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; - * * @return The bandwidthGbps. */ double getBandwidthGbps(); } /** - * - * *
    * QOS policy parameters.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class QosPolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class QosPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) QosPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QosPolicy.newBuilder() to construct. private QosPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private QosPolicy() {} + private QosPolicy() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QosPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private QosPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -382,18 +335,18 @@ private QosPolicy( case 0: done = true; break; - case 9: - { - bandwidthGbps_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 9: { + + bandwidthGbps_ = input.readDouble(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -401,39 +354,34 @@ private QosPolicy( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } public static final int BANDWIDTH_GBPS_FIELD_NUMBER = 1; private double bandwidthGbps_; /** - * - * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; - * * @return The bandwidthGbps. */ @java.lang.Override @@ -442,7 +390,6 @@ public double getBandwidthGbps() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -454,7 +401,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 (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { output.writeDouble(1, bandwidthGbps_); } @@ -468,7 +416,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, bandwidthGbps_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, bandwidthGbps_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -478,16 +427,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.baremetalsolution.v2.VRF.QosPolicy)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = - (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; if (java.lang.Double.doubleToLongBits(getBandwidthGbps()) - != java.lang.Double.doubleToLongBits(other.getBandwidthGbps())) return false; + != java.lang.Double.doubleToLongBits( + other.getBandwidthGbps())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -500,104 +449,95 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BANDWIDTH_GBPS_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBandwidthGbps())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBandwidthGbps())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -607,32 +547,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * QOS policy parameters.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder() @@ -640,15 +575,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(); @@ -658,9 +594,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override @@ -679,8 +615,7 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = - new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); result.bandwidthGbps_ = bandwidthGbps_; onBuilt(); return result; @@ -690,41 +625,38 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy)other); } else { super.mergeFrom(other); return this; @@ -732,8 +664,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) return this; if (other.getBandwidthGbps() != 0D) { setBandwidthGbps(other.getBandwidthGbps()); } @@ -756,8 +687,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -767,16 +697,13 @@ public Builder mergeFrom( return this; } - private double bandwidthGbps_; + private double bandwidthGbps_ ; /** - * - * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; - * * @return The bandwidthGbps. */ @java.lang.Override @@ -784,41 +711,34 @@ public double getBandwidthGbps() { return bandwidthGbps_; } /** - * - * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; - * * @param value The bandwidthGbps to set. * @return This builder for chaining. */ public Builder setBandwidthGbps(double value) { - + bandwidthGbps_ = value; onChanged(); return this; } /** - * - * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; - * * @return This builder for chaining. */ public Builder clearBandwidthGbps() { - + bandwidthGbps_ = 0D; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -831,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) private static final com.google.cloud.baremetalsolution.v2.VRF.QosPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(); } @@ -845,16 +765,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QosPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QosPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QosPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QosPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,95 +789,79 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface VlanAttachmentOrBuilder - extends + public interface VlanAttachmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; - * * @return The peerVlanId. */ long getPeerVlanId(); /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The peerIp. */ java.lang.String getPeerIp(); /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The bytes for peerIp. */ - com.google.protobuf.ByteString getPeerIpBytes(); + com.google.protobuf.ByteString + getPeerIpBytes(); /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The routerIp. */ java.lang.String getRouterIp(); /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The bytes for routerIp. */ - com.google.protobuf.ByteString getRouterIpBytes(); + com.google.protobuf.ByteString + getRouterIpBytes(); } /** - * - * *
    * VLAN attachment details.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class VlanAttachment extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class VlanAttachment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) VlanAttachmentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VlanAttachment.newBuilder() to construct. private VlanAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VlanAttachment() { peerIp_ = ""; routerIp_ = ""; @@ -965,15 +869,16 @@ private VlanAttachment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VlanAttachment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VlanAttachment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -992,32 +897,30 @@ private VlanAttachment( case 0: done = true; break; - case 8: - { - peerVlanId_ = input.readInt64(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { - peerIp_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + peerVlanId_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - routerIp_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + peerIp_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + routerIp_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1025,39 +928,34 @@ private VlanAttachment( } 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.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } public static final int PEER_VLAN_ID_FIELD_NUMBER = 1; private long peerVlanId_; /** - * - * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; - * * @return The peerVlanId. */ @java.lang.Override @@ -1068,14 +966,11 @@ public long getPeerVlanId() { public static final int PEER_IP_FIELD_NUMBER = 2; private volatile java.lang.Object peerIp_; /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The peerIp. */ @java.lang.Override @@ -1084,29 +979,29 @@ public java.lang.String getPeerIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; } } /** - * - * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; - * * @return The bytes for peerIp. */ @java.lang.Override - public com.google.protobuf.ByteString getPeerIpBytes() { + public com.google.protobuf.ByteString + getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1117,14 +1012,11 @@ public com.google.protobuf.ByteString getPeerIpBytes() { public static final int ROUTER_IP_FIELD_NUMBER = 3; private volatile java.lang.Object routerIp_; /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The routerIp. */ @java.lang.Override @@ -1133,29 +1025,29 @@ public java.lang.String getRouterIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; } } /** - * - * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; - * * @return The bytes for routerIp. */ @java.lang.Override - public com.google.protobuf.ByteString getRouterIpBytes() { + public com.google.protobuf.ByteString + getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1164,7 +1056,6 @@ public com.google.protobuf.ByteString getRouterIpBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1176,7 +1067,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 (peerVlanId_ != 0L) { output.writeInt64(1, peerVlanId_); } @@ -1196,7 +1088,8 @@ public int getSerializedSize() { size = 0; if (peerVlanId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, peerVlanId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, peerVlanId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerIp_); @@ -1212,17 +1105,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.baremetalsolution.v2.VRF.VlanAttachment)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = - (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; - if (getPeerVlanId() != other.getPeerVlanId()) return false; - if (!getPeerIp().equals(other.getPeerIp())) return false; - if (!getRouterIp().equals(other.getRouterIp())) return false; + if (getPeerVlanId() + != other.getPeerVlanId()) return false; + if (!getPeerIp() + .equals(other.getPeerIp())) return false; + if (!getRouterIp() + .equals(other.getRouterIp())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1235,7 +1130,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PEER_VLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPeerVlanId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPeerVlanId()); hash = (37 * hash) + PEER_IP_FIELD_NUMBER; hash = (53 * hash) + getPeerIp().hashCode(); hash = (37 * hash) + ROUTER_IP_FIELD_NUMBER; @@ -1246,94 +1142,87 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1343,32 +1232,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * VLAN attachment details.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.newBuilder() @@ -1376,15 +1260,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(); @@ -1398,9 +1283,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override @@ -1419,8 +1304,7 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = - new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); result.peerVlanId_ = peerVlanId_; result.peerIp_ = peerIp_; result.routerIp_ = routerIp_; @@ -1432,41 +1316,38 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment)other); } else { super.mergeFrom(other); return this; @@ -1474,8 +1355,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) - return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) return this; if (other.getPeerVlanId() != 0L) { setPeerVlanId(other.getPeerVlanId()); } @@ -1506,8 +1386,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1517,16 +1396,13 @@ public Builder mergeFrom( return this; } - private long peerVlanId_; + private long peerVlanId_ ; /** - * - * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; - * * @return The peerVlanId. */ @java.lang.Override @@ -1534,36 +1410,30 @@ public long getPeerVlanId() { return peerVlanId_; } /** - * - * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; - * * @param value The peerVlanId to set. * @return This builder for chaining. */ public Builder setPeerVlanId(long value) { - + peerVlanId_ = value; onChanged(); return this; } /** - * - * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; - * * @return This builder for chaining. */ public Builder clearPeerVlanId() { - + peerVlanId_ = 0L; onChanged(); return this; @@ -1571,20 +1441,18 @@ public Builder clearPeerVlanId() { private java.lang.Object peerIp_ = ""; /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @return The peerIp. */ public java.lang.String getPeerIp() { java.lang.Object ref = peerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; @@ -1593,21 +1461,20 @@ public java.lang.String getPeerIp() { } } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @return The bytes for peerIp. */ - public com.google.protobuf.ByteString getPeerIpBytes() { + public com.google.protobuf.ByteString + getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1615,61 +1482,54 @@ public com.google.protobuf.ByteString getPeerIpBytes() { } } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @param value The peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIp(java.lang.String value) { + public Builder setPeerIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + peerIp_ = value; onChanged(); return this; } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @return This builder for chaining. */ public Builder clearPeerIp() { - + peerIp_ = getDefaultInstance().getPeerIp(); onChanged(); return this; } /** - * - * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; - * * @param value The bytes for peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIpBytes(com.google.protobuf.ByteString value) { + public Builder setPeerIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerIp_ = value; onChanged(); return this; @@ -1677,20 +1537,18 @@ public Builder setPeerIpBytes(com.google.protobuf.ByteString value) { private java.lang.Object routerIp_ = ""; /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @return The routerIp. */ public java.lang.String getRouterIp() { java.lang.Object ref = routerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; @@ -1699,21 +1557,20 @@ public java.lang.String getRouterIp() { } } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @return The bytes for routerIp. */ - public com.google.protobuf.ByteString getRouterIpBytes() { + public com.google.protobuf.ByteString + getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1721,66 +1578,58 @@ public com.google.protobuf.ByteString getRouterIpBytes() { } } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @param value The routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIp(java.lang.String value) { + public Builder setRouterIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + routerIp_ = value; onChanged(); return this; } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @return This builder for chaining. */ public Builder clearRouterIp() { - + routerIp_ = getDefaultInstance().getRouterIp(); onChanged(); return this; } /** - * - * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; - * * @param value The bytes for routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIpBytes(com.google.protobuf.ByteString value) { + public Builder setRouterIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routerIp_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1793,12 +1642,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) private static final com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(); } @@ -1807,16 +1656,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VlanAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VlanAttachment(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VlanAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VlanAttachment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1831,19 +1680,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1852,29 +1699,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @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 { @@ -1885,50 +1732,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRF.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = - com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } public static final int QOS_POLICY_FIELD_NUMBER = 6; private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return Whether the qosPolicy field is set. */ @java.lang.Override @@ -1936,25 +1771,18 @@ public boolean hasQosPolicy() { return qosPolicy_ != null; } /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return The qosPolicy. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { - return qosPolicy_ == null - ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() - : qosPolicy_; + return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; } /** - * - * *
    * The QOS policy applied to this VRF.
    * 
@@ -1969,81 +1797,64 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy public static final int VLAN_ATTACHMENTS_FIELD_NUMBER = 7; private java.util.List vlanAttachments_; /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override - public java.util.List - getVlanAttachmentsList() { + public java.util.List getVlanAttachmentsList() { return vlanAttachments_; } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override - public java.util.List + public java.util.List getVlanAttachmentsOrBuilderList() { return vlanAttachments_; } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override public int getVlanAttachmentsCount() { return vlanAttachments_.size(); } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { return vlanAttachments_.get(index); } /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder - getVlanAttachmentsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( + int index) { return vlanAttachments_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2055,7 +1866,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_); } @@ -2081,13 +1893,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.VRF.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, state_); } if (qosPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getQosPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getQosPolicy()); } for (int i = 0; i < vlanAttachments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, vlanAttachments_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, vlanAttachments_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2097,21 +1912,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.baremetalsolution.v2.VRF)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF other = - (com.google.cloud.baremetalsolution.v2.VRF) obj; + com.google.cloud.baremetalsolution.v2.VRF other = (com.google.cloud.baremetalsolution.v2.VRF) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasQosPolicy() != other.hasQosPolicy()) return false; if (hasQosPolicy()) { - if (!getQosPolicy().equals(other.getQosPolicy())) return false; + if (!getQosPolicy() + .equals(other.getQosPolicy())) return false; } - if (!getVlanAttachmentsList().equals(other.getVlanAttachmentsList())) return false; + if (!getVlanAttachmentsList() + .equals(other.getVlanAttachmentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2140,127 +1957,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF 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.baremetalsolution.v2.VRF parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 network VRF.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF) com.google.cloud.baremetalsolution.v2.VRFOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, - com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.newBuilder() @@ -2268,17 +2076,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) { getVlanAttachmentsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2302,9 +2110,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto - .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override @@ -2323,8 +2131,7 @@ public com.google.cloud.baremetalsolution.v2.VRF build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF result = - new com.google.cloud.baremetalsolution.v2.VRF(this); + com.google.cloud.baremetalsolution.v2.VRF result = new com.google.cloud.baremetalsolution.v2.VRF(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.state_ = state_; @@ -2350,39 +2157,38 @@ public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF)other); } else { super.mergeFrom(other); return this; @@ -2419,10 +2225,9 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF other) { vlanAttachmentsBuilder_ = null; vlanAttachments_ = other.vlanAttachments_; bitField0_ = (bitField0_ & ~0x00000001); - vlanAttachmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVlanAttachmentsFieldBuilder() - : null; + vlanAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVlanAttachmentsFieldBuilder() : null; } else { vlanAttachmentsBuilder_.addAllMessages(other.vlanAttachments_); } @@ -2456,25 +2261,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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; @@ -2483,21 +2285,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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 { @@ -2505,61 +2306,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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 name of the VRF.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the VRF.
      * 
* * string name = 1; - * * @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; @@ -2567,65 +2361,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = - com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2633,24 +2413,21 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.VRF.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2658,47 +2435,34 @@ public Builder clearState() { private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> - qosPolicyBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> qosPolicyBuilder_; /** - * - * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return Whether the qosPolicy field is set. */ public boolean hasQosPolicy() { return qosPolicyBuilder_ != null || qosPolicy_ != null; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return The qosPolicy. */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { if (qosPolicyBuilder_ == null) { - return qosPolicy_ == null - ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() - : qosPolicy_; + return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; } else { return qosPolicyBuilder_.getMessage(); } } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2719,8 +2483,6 @@ public Builder setQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2739,8 +2501,6 @@ public Builder setQosPolicy( return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2751,9 +2511,7 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic if (qosPolicyBuilder_ == null) { if (qosPolicy_ != null) { qosPolicy_ = - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_).mergeFrom(value).buildPartial(); } else { qosPolicy_ = value; } @@ -2765,8 +2523,6 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2785,8 +2541,6 @@ public Builder clearQosPolicy() { return this; } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2794,13 +2548,11 @@ public Builder clearQosPolicy() { * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder getQosPolicyBuilder() { - + onChanged(); return getQosPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2811,14 +2563,11 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy if (qosPolicyBuilder_ != null) { return qosPolicyBuilder_.getMessageOrBuilder(); } else { - return qosPolicy_ == null - ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() - : qosPolicy_; + return qosPolicy_ == null ? + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; } } /** - * - * *
      * The QOS policy applied to this VRF.
      * 
@@ -2826,52 +2575,39 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> getQosPolicyFieldBuilder() { if (qosPolicyBuilder_ == null) { - qosPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, - com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( - getQosPolicy(), getParentForChildren(), isClean()); + qosPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( + getQosPolicy(), + getParentForChildren(), + isClean()); qosPolicy_ = null; } return qosPolicyBuilder_; } - private java.util.List - vlanAttachments_ = java.util.Collections.emptyList(); - + private java.util.List vlanAttachments_ = + java.util.Collections.emptyList(); private void ensureVlanAttachmentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = - new java.util.ArrayList( - vlanAttachments_); + vlanAttachments_ = new java.util.ArrayList(vlanAttachments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> - vlanAttachmentsBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> vlanAttachmentsBuilder_; /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public java.util.List - getVlanAttachmentsList() { + public java.util.List getVlanAttachmentsList() { if (vlanAttachmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(vlanAttachments_); } else { @@ -2879,14 +2615,11 @@ private void ensureVlanAttachmentsIsMutable() { } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public int getVlanAttachmentsCount() { if (vlanAttachmentsBuilder_ == null) { @@ -2896,14 +2629,11 @@ public int getVlanAttachmentsCount() { } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -2913,14 +2643,11 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachmen } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder setVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -2937,18 +2664,14 @@ public Builder setVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder setVlanAttachments( - int index, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.set(index, builderForValue.build()); @@ -2959,17 +2682,13 @@ public Builder setVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public Builder addVlanAttachments( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { + public Builder addVlanAttachments(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { if (vlanAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2983,14 +2702,11 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -3007,14 +2723,11 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addVlanAttachments( com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { @@ -3028,18 +2741,14 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addVlanAttachments( - int index, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(index, builderForValue.build()); @@ -3050,21 +2759,18 @@ public Builder addVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder addAllVlanAttachments( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vlanAttachments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vlanAttachments_); onChanged(); } else { vlanAttachmentsBuilder_.addAllMessages(values); @@ -3072,14 +2778,11 @@ public Builder addAllVlanAttachments( return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder clearVlanAttachments() { if (vlanAttachmentsBuilder_ == null) { @@ -3092,14 +2795,11 @@ public Builder clearVlanAttachments() { return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ public Builder removeVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -3112,50 +2812,39 @@ public Builder removeVlanAttachments(int index) { return this; } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder - getVlanAttachmentsBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder getVlanAttachmentsBuilder( + int index) { return getVlanAttachmentsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder - getVlanAttachmentsOrBuilder(int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( + int index) { if (vlanAttachmentsBuilder_ == null) { - return vlanAttachments_.get(index); - } else { + return vlanAttachments_.get(index); } else { return vlanAttachmentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public java.util.List< - ? extends com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> - getVlanAttachmentsOrBuilderList() { + public java.util.List + getVlanAttachmentsOrBuilderList() { if (vlanAttachmentsBuilder_ != null) { return vlanAttachmentsBuilder_.getMessageOrBuilderList(); } else { @@ -3163,63 +2852,45 @@ public Builder removeVlanAttachments(int index) { } } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder - addVlanAttachmentsBuilder() { - return getVlanAttachmentsFieldBuilder() - .addBuilder( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder() { + return getVlanAttachmentsFieldBuilder().addBuilder( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder - addVlanAttachmentsBuilder(int index) { - return getVlanAttachmentsFieldBuilder() - .addBuilder( - index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder( + int index) { + return getVlanAttachmentsFieldBuilder().addBuilder( + index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** - * - * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - public java.util.List - getVlanAttachmentsBuilderList() { + public java.util.List + getVlanAttachmentsBuilderList() { return getVlanAttachmentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> getVlanAttachmentsFieldBuilder() { if (vlanAttachmentsBuilder_ == null) { - vlanAttachmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( + vlanAttachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( vlanAttachments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3228,9 +2899,9 @@ public Builder removeVlanAttachments(int index) { } return vlanAttachmentsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3240,12 +2911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF) private static final com.google.cloud.baremetalsolution.v2.VRF DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF(); } @@ -3254,16 +2925,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VRF parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VRF(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VRF parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VRF(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3278,4 +2949,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java similarity index 72% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java index fb8d57d..deba571 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface VRFOrBuilder - extends +public interface VRFOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the VRF.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.VRF.State getState(); /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return Whether the qosPolicy field is set. */ boolean hasQosPolicy(); /** - * - * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; - * * @return The qosPolicy. */ com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy(); /** - * - * *
    * The QOS policy applied to this VRF.
    * 
@@ -109,59 +74,45 @@ public interface VRFOrBuilder com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicyOrBuilder(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - java.util.List getVlanAttachmentsList(); + java.util.List + getVlanAttachmentsList(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ int getVlanAttachmentsCount(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ - java.util.List + java.util.List getVlanAttachmentsOrBuilderList(); /** - * - * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; - * + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( int index); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java similarity index 70% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java index bdd0c0b..926e0a1 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** - * - * *
  * A storage volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ -public final class Volume extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Volume extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume) VolumeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Volume() { name_ = ""; id_ = ""; @@ -48,15 +30,16 @@ private Volume() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Volume(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Volume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,117 +59,105 @@ private Volume( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - storageType_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + storageType_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 32: - { - requestedSizeGib_ = input.readInt64(); - break; - } - case 40: - { - currentSizeGib_ = input.readInt64(); - break; - } - case 48: - { - autoGrownSizeGib_ = input.readInt64(); - break; - } - case 56: - { - remainingSpaceGib_ = input.readInt64(); - break; - } - case 66: - { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - subBuilder = null; - if (snapshotReservationDetail_ != null) { - subBuilder = snapshotReservationDetail_.toBuilder(); - } - snapshotReservationDetail_ = - input.readMessage( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshotReservationDetail_); - snapshotReservationDetail_ = subBuilder.buildPartial(); - } + state_ = rawValue; + break; + } + case 32: { - break; - } - case 72: - { - int rawValue = input.readEnum(); + requestedSizeGib_ = input.readInt64(); + break; + } + case 40: { - snapshotAutoDeleteBehavior_ = rawValue; - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); + currentSizeGib_ = input.readInt64(); + break; + } + case 48: { - id_ = s; - break; - } - case 98: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 104: - { - snapshotEnabled_ = input.readBool(); - break; + autoGrownSizeGib_ = input.readInt64(); + break; + } + case 56: { + + remainingSpaceGib_ = input.readInt64(); + break; + } + case 66: { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder subBuilder = null; + if (snapshotReservationDetail_ != null) { + subBuilder = snapshotReservationDetail_.toBuilder(); } - case 112: - { - emergencySizeGib_ = input.readInt64(); - break; + snapshotReservationDetail_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshotReservationDetail_); + snapshotReservationDetail_ = subBuilder.buildPartial(); } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; + break; + } + case 72: { + int rawValue = input.readEnum(); + + snapshotAutoDeleteBehavior_ = rawValue; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 98: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 104: { + + snapshotEnabled_ = input.readBool(); + break; + } + case 112: { + + emergencySizeGib_ = input.readInt64(); + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + + pod_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -194,52 +165,48 @@ private Volume( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_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 12: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, - com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } /** - * - * *
    * The storage type for a volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.StorageType} */ - public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The storage type for this volume is unknown.
      * 
@@ -248,8 +215,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ STORAGE_TYPE_UNSPECIFIED(0), /** - * - * *
      * The storage type for this volume is SSD.
      * 
@@ -258,8 +223,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ SSD(1), /** - * - * *
      * This storage type for this volume is HDD.
      * 
@@ -271,8 +234,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The storage type for this volume is unknown.
      * 
@@ -281,8 +242,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The storage type for this volume is SSD.
      * 
@@ -291,8 +250,6 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SSD_VALUE = 1; /** - * - * *
      * This storage type for this volume is HDD.
      * 
@@ -301,6 +258,7 @@ public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HDD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -325,49 +283,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: - return STORAGE_TYPE_UNSPECIFIED; - case 1: - return SSD; - case 2: - return HDD; - default: - return null; + case 0: return STORAGE_TYPE_UNSPECIFIED; + case 1: return SSD; + case 2: return HDD; + 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< + StorageType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageType findValueByNumber(int number) { + return StorageType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(0); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -385,18 +343,15 @@ private StorageType(int value) { } /** - * - * *
    * The possible states for a storage volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The storage volume is in an unknown state.
      * 
@@ -405,8 +360,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The storage volume is being created.
      * 
@@ -415,8 +368,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The storage volume is ready for use.
      * 
@@ -425,8 +376,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * The storage volume has been requested to be deleted.
      * 
@@ -438,8 +387,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The storage volume is in an unknown state.
      * 
@@ -448,8 +395,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The storage volume is being created.
      * 
@@ -458,8 +403,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The storage volume is ready for use.
      * 
@@ -468,8 +411,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * The storage volume has been requested to be deleted.
      * 
@@ -478,6 +419,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -502,51 +444,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - case 3: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return DELETING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -564,8 +505,6 @@ private State(int value) { } /** - * - * *
    * The kinds of auto delete behavior to use when snapshot reserved space is
    * full.
@@ -573,10 +512,9 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior}
    */
-  public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SnapshotAutoDeleteBehavior
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * The unspecified behavior.
      * 
@@ -585,8 +523,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED(0), /** - * - * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -596,8 +532,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe
      */
     DISABLED(1),
     /**
-     *
-     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -606,8 +540,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ OLDEST_FIRST(2), /** - * - * *
      * Delete the newest snapshots first.
      * 
@@ -619,8 +551,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe ; /** - * - * *
      * The unspecified behavior.
      * 
@@ -629,8 +559,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -640,8 +568,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe
      */
     public static final int DISABLED_VALUE = 1;
     /**
-     *
-     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -650,8 +576,6 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ public static final int OLDEST_FIRST_VALUE = 2; /** - * - * *
      * Delete the newest snapshots first.
      * 
@@ -660,6 +584,7 @@ public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMe */ public static final int NEWEST_FIRST_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -684,16 +609,11 @@ public static SnapshotAutoDeleteBehavior valueOf(int value) { */ public static SnapshotAutoDeleteBehavior forNumber(int value) { switch (value) { - case 0: - return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; - case 1: - return DISABLED; - case 2: - return OLDEST_FIRST; - case 3: - return NEWEST_FIRST; - default: - return null; + case 0: return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; + case 1: return DISABLED; + case 2: return OLDEST_FIRST; + case 3: return NEWEST_FIRST; + default: return null; } } @@ -701,28 +621,28 @@ public static SnapshotAutoDeleteBehavior forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SnapshotAutoDeleteBehavior> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SnapshotAutoDeleteBehavior findValueByNumber(int number) { + return SnapshotAutoDeleteBehavior.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SnapshotAutoDeleteBehavior findValueByNumber(int number) { - return SnapshotAutoDeleteBehavior.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(2); } @@ -731,7 +651,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static SnapshotAutoDeleteBehavior 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; @@ -748,27 +669,21 @@ private SnapshotAutoDeleteBehavior(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior) } - public interface SnapshotReservationDetailOrBuilder - extends + public interface SnapshotReservationDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; - * * @return The reservedSpaceGib. */ long getReservedSpaceGib(); /** - * - * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -777,28 +692,22 @@ public interface SnapshotReservationDetailOrBuilder
      * 
* * int32 reserved_space_used_percent = 2; - * * @return The reservedSpaceUsedPercent. */ int getReservedSpaceUsedPercent(); /** - * - * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; - * * @return The reservedSpaceRemainingGib. */ long getReservedSpaceRemainingGib(); /** - * - * *
      * Percent of the total Volume size reserved for snapshot copies.
      * Enabling snapshots requires reserving 20% or more of
@@ -808,43 +717,41 @@ public interface SnapshotReservationDetailOrBuilder
      * 
* * int32 reserved_space_percent = 4; - * * @return The reservedSpacePercent. */ int getReservedSpacePercent(); } /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class SnapshotReservationDetail extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SnapshotReservationDetail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) SnapshotReservationDetailOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SnapshotReservationDetail.newBuilder() to construct. private SnapshotReservationDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SnapshotReservationDetail() {} + private SnapshotReservationDetail() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SnapshotReservationDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SnapshotReservationDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -863,33 +770,33 @@ private SnapshotReservationDetail( case 0: done = true; break; - case 8: - { - reservedSpaceGib_ = input.readInt64(); - break; - } - case 16: - { - reservedSpaceUsedPercent_ = input.readInt32(); - break; - } - case 24: - { - reservedSpaceRemainingGib_ = input.readInt64(); - break; - } - case 32: - { - reservedSpacePercent_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + reservedSpaceGib_ = input.readInt64(); + break; + } + case 16: { + + reservedSpaceUsedPercent_ = input.readInt32(); + break; + } + case 24: { + + reservedSpaceRemainingGib_ = input.readInt64(); + break; + } + case 32: { + + reservedSpacePercent_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -897,39 +804,34 @@ private SnapshotReservationDetail( } 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.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); } public static final int RESERVED_SPACE_GIB_FIELD_NUMBER = 1; private long reservedSpaceGib_; /** - * - * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; - * * @return The reservedSpaceGib. */ @java.lang.Override @@ -940,8 +842,6 @@ public long getReservedSpaceGib() { public static final int RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER = 2; private int reservedSpaceUsedPercent_; /** - * - * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -950,7 +850,6 @@ public long getReservedSpaceGib() {
      * 
* * int32 reserved_space_used_percent = 2; - * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -961,15 +860,12 @@ public int getReservedSpaceUsedPercent() { public static final int RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER = 3; private long reservedSpaceRemainingGib_; /** - * - * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; - * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -980,8 +876,6 @@ public long getReservedSpaceRemainingGib() { public static final int RESERVED_SPACE_PERCENT_FIELD_NUMBER = 4; private int reservedSpacePercent_; /** - * - * *
      * Percent of the total Volume size reserved for snapshot copies.
      * Enabling snapshots requires reserving 20% or more of
@@ -991,7 +885,6 @@ public long getReservedSpaceRemainingGib() {
      * 
* * int32 reserved_space_percent = 4; - * * @return The reservedSpacePercent. */ @java.lang.Override @@ -1000,7 +893,6 @@ public int getReservedSpacePercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1012,7 +904,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 (reservedSpaceGib_ != 0L) { output.writeInt64(1, reservedSpaceGib_); } @@ -1035,18 +928,20 @@ public int getSerializedSize() { size = 0; if (reservedSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, reservedSpaceGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, reservedSpaceGib_); } if (reservedSpaceUsedPercent_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(2, reservedSpaceUsedPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, reservedSpaceUsedPercent_); } if (reservedSpaceRemainingGib_ != 0L) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size(3, reservedSpaceRemainingGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, reservedSpaceRemainingGib_); } if (reservedSpacePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, reservedSpacePercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, reservedSpacePercent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1056,19 +951,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.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { + if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = - (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; - if (getReservedSpaceGib() != other.getReservedSpaceGib()) return false; - if (getReservedSpaceUsedPercent() != other.getReservedSpaceUsedPercent()) return false; - if (getReservedSpaceRemainingGib() != other.getReservedSpaceRemainingGib()) return false; - if (getReservedSpacePercent() != other.getReservedSpacePercent()) return false; + if (getReservedSpaceGib() + != other.getReservedSpaceGib()) return false; + if (getReservedSpaceUsedPercent() + != other.getReservedSpaceUsedPercent()) return false; + if (getReservedSpaceRemainingGib() + != other.getReservedSpaceRemainingGib()) return false; + if (getReservedSpacePercent() + != other.getReservedSpacePercent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1081,11 +978,13 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESERVED_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReservedSpaceGib()); hash = (37 * hash) + RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpaceUsedPercent(); hash = (37 * hash) + RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceRemainingGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getReservedSpaceRemainingGib()); hash = (37 * hash) + RESERVED_SPACE_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpacePercent(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1094,95 +993,87 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1192,50 +1083,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - .class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); } - // Construct using - // com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() + // Construct using com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1251,22 +1136,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail build() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = - buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1275,8 +1157,7 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = - new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); result.reservedSpaceGib_ = reservedSpaceGib_; result.reservedSpaceUsedPercent_ = reservedSpaceUsedPercent_; result.reservedSpaceRemainingGib_ = reservedSpaceRemainingGib_; @@ -1289,54 +1170,46 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { - return mergeFrom( - (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) other); + if (other instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { + return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { - if (other - == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { + if (other == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance()) return this; if (other.getReservedSpaceGib() != 0L) { setReservedSpaceGib(other.getReservedSpaceGib()); } @@ -1368,9 +1241,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1380,16 +1251,13 @@ public Builder mergeFrom( return this; } - private long reservedSpaceGib_; + private long reservedSpaceGib_ ; /** - * - * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; - * * @return The reservedSpaceGib. */ @java.lang.Override @@ -1397,45 +1265,37 @@ public long getReservedSpaceGib() { return reservedSpaceGib_; } /** - * - * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; - * * @param value The reservedSpaceGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceGib(long value) { - + reservedSpaceGib_ = value; onChanged(); return this; } /** - * - * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; - * * @return This builder for chaining. */ public Builder clearReservedSpaceGib() { - + reservedSpaceGib_ = 0L; onChanged(); return this; } - private int reservedSpaceUsedPercent_; + private int reservedSpaceUsedPercent_ ; /** - * - * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1444,7 +1304,6 @@ public Builder clearReservedSpaceGib() {
        * 
* * int32 reserved_space_used_percent = 2; - * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -1452,8 +1311,6 @@ public int getReservedSpaceUsedPercent() { return reservedSpaceUsedPercent_; } /** - * - * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1462,19 +1319,16 @@ public int getReservedSpaceUsedPercent() {
        * 
* * int32 reserved_space_used_percent = 2; - * * @param value The reservedSpaceUsedPercent to set. * @return This builder for chaining. */ public Builder setReservedSpaceUsedPercent(int value) { - + reservedSpaceUsedPercent_ = value; onChanged(); return this; } /** - * - * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1483,27 +1337,23 @@ public Builder setReservedSpaceUsedPercent(int value) {
        * 
* * int32 reserved_space_used_percent = 2; - * * @return This builder for chaining. */ public Builder clearReservedSpaceUsedPercent() { - + reservedSpaceUsedPercent_ = 0; onChanged(); return this; } - private long reservedSpaceRemainingGib_; + private long reservedSpaceRemainingGib_ ; /** - * - * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; - * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -1511,47 +1361,39 @@ public long getReservedSpaceRemainingGib() { return reservedSpaceRemainingGib_; } /** - * - * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; - * * @param value The reservedSpaceRemainingGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceRemainingGib(long value) { - + reservedSpaceRemainingGib_ = value; onChanged(); return this; } /** - * - * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; - * * @return This builder for chaining. */ public Builder clearReservedSpaceRemainingGib() { - + reservedSpaceRemainingGib_ = 0L; onChanged(); return this; } - private int reservedSpacePercent_; + private int reservedSpacePercent_ ; /** - * - * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1561,7 +1403,6 @@ public Builder clearReservedSpaceRemainingGib() {
        * 
* * int32 reserved_space_percent = 4; - * * @return The reservedSpacePercent. */ @java.lang.Override @@ -1569,8 +1410,6 @@ public int getReservedSpacePercent() { return reservedSpacePercent_; } /** - * - * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1580,19 +1419,16 @@ public int getReservedSpacePercent() {
        * 
* * int32 reserved_space_percent = 4; - * * @param value The reservedSpacePercent to set. * @return This builder for chaining. */ public Builder setReservedSpacePercent(int value) { - + reservedSpacePercent_ = value; onChanged(); return this; } /** - * - * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1602,16 +1438,14 @@ public Builder setReservedSpacePercent(int value) {
        * 
* * int32 reserved_space_percent = 4; - * * @return This builder for chaining. */ public Builder clearReservedSpacePercent() { - + reservedSpacePercent_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1624,33 +1458,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) - private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - DEFAULT_INSTANCE; - + private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); + DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotReservationDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotReservationDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotReservationDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotReservationDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1662,17 +1493,15 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1682,7 +1511,6 @@ public com.google.protobuf.Parser getParserForType()
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1691,15 +1519,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; } } /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1709,15 +1536,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1728,14 +1556,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ID_FIELD_NUMBER = 11; private volatile java.lang.Object id_; /** - * - * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; - * * @return The id. */ @java.lang.Override @@ -1744,29 +1569,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; } } /** - * - * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; - * * @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 { @@ -1777,90 +1602,65 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int STORAGE_TYPE_FIELD_NUMBER = 2; private int storageType_; /** - * - * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The storageType. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = - com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; } public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.State getState() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = - com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; } public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER = 4; private long requestedSizeGib_; /** - * - * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; - * * @return The requestedSizeGib. */ @java.lang.Override @@ -1871,8 +1671,6 @@ public long getRequestedSizeGib() { public static final int CURRENT_SIZE_GIB_FIELD_NUMBER = 5; private long currentSizeGib_; /** - * - * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -1880,7 +1678,6 @@ public long getRequestedSizeGib() {
    * 
* * int64 current_size_gib = 5; - * * @return The currentSizeGib. */ @java.lang.Override @@ -1891,15 +1688,12 @@ public long getCurrentSizeGib() { public static final int EMERGENCY_SIZE_GIB_FIELD_NUMBER = 14; private long emergencySizeGib_; /** - * - * *
    * Additional emergency size that was requested for this Volume, in GiB.
    * current_size_gib includes this value.
    * 
* * int64 emergency_size_gib = 14; - * * @return The emergencySizeGib. */ @java.lang.Override @@ -1910,15 +1704,12 @@ public long getEmergencySizeGib() { public static final int AUTO_GROWN_SIZE_GIB_FIELD_NUMBER = 6; private long autoGrownSizeGib_; /** - * - * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; - * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -1929,15 +1720,12 @@ public long getAutoGrownSizeGib() { public static final int REMAINING_SPACE_GIB_FIELD_NUMBER = 7; private long remainingSpaceGib_; /** - * - * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; - * * @return The remainingSpaceGib. */ @java.lang.Override @@ -1946,19 +1734,13 @@ public long getRemainingSpaceGib() { } public static final int SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER = 8; - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return Whether the snapshotReservationDetail field is set. */ @java.lang.Override @@ -1966,105 +1748,75 @@ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetail_ != null; } /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return The snapshotReservationDetail. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getSnapshotReservationDetail() { - return snapshotReservationDetail_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance() - : snapshotReservationDetail_; + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { + return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; } /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder - getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { return getSnapshotReservationDetail(); } public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER = 9; private int snapshotAutoDeleteBehavior_; /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override - public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The snapshotAutoDeleteBehavior. */ - @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - getSnapshotAutoDeleteBehavior() { + @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( - snapshotAutoDeleteBehavior_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 12; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -2073,30 +1825,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2104,12 +1854,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 12; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2117,16 +1866,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels as key value pairs.
    * 
@@ -2134,11 +1883,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2148,14 +1898,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int SNAPSHOT_ENABLED_FIELD_NUMBER = 13; private boolean snapshotEnabled_; /** - * - * *
    * Whether snapshots are enabled.
    * 
* * bool snapshot_enabled = 13; - * * @return The snapshotEnabled. */ @java.lang.Override @@ -2166,14 +1913,11 @@ public boolean getSnapshotEnabled() { public static final int POD_FIELD_NUMBER = 15; private volatile java.lang.Object pod_; /** - * - * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ @java.lang.Override @@ -2182,29 +1926,29 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** - * - * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString getPodBytes() { + public com.google.protobuf.ByteString + getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pod_ = b; return b; } else { @@ -2213,7 +1957,6 @@ public com.google.protobuf.ByteString getPodBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2225,17 +1968,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { + if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, storageType_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (requestedSizeGib_ != 0L) { @@ -2253,17 +1994,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (snapshotReservationDetail_ != null) { output.writeMessage(8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ - != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED - .getNumber()) { + if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { output.writeEnum(9, snapshotAutoDeleteBehavior_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, id_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 12); if (snapshotEnabled_ != false) { output.writeBool(13, snapshotEnabled_); } @@ -2285,56 +2027,58 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (storageType_ - != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, storageType_); + if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, storageType_); } - if (state_ - != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (requestedSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, requestedSizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, requestedSizeGib_); } if (currentSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, currentSizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, currentSizeGib_); } if (autoGrownSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, autoGrownSizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, autoGrownSizeGib_); } if (remainingSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, remainingSpaceGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, remainingSpaceGib_); } if (snapshotReservationDetail_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getSnapshotReservationDetail()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ - != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, snapshotAutoDeleteBehavior_); + if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, snapshotAutoDeleteBehavior_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, labels__); } if (snapshotEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, snapshotEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, snapshotEnabled_); } if (emergencySizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, emergencySizeGib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(14, emergencySizeGib_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, pod_); @@ -2347,32 +2091,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Volume)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume other = - (com.google.cloud.baremetalsolution.v2.Volume) obj; + com.google.cloud.baremetalsolution.v2.Volume other = (com.google.cloud.baremetalsolution.v2.Volume) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getId() + .equals(other.getId())) return false; if (storageType_ != other.storageType_) return false; if (state_ != other.state_) return false; - if (getRequestedSizeGib() != other.getRequestedSizeGib()) return false; - if (getCurrentSizeGib() != other.getCurrentSizeGib()) return false; - if (getEmergencySizeGib() != other.getEmergencySizeGib()) return false; - if (getAutoGrownSizeGib() != other.getAutoGrownSizeGib()) return false; - if (getRemainingSpaceGib() != other.getRemainingSpaceGib()) return false; + if (getRequestedSizeGib() + != other.getRequestedSizeGib()) return false; + if (getCurrentSizeGib() + != other.getCurrentSizeGib()) return false; + if (getEmergencySizeGib() + != other.getEmergencySizeGib()) return false; + if (getAutoGrownSizeGib() + != other.getAutoGrownSizeGib()) return false; + if (getRemainingSpaceGib() + != other.getRemainingSpaceGib()) return false; if (hasSnapshotReservationDetail() != other.hasSnapshotReservationDetail()) return false; if (hasSnapshotReservationDetail()) { - if (!getSnapshotReservationDetail().equals(other.getSnapshotReservationDetail())) - return false; + if (!getSnapshotReservationDetail() + .equals(other.getSnapshotReservationDetail())) return false; } if (snapshotAutoDeleteBehavior_ != other.snapshotAutoDeleteBehavior_) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getSnapshotEnabled() != other.getSnapshotEnabled()) return false; - if (!getPod().equals(other.getPod())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getSnapshotEnabled() + != other.getSnapshotEnabled()) return false; + if (!getPod() + .equals(other.getPod())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2393,15 +2146,20 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + REQUESTED_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestedSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestedSizeGib()); hash = (37 * hash) + CURRENT_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurrentSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCurrentSizeGib()); hash = (37 * hash) + EMERGENCY_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEmergencySizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEmergencySizeGib()); hash = (37 * hash) + AUTO_GROWN_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAutoGrownSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAutoGrownSizeGib()); hash = (37 * hash) + REMAINING_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRemainingSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRemainingSpaceGib()); if (hasSnapshotReservationDetail()) { hash = (37 * hash) + SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getSnapshotReservationDetail().hashCode(); @@ -2413,7 +2171,8 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + SNAPSHOT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSnapshotEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSnapshotEnabled()); hash = (37 * hash) + POD_FIELD_NUMBER; hash = (53 * hash) + getPod().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -2421,147 +2180,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume 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.baremetalsolution.v2.Volume parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume) com.google.cloud.baremetalsolution.v2.VolumeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 12: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 12: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, - com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Volume.newBuilder() @@ -2569,15 +2321,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(); @@ -2616,9 +2369,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto - .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @java.lang.Override @@ -2637,8 +2390,7 @@ public com.google.cloud.baremetalsolution.v2.Volume build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume result = - new com.google.cloud.baremetalsolution.v2.Volume(this); + com.google.cloud.baremetalsolution.v2.Volume result = new com.google.cloud.baremetalsolution.v2.Volume(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -2667,39 +2419,38 @@ public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Volume) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume) other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume)other); } else { super.mergeFrom(other); return this; @@ -2743,7 +2494,8 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume other) { if (other.snapshotAutoDeleteBehavior_ != 0) { setSnapshotAutoDeleteBehaviorValue(other.getSnapshotAutoDeleteBehaviorValue()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.getSnapshotEnabled() != false) { setSnapshotEnabled(other.getSnapshotEnabled()); } @@ -2779,13 +2531,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2795,13 +2544,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2810,8 +2559,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2821,14 +2568,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2836,8 +2584,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2847,22 +2593,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2872,18 +2616,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2893,16 +2634,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2910,20 +2651,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; - * * @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; @@ -2932,21 +2671,20 @@ public java.lang.String getId() { } } /** - * - * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; - * * @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 { @@ -2954,61 +2692,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; - * * @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; } /** - * - * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; - * * @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; @@ -3016,67 +2747,51 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private int storageType_ = 0; /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override - public int getStorageTypeValue() { + @java.lang.Override public int getStorageTypeValue() { return storageType_; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = - com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @param value The storageType to set. * @return This builder for chaining. */ @@ -3084,24 +2799,21 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Volume.Stora if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -3109,67 +2821,51 @@ public Builder clearStorageType() { private int state_ = 0; /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = - com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -3177,39 +2873,33 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Volume.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long requestedSizeGib_; + private long requestedSizeGib_ ; /** - * - * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; - * * @return The requestedSizeGib. */ @java.lang.Override @@ -3217,45 +2907,37 @@ public long getRequestedSizeGib() { return requestedSizeGib_; } /** - * - * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; - * * @param value The requestedSizeGib to set. * @return This builder for chaining. */ public Builder setRequestedSizeGib(long value) { - + requestedSizeGib_ = value; onChanged(); return this; } /** - * - * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; - * * @return This builder for chaining. */ public Builder clearRequestedSizeGib() { - + requestedSizeGib_ = 0L; onChanged(); return this; } - private long currentSizeGib_; + private long currentSizeGib_ ; /** - * - * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -3263,7 +2945,6 @@ public Builder clearRequestedSizeGib() {
      * 
* * int64 current_size_gib = 5; - * * @return The currentSizeGib. */ @java.lang.Override @@ -3271,8 +2952,6 @@ public long getCurrentSizeGib() { return currentSizeGib_; } /** - * - * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -3280,19 +2959,16 @@ public long getCurrentSizeGib() {
      * 
* * int64 current_size_gib = 5; - * * @param value The currentSizeGib to set. * @return This builder for chaining. */ public Builder setCurrentSizeGib(long value) { - + currentSizeGib_ = value; onChanged(); return this; } /** - * - * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -3300,27 +2976,23 @@ public Builder setCurrentSizeGib(long value) {
      * 
* * int64 current_size_gib = 5; - * * @return This builder for chaining. */ public Builder clearCurrentSizeGib() { - + currentSizeGib_ = 0L; onChanged(); return this; } - private long emergencySizeGib_; + private long emergencySizeGib_ ; /** - * - * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; - * * @return The emergencySizeGib. */ @java.lang.Override @@ -3328,54 +3000,45 @@ public long getEmergencySizeGib() { return emergencySizeGib_; } /** - * - * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; - * * @param value The emergencySizeGib to set. * @return This builder for chaining. */ public Builder setEmergencySizeGib(long value) { - + emergencySizeGib_ = value; onChanged(); return this; } /** - * - * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; - * * @return This builder for chaining. */ public Builder clearEmergencySizeGib() { - + emergencySizeGib_ = 0L; onChanged(); return this; } - private long autoGrownSizeGib_; + private long autoGrownSizeGib_ ; /** - * - * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; - * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -3383,54 +3046,45 @@ public long getAutoGrownSizeGib() { return autoGrownSizeGib_; } /** - * - * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; - * * @param value The autoGrownSizeGib to set. * @return This builder for chaining. */ public Builder setAutoGrownSizeGib(long value) { - + autoGrownSizeGib_ = value; onChanged(); return this; } /** - * - * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; - * * @return This builder for chaining. */ public Builder clearAutoGrownSizeGib() { - + autoGrownSizeGib_ = 0L; onChanged(); return this; } - private long remainingSpaceGib_; + private long remainingSpaceGib_ ; /** - * - * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; - * * @return The remainingSpaceGib. */ @java.lang.Override @@ -3438,103 +3092,74 @@ public long getRemainingSpaceGib() { return remainingSpaceGib_; } /** - * - * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; - * * @param value The remainingSpaceGib to set. * @return This builder for chaining. */ public Builder setRemainingSpaceGib(long value) { - + remainingSpaceGib_ = value; onChanged(); return this; } /** - * - * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; - * * @return This builder for chaining. */ public Builder clearRemainingSpaceGib() { - + remainingSpaceGib_ = 0L; onChanged(); return this; } - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> - snapshotReservationDetailBuilder_; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> snapshotReservationDetailBuilder_; /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return Whether the snapshotReservationDetail field is set. */ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetailBuilder_ != null || snapshotReservationDetail_ != null; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return The snapshotReservationDetail. */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getSnapshotReservationDetail() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { - return snapshotReservationDetail_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance() - : snapshotReservationDetail_; + return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; } else { return snapshotReservationDetailBuilder_.getMessage(); } } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public Builder setSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder setSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3548,19 +3173,14 @@ public Builder setSnapshotReservationDetail( return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ public Builder setSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - builderForValue) { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder builderForValue) { if (snapshotReservationDetailBuilder_ == null) { snapshotReservationDetail_ = builderForValue.build(); onChanged(); @@ -3571,25 +3191,17 @@ public Builder setSnapshotReservationDetail( return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public Builder mergeSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder mergeSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (snapshotReservationDetail_ != null) { snapshotReservationDetail_ = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder( - snapshotReservationDetail_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder(snapshotReservationDetail_).mergeFrom(value).buildPartial(); } else { snapshotReservationDetail_ = value; } @@ -3601,15 +3213,11 @@ public Builder mergeSnapshotReservationDetail( return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ public Builder clearSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { @@ -3623,67 +3231,48 @@ public Builder clearSnapshotReservationDetail() { return this; } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder - getSnapshotReservationDetailBuilder() { - + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder getSnapshotReservationDetailBuilder() { + onChanged(); return getSnapshotReservationDetailFieldBuilder().getBuilder(); } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder - getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { if (snapshotReservationDetailBuilder_ != null) { return snapshotReservationDetailBuilder_.getMessageOrBuilder(); } else { - return snapshotReservationDetail_ == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - .getDefaultInstance() - : snapshotReservationDetail_; + return snapshotReservationDetail_ == null ? + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; } } /** - * - * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> getSnapshotReservationDetailFieldBuilder() { if (snapshotReservationDetailBuilder_ == null) { - snapshotReservationDetailBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( - getSnapshotReservationDetail(), getParentForChildren(), isClean()); + snapshotReservationDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( + getSnapshotReservationDetail(), + getParentForChildren(), + isClean()); snapshotReservationDetail_ = null; } return snapshotReservationDetailBuilder_; @@ -3691,125 +3280,94 @@ public Builder clearSnapshotReservationDetail() { private int snapshotAutoDeleteBehavior_ = 0; /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override - public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @param value The enum numeric value on the wire for snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ public Builder setSnapshotAutoDeleteBehaviorValue(int value) { - + snapshotAutoDeleteBehavior_ = value; onChanged(); return this; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The snapshotAutoDeleteBehavior. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - getSnapshotAutoDeleteBehavior() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( - snapshotAutoDeleteBehavior_); - return result == null - ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED - : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); + return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @param value The snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ - public Builder setSnapshotAutoDeleteBehavior( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { + public Builder setSnapshotAutoDeleteBehavior(com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { if (value == null) { throw new NullPointerException(); } - + snapshotAutoDeleteBehavior_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return This builder for chaining. */ public Builder clearSnapshotAutoDeleteBehavior() { - + snapshotAutoDeleteBehavior_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3821,30 +3379,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3852,12 +3408,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 12; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3865,17 +3420,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels as key value pairs.
      * 
@@ -3883,11 +3437,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3895,74 +3450,74 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private boolean snapshotEnabled_; + private boolean snapshotEnabled_ ; /** - * - * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; - * * @return The snapshotEnabled. */ @java.lang.Override @@ -3970,36 +3525,30 @@ public boolean getSnapshotEnabled() { return snapshotEnabled_; } /** - * - * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; - * * @param value The snapshotEnabled to set. * @return This builder for chaining. */ public Builder setSnapshotEnabled(boolean value) { - + snapshotEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; - * * @return This builder for chaining. */ public Builder clearSnapshotEnabled() { - + snapshotEnabled_ = false; onChanged(); return this; @@ -4007,20 +3556,18 @@ public Builder clearSnapshotEnabled() { private java.lang.Object pod_ = ""; /** - * - * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -4029,21 +3576,20 @@ public java.lang.String getPod() { } } /** - * - * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ - public com.google.protobuf.ByteString getPodBytes() { + public com.google.protobuf.ByteString + getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pod_ = b; return b; } else { @@ -4051,68 +3597,61 @@ public com.google.protobuf.ByteString getPodBytes() { } } /** - * - * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod(java.lang.String value) { + public Builder setPod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** - * - * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes(com.google.protobuf.ByteString value) { + public Builder setPodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = 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); } @@ -4122,12 +3661,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume) private static final com.google.cloud.baremetalsolution.v2.Volume DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume(); } @@ -4136,16 +3675,16 @@ public static com.google.cloud.baremetalsolution.v2.Volume getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Volume parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Volume(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Volume parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Volume(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4160,4 +3699,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Volume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java similarity index 73% rename from proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java index 2946abb..a2d3039 100644 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface VolumeOrBuilder - extends +public interface VolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -35,13 +17,10 @@ public interface VolumeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -51,102 +30,80 @@ public interface VolumeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** - * - * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; - * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; - * * @return The state. */ com.google.cloud.baremetalsolution.v2.Volume.State getState(); /** - * - * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; - * * @return The requestedSizeGib. */ long getRequestedSizeGib(); /** - * - * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -154,129 +111,90 @@ public interface VolumeOrBuilder
    * 
* * int64 current_size_gib = 5; - * * @return The currentSizeGib. */ long getCurrentSizeGib(); /** - * - * *
    * Additional emergency size that was requested for this Volume, in GiB.
    * current_size_gib includes this value.
    * 
* * int64 emergency_size_gib = 14; - * * @return The emergencySizeGib. */ long getEmergencySizeGib(); /** - * - * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; - * * @return The autoGrownSizeGib. */ long getAutoGrownSizeGib(); /** - * - * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; - * * @return The remainingSpaceGib. */ long getRemainingSpaceGib(); /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return Whether the snapshotReservationDetail field is set. */ boolean hasSnapshotReservationDetail(); /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; * @return The snapshotReservationDetail. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail - getSnapshotReservationDetail(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail(); /** - * - * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder - getSnapshotReservationDetailOrBuilder(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder(); /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ int getSnapshotAutoDeleteBehaviorValue(); /** - * - * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; - * - * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; * @return The snapshotAutoDeleteBehavior. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior - getSnapshotAutoDeleteBehavior(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -285,31 +203,30 @@ public interface VolumeOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels as key value pairs.
    * 
@@ -318,56 +235,48 @@ public interface VolumeOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Whether snapshots are enabled.
    * 
* * bool snapshot_enabled = 13; - * * @return The snapshotEnabled. */ boolean getSnapshotEnabled(); /** - * - * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pod. */ java.lang.String getPod(); /** - * - * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pod. */ - com.google.protobuf.ByteString getPodBytes(); + com.google.protobuf.ByteString + getPodBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java new file mode 100644 index 0000000..417c220 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java @@ -0,0 +1,192 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class VolumeProto { + private VolumeProto() {} + 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_baremetalsolution_v2_Volume_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" + + "me.proto\022!google.cloud.baremetalsolution" + + ".v2\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032 google/protobuf" + + "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" + + "\01625.google.cloud.baremetalsolution.v2.Vo" + + "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" + + ".cloud.baremetalsolution.v2.Volume.State" + + "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" + + "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" + + "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" + + "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" + + "tion_detail\030\010 \001(\0132C.google.cloud.baremet" + + "alsolution.v2.Volume.SnapshotReservation" + + "Detail\022k\n\035snapshot_auto_delete_behavior\030" + + "\t \001(\0162D.google.cloud.baremetalsolution.v" + + "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" + + "abels\030\014 \003(\01325.google.cloud.baremetalsolu" + + "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" + + "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" + + "hotReservationDetail\022\032\n\022reserved_space_g" + + "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" + + "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " + + "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" + + "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" + + "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" + + "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" + + "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" + + "olution.googleapis.com/Volume\0228projects/" + + "{project}/locations/{location}/volumes/{" + + "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" + + "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." + + "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" + + "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" + + "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" + + "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" + + "oogle.cloud.baremetalsolution.v2.VolumeB" + + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" + + "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." + + "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" + + "\371\001\n%com.google.cloud.baremetalsolution.v" + + "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" + + "roto/googleapis/cloud/baremetalsolution/" + + "v2;baremetalsolution\252\002!Google.Cloud.Bare" + + "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" + + "lSolution\\V2\352\002$Google::Cloud::BareMetalS" + + "olution::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, + new java.lang.String[] { "Name", "Id", "StorageType", "State", "RequestedSizeGib", "CurrentSizeGib", "EmergencySizeGib", "AutoGrownSizeGib", "RemainingSpaceGib", "SnapshotReservationDetail", "SnapshotAutoDeleteBehavior", "Labels", "SnapshotEnabled", "Pod", }); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, + new java.lang.String[] { "ReservedSpaceGib", "ReservedSpaceUsedPercent", "ReservedSpaceRemainingGib", "ReservedSpacePercent", }); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, + new java.lang.String[] { "Volumes", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, + new java.lang.String[] { "Volume", "UpdateMask", }); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, + new java.lang.String[] { "Volume", "SizeGib", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto similarity index 100% rename from proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto rename to owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java similarity index 94% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java index 9b38708..a8ffec7 100644 --- a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,8 +16,7 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START -// baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider1_sync] +// [START baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider1_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings; diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java index 0935bcf..564e794 100644 --- a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START -// baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.Instance; import com.google.protobuf.FieldMask; @@ -38,5 +37,4 @@ public static void syncUpdateInstanceInstanceFieldmask() throws Exception { } } } -// [END -// baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java similarity index 93% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java index 9747c60..dcb0b17 100644 --- a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START -// baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.Network; import com.google.protobuf.FieldMask; diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java index f7da42b..b825ac2 100644 --- a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START -// baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.NfsShare; import com.google.protobuf.FieldMask; @@ -38,5 +37,4 @@ public static void syncUpdateNfsShareNfsshareFieldmask() throws Exception { } } } -// [END -// baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java deleted file mode 100644 index 679c482..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java +++ /dev/null @@ -1,238 +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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class BareMetalSolutionProto { - private BareMetalSolutionProto() {} - - 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_baremetalsolution_v2_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/baremetalsolution/v2/bare" - + "metalsolution.proto\022!google.cloud.bareme" - + "talsolution.v2\032\034google/api/annotations.p" - + "roto\032\027google/api/client.proto\032\037google/ap" - + "i/field_behavior.proto\0320google/cloud/bar" - + "emetalsolution/v2/instance.proto\032+google" - + "/cloud/baremetalsolution/v2/lun.proto\032/g" - + "oogle/cloud/baremetalsolution/v2/network" - + ".proto\0321google/cloud/baremetalsolution/v" - + "2/nfs_share.proto\032.google/cloud/baremeta" - + "lsolution/v2/volume.proto\032#google/longru" - + "nning/operations.proto\032\037google/protobuf/" - + "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" - + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" - + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" - + "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " - + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" - + "setInstanceResponse2\335 \n\021BareMetalSolutio" - + "n\022\302\001\n\rListInstances\0227.google.cloud.barem" - + "etalsolution.v2.ListInstancesRequest\0328.g" - + "oogle.cloud.baremetalsolution.v2.ListIns" - + "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" - + "ects/*/locations/*}/instances\332A\006parent\022\257" - + "\001\n\013GetInstance\0225.google.cloud.baremetals" - + "olution.v2.GetInstanceRequest\032+.google.c" - + "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" - + "\002/\022-/v2/{name=projects/*/locations/*/ins" - + "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" - + "ogle.cloud.baremetalsolution.v2.UpdateIn" - + "stanceRequest\032\035.google.longrunning.Opera" - + "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" - + "s/*/locations/*/instances/*}:\010instance\332A" - + "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" - + "ationMetadata\022\333\001\n\rResetInstance\0227.google" - + ".cloud.baremetalsolution.v2.ResetInstanc" - + "eRequest\032\035.google.longrunning.Operation\"" - + "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" - + "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" - + "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" - + "StartInstance\0227.google.cloud.baremetalso" - + "lution.v2.StartInstanceRequest\032\035.google." - + "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" - + "=projects/*/locations/*/instances/*}:sta" - + "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" - + "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" - + "gle.cloud.baremetalsolution.v2.StopInsta" - + "nceRequest\032\035.google.longrunning.Operatio" - + "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" - + "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" - + "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" - + "DetachLun\0223.google.cloud.baremetalsoluti" - + "on.v2.DetachLunRequest\032\035.google.longrunn" - + "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" - + "jects/*/locations/*/instances/*}:detachL" - + "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" - + "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" - + "oud.baremetalsolution.v2.ListVolumesRequ" - + "est\0326.google.cloud.baremetalsolution.v2." - + "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" - + "=projects/*/locations/*}/volumes\332A\006paren" - + "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" - + "solution.v2.GetVolumeRequest\032).google.cl" - + "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" - + "+/v2/{name=projects/*/locations/*/volume" - + "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" - + "oud.baremetalsolution.v2.UpdateVolumeReq" - + "uest\032\035.google.longrunning.Operation\"u\202\323\344" - + "\223\002<22/v2/{volume.name=projects/*/locatio" - + "ns/*/volumes/*}:\006volume\332A\022volume,update_" - + "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" - + "esizeVolume\0226.google.cloud.baremetalsolu" - + "tion.v2.ResizeVolumeRequest\032\035.google.lon" - + "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" - + "projects/*/locations/*/volumes/*}:resize" - + ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" - + "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" - + "oud.baremetalsolution.v2.ListNetworksReq" - + "uest\0327.google.cloud.baremetalsolution.v2" - + ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" - + "nt=projects/*/locations/*}/networks\332A\006pa" - + "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" - + ".baremetalsolution.v2.ListNetworkUsageRe" - + "quest\032;.google.cloud.baremetalsolution.v" - + "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" - + "{location=projects/*/locations/*}/networ" - + "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" - + "twork\0224.google.cloud.baremetalsolution.v" - + "2.GetNetworkRequest\032*.google.cloud.barem" - + "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" - + "me=projects/*/locations/*/networks/*}\332A\004" - + "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" - + "remetalsolution.v2.UpdateNetworkRequest\032" - + "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" - + "/v2/{network.name=projects/*/locations/*" - + "/networks/*}:\007network\332A\023network,update_m" - + "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" - + "etLun\0220.google.cloud.baremetalsolution.v" - + "2.GetLunRequest\032&.google.cloud.baremetal" - + "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" - + "cts/*/locations/*/volumes/*/luns/*}\332A\004na" - + "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" - + "solution.v2.ListLunsRequest\0323.google.clo" - + "ud.baremetalsolution.v2.ListLunsResponse" - + "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" - + "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" - + "Share\0225.google.cloud.baremetalsolution.v" - + "2.GetNfsShareRequest\032+.google.cloud.bare" - + "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" - + "name=projects/*/locations/*/nfsShares/*}" - + "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" - + ".baremetalsolution.v2.ListNfsSharesReque" - + "st\0328.google.cloud.baremetalsolution.v2.L" - + "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" - + "t=projects/*/locations/*}/nfsShares\332A\006pa" - + "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" - + "aremetalsolution.v2.UpdateNfsShareReques" - + "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" - + "D27/v2/{nfs_share.name=projects/*/locati" - + "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" - + "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" - + "adata\032T\312A baremetalsolution.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\204\002\n%com.google.cloud.baremet" - + "alsolution.v2B\026BareMetalSolutionProtoP\001Z" - + "Rgoogle.golang.org/genproto/googleapis/c" - + "loud/baremetalsolution/v2;baremetalsolut" - + "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" - + "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" - + "ogle::Cloud::BareMetalSolution::V2b\006prot" - + "o3" - }; - 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java deleted file mode 100644 index 75fbf25..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java +++ /dev/null @@ -1,83 +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/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface DetachLunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the instance.
-   * 
- * - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The instance. - */ - java.lang.String getInstance(); - /** - * - * - *
-   * Required. Name of the instance.
-   * 
- * - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for instance. - */ - com.google.protobuf.ByteString getInstanceBytes(); - - /** - * - * - *
-   * Required. Name of the Lun to detach.
-   * 
- * - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The lun. - */ - java.lang.String getLun(); - /** - * - * - *
-   * Required. Name of the Lun to detach.
-   * 
- * - * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for lun. - */ - com.google.protobuf.ByteString getLunBytes(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java deleted file mode 100644 index cc92dbb..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java deleted file mode 100644 index 9f97c73..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/lun.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetLunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java deleted file mode 100644 index c619b65..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNetworkRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java deleted file mode 100644 index 072571e..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/nfs_share.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNfsShareRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java deleted file mode 100644 index 9830fba..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetVolumeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java deleted file mode 100644 index 7b9b6d4..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java +++ /dev/null @@ -1,325 +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/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class InstanceProto { - private InstanceProto() {} - - 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_baremetalsolution_v2_Instance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/baremetalsolution/v2/inst" - + "ance.proto\022!google.cloud.baremetalsoluti" - + "on.v2\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032+google/cloud/" - + "baremetalsolution/v2/lun.proto\032/google/c" - + "loud/baremetalsolution/v2/network.proto\032" - + " google/protobuf/field_mask.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" - + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" - + "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" - + "solution.v2.Instance.State\022\036\n\026hyperthrea" - + "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" - + "gle.cloud.baremetalsolution.v2.Instance." - + "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" - + ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " - + "\003(\0132*.google.cloud.baremetalsolution.v2." - + "Network\022*\n\"interactive_serial_console_en" - + "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" - + "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" - + "baremetalsolution.googleapis.com/ServerN" - + "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" - + "(\01323.google.cloud.baremetalsolution.v2.L" - + "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" - + "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" - + "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" - + "+.google.cloud.baremetalsolution.v2.Inst" - + "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" - + "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" - + "instance\030\001 \001(\0132+.google.cloud.baremetals" - + "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" - + "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" - + "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")baremetalsolution.googleapis.com/Instan" - + "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" - + "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" - + "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" - + "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" - + "leapis.com/Instance\"\222\001\n\020DetachLunRequest" - + "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" - + "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" - + "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" - + ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" - + "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" - + "oogle.cloud.baremetalsolution.v2.ServerN" - + "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" - + "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" - + "2W.google.cloud.baremetalsolution.v2.Ser" - + "verNetworkTemplate.LogicalInterface.Inte" - + "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" - + "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" - + "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" - + "n.googleapis.com/ServerNetworkTemplate\022W" - + "projects/{project}/locations/{location}/" - + "serverNetworkTemplate/{server_network_te" - + "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" - + "InstanceResponseB\373\001\n%com.google.cloud.ba" - + "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/baremetalsolution/v2;baremetalsolution\252" - + "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" - + "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" - + "::Cloud::BareMetalSolution::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, - new java.lang.String[] { - "Name", - "Id", - "CreateTime", - "UpdateTime", - "MachineType", - "State", - "HyperthreadingEnabled", - "Labels", - "Luns", - "Networks", - "InteractiveSerialConsoleEnabled", - "OsImage", - "Pod", - "NetworkTemplate", - "LogicalInterfaces", - }); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, - new java.lang.String[] { - "Instances", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, - new java.lang.String[] { - "Instance", "UpdateMask", - }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, - new java.lang.String[] { - "Instance", "Lun", - }); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, - new java.lang.String[] { - "Name", "ApplicableInstanceTypes", "LogicalInterfaces", - }); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, - new java.lang.String[] { - "Name", "Type", "Required", - }); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, - new java.lang.String[] {}); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java deleted file mode 100644 index 05ccf8f..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ListNetworkUsageRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Parent value (project and location).
-   * 
- * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * Required. Parent value (project and location).
-   * 
- * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java deleted file mode 100644 index 94372e2..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java +++ /dev/null @@ -1,153 +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/baremetalsolution/v2/lun.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class LunProto { - private LunProto() {} - - 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_baremetalsolution_v2_Lun_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." - + "proto\022!google.cloud.baremetalsolution.v2" - + "\032\037google/api/field_behavior.proto\032\031googl" - + "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" - + "gle.cloud.baremetalsolution.v2.Lun.State" - + "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" - + "\004 \001(\01628.google.cloud.baremetalsolution.v" - + "2.Lun.MultiprotocolType\022D\n\016storage_volum" - + "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" - + "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" - + "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" - + "e.cloud.baremetalsolution.v2.Lun.Storage" - + "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" - + "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" - + "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" - + "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" - + "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" - + "$baremetalsolution.googleapis.com/Lun\022Cp" - + "rojects/{project}/locations/{location}/v" - + "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" - + "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" - + "tion.googleapis.com/Lun\"y\n\017ListLunsReque" - + "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" - + "ution.googleapis.com/Volume\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" - + "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" - + "metalsolution.v2.Lun\022\027\n\017next_page_token\030" - + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" - + "e.cloud.baremetalsolution.v2B\010LunProtoP\001" - + "ZRgoogle.golang.org/genproto/googleapis/" - + "cloud/baremetalsolution/v2;baremetalsolu" - + "tion\252\002!Google.Cloud.BareMetalSolution.V2" - + "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" - + "oogle::Cloud::BareMetalSolution::V2b\006pro" - + "to3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, - new java.lang.String[] { - "Name", - "Id", - "State", - "SizeGb", - "MultiprotocolType", - "StorageVolume", - "Shareable", - "BootLun", - "StorageType", - "Wwid", - }); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, - new java.lang.String[] { - "Luns", "NextPageToken", "Unreachable", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java deleted file mode 100644 index 06274bd..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java +++ /dev/null @@ -1,327 +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/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class NetworkProto { - private NetworkProto() {} - - 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_baremetalsolution_v2_Network_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" - + "ork.proto\022!google.cloud.baremetalsolutio" - + "n.v2\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\032 google/protobu" - + "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" - + " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" - + "ogle.cloud.baremetalsolution.v2.Network." - + "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" - + "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" - + "metalsolution.v2.Network.State\022\017\n\007vlan_i" - + "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" - + "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" - + "bels\030\013 \003(\01326.google.cloud.baremetalsolut" - + "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" - + "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" - + ".cloud.baremetalsolution.v2.NetworkAddre" - + "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" - + "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" - + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" - + "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" - + "lution.googleapis.com/Network\022:projects/" - + "{project}/locations/{location}/networks/" - + "{network}\"U\n\031NetworkAddressReservation\022\025" - + "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" - + "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" - + "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" - + "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" - + "0.google.cloud.baremetalsolution.v2.VRF." - + "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" - + "ogle.cloud.baremetalsolution.v2.VRF.Vlan" - + "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" - + "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" - + "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " - + "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" - + "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" - + "alInterface\022o\n\032logical_network_interface" - + "s\030\001 \003(\0132K.google.cloud.baremetalsolution" - + ".v2.LogicalInterface.LogicalNetworkInter" - + "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " - + "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" - + "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" - + "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" - + "ogle.cloud.baremetalsolution.v2.Network." - + "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" - + "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" - + "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" - + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" - + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" - + "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" - + "(\0132*.google.cloud.baremetalsolution.v2.N" - + "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" - + "\007network\030\001 \001(\0132*.google.cloud.baremetals" - + "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" - + "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" - + ".baremetalsolution.v2.Network\022\020\n\010used_ip" - + "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" - + "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\"]\n\030ListNetworkUsageRespo" - + "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" - + "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" - + "oogle.cloud.baremetalsolution.v2B\014Networ" - + "kProtoP\001ZRgoogle.golang.org/genproto/goo" - + "gleapis/cloud/baremetalsolution/v2;barem" - + "etalsolution\252\002!Google.Cloud.BareMetalSol" - + "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" - + "n\\V2\352\002$Google::Cloud::BareMetalSolution:" - + ":V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, - new java.lang.String[] { - "Name", - "Id", - "Type", - "IpAddress", - "MacAddress", - "State", - "VlanId", - "Cidr", - "Vrf", - "Labels", - "ServicesCidr", - "Reservations", - }); - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, - new java.lang.String[] { - "StartAddress", "EndAddress", "Note", - }); - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, - new java.lang.String[] { - "Name", "State", "QosPolicy", "VlanAttachments", - }); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, - new java.lang.String[] { - "BandwidthGbps", - }); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, - new java.lang.String[] { - "PeerVlanId", "PeerIp", "RouterIp", - }); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, - new java.lang.String[] { - "LogicalNetworkInterfaces", "Name", "InterfaceIndex", - }); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, - new java.lang.String[] { - "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", - }); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, - new java.lang.String[] { - "Networks", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, - new java.lang.String[] { - "Network", "UpdateMask", - }); - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, - new java.lang.String[] { - "Network", "UsedIps", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, - new java.lang.String[] { - "Location", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, - new java.lang.String[] { - "Networks", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java deleted file mode 100644 index b476bcc..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java +++ /dev/null @@ -1,202 +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/baremetalsolution/v2/nfs_share.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class NfsShareProto { - private NfsShareProto() {} - - 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_baremetalsolution_v2_NfsShare_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/baremetalsolution/v2/nfs_" - + "share.proto\022!google.cloud.baremetalsolut" - + "ion.v2\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\032 google/proto" - + "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" - + "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" - + "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" - + "\tB,\372A)\n\'baremetalsolution.googleapis.com" - + "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" - + "e.cloud.baremetalsolution.v2.NfsShare.Al" - + "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" - + "ud.baremetalsolution.v2.NfsShare.LabelsE" - + "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" - + "-\372A*\n(baremetalsolution.googleapis.com/N" - + "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" - + "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" - + "\0162<.google.cloud.baremetalsolution.v2.Nf" - + "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" - + "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" - + "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" - + "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" - + "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" - + "olution.googleapis.com/NFSShare\022=project" - + "s/{project}/locations/{location}/nfsShar" - + "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" - + "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" - + "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" - + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" - + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" - + "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" - + "\030\001 \003(\0132+.google.cloud.baremetalsolution." - + "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" - + "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" - + "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" - + "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "kB\373\001\n%com.google.cloud.baremetalsolution" - + ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" - + "genproto/googleapis/cloud/baremetalsolut" - + "ion/v2;baremetalsolution\252\002!Google.Cloud." - + "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" - + "MetalSolution\\V2\352\002$Google::Cloud::BareMe" - + "talSolution::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, - new java.lang.String[] { - "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", - }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, - new java.lang.String[] { - "Network", - "ShareIp", - "AllowedClientsCidr", - "MountPermissions", - "AllowDev", - "AllowSuid", - "NoRootSquash", - }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, - new java.lang.String[] { - "NfsShares", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, - new java.lang.String[] { - "NfsShare", "UpdateMask", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java deleted file mode 100644 index 1f953fe..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java deleted file mode 100644 index 6123d2c..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java deleted file mode 100644 index 072aeb8..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java +++ /dev/null @@ -1,67 +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/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResizeVolumeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Volume to resize.
-   * 
- * - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The volume. - */ - java.lang.String getVolume(); - /** - * - * - *
-   * Required. Volume to resize.
-   * 
- * - * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for volume. - */ - com.google.protobuf.ByteString getVolumeBytes(); - - /** - * - * - *
-   * New Volume size, in GiB.
-   * 
- * - * int64 size_gib = 2; - * - * @return The sizeGib. - */ - long getSizeGib(); -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java deleted file mode 100644 index 4cb55b2..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StartInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java deleted file mode 100644 index a4673c6..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.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/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StartInstanceResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java deleted file mode 100644 index 4b93ef8..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StopInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the resource.
-   * 
- * - * - * 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-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java deleted file mode 100644 index 0e0f7b9..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.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/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StopInstanceResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java deleted file mode 100644 index 0ec60b4..0000000 --- a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java +++ /dev/null @@ -1,230 +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/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class VolumeProto { - private VolumeProto() {} - - 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_baremetalsolution_v2_Volume_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" - + "me.proto\022!google.cloud.baremetalsolution" - + ".v2\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032 google/protobuf" - + "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" - + "\01625.google.cloud.baremetalsolution.v2.Vo" - + "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" - + ".cloud.baremetalsolution.v2.Volume.State" - + "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" - + "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" - + "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" - + "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" - + "tion_detail\030\010 \001(\0132C.google.cloud.baremet" - + "alsolution.v2.Volume.SnapshotReservation" - + "Detail\022k\n\035snapshot_auto_delete_behavior\030" - + "\t \001(\0162D.google.cloud.baremetalsolution.v" - + "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" - + "abels\030\014 \003(\01325.google.cloud.baremetalsolu" - + "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" - + "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" - + "hotReservationDetail\022\032\n\022reserved_space_g" - + "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" - + "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " - + "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" - + "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" - + "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" - + "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" - + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" - + "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" - + "olution.googleapis.com/Volume\0228projects/" - + "{project}/locations/{location}/volumes/{" - + "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" - + "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." - + "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" - + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." - + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" - + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" - + "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" - + "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" - + "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" - + "oogle.cloud.baremetalsolution.v2.VolumeB" - + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" - + "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." - + "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" - + "\371\001\n%com.google.cloud.baremetalsolution.v" - + "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" - + "roto/googleapis/cloud/baremetalsolution/" - + "v2;baremetalsolution\252\002!Google.Cloud.Bare" - + "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" - + "lSolution\\V2\352\002$Google::Cloud::BareMetalS" - + "olution::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, - new java.lang.String[] { - "Name", - "Id", - "StorageType", - "State", - "RequestedSizeGib", - "CurrentSizeGib", - "EmergencySizeGib", - "AutoGrownSizeGib", - "RemainingSpaceGib", - "SnapshotReservationDetail", - "SnapshotAutoDeleteBehavior", - "Labels", - "SnapshotEnabled", - "Pod", - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, - new java.lang.String[] { - "ReservedSpaceGib", - "ReservedSpaceUsedPercent", - "ReservedSpaceRemainingGib", - "ReservedSpacePercent", - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, - new java.lang.String[] { - "Volumes", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, - new java.lang.String[] { - "Volume", "UpdateMask", - }); - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, - new java.lang.String[] { - "Volume", "SizeGib", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 05a887045df5d503b20b1d6f4fca0e6182823f7c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 21:35:45 +0000 Subject: [PATCH 7/7] =?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 | 6 +- .../v2/BareMetalSolutionClient.java | 46 +- .../v2/BareMetalSolutionSettings.java | 7 +- .../baremetalsolution/v2/gapic_metadata.json | 0 .../baremetalsolution/v2/package-info.java | 0 .../v2/stub/BareMetalSolutionStub.java | 0 .../stub/BareMetalSolutionStubSettings.java | 6 +- .../GrpcBareMetalSolutionCallableFactory.java | 0 .../v2/stub/GrpcBareMetalSolutionStub.java | 1 - ...pJsonBareMetalSolutionCallableFactory.java | 0 .../stub/HttpJsonBareMetalSolutionStub.java | 1 - .../BareMetalSolutionClientHttpJsonTest.java | 0 .../v2/BareMetalSolutionClientTest.java | 0 .../v2/MockBareMetalSolution.java | 0 .../v2/MockBareMetalSolutionImpl.java | 0 .../v2/BareMetalSolutionGrpc.java | 2624 +++++++++++++++++ .../v2/BareMetalSolutionGrpc.java | 1975 ------------- .../v2/BareMetalSolutionProto.java | 218 -- .../v2/DetachLunRequestOrBuilder.java | 49 - .../v2/GetInstanceRequestOrBuilder.java | 29 - .../v2/GetLunRequestOrBuilder.java | 29 - .../v2/GetNetworkRequestOrBuilder.java | 29 - .../v2/GetNfsShareRequestOrBuilder.java | 29 - .../v2/GetVolumeRequestOrBuilder.java | 29 - .../baremetalsolution/v2/InstanceProto.java | 283 -- .../v2/ListNetworkUsageRequestOrBuilder.java | 29 - .../cloud/baremetalsolution/v2/LunProto.java | 126 - .../baremetalsolution/v2/NetworkProto.java | 283 -- .../baremetalsolution/v2/NfsShareProto.java | 171 -- .../v2/ResetInstanceRequestOrBuilder.java | 29 - .../v2/ResetInstanceResponseOrBuilder.java | 9 - .../v2/ResizeVolumeRequestOrBuilder.java | 39 - .../v2/StartInstanceRequestOrBuilder.java | 29 - .../v2/StartInstanceResponseOrBuilder.java | 9 - .../v2/StopInstanceRequestOrBuilder.java | 29 - .../v2/StopInstanceResponseOrBuilder.java | 9 - .../baremetalsolution/v2/VolumeProto.java | 192 -- .../v2/BareMetalSolutionProto.java | 238 ++ .../v2/DetachLunRequest.java | 449 +-- .../v2/DetachLunRequestOrBuilder.java | 83 + .../v2/GetInstanceRequest.java | 342 ++- .../v2/GetInstanceRequestOrBuilder.java | 54 + .../baremetalsolution/v2/GetLunRequest.java | 339 ++- .../v2/GetLunRequestOrBuilder.java | 54 + .../v2/GetNetworkRequest.java | 342 ++- .../v2/GetNetworkRequestOrBuilder.java | 54 + .../v2/GetNfsShareRequest.java | 342 ++- .../v2/GetNfsShareRequestOrBuilder.java | 54 + .../v2/GetVolumeRequest.java | 342 ++- .../v2/GetVolumeRequestOrBuilder.java | 54 + .../cloud/baremetalsolution/v2/Instance.java | 1991 ++++++++----- .../baremetalsolution/v2/InstanceName.java | 0 .../v2/InstanceOrBuilder.java | 215 +- .../baremetalsolution/v2/InstanceProto.java | 325 ++ .../v2/ListInstancesRequest.java | 534 ++-- .../v2/ListInstancesRequestOrBuilder.java | 56 +- .../v2/ListInstancesResponse.java | 571 ++-- .../v2/ListInstancesResponseOrBuilder.java | 63 +- .../baremetalsolution/v2/ListLunsRequest.java | 455 +-- .../v2/ListLunsRequestOrBuilder.java | 47 +- .../v2/ListLunsResponse.java | 572 ++-- .../v2/ListLunsResponseOrBuilder.java | 63 +- .../v2/ListNetworkUsageRequest.java | 350 ++- .../v2/ListNetworkUsageRequestOrBuilder.java | 54 + .../v2/ListNetworkUsageResponse.java | 387 ++- .../v2/ListNetworkUsageResponseOrBuilder.java | 36 +- .../v2/ListNetworksRequest.java | 534 ++-- .../v2/ListNetworksRequestOrBuilder.java | 56 +- .../v2/ListNetworksResponse.java | 574 ++-- .../v2/ListNetworksResponseOrBuilder.java | 63 +- .../v2/ListNfsSharesRequest.java | 534 ++-- .../v2/ListNfsSharesRequestOrBuilder.java | 56 +- .../v2/ListNfsSharesResponse.java | 571 ++-- .../v2/ListNfsSharesResponseOrBuilder.java | 63 +- .../v2/ListVolumesRequest.java | 534 ++-- .../v2/ListVolumesRequestOrBuilder.java | 56 +- .../v2/ListVolumesResponse.java | 570 ++-- .../v2/ListVolumesResponseOrBuilder.java | 63 +- .../baremetalsolution/v2/LocationName.java | 0 .../v2/LogicalInterface.java | 1369 +++++---- .../v2/LogicalInterfaceOrBuilder.java | 74 +- .../cloud/baremetalsolution/v2/Lun.java | 1048 ++++--- .../cloud/baremetalsolution/v2/LunName.java | 0 .../baremetalsolution/v2/LunOrBuilder.java | 81 +- .../cloud/baremetalsolution/v2/LunProto.java | 153 + .../baremetalsolution/v2/NFSShareName.java | 0 .../cloud/baremetalsolution/v2/Network.java | 1705 ++++++----- .../v2/NetworkAddressReservation.java | 493 ++-- .../NetworkAddressReservationOrBuilder.java | 45 +- .../baremetalsolution/v2/NetworkName.java | 0 .../v2/NetworkOrBuilder.java | 170 +- .../baremetalsolution/v2/NetworkProto.java | 327 ++ .../baremetalsolution/v2/NetworkUsage.java | 443 +-- .../v2/NetworkUsageOrBuilder.java | 44 +- .../cloud/baremetalsolution/v2/NfsShare.java | 1891 +++++++----- .../v2/NfsShareOrBuilder.java | 111 +- .../baremetalsolution/v2/NfsShareProto.java | 202 ++ .../v2/OperationMetadata.java | 855 +++--- .../v2/OperationMetadataOrBuilder.java | 91 +- .../v2/ResetInstanceRequest.java | 342 ++- .../v2/ResetInstanceRequestOrBuilder.java | 54 + .../v2/ResetInstanceResponse.java | 238 +- .../v2/ResetInstanceResponseOrBuilder.java | 24 + .../v2/ResizeVolumeRequest.java | 379 ++- .../v2/ResizeVolumeRequestOrBuilder.java | 67 + .../v2/ServerNetworkTemplate.java | 1387 +++++---- .../v2/ServerNetworkTemplateOrBuilder.java | 88 +- .../v2/StartInstanceRequest.java | 342 ++- .../v2/StartInstanceRequestOrBuilder.java | 54 + .../v2/StartInstanceResponse.java | 238 +- .../v2/StartInstanceResponseOrBuilder.java | 24 + .../v2/StopInstanceRequest.java | 342 ++- .../v2/StopInstanceRequestOrBuilder.java | 54 + .../v2/StopInstanceResponse.java | 238 +- .../v2/StopInstanceResponseOrBuilder.java | 24 + .../v2/UpdateInstanceRequest.java | 480 +-- .../v2/UpdateInstanceRequestOrBuilder.java | 46 +- .../v2/UpdateNetworkRequest.java | 480 +-- .../v2/UpdateNetworkRequestOrBuilder.java | 46 +- .../v2/UpdateNfsShareRequest.java | 480 +-- .../v2/UpdateNfsShareRequestOrBuilder.java | 46 +- .../v2/UpdateVolumeRequest.java | 483 +-- .../v2/UpdateVolumeRequestOrBuilder.java | 46 +- .../cloud/baremetalsolution/v2/VRF.java | 1457 +++++---- .../baremetalsolution/v2/VRFOrBuilder.java | 71 +- .../cloud/baremetalsolution/v2/Volume.java | 2005 ++++++++----- .../baremetalsolution/v2/VolumeName.java | 0 .../baremetalsolution/v2/VolumeOrBuilder.java | 149 +- .../baremetalsolution/v2/VolumeProto.java | 230 ++ .../v2/baremetalsolution.proto | 0 .../cloud/baremetalsolution/v2/instance.proto | 0 .../cloud/baremetalsolution/v2/lun.proto | 0 .../cloud/baremetalsolution/v2/network.proto | 0 .../baremetalsolution/v2/nfs_share.proto | 0 .../cloud/baremetalsolution/v2/volume.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 3 +- .../create/SyncCreateSetEndpoint.java | 0 .../detachlun/AsyncDetachLun.java | 0 .../detachlun/AsyncDetachLunLRO.java | 0 .../detachlun/SyncDetachLun.java | 0 .../SyncDetachLunInstancenameLunname.java | 0 .../SyncDetachLunInstancenameString.java | 0 .../detachlun/SyncDetachLunStringLunname.java | 0 .../detachlun/SyncDetachLunStringString.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../getlun/AsyncGetLun.java | 0 .../getlun/SyncGetLun.java | 0 .../getlun/SyncGetLunLunname.java | 0 .../getlun/SyncGetLunString.java | 0 .../getnetwork/AsyncGetNetwork.java | 0 .../getnetwork/SyncGetNetwork.java | 0 .../getnetwork/SyncGetNetworkNetworkname.java | 0 .../getnetwork/SyncGetNetworkString.java | 0 .../getnfsshare/AsyncGetNfsShare.java | 0 .../getnfsshare/SyncGetNfsShare.java | 0 .../SyncGetNfsShareNfssharename.java | 0 .../getnfsshare/SyncGetNfsShareString.java | 0 .../getvolume/AsyncGetVolume.java | 0 .../getvolume/SyncGetVolume.java | 0 .../getvolume/SyncGetVolumeString.java | 0 .../getvolume/SyncGetVolumeVolumename.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../listluns/AsyncListLuns.java | 0 .../listluns/AsyncListLunsPaged.java | 0 .../listluns/SyncListLuns.java | 0 .../listluns/SyncListLunsString.java | 0 .../listluns/SyncListLunsVolumename.java | 0 .../listnetworks/AsyncListNetworks.java | 0 .../listnetworks/AsyncListNetworksPaged.java | 0 .../listnetworks/SyncListNetworks.java | 0 .../SyncListNetworksLocationname.java | 0 .../listnetworks/SyncListNetworksString.java | 0 .../AsyncListNetworkUsage.java | 0 .../SyncListNetworkUsage.java | 0 .../SyncListNetworkUsageLocationname.java | 0 .../SyncListNetworkUsageString.java | 0 .../listnfsshares/AsyncListNfsShares.java | 0 .../AsyncListNfsSharesPaged.java | 0 .../listnfsshares/SyncListNfsShares.java | 0 .../SyncListNfsSharesLocationname.java | 0 .../SyncListNfsSharesString.java | 0 .../listvolumes/AsyncListVolumes.java | 0 .../listvolumes/AsyncListVolumesPaged.java | 0 .../listvolumes/SyncListVolumes.java | 0 .../SyncListVolumesLocationname.java | 0 .../listvolumes/SyncListVolumesString.java | 0 .../resetinstance/AsyncResetInstance.java | 0 .../resetinstance/AsyncResetInstanceLRO.java | 0 .../resetinstance/SyncResetInstance.java | 0 .../SyncResetInstanceInstancename.java | 0 .../SyncResetInstanceString.java | 0 .../resizevolume/AsyncResizeVolume.java | 0 .../resizevolume/AsyncResizeVolumeLRO.java | 0 .../resizevolume/SyncResizeVolume.java | 0 .../SyncResizeVolumeStringLong.java | 0 .../SyncResizeVolumeVolumenameLong.java | 0 .../startinstance/AsyncStartInstance.java | 0 .../startinstance/AsyncStartInstanceLRO.java | 0 .../startinstance/SyncStartInstance.java | 0 .../SyncStartInstanceInstancename.java | 0 .../SyncStartInstanceString.java | 0 .../stopinstance/AsyncStopInstance.java | 0 .../stopinstance/AsyncStopInstanceLRO.java | 0 .../stopinstance/SyncStopInstance.java | 0 .../SyncStopInstanceInstancename.java | 0 .../stopinstance/SyncStopInstanceString.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 6 +- .../updatenetwork/AsyncUpdateNetwork.java | 0 .../updatenetwork/AsyncUpdateNetworkLRO.java | 0 .../updatenetwork/SyncUpdateNetwork.java | 0 .../SyncUpdateNetworkNetworkFieldmask.java | 3 +- .../updatenfsshare/AsyncUpdateNfsShare.java | 0 .../AsyncUpdateNfsShareLRO.java | 0 .../updatenfsshare/SyncUpdateNfsShare.java | 0 .../SyncUpdateNfsShareNfsshareFieldmask.java | 6 +- .../updatevolume/AsyncUpdateVolume.java | 0 .../updatevolume/AsyncUpdateVolumeLRO.java | 0 .../updatevolume/SyncUpdateVolume.java | 0 .../SyncUpdateVolumeVolumeFieldmask.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 232 files changed, 22919 insertions(+), 14570 deletions(-) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java (98%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java (99%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java (100%) rename {owl-bot-staging/v2/google-cloud-bare-metal-solution => google-cloud-bare-metal-solution}/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java (100%) create mode 100644 grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java delete mode 100644 owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java (63%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java (83%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java (52%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java (63%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java (51%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java (78%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java (78%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java (70%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java (67%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java (61%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java (65%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java (66%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java (64%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java (67%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java (73%) create mode 100644 proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/network.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2 => proto-google-cloud-bare-metal-solution-v2}/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java (94%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (87%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java (93%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java (87%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java (100%) diff --git a/README.md b/README.md index 99b7d58..a063e39 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-bare-metal-solution - 0.2.0 + 0.2.1 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.2.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.2.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.2.1" ``` ## Authentication diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java index 91c169c..84738de 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java @@ -68,13 +68,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. *
* @@ -2725,7 +2725,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListInstancesPagedResponse extends AbstractPagedListResponse< - ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, ListInstancesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2775,7 +2778,10 @@ public ApiFuture createPageAsync( public static class ListInstancesFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesRequest, + ListInstancesResponse, + Instance, + ListInstancesPage, ListInstancesFixedSizeCollection> { private ListInstancesFixedSizeCollection(List pages, int collectionSize) { @@ -2795,7 +2801,10 @@ protected ListInstancesFixedSizeCollection createCollection( public static class ListVolumesPagedResponse extends AbstractPagedListResponse< - ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, + ListVolumesRequest, + ListVolumesResponse, + Volume, + ListVolumesPage, ListVolumesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2842,7 +2851,10 @@ public ApiFuture createPageAsync( public static class ListVolumesFixedSizeCollection extends AbstractFixedSizeCollection< - ListVolumesRequest, ListVolumesResponse, Volume, ListVolumesPage, + ListVolumesRequest, + ListVolumesResponse, + Volume, + ListVolumesPage, ListVolumesFixedSizeCollection> { private ListVolumesFixedSizeCollection(List pages, int collectionSize) { @@ -2862,7 +2874,10 @@ protected ListVolumesFixedSizeCollection createCollection( public static class ListNetworksPagedResponse extends AbstractPagedListResponse< - ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, + ListNetworksRequest, + ListNetworksResponse, + Network, + ListNetworksPage, ListNetworksFixedSizeCollection> { public static ApiFuture createAsync( @@ -2911,7 +2926,10 @@ public ApiFuture createPageAsync( public static class ListNetworksFixedSizeCollection extends AbstractFixedSizeCollection< - ListNetworksRequest, ListNetworksResponse, Network, ListNetworksPage, + ListNetworksRequest, + ListNetworksResponse, + Network, + ListNetworksPage, ListNetworksFixedSizeCollection> { private ListNetworksFixedSizeCollection(List pages, int collectionSize) { @@ -2994,7 +3012,10 @@ protected ListLunsFixedSizeCollection createCollection( public static class ListNfsSharesPagedResponse extends AbstractPagedListResponse< - ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, + ListNfsSharesRequest, + ListNfsSharesResponse, + NfsShare, + ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3044,7 +3065,10 @@ public ApiFuture createPageAsync( public static class ListNfsSharesFixedSizeCollection extends AbstractFixedSizeCollection< - ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage, + ListNfsSharesRequest, + ListNfsSharesResponse, + NfsShare, + ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { private ListNfsSharesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java similarity index 98% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java index b5ada0f..ead7404 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java @@ -33,7 +33,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.baremetalsolution.v2.stub.BareMetalSolutionStubSettings; @@ -49,10 +48,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/package-info.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java index 5ddb3e8..6866d5c 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java @@ -103,10 +103,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java index b55630f..0e6e0e1 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/GrpcBareMetalSolutionStub.java @@ -70,7 +70,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java rename to google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java index 3b99d89..819488a 100644 --- a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java +++ b/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/HttpJsonBareMetalSolutionStub.java @@ -34,7 +34,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientHttpJsonTest.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClientTest.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolution.java diff --git a/owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java b/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java rename to google-cloud-bare-metal-solution/src/test/java/com/google/cloud/baremetalsolution/v2/MockBareMetalSolutionImpl.java diff --git a/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java new file mode 100644 index 0000000..cf4ba73 --- /dev/null +++ b/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java @@ -0,0 +1,2624 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.baremetalsolution.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Performs management operations on Bare Metal Solution servers.
+ * The `baremetalsolution.googleapis.com` service provides management
+ * capabilities for Bare Metal Solution servers. To access the API methods, you
+ * must assign Bare Metal Solution IAM roles containing the desired permissions
+ * to your staff in your Google Cloud project. You must also enable the Bare
+ * Metal Solution API. Once enabled, the methods act
+ * upon specific servers in your Bare Metal Solution environment.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BareMetalSolutionGrpc { + + private BareMetalSolutionGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { + BareMetalSolutionGrpc.getListInstancesMethod = + getListInstancesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListInstancesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance> + getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance> + getGetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance> + getGetInstanceMethod; + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { + BareMetalSolutionGrpc.getGetInstanceMethod = + getGetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { + BareMetalSolutionGrpc.getUpdateInstanceMethod = + getUpdateInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation> + getResetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetInstance", + requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation> + getResetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation> + getResetInstanceMethod; + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { + BareMetalSolutionGrpc.getResetInstanceMethod = + getResetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) + .build(); + } + } + } + return getResetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation> + getStartInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartInstance", + requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation> + getStartInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation> + getStartInstanceMethod; + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { + BareMetalSolutionGrpc.getStartInstanceMethod = + getStartInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) + .build(); + } + } + } + return getStartInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation> + getStopInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopInstance", + requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation> + getStopInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation> + getStopInstanceMethod; + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { + BareMetalSolutionGrpc.getStopInstanceMethod = + getStopInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) + .build(); + } + } + } + return getStopInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, com.google.longrunning.Operation> + getDetachLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetachLun", + requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, com.google.longrunning.Operation> + getDetachLunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, + com.google.longrunning.Operation> + getDetachLunMethod; + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { + BareMetalSolutionGrpc.getDetachLunMethod = + getDetachLunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.DetachLunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) + .build(); + } + } + } + return getDetachLunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + getListVolumesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVolumes", + requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + getListVolumesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + getListVolumesMethod; + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { + BareMetalSolutionGrpc.getListVolumesMethod = + getListVolumesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListVolumesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) + .build(); + } + } + } + return getListVolumesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume> + getGetVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVolume", + requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Volume.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume> + getGetVolumeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume> + getGetVolumeMethod; + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { + BareMetalSolutionGrpc.getGetVolumeMethod = + getGetVolumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) + .build(); + } + } + } + return getGetVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation> + getUpdateVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", + requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation> + getUpdateVolumeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation> + getUpdateVolumeMethod; + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { + BareMetalSolutionGrpc.getUpdateVolumeMethod = + getUpdateVolumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) + .build(); + } + } + } + return getUpdateVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation> + getResizeVolumeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", + requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation> + getResizeVolumeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation> + getResizeVolumeMethod; + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { + BareMetalSolutionGrpc.getResizeVolumeMethod = + getResizeVolumeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) + .build(); + } + } + } + return getResizeVolumeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + getListNetworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworks", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + getListNetworksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + getListNetworksMethod; + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { + BareMetalSolutionGrpc.getListNetworksMethod = + getListNetworksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) + .build(); + } + } + } + return getListNetworksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + getListNetworkUsageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", + requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + getListNetworkUsageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + getListNetworkUsageMethod; + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { + BareMetalSolutionGrpc.getListNetworkUsageMethod = + getListNetworkUsageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) + .build(); + } + } + } + return getListNetworkUsageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network> + getGetNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNetwork", + requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Network.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network> + getGetNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network> + getGetNetworkMethod; + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { + BareMetalSolutionGrpc.getGetNetworkMethod = + getGetNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) + .build(); + } + } + } + return getGetNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation> + getUpdateNetworkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation> + getUpdateNetworkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation> + getUpdateNetworkMethod; + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { + BareMetalSolutionGrpc.getUpdateNetworkMethod = + getUpdateNetworkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) + .build(); + } + } + } + return getUpdateNetworkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun> + getGetLunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLun", + requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.Lun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun> + getGetLunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun> + getGetLunMethod; + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { + BareMetalSolutionGrpc.getGetLunMethod = + getGetLunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetLunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) + .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) + .build(); + } + } + } + return getGetLunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + getListLunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLuns", + requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + getListLunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + getListLunsMethod; + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { + BareMetalSolutionGrpc.getListLunsMethod = + getListLunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListLunsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) + .build(); + } + } + } + return getListLunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare> + getGetNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare> + getGetNfsShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare> + getGetNfsShareMethod; + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { + BareMetalSolutionGrpc.getGetNfsShareMethod = + getGetNfsShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) + .build(); + } + } + } + return getGetNfsShareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + getListNfsSharesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", + requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + getListNfsSharesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + getListNfsSharesMethod; + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { + BareMetalSolutionGrpc.getListNfsSharesMethod = + getListNfsSharesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) + .build(); + } + } + } + return getListNfsSharesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation> + getUpdateNfsShareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", + requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation> + getUpdateNfsShareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation> + getUpdateNfsShareMethod; + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + synchronized (BareMetalSolutionGrpc.class) { + if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { + BareMetalSolutionGrpc.getUpdateNfsShareMethod = + getUpdateNfsShareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) + .build(); + } + } + } + return getUpdateNfsShareMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + }; + return BareMetalSolutionStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BareMetalSolutionBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + }; + return BareMetalSolutionBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BareMetalSolutionFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BareMetalSolutionFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + }; + return BareMetalSolutionFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public abstract static class BareMetalSolutionImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListVolumesMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVolumeMethod(), responseObserver); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResizeVolumeMethod(), responseObserver); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNetworksMethod(), responseObserver); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNetworkUsageMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNetworkMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNfsShareMethod(), responseObserver); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNfsSharesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNfsShareMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListInstancesRequest, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetInstanceRequest, + com.google.cloud.baremetalsolution.v2.Instance>(this, METHODID_GET_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getResetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_RESET_INSTANCE))) + .addMethod( + getStartInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StartInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_START_INSTANCE))) + .addMethod( + getStopInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.StopInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_STOP_INSTANCE))) + .addMethod( + getDetachLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.DetachLunRequest, + com.google.longrunning.Operation>(this, METHODID_DETACH_LUN))) + .addMethod( + getListVolumesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListVolumesRequest, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( + this, METHODID_LIST_VOLUMES))) + .addMethod( + getGetVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetVolumeRequest, + com.google.cloud.baremetalsolution.v2.Volume>(this, METHODID_GET_VOLUME))) + .addMethod( + getUpdateVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_VOLUME))) + .addMethod( + getResizeVolumeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, + com.google.longrunning.Operation>(this, METHODID_RESIZE_VOLUME))) + .addMethod( + getListNetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworksRequest, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( + this, METHODID_LIST_NETWORKS))) + .addMethod( + getListNetworkUsageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( + this, METHODID_LIST_NETWORK_USAGE))) + .addMethod( + getGetNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNetworkRequest, + com.google.cloud.baremetalsolution.v2.Network>(this, METHODID_GET_NETWORK))) + .addMethod( + getUpdateNetworkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_NETWORK))) + .addMethod( + getGetLunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetLunRequest, + com.google.cloud.baremetalsolution.v2.Lun>(this, METHODID_GET_LUN))) + .addMethod( + getListLunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListLunsRequest, + com.google.cloud.baremetalsolution.v2.ListLunsResponse>( + this, METHODID_LIST_LUNS))) + .addMethod( + getGetNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, + com.google.cloud.baremetalsolution.v2.NfsShare>( + this, METHODID_GET_NFS_SHARE))) + .addMethod( + getListNfsSharesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( + this, METHODID_LIST_NFS_SHARES))) + .addMethod( + getUpdateNfsShareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_NFS_SHARE))) + .build(); + } + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionStub + extends io.grpc.stub.AbstractAsyncStub { + private BareMetalSolutionStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionStub(channel, callOptions); + } + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public void getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public void updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public void resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public void startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public void stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public void detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public void listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public void getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public void updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public void resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public void listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public void listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public void getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public void updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public void getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public void listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public void getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public void listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public void updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BareMetalSolutionBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Instance getInstance( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance( + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.longrunning.Operation resetInstance( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.longrunning.Operation startInstance( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public com.google.longrunning.Operation stopInstance( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.longrunning.Operation detachLun( + com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetachLunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVolumesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Volume getVolume( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.longrunning.Operation updateVolume( + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.longrunning.Operation resizeVolume( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResizeVolumeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Network getNetwork( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNetworkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.longrunning.Operation updateNetwork( + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.Lun getLun( + com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns( + com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNfsShareMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNfsSharesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.longrunning.Operation updateNfsShare( + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Performs management operations on Bare Metal Solution servers.
+   * The `baremetalsolution.googleapis.com` service provides management
+   * capabilities for Bare Metal Solution servers. To access the API methods, you
+   * must assign Bare Metal Solution IAM roles containing the desired permissions
+   * to your staff in your Google Cloud project. You must also enable the Bare
+   * Metal Solution API. Once enabled, the methods act
+   * upon specific servers in your Bare Metal Solution environment.
+   * 
+ */ + public static final class BareMetalSolutionFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BareMetalSolutionFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BareMetalSolutionFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BareMetalSolutionFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * List servers in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListInstancesResponse> + listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details about a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Instance> + getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
+     * power off and then turning it back on.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a server that was shutdown.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stop a running server.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Detach LUN from Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List storage volumes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListVolumesResponse> + listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Volume> + getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Emergency Volume resize.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List network in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListNetworksResponse> + listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all Networks (and used IPs for each Network) in the vendor account
+     * associated with the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse> + listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Network> + getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single network.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single storage logical unit number(LUN).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.Lun> + getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List storage volume luns for given storage volume.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListLunsResponse> + listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.NfsShare> + getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List NFS shares.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse> + listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single NFS share.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_UPDATE_INSTANCE = 2; + private static final int METHODID_RESET_INSTANCE = 3; + private static final int METHODID_START_INSTANCE = 4; + private static final int METHODID_STOP_INSTANCE = 5; + private static final int METHODID_DETACH_LUN = 6; + private static final int METHODID_LIST_VOLUMES = 7; + private static final int METHODID_GET_VOLUME = 8; + private static final int METHODID_UPDATE_VOLUME = 9; + private static final int METHODID_RESIZE_VOLUME = 10; + private static final int METHODID_LIST_NETWORKS = 11; + private static final int METHODID_LIST_NETWORK_USAGE = 12; + private static final int METHODID_GET_NETWORK = 13; + private static final int METHODID_UPDATE_NETWORK = 14; + private static final int METHODID_GET_LUN = 15; + private static final int METHODID_LIST_LUNS = 16; + private static final int METHODID_GET_NFS_SHARE = 17; + private static final int METHODID_LIST_NFS_SHARES = 18; + private static final int METHODID_UPDATE_NFS_SHARE = 19; + + 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 BareMetalSolutionImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances( + (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListInstancesResponse>) + responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance( + (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance( + (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_INSTANCE: + serviceImpl.resetInstance( + (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_INSTANCE: + serviceImpl.startInstance( + (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_INSTANCE: + serviceImpl.stopInstance( + (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DETACH_LUN: + serviceImpl.detachLun( + (com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOLUMES: + serviceImpl.listVolumes( + (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListVolumesResponse>) + responseObserver); + break; + case METHODID_GET_VOLUME: + serviceImpl.getVolume( + (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_VOLUME: + serviceImpl.updateVolume( + (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESIZE_VOLUME: + serviceImpl.resizeVolume( + (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NETWORKS: + serviceImpl.listNetworks( + (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListNetworksResponse>) + responseObserver); + break; + case METHODID_LIST_NETWORK_USAGE: + serviceImpl.listNetworkUsage( + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>) + responseObserver); + break; + case METHODID_GET_NETWORK: + serviceImpl.getNetwork( + (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_NETWORK: + serviceImpl.updateNetwork( + (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LUN: + serviceImpl.getLun( + (com.google.cloud.baremetalsolution.v2.GetLunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_LUNS: + serviceImpl.listLuns( + (com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NFS_SHARE: + serviceImpl.getNfsShare( + (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_NFS_SHARES: + serviceImpl.listNfsShares( + (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>) + responseObserver); + break; + case METHODID_UPDATE_NFS_SHARE: + serviceImpl.updateNfsShare( + (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BareMetalSolutionBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BareMetalSolution"); + } + } + + private static final class BareMetalSolutionFileDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier { + BareMetalSolutionFileDescriptorSupplier() {} + } + + private static final class BareMetalSolutionMethodDescriptorSupplier + extends BareMetalSolutionBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getResetInstanceMethod()) + .addMethod(getStartInstanceMethod()) + .addMethod(getStopInstanceMethod()) + .addMethod(getDetachLunMethod()) + .addMethod(getListVolumesMethod()) + .addMethod(getGetVolumeMethod()) + .addMethod(getUpdateVolumeMethod()) + .addMethod(getResizeVolumeMethod()) + .addMethod(getListNetworksMethod()) + .addMethod(getListNetworkUsageMethod()) + .addMethod(getGetNetworkMethod()) + .addMethod(getUpdateNetworkMethod()) + .addMethod(getGetLunMethod()) + .addMethod(getListLunsMethod()) + .addMethod(getGetNfsShareMethod()) + .addMethod(getListNfsSharesMethod()) + .addMethod(getUpdateNfsShareMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java deleted file mode 100644 index d21be35..0000000 --- a/owl-bot-staging/v2/grpc-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionGrpc.java +++ /dev/null @@ -1,1975 +0,0 @@ -package com.google.cloud.baremetalsolution.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Performs management operations on Bare Metal Solution servers.
- * The `baremetalsolution.googleapis.com` service provides management
- * capabilities for Bare Metal Solution servers. To access the API methods, you
- * must assign Bare Metal Solution IAM roles containing the desired permissions
- * to your staff in your Google Cloud project. You must also enable the Bare
- * Metal Solution API. Once enabled, the methods act
- * upon specific servers in your Bare Metal Solution environment.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BareMetalSolutionGrpc { - - private BareMetalSolutionGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.baremetalsolution.v2.BareMetalSolution"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListInstancesMethod() { - io.grpc.MethodDescriptor getListInstancesMethod; - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListInstancesMethod = BareMetalSolutionGrpc.getListInstancesMethod) == null) { - BareMetalSolutionGrpc.getListInstancesMethod = getListInstancesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstanceMethod() { - io.grpc.MethodDescriptor getGetInstanceMethod; - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetInstanceMethod = BareMetalSolutionGrpc.getGetInstanceMethod) == null) { - BareMetalSolutionGrpc.getGetInstanceMethod = getGetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { - io.grpc.MethodDescriptor getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateInstanceMethod = BareMetalSolutionGrpc.getUpdateInstanceMethod) == null) { - BareMetalSolutionGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getResetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetInstance", - requestType = com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResetInstanceMethod() { - io.grpc.MethodDescriptor getResetInstanceMethod; - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResetInstanceMethod = BareMetalSolutionGrpc.getResetInstanceMethod) == null) { - BareMetalSolutionGrpc.getResetInstanceMethod = getResetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResetInstance")) - .build(); - } - } - } - return getResetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartInstance", - requestType = com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartInstanceMethod() { - io.grpc.MethodDescriptor getStartInstanceMethod; - if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getStartInstanceMethod = BareMetalSolutionGrpc.getStartInstanceMethod) == null) { - BareMetalSolutionGrpc.getStartInstanceMethod = getStartInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StartInstance")) - .build(); - } - } - } - return getStartInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopInstance", - requestType = com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopInstanceMethod() { - io.grpc.MethodDescriptor getStopInstanceMethod; - if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getStopInstanceMethod = BareMetalSolutionGrpc.getStopInstanceMethod) == null) { - BareMetalSolutionGrpc.getStopInstanceMethod = getStopInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("StopInstance")) - .build(); - } - } - } - return getStopInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDetachLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetachLun", - requestType = com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDetachLunMethod() { - io.grpc.MethodDescriptor getDetachLunMethod; - if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getDetachLunMethod = BareMetalSolutionGrpc.getDetachLunMethod) == null) { - BareMetalSolutionGrpc.getDetachLunMethod = getDetachLunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("DetachLun")) - .build(); - } - } - } - return getDetachLunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListVolumesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVolumes", - requestType = com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListVolumesMethod() { - io.grpc.MethodDescriptor getListVolumesMethod; - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListVolumesMethod = BareMetalSolutionGrpc.getListVolumesMethod) == null) { - BareMetalSolutionGrpc.getListVolumesMethod = getListVolumesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVolumes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListVolumes")) - .build(); - } - } - } - return getListVolumesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVolume", - requestType = com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Volume.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetVolumeMethod() { - io.grpc.MethodDescriptor getGetVolumeMethod; - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetVolumeMethod = BareMetalSolutionGrpc.getGetVolumeMethod) == null) { - BareMetalSolutionGrpc.getGetVolumeMethod = getGetVolumeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetVolume")) - .build(); - } - } - } - return getGetVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateVolume", - requestType = com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateVolumeMethod() { - io.grpc.MethodDescriptor getUpdateVolumeMethod; - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateVolumeMethod = BareMetalSolutionGrpc.getUpdateVolumeMethod) == null) { - BareMetalSolutionGrpc.getUpdateVolumeMethod = getUpdateVolumeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateVolume")) - .build(); - } - } - } - return getUpdateVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor getResizeVolumeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResizeVolume", - requestType = com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResizeVolumeMethod() { - io.grpc.MethodDescriptor getResizeVolumeMethod; - if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getResizeVolumeMethod = BareMetalSolutionGrpc.getResizeVolumeMethod) == null) { - BareMetalSolutionGrpc.getResizeVolumeMethod = getResizeVolumeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResizeVolume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ResizeVolume")) - .build(); - } - } - } - return getResizeVolumeMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNetworksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworks", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNetworksMethod() { - io.grpc.MethodDescriptor getListNetworksMethod; - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworksMethod = BareMetalSolutionGrpc.getListNetworksMethod) == null) { - BareMetalSolutionGrpc.getListNetworksMethod = getListNetworksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworks")) - .build(); - } - } - } - return getListNetworksMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNetworkUsageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNetworkUsage", - requestType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNetworkUsageMethod() { - io.grpc.MethodDescriptor getListNetworkUsageMethod; - if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNetworkUsageMethod = BareMetalSolutionGrpc.getListNetworkUsageMethod) == null) { - BareMetalSolutionGrpc.getListNetworkUsageMethod = getListNetworkUsageMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNetworkUsage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNetworkUsage")) - .build(); - } - } - } - return getListNetworkUsageMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNetwork", - requestType = com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Network.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNetworkMethod() { - io.grpc.MethodDescriptor getGetNetworkMethod; - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNetworkMethod = BareMetalSolutionGrpc.getGetNetworkMethod) == null) { - BareMetalSolutionGrpc.getGetNetworkMethod = getGetNetworkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNetwork")) - .build(); - } - } - } - return getGetNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNetworkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNetwork", - requestType = com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNetworkMethod() { - io.grpc.MethodDescriptor getUpdateNetworkMethod; - if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateNetworkMethod = BareMetalSolutionGrpc.getUpdateNetworkMethod) == null) { - BareMetalSolutionGrpc.getUpdateNetworkMethod = getUpdateNetworkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNetwork")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNetwork")) - .build(); - } - } - } - return getUpdateNetworkMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetLunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLun", - requestType = com.google.cloud.baremetalsolution.v2.GetLunRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.Lun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetLunMethod() { - io.grpc.MethodDescriptor getGetLunMethod; - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetLunMethod = BareMetalSolutionGrpc.getGetLunMethod) == null) { - BareMetalSolutionGrpc.getGetLunMethod = getGetLunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetLun")) - .build(); - } - } - } - return getGetLunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListLunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLuns", - requestType = com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListLunsMethod() { - io.grpc.MethodDescriptor getListLunsMethod; - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListLunsMethod = BareMetalSolutionGrpc.getListLunsMethod) == null) { - BareMetalSolutionGrpc.getListLunsMethod = getListLunsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListLuns")) - .build(); - } - } - } - return getListLunsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNfsShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNfsShare", - requestType = com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.NfsShare.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNfsShareMethod() { - io.grpc.MethodDescriptor getGetNfsShareMethod; - if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getGetNfsShareMethod = BareMetalSolutionGrpc.getGetNfsShareMethod) == null) { - BareMetalSolutionGrpc.getGetNfsShareMethod = getGetNfsShareMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNfsShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("GetNfsShare")) - .build(); - } - } - } - return getGetNfsShareMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNfsSharesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNfsShares", - requestType = com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, - responseType = com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNfsSharesMethod() { - io.grpc.MethodDescriptor getListNfsSharesMethod; - if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getListNfsSharesMethod = BareMetalSolutionGrpc.getListNfsSharesMethod) == null) { - BareMetalSolutionGrpc.getListNfsSharesMethod = getListNfsSharesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNfsShares")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("ListNfsShares")) - .build(); - } - } - } - return getListNfsSharesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNfsShareMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNfsShare", - requestType = com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNfsShareMethod() { - io.grpc.MethodDescriptor getUpdateNfsShareMethod; - if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { - synchronized (BareMetalSolutionGrpc.class) { - if ((getUpdateNfsShareMethod = BareMetalSolutionGrpc.getUpdateNfsShareMethod) == null) { - BareMetalSolutionGrpc.getUpdateNfsShareMethod = getUpdateNfsShareMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNfsShare")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BareMetalSolutionMethodDescriptorSupplier("UpdateNfsShare")) - .build(); - } - } - } - return getUpdateNfsShareMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static BareMetalSolutionStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - }; - return BareMetalSolutionStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BareMetalSolutionBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - }; - return BareMetalSolutionBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static BareMetalSolutionFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BareMetalSolutionFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - }; - return BareMetalSolutionFutureStub.newStub(factory, channel); - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static abstract class BareMetalSolutionImplBase implements io.grpc.BindableService { - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetInstanceMethod(), responseObserver); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartInstanceMethod(), responseObserver); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopInstanceMethod(), responseObserver); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLunMethod(), responseObserver); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVolumesMethod(), responseObserver); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVolumeMethod(), responseObserver); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateVolumeMethod(), responseObserver); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResizeVolumeMethod(), responseObserver); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworksMethod(), responseObserver); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNetworkUsageMethod(), responseObserver); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkMethod(), responseObserver); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNetworkMethod(), responseObserver); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLunMethod(), responseObserver); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLunsMethod(), responseObserver); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNfsShareMethod(), responseObserver); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNfsSharesMethod(), responseObserver); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNfsShareMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListInstancesRequest, - com.google.cloud.baremetalsolution.v2.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetInstanceRequest, - com.google.cloud.baremetalsolution.v2.Instance>( - this, METHODID_GET_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getResetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_RESET_INSTANCE))) - .addMethod( - getStartInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.StartInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_START_INSTANCE))) - .addMethod( - getStopInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.StopInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_INSTANCE))) - .addMethod( - getDetachLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.DetachLunRequest, - com.google.longrunning.Operation>( - this, METHODID_DETACH_LUN))) - .addMethod( - getListVolumesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListVolumesRequest, - com.google.cloud.baremetalsolution.v2.ListVolumesResponse>( - this, METHODID_LIST_VOLUMES))) - .addMethod( - getGetVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetVolumeRequest, - com.google.cloud.baremetalsolution.v2.Volume>( - this, METHODID_GET_VOLUME))) - .addMethod( - getUpdateVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_VOLUME))) - .addMethod( - getResizeVolumeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest, - com.google.longrunning.Operation>( - this, METHODID_RESIZE_VOLUME))) - .addMethod( - getListNetworksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworksRequest, - com.google.cloud.baremetalsolution.v2.ListNetworksResponse>( - this, METHODID_LIST_NETWORKS))) - .addMethod( - getListNetworkUsageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest, - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse>( - this, METHODID_LIST_NETWORK_USAGE))) - .addMethod( - getGetNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNetworkRequest, - com.google.cloud.baremetalsolution.v2.Network>( - this, METHODID_GET_NETWORK))) - .addMethod( - getUpdateNetworkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_NETWORK))) - .addMethod( - getGetLunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetLunRequest, - com.google.cloud.baremetalsolution.v2.Lun>( - this, METHODID_GET_LUN))) - .addMethod( - getListLunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListLunsRequest, - com.google.cloud.baremetalsolution.v2.ListLunsResponse>( - this, METHODID_LIST_LUNS))) - .addMethod( - getGetNfsShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest, - com.google.cloud.baremetalsolution.v2.NfsShare>( - this, METHODID_GET_NFS_SHARE))) - .addMethod( - getListNfsSharesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest, - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse>( - this, METHODID_LIST_NFS_SHARES))) - .addMethod( - getUpdateNfsShareMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_NFS_SHARE))) - .build(); - } - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionStub extends io.grpc.stub.AbstractAsyncStub { - private BareMetalSolutionStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionStub(channel, callOptions); - } - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public void listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public void getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public void updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public void resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public void startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public void stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public void detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetachLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public void listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public void getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public void updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public void resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public void listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public void listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public void getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public void updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public void getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public void listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public void getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public void listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public void updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BareMetalSolutionBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionBlockingStub(channel, callOptions); - } - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListInstancesResponse listInstances(com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Instance getInstance(com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public com.google.longrunning.Operation updateInstance(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.longrunning.Operation resetInstance(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public com.google.longrunning.Operation startInstance(com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public com.google.longrunning.Operation stopInstance(com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public com.google.longrunning.Operation detachLun(com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetachLunMethod(), getCallOptions(), request); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListVolumesResponse listVolumes(com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVolumesMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Volume getVolume(com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVolumeMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.longrunning.Operation updateVolume(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateVolumeMethod(), getCallOptions(), request); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public com.google.longrunning.Operation resizeVolume(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResizeVolumeMethod(), getCallOptions(), request); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworksResponse listNetworks(com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworksMethod(), getCallOptions(), request); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse listNetworkUsage(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNetworkUsageMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Network getNetwork(com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNetworkMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public com.google.longrunning.Operation updateNetwork(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNetworkMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.Lun getLun(com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLunMethod(), getCallOptions(), request); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListLunsResponse listLuns(com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLunsMethod(), getCallOptions(), request); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNfsShareMethod(), getCallOptions(), request); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse listNfsShares(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNfsSharesMethod(), getCallOptions(), request); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public com.google.longrunning.Operation updateNfsShare(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNfsShareMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Performs management operations on Bare Metal Solution servers.
-   * The `baremetalsolution.googleapis.com` service provides management
-   * capabilities for Bare Metal Solution servers. To access the API methods, you
-   * must assign Bare Metal Solution IAM roles containing the desired permissions
-   * to your staff in your Google Cloud project. You must also enable the Bare
-   * Metal Solution API. Once enabled, the methods act
-   * upon specific servers in your Bare Metal Solution environment.
-   * 
- */ - public static final class BareMetalSolutionFutureStub extends io.grpc.stub.AbstractFutureStub { - private BareMetalSolutionFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BareMetalSolutionFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BareMetalSolutionFutureStub(channel, callOptions); - } - - /** - *
-     * List servers in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details about a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateInstance( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Perform an ungraceful, hard reset on a server. Equivalent to shutting the
-     * power off and then turning it back on.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resetInstance( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a server that was shutdown.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startInstance( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Stop a running server.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopInstance( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Detach LUN from Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture detachLun( - com.google.cloud.baremetalsolution.v2.DetachLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetachLunMethod(), getCallOptions()), request); - } - - /** - *
-     * List storage volumes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listVolumes( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVolumesMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getVolume( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVolumeMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateVolume( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateVolumeMethod(), getCallOptions()), request); - } - - /** - *
-     * Emergency Volume resize.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resizeVolume( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResizeVolumeMethod(), getCallOptions()), request); - } - - /** - *
-     * List network in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNetworks( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworksMethod(), getCallOptions()), request); - } - - /** - *
-     * List all Networks (and used IPs for each Network) in the vendor account
-     * associated with the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNetworkUsage( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNetworkUsageMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNetwork( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNetworkMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single network.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNetwork( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNetworkMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single storage logical unit number(LUN).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getLun( - com.google.cloud.baremetalsolution.v2.GetLunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLunMethod(), getCallOptions()), request); - } - - /** - *
-     * List storage volume luns for given storage volume.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listLuns( - com.google.cloud.baremetalsolution.v2.ListLunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLunsMethod(), getCallOptions()), request); - } - - /** - *
-     * Get details of a single NFS share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNfsShare( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNfsShareMethod(), getCallOptions()), request); - } - - /** - *
-     * List NFS shares.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNfsShares( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNfsSharesMethod(), getCallOptions()), request); - } - - /** - *
-     * Update details of a single NFS share.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNfsShare( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNfsShareMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_UPDATE_INSTANCE = 2; - private static final int METHODID_RESET_INSTANCE = 3; - private static final int METHODID_START_INSTANCE = 4; - private static final int METHODID_STOP_INSTANCE = 5; - private static final int METHODID_DETACH_LUN = 6; - private static final int METHODID_LIST_VOLUMES = 7; - private static final int METHODID_GET_VOLUME = 8; - private static final int METHODID_UPDATE_VOLUME = 9; - private static final int METHODID_RESIZE_VOLUME = 10; - private static final int METHODID_LIST_NETWORKS = 11; - private static final int METHODID_LIST_NETWORK_USAGE = 12; - private static final int METHODID_GET_NETWORK = 13; - private static final int METHODID_UPDATE_NETWORK = 14; - private static final int METHODID_GET_LUN = 15; - private static final int METHODID_LIST_LUNS = 16; - private static final int METHODID_GET_NFS_SHARE = 17; - private static final int METHODID_LIST_NFS_SHARES = 18; - private static final int METHODID_UPDATE_NFS_SHARE = 19; - - 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 BareMetalSolutionImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BareMetalSolutionImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESET_INSTANCE: - serviceImpl.resetInstance((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_INSTANCE: - serviceImpl.startInstance((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_INSTANCE: - serviceImpl.stopInstance((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DETACH_LUN: - serviceImpl.detachLun((com.google.cloud.baremetalsolution.v2.DetachLunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VOLUMES: - serviceImpl.listVolumes((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_VOLUME: - serviceImpl.getVolume((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_VOLUME: - serviceImpl.updateVolume((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESIZE_VOLUME: - serviceImpl.resizeVolume((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NETWORKS: - serviceImpl.listNetworks((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NETWORK_USAGE: - serviceImpl.listNetworkUsage((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NETWORK: - serviceImpl.getNetwork((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NETWORK: - serviceImpl.updateNetwork((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LUN: - serviceImpl.getLun((com.google.cloud.baremetalsolution.v2.GetLunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_LUNS: - serviceImpl.listLuns((com.google.cloud.baremetalsolution.v2.ListLunsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NFS_SHARE: - serviceImpl.getNfsShare((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NFS_SHARES: - serviceImpl.listNfsShares((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NFS_SHARE: - serviceImpl.updateNfsShare((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) 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 BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BareMetalSolutionBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BareMetalSolution"); - } - } - - private static final class BareMetalSolutionFileDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier { - BareMetalSolutionFileDescriptorSupplier() {} - } - - private static final class BareMetalSolutionMethodDescriptorSupplier - extends BareMetalSolutionBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BareMetalSolutionMethodDescriptorSupplier(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 (BareMetalSolutionGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BareMetalSolutionFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getResetInstanceMethod()) - .addMethod(getStartInstanceMethod()) - .addMethod(getStopInstanceMethod()) - .addMethod(getDetachLunMethod()) - .addMethod(getListVolumesMethod()) - .addMethod(getGetVolumeMethod()) - .addMethod(getUpdateVolumeMethod()) - .addMethod(getResizeVolumeMethod()) - .addMethod(getListNetworksMethod()) - .addMethod(getListNetworkUsageMethod()) - .addMethod(getGetNetworkMethod()) - .addMethod(getUpdateNetworkMethod()) - .addMethod(getGetLunMethod()) - .addMethod(getListLunsMethod()) - .addMethod(getGetNfsShareMethod()) - .addMethod(getListNfsSharesMethod()) - .addMethod(getUpdateNfsShareMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java deleted file mode 100644 index 2ce6b05..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java +++ /dev/null @@ -1,218 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class BareMetalSolutionProto { - private BareMetalSolutionProto() {} - 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_baremetalsolution_v2_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/baremetalsolution/v2/bare" + - "metalsolution.proto\022!google.cloud.bareme" + - "talsolution.v2\032\034google/api/annotations.p" + - "roto\032\027google/api/client.proto\032\037google/ap" + - "i/field_behavior.proto\0320google/cloud/bar" + - "emetalsolution/v2/instance.proto\032+google" + - "/cloud/baremetalsolution/v2/lun.proto\032/g" + - "oogle/cloud/baremetalsolution/v2/network" + - ".proto\0321google/cloud/baremetalsolution/v" + - "2/nfs_share.proto\032.google/cloud/baremeta" + - "lsolution/v2/volume.proto\032#google/longru" + - "nning/operations.proto\032\037google/protobuf/" + - "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" + - "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + - "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" + - "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " + - "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" + - "setInstanceResponse2\335 \n\021BareMetalSolutio" + - "n\022\302\001\n\rListInstances\0227.google.cloud.barem" + - "etalsolution.v2.ListInstancesRequest\0328.g" + - "oogle.cloud.baremetalsolution.v2.ListIns" + - "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" + - "ects/*/locations/*}/instances\332A\006parent\022\257" + - "\001\n\013GetInstance\0225.google.cloud.baremetals" + - "olution.v2.GetInstanceRequest\032+.google.c" + - "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" + - "\002/\022-/v2/{name=projects/*/locations/*/ins" + - "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" + - "ogle.cloud.baremetalsolution.v2.UpdateIn" + - "stanceRequest\032\035.google.longrunning.Opera" + - "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" + - "s/*/locations/*/instances/*}:\010instance\332A" + - "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" + - "ationMetadata\022\333\001\n\rResetInstance\0227.google" + - ".cloud.baremetalsolution.v2.ResetInstanc" + - "eRequest\032\035.google.longrunning.Operation\"" + - "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" + - "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" + - "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" + - "StartInstance\0227.google.cloud.baremetalso" + - "lution.v2.StartInstanceRequest\032\035.google." + - "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" + - "=projects/*/locations/*/instances/*}:sta" + - "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" + - "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" + - "gle.cloud.baremetalsolution.v2.StopInsta" + - "nceRequest\032\035.google.longrunning.Operatio" + - "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" + - "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" + - "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" + - "DetachLun\0223.google.cloud.baremetalsoluti" + - "on.v2.DetachLunRequest\032\035.google.longrunn" + - "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" + - "jects/*/locations/*/instances/*}:detachL" + - "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" + - "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" + - "oud.baremetalsolution.v2.ListVolumesRequ" + - "est\0326.google.cloud.baremetalsolution.v2." + - "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" + - "=projects/*/locations/*}/volumes\332A\006paren" + - "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" + - "solution.v2.GetVolumeRequest\032).google.cl" + - "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" + - "+/v2/{name=projects/*/locations/*/volume" + - "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" + - "oud.baremetalsolution.v2.UpdateVolumeReq" + - "uest\032\035.google.longrunning.Operation\"u\202\323\344" + - "\223\002<22/v2/{volume.name=projects/*/locatio" + - "ns/*/volumes/*}:\006volume\332A\022volume,update_" + - "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" + - "esizeVolume\0226.google.cloud.baremetalsolu" + - "tion.v2.ResizeVolumeRequest\032\035.google.lon" + - "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" + - "projects/*/locations/*/volumes/*}:resize" + - ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" + - "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" + - "oud.baremetalsolution.v2.ListNetworksReq" + - "uest\0327.google.cloud.baremetalsolution.v2" + - ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" + - "nt=projects/*/locations/*}/networks\332A\006pa" + - "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" + - ".baremetalsolution.v2.ListNetworkUsageRe" + - "quest\032;.google.cloud.baremetalsolution.v" + - "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" + - "{location=projects/*/locations/*}/networ" + - "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" + - "twork\0224.google.cloud.baremetalsolution.v" + - "2.GetNetworkRequest\032*.google.cloud.barem" + - "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" + - "me=projects/*/locations/*/networks/*}\332A\004" + - "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" + - "remetalsolution.v2.UpdateNetworkRequest\032" + - "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" + - "/v2/{network.name=projects/*/locations/*" + - "/networks/*}:\007network\332A\023network,update_m" + - "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" + - "etLun\0220.google.cloud.baremetalsolution.v" + - "2.GetLunRequest\032&.google.cloud.baremetal" + - "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" + - "cts/*/locations/*/volumes/*/luns/*}\332A\004na" + - "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" + - "solution.v2.ListLunsRequest\0323.google.clo" + - "ud.baremetalsolution.v2.ListLunsResponse" + - "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" + - "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" + - "Share\0225.google.cloud.baremetalsolution.v" + - "2.GetNfsShareRequest\032+.google.cloud.bare" + - "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" + - "name=projects/*/locations/*/nfsShares/*}" + - "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" + - ".baremetalsolution.v2.ListNfsSharesReque" + - "st\0328.google.cloud.baremetalsolution.v2.L" + - "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" + - "t=projects/*/locations/*}/nfsShares\332A\006pa" + - "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" + - "aremetalsolution.v2.UpdateNfsShareReques" + - "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" + - "D27/v2/{nfs_share.name=projects/*/locati" + - "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" + - "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" + - "adata\032T\312A baremetalsolution.googleapis.c" + - "om\322A.https://www.googleapis.com/auth/clo" + - "ud-platformB\204\002\n%com.google.cloud.baremet" + - "alsolution.v2B\026BareMetalSolutionProtoP\001Z" + - "Rgoogle.golang.org/genproto/googleapis/c" + - "loud/baremetalsolution/v2;baremetalsolut" + - "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" + - "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" + - "ogle::Cloud::BareMetalSolution::V2b\006prot" + - "o3" - }; - 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java deleted file mode 100644 index 5ac8a36..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface DetachLunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the instance.
-   * 
- * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The instance. - */ - java.lang.String getInstance(); - /** - *
-   * Required. Name of the instance.
-   * 
- * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for instance. - */ - com.google.protobuf.ByteString - getInstanceBytes(); - - /** - *
-   * Required. Name of the Lun to detach.
-   * 
- * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The lun. - */ - java.lang.String getLun(); - /** - *
-   * Required. Name of the Lun to detach.
-   * 
- * - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for lun. - */ - com.google.protobuf.ByteString - getLunBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java deleted file mode 100644 index e956437..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java deleted file mode 100644 index d320c48..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/lun.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetLunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java deleted file mode 100644 index 59b3157..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNetworkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java deleted file mode 100644 index f17088b..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/nfs_share.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetNfsShareRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java deleted file mode 100644 index ed4c7ee..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface GetVolumeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java deleted file mode 100644 index 1c4d7e3..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java +++ /dev/null @@ -1,283 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class InstanceProto { - private InstanceProto() {} - 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_baremetalsolution_v2_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/baremetalsolution/v2/inst" + - "ance.proto\022!google.cloud.baremetalsoluti" + - "on.v2\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032+google/cloud/" + - "baremetalsolution/v2/lun.proto\032/google/c" + - "loud/baremetalsolution/v2/network.proto\032" + - " google/protobuf/field_mask.proto\032\037googl" + - "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" + - "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" + - "solution.v2.Instance.State\022\036\n\026hyperthrea" + - "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" + - "gle.cloud.baremetalsolution.v2.Instance." + - "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" + - ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " + - "\003(\0132*.google.cloud.baremetalsolution.v2." + - "Network\022*\n\"interactive_serial_console_en" + - "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" + - "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" + - "baremetalsolution.googleapis.com/ServerN" + - "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" + - "(\01323.google.cloud.baremetalsolution.v2.L" + - "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" + - "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" + - "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" + - "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" + - "+.google.cloud.baremetalsolution.v2.Inst" + - "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + - "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" + - "instance\030\001 \001(\0132+.google.cloud.baremetals" + - "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" + - "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" + - "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + - ")baremetalsolution.googleapis.com/Instan" + - "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" + - "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" + - "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" + - "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" + - "leapis.com/Instance\"\222\001\n\020DetachLunRequest" + - "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" + - "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" + - "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" + - ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" + - "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" + - "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" + - "oogle.cloud.baremetalsolution.v2.ServerN" + - "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" + - "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" + - "2W.google.cloud.baremetalsolution.v2.Ser" + - "verNetworkTemplate.LogicalInterface.Inte" + - "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" + - "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" + - "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" + - "n.googleapis.com/ServerNetworkTemplate\022W" + - "projects/{project}/locations/{location}/" + - "serverNetworkTemplate/{server_network_te" + - "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" + - "InstanceResponseB\373\001\n%com.google.cloud.ba" + - "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/baremetalsolution/v2;baremetalsolution\252" + - "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" + - "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" + - "::Cloud::BareMetalSolution::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, - new java.lang.String[] { "Name", "Id", "CreateTime", "UpdateTime", "MachineType", "State", "HyperthreadingEnabled", "Labels", "Luns", "Networks", "InteractiveSerialConsoleEnabled", "OsImage", "Pod", "NetworkTemplate", "LogicalInterfaces", }); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, - new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, - new java.lang.String[] { "Instance", "UpdateMask", }); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, - new java.lang.String[] { "Instance", "Lun", }); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, - new java.lang.String[] { "Name", "ApplicableInstanceTypes", "LogicalInterfaces", }); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, - new java.lang.String[] { "Name", "Type", "Required", }); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); - com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java deleted file mode 100644 index e4cb363..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ListNetworkUsageRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Parent value (project and location).
-   * 
- * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The location. - */ - java.lang.String getLocation(); - /** - *
-   * Required. Parent value (project and location).
-   * 
- * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for location. - */ - com.google.protobuf.ByteString - getLocationBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java deleted file mode 100644 index 88b187e..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java +++ /dev/null @@ -1,126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/lun.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class LunProto { - private LunProto() {} - 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_baremetalsolution_v2_Lun_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." + - "proto\022!google.cloud.baremetalsolution.v2" + - "\032\037google/api/field_behavior.proto\032\031googl" + - "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" + - "gle.cloud.baremetalsolution.v2.Lun.State" + - "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" + - "\004 \001(\01628.google.cloud.baremetalsolution.v" + - "2.Lun.MultiprotocolType\022D\n\016storage_volum" + - "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" + - "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" + - "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" + - "e.cloud.baremetalsolution.v2.Lun.Storage" + - "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" + - "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" + - "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" + - "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" + - "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" + - "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" + - "$baremetalsolution.googleapis.com/Lun\022Cp" + - "rojects/{project}/locations/{location}/v" + - "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" + - "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" + - "tion.googleapis.com/Lun\"y\n\017ListLunsReque" + - "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" + - "ution.googleapis.com/Volume\022\021\n\tpage_size" + - "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" + - "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" + - "metalsolution.v2.Lun\022\027\n\017next_page_token\030" + - "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" + - "e.cloud.baremetalsolution.v2B\010LunProtoP\001" + - "ZRgoogle.golang.org/genproto/googleapis/" + - "cloud/baremetalsolution/v2;baremetalsolu" + - "tion\252\002!Google.Cloud.BareMetalSolution.V2" + - "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" + - "oogle::Cloud::BareMetalSolution::V2b\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, - new java.lang.String[] { "Name", "Id", "State", "SizeGb", "MultiprotocolType", "StorageVolume", "Shareable", "BootLun", "StorageType", "Wwid", }); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, - new java.lang.String[] { "Luns", "NextPageToken", "Unreachable", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java deleted file mode 100644 index e830e19..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java +++ /dev/null @@ -1,283 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/network.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class NetworkProto { - private NetworkProto() {} - 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_baremetalsolution_v2_Network_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" + - "ork.proto\022!google.cloud.baremetalsolutio" + - "n.v2\032\037google/api/field_behavior.proto\032\031g" + - "oogle/api/resource.proto\032 google/protobu" + - "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" + - " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" + - "ogle.cloud.baremetalsolution.v2.Network." + - "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" + - "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" + - "metalsolution.v2.Network.State\022\017\n\007vlan_i" + - "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" + - "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" + - "bels\030\013 \003(\01326.google.cloud.baremetalsolut" + - "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" + - "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" + - ".cloud.baremetalsolution.v2.NetworkAddre" + - "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" + - "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" + - "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" + - "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" + - "lution.googleapis.com/Network\022:projects/" + - "{project}/locations/{location}/networks/" + - "{network}\"U\n\031NetworkAddressReservation\022\025" + - "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" + - "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" + - "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" + - "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" + - "0.google.cloud.baremetalsolution.v2.VRF." + - "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" + - "ogle.cloud.baremetalsolution.v2.VRF.Vlan" + - "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" + - "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" + - "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " + - "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" + - "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" + - "alInterface\022o\n\032logical_network_interface" + - "s\030\001 \003(\0132K.google.cloud.baremetalsolution" + - ".v2.LogicalInterface.LogicalNetworkInter" + - "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " + - "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" + - "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" + - "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" + - "ogle.cloud.baremetalsolution.v2.Network." + - "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" + - "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" + - "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" + - "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + - ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + - "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" + - "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" + - "(\0132*.google.cloud.baremetalsolution.v2.N" + - "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + - "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" + - "\007network\030\001 \001(\0132*.google.cloud.baremetals" + - "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" + - "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" + - ".baremetalsolution.v2.Network\022\020\n\010used_ip" + - "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" + - "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + - "is.com/Location\"]\n\030ListNetworkUsageRespo" + - "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" + - "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" + - "oogle.cloud.baremetalsolution.v2B\014Networ" + - "kProtoP\001ZRgoogle.golang.org/genproto/goo" + - "gleapis/cloud/baremetalsolution/v2;barem" + - "etalsolution\252\002!Google.Cloud.BareMetalSol" + - "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" + - "n\\V2\352\002$Google::Cloud::BareMetalSolution:" + - ":V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, - new java.lang.String[] { "Name", "Id", "Type", "IpAddress", "MacAddress", "State", "VlanId", "Cidr", "Vrf", "Labels", "ServicesCidr", "Reservations", }); - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Network_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, - new java.lang.String[] { "StartAddress", "EndAddress", "Note", }); - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, - new java.lang.String[] { "Name", "State", "QosPolicy", "VlanAttachments", }); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, - new java.lang.String[] { "BandwidthGbps", }); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = - internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, - new java.lang.String[] { "PeerVlanId", "PeerIp", "RouterIp", }); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, - new java.lang.String[] { "LogicalNetworkInterfaces", "Name", "InterfaceIndex", }); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, - new java.lang.String[] { "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", }); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, - new java.lang.String[] { "Networks", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, - new java.lang.String[] { "Network", "UpdateMask", }); - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, - new java.lang.String[] { "Network", "UsedIps", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, - new java.lang.String[] { "Location", }); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, - new java.lang.String[] { "Networks", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java deleted file mode 100644 index ba39d39..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java +++ /dev/null @@ -1,171 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/nfs_share.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class NfsShareProto { - private NfsShareProto() {} - 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_baremetalsolution_v2_NfsShare_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/baremetalsolution/v2/nfs_" + - "share.proto\022!google.cloud.baremetalsolut" + - "ion.v2\032\037google/api/field_behavior.proto\032" + - "\031google/api/resource.proto\032 google/proto" + - "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" + - "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" + - "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" + - "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" + - "\tB,\372A)\n\'baremetalsolution.googleapis.com" + - "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" + - "e.cloud.baremetalsolution.v2.NfsShare.Al" + - "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" + - "ud.baremetalsolution.v2.NfsShare.LabelsE" + - "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" + - "-\372A*\n(baremetalsolution.googleapis.com/N" + - "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" + - "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" + - "\0162<.google.cloud.baremetalsolution.v2.Nf" + - "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" + - "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" + - "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" + - "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" + - "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" + - "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" + - "olution.googleapis.com/NFSShare\022=project" + - "s/{project}/locations/{location}/nfsShar" + - "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" + - "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" + - "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" + - "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + - "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + - " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" + - "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" + - "\030\001 \003(\0132+.google.cloud.baremetalsolution." + - "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + - "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" + - "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" + - "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" + - "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + - "kB\373\001\n%com.google.cloud.baremetalsolution" + - ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" + - "genproto/googleapis/cloud/baremetalsolut" + - "ion/v2;baremetalsolution\252\002!Google.Cloud." + - "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" + - "MetalSolution\\V2\352\002$Google::Cloud::BareMe" + - "talSolution::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, - new java.lang.String[] { "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, - new java.lang.String[] { "Network", "ShareIp", "AllowedClientsCidr", "MountPermissions", "AllowDev", "AllowSuid", "NoRootSquash", }); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, - new java.lang.String[] { "NfsShares", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, - new java.lang.String[] { "NfsShare", "UpdateMask", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java deleted file mode 100644 index 6068d11..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java deleted file mode 100644 index f9e4cd0..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResetInstanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java deleted file mode 100644 index 2fc28ec..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface ResizeVolumeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Volume to resize.
-   * 
- * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The volume. - */ - java.lang.String getVolume(); - /** - *
-   * Required. Volume to resize.
-   * 
- * - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for volume. - */ - com.google.protobuf.ByteString - getVolumeBytes(); - - /** - *
-   * New Volume size, in GiB.
-   * 
- * - * int64 size_gib = 2; - * @return The sizeGib. - */ - long getSizeGib(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java deleted file mode 100644 index 51f49d0..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StartInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java deleted file mode 100644 index d1a3887..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StartInstanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java deleted file mode 100644 index ba9234c..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StopInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the resource.
-   * 
- * - * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java deleted file mode 100644 index cc35d1f..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/instance.proto - -package com.google.cloud.baremetalsolution.v2; - -public interface StopInstanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java deleted file mode 100644 index 417c220..0000000 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java +++ /dev/null @@ -1,192 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/baremetalsolution/v2/volume.proto - -package com.google.cloud.baremetalsolution.v2; - -public final class VolumeProto { - private VolumeProto() {} - 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_baremetalsolution_v2_Volume_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" + - "me.proto\022!google.cloud.baremetalsolution" + - ".v2\032\037google/api/field_behavior.proto\032\031go" + - "ogle/api/resource.proto\032 google/protobuf" + - "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" + - "\01625.google.cloud.baremetalsolution.v2.Vo" + - "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" + - ".cloud.baremetalsolution.v2.Volume.State" + - "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" + - "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" + - "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" + - "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" + - "tion_detail\030\010 \001(\0132C.google.cloud.baremet" + - "alsolution.v2.Volume.SnapshotReservation" + - "Detail\022k\n\035snapshot_auto_delete_behavior\030" + - "\t \001(\0162D.google.cloud.baremetalsolution.v" + - "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" + - "abels\030\014 \003(\01325.google.cloud.baremetalsolu" + - "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" + - "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" + - "hotReservationDetail\022\032\n\022reserved_space_g" + - "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" + - "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " + - "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" + - "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" + - "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" + - "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" + - "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" + - "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" + - "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" + - "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" + - "olution.googleapis.com/Volume\0228projects/" + - "{project}/locations/{location}/volumes/{" + - "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" + - "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." + - "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" + - "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + - "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + - "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" + - "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" + - "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" + - "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" + - "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" + - "oogle.cloud.baremetalsolution.v2.VolumeB" + - "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + - "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" + - "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." + - "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" + - "\371\001\n%com.google.cloud.baremetalsolution.v" + - "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" + - "roto/googleapis/cloud/baremetalsolution/" + - "v2;baremetalsolution\252\002!Google.Cloud.Bare" + - "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" + - "lSolution\\V2\352\002$Google::Cloud::BareMetalS" + - "olution::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, - new java.lang.String[] { "Name", "Id", "StorageType", "State", "RequestedSizeGib", "CurrentSizeGib", "EmergencySizeGib", "AutoGrownSizeGib", "RemainingSpaceGib", "SnapshotReservationDetail", "SnapshotAutoDeleteBehavior", "Labels", "SnapshotEnabled", "Pod", }); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, - new java.lang.String[] { "ReservedSpaceGib", "ReservedSpaceUsedPercent", "ReservedSpaceRemainingGib", "ReservedSpacePercent", }); - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = - internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, - new java.lang.String[] { "Volumes", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, - new java.lang.String[] { "Volume", "UpdateMask", }); - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, - new java.lang.String[] { "Volume", "SizeGib", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java new file mode 100644 index 0000000..679c482 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionProto.java @@ -0,0 +1,238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class BareMetalSolutionProto { + private BareMetalSolutionProto() {} + + 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_baremetalsolution_v2_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/baremetalsolution/v2/bare" + + "metalsolution.proto\022!google.cloud.bareme" + + "talsolution.v2\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\0320google/cloud/bar" + + "emetalsolution/v2/instance.proto\032+google" + + "/cloud/baremetalsolution/v2/lun.proto\032/g" + + "oogle/cloud/baremetalsolution/v2/network" + + ".proto\0321google/cloud/baremetalsolution/v" + + "2/nfs_share.proto\032.google/cloud/baremeta" + + "lsolution/v2/volume.proto\032#google/longru" + + "nning/operations.proto\032\037google/protobuf/" + + "timestamp.proto\"\200\002\n\021OperationMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" + + "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " + + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\027\n\025Re" + + "setInstanceResponse2\335 \n\021BareMetalSolutio" + + "n\022\302\001\n\rListInstances\0227.google.cloud.barem" + + "etalsolution.v2.ListInstancesRequest\0328.g" + + "oogle.cloud.baremetalsolution.v2.ListIns" + + "tancesResponse\">\202\323\344\223\002/\022-/v2/{parent=proj" + + "ects/*/locations/*}/instances\332A\006parent\022\257" + + "\001\n\013GetInstance\0225.google.cloud.baremetals" + + "olution.v2.GetInstanceRequest\032+.google.c" + + "loud.baremetalsolution.v2.Instance\"<\202\323\344\223" + + "\002/\022-/v2/{name=projects/*/locations/*/ins" + + "tances/*}\332A\004name\022\352\001\n\016UpdateInstance\0228.go" + + "ogle.cloud.baremetalsolution.v2.UpdateIn" + + "stanceRequest\032\035.google.longrunning.Opera" + + "tion\"\177\202\323\344\223\002B26/v2/{instance.name=project" + + "s/*/locations/*/instances/*}:\010instance\332A" + + "\024instance,update_mask\312A\035\n\010Instance\022\021Oper" + + "ationMetadata\022\333\001\n\rResetInstance\0227.google" + + ".cloud.baremetalsolution.v2.ResetInstanc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "r\202\323\344\223\0028\"3/v2/{name=projects/*/locations/" + + "*/instances/*}:reset:\001*\332A\004name\312A*\n\025Reset" + + "InstanceResponse\022\021OperationMetadata\022\333\001\n\r" + + "StartInstance\0227.google.cloud.baremetalso" + + "lution.v2.StartInstanceRequest\032\035.google." + + "longrunning.Operation\"r\202\323\344\223\0028\"3/v2/{name" + + "=projects/*/locations/*/instances/*}:sta" + + "rt:\001*\332A\004name\312A*\n\025StartInstanceResponse\022\021" + + "OperationMetadata\022\327\001\n\014StopInstance\0226.goo" + + "gle.cloud.baremetalsolution.v2.StopInsta" + + "nceRequest\032\035.google.longrunning.Operatio" + + "n\"p\202\323\344\223\0027\"2/v2/{name=projects/*/location" + + "s/*/instances/*}:stop:\001*\332A\004name\312A)\n\024Stop" + + "InstanceResponse\022\021OperationMetadata\022\326\001\n\t" + + "DetachLun\0223.google.cloud.baremetalsoluti" + + "on.v2.DetachLunRequest\032\035.google.longrunn" + + "ing.Operation\"u\202\323\344\223\002@\";/v2/{instance=pro" + + "jects/*/locations/*/instances/*}:detachL" + + "un:\001*\332A\014instance,lun\312A\035\n\010Instance\022\021Opera" + + "tionMetadata\022\272\001\n\013ListVolumes\0225.google.cl" + + "oud.baremetalsolution.v2.ListVolumesRequ" + + "est\0326.google.cloud.baremetalsolution.v2." + + "ListVolumesResponse\"<\202\323\344\223\002-\022+/v2/{parent" + + "=projects/*/locations/*}/volumes\332A\006paren" + + "t\022\247\001\n\tGetVolume\0223.google.cloud.baremetal" + + "solution.v2.GetVolumeRequest\032).google.cl" + + "oud.baremetalsolution.v2.Volume\":\202\323\344\223\002-\022" + + "+/v2/{name=projects/*/locations/*/volume" + + "s/*}\332A\004name\022\334\001\n\014UpdateVolume\0226.google.cl" + + "oud.baremetalsolution.v2.UpdateVolumeReq" + + "uest\032\035.google.longrunning.Operation\"u\202\323\344" + + "\223\002<22/v2/{volume.name=projects/*/locatio" + + "ns/*/volumes/*}:\006volume\332A\022volume,update_" + + "mask\312A\033\n\006Volume\022\021OperationMetadata\022\326\001\n\014R" + + "esizeVolume\0226.google.cloud.baremetalsolu" + + "tion.v2.ResizeVolumeRequest\032\035.google.lon" + + "grunning.Operation\"o\202\323\344\223\0029\"4/v2/{volume=" + + "projects/*/locations/*/volumes/*}:resize" + + ":\001*\332A\017volume,size_gib\312A\033\n\006Volume\022\021Operat" + + "ionMetadata\022\276\001\n\014ListNetworks\0226.google.cl" + + "oud.baremetalsolution.v2.ListNetworksReq" + + "uest\0327.google.cloud.baremetalsolution.v2" + + ".ListNetworksResponse\"=\202\323\344\223\002.\022,/v2/{pare" + + "nt=projects/*/locations/*}/networks\332A\006pa" + + "rent\022\337\001\n\020ListNetworkUsage\022:.google.cloud" + + ".baremetalsolution.v2.ListNetworkUsageRe" + + "quest\032;.google.cloud.baremetalsolution.v" + + "2.ListNetworkUsageResponse\"R\202\323\344\223\002A\022?/v2/" + + "{location=projects/*/locations/*}/networ" + + "ks:listNetworkUsage\332A\010location\022\253\001\n\nGetNe" + + "twork\0224.google.cloud.baremetalsolution.v" + + "2.GetNetworkRequest\032*.google.cloud.barem" + + "etalsolution.v2.Network\";\202\323\344\223\002.\022,/v2/{na" + + "me=projects/*/locations/*/networks/*}\332A\004" + + "name\022\343\001\n\rUpdateNetwork\0227.google.cloud.ba" + + "remetalsolution.v2.UpdateNetworkRequest\032" + + "\035.google.longrunning.Operation\"z\202\323\344\223\002?24" + + "/v2/{network.name=projects/*/locations/*" + + "/networks/*}:\007network\332A\023network,update_m" + + "ask\312A\034\n\007Network\022\021OperationMetadata\022\245\001\n\006G" + + "etLun\0220.google.cloud.baremetalsolution.v" + + "2.GetLunRequest\032&.google.cloud.baremetal" + + "solution.v2.Lun\"A\202\323\344\223\0024\0222/v2/{name=proje" + + "cts/*/locations/*/volumes/*/luns/*}\332A\004na" + + "me\022\270\001\n\010ListLuns\0222.google.cloud.baremetal" + + "solution.v2.ListLunsRequest\0323.google.clo" + + "ud.baremetalsolution.v2.ListLunsResponse" + + "\"C\202\323\344\223\0024\0222/v2/{parent=projects/*/locatio" + + "ns/*/volumes/*}/luns\332A\006parent\022\257\001\n\013GetNfs" + + "Share\0225.google.cloud.baremetalsolution.v" + + "2.GetNfsShareRequest\032+.google.cloud.bare" + + "metalsolution.v2.NfsShare\"<\202\323\344\223\002/\022-/v2/{" + + "name=projects/*/locations/*/nfsShares/*}" + + "\332A\004name\022\302\001\n\rListNfsShares\0227.google.cloud" + + ".baremetalsolution.v2.ListNfsSharesReque" + + "st\0328.google.cloud.baremetalsolution.v2.L" + + "istNfsSharesResponse\">\202\323\344\223\002/\022-/v2/{paren" + + "t=projects/*/locations/*}/nfsShares\332A\006pa" + + "rent\022\356\001\n\016UpdateNfsShare\0228.google.cloud.b" + + "aremetalsolution.v2.UpdateNfsShareReques" + + "t\032\035.google.longrunning.Operation\"\202\001\202\323\344\223\002" + + "D27/v2/{nfs_share.name=projects/*/locati" + + "ons/*/nfsShares/*}:\tnfs_share\332A\025nfs_shar" + + "e,update_mask\312A\035\n\010NfsShare\022\021OperationMet" + + "adata\032T\312A baremetalsolution.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\204\002\n%com.google.cloud.baremet" + + "alsolution.v2B\026BareMetalSolutionProtoP\001Z" + + "Rgoogle.golang.org/genproto/googleapis/c" + + "loud/baremetalsolution/v2;baremetalsolut" + + "ion\252\002!Google.Cloud.BareMetalSolution.V2\312" + + "\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$Go" + + "ogle::Cloud::BareMetalSolution::V2b\006prot" + + "o3" + }; + 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.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_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.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.InstanceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NfsShareProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.VolumeProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java index 6074780..ec51b3a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for detach specific LUN from an Instance.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} */ -public final class DetachLunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetachLunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) DetachLunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetachLunRequest.newBuilder() to construct. private DetachLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetachLunRequest() { instance_ = ""; lun_ = ""; @@ -26,16 +44,15 @@ private DetachLunRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetachLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetachLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DetachLunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - instance_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + instance_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - lun_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + lun_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,41 @@ private DetachLunRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private volatile java.lang.Object instance_; /** + * + * *
    * Required. Name of the instance.
    * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The instance. */ @java.lang.Override @@ -116,29 +142,31 @@ public java.lang.String getInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; } } /** + * + * *
    * Required. Name of the instance.
    * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for instance. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceBytes() { + public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instance_ = b; return b; } else { @@ -149,11 +177,16 @@ public java.lang.String getInstance() { public static final int LUN_FIELD_NUMBER = 2; private volatile java.lang.Object lun_; /** + * + * *
    * Required. Name of the Lun to detach.
    * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The lun. */ @java.lang.Override @@ -162,29 +195,31 @@ public java.lang.String getLun() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lun_ = s; return s; } } /** + * + * *
    * Required. Name of the Lun to detach.
    * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for lun. */ @java.lang.Override - public com.google.protobuf.ByteString - getLunBytes() { + public com.google.protobuf.ByteString getLunBytes() { java.lang.Object ref = lun_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lun_ = b; return b; } else { @@ -193,6 +228,7 @@ public java.lang.String getLun() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,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(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); } @@ -235,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.baremetalsolution.v2.DetachLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.DetachLunRequest other = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; + com.google.cloud.baremetalsolution.v2.DetachLunRequest other = + (com.google.cloud.baremetalsolution.v2.DetachLunRequest) obj; - if (!getInstance() - .equals(other.getInstance())) return false; - if (!getLun() - .equals(other.getLun())) return false; + if (!getInstance().equals(other.getInstance())) return false; + if (!getLun().equals(other.getLun())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.DetachLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.DetachLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for detach specific LUN from an Instance.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.DetachLunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.DetachLunRequest) com.google.cloud.baremetalsolution.v2.DetachLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.DetachLunRequest.class, + com.google.cloud.baremetalsolution.v2.DetachLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.DetachLunRequest.newBuilder() @@ -385,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; } @java.lang.Override @@ -427,7 +470,8 @@ public com.google.cloud.baremetalsolution.v2.DetachLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.DetachLunRequest result = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); + com.google.cloud.baremetalsolution.v2.DetachLunRequest result = + new com.google.cloud.baremetalsolution.v2.DetachLunRequest(this); result.instance_ = instance_; result.lun_ = lun_; onBuilt(); @@ -438,38 +482,39 @@ public com.google.cloud.baremetalsolution.v2.DetachLunRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.DetachLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.DetachLunRequest) other); } else { super.mergeFrom(other); return this; @@ -477,7 +522,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.DetachLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.DetachLunRequest.getDefaultInstance()) + return this; if (!other.getInstance().isEmpty()) { instance_ = other.instance_; onChanged(); @@ -505,7 +551,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.DetachLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,18 +564,22 @@ public Builder mergeFrom( private java.lang.Object instance_ = ""; /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The instance. */ public java.lang.String getInstance() { java.lang.Object ref = instance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; @@ -537,20 +588,23 @@ public java.lang.String getInstance() { } } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for instance. */ - public com.google.protobuf.ByteString - getInstanceBytes() { + public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instance_ = b; return b; } else { @@ -558,54 +612,67 @@ public java.lang.String getInstance() { } } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The instance to set. * @return This builder for chaining. */ - public Builder setInstance( - java.lang.String value) { + public Builder setInstance(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instance_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearInstance() { - + instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /** + * + * *
      * Required. Name of the instance.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for instance to set. * @return This builder for chaining. */ - public Builder setInstanceBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; onChanged(); return this; @@ -613,18 +680,22 @@ public Builder setInstanceBytes( private java.lang.Object lun_ = ""; /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The lun. */ public java.lang.String getLun() { java.lang.Object ref = lun_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lun_ = s; return s; @@ -633,20 +704,23 @@ public java.lang.String getLun() { } } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for lun. */ - public com.google.protobuf.ByteString - getLunBytes() { + public com.google.protobuf.ByteString getLunBytes() { java.lang.Object ref = lun_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lun_ = b; return b; } else { @@ -654,61 +728,74 @@ public java.lang.String getLun() { } } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The lun to set. * @return This builder for chaining. */ - public Builder setLun( - java.lang.String value) { + public Builder setLun(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lun_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLun() { - + lun_ = getDefaultInstance().getLun(); onChanged(); return this; } /** + * + * *
      * Required. Name of the Lun to detach.
      * 
* - * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for lun to set. * @return This builder for chaining. */ - public Builder setLunBytes( - com.google.protobuf.ByteString value) { + public Builder setLunBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lun_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.DetachLunRequest) private static final com.google.cloud.baremetalsolution.v2.DetachLunRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.DetachLunRequest(); } @@ -732,16 +819,16 @@ public static com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetachLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetachLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetachLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetachLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +843,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.DetachLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java new file mode 100644 index 0000000..75fbf25 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/DetachLunRequestOrBuilder.java @@ -0,0 +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/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface DetachLunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.DetachLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the instance.
+   * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + /** + * + * + *
+   * Required. Name of the instance.
+   * 
+ * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The lun. + */ + java.lang.String getLun(); + /** + * + * + *
+   * Required. Name of the Lun to detach.
+   * 
+ * + * + * string lun = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for lun. + */ + com.google.protobuf.ByteString getLunBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java index 03dcb9d..5990f0f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting server information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ -public final class GetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) GetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceRequest.newBuilder() to construct. private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetInstanceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.GetInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting server information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetInstanceRequest) com.google.cloud.baremetalsolution.v2.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.GetInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetInstanceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..cc92dbb --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java index 32ab528..4f0939b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequest.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting storage lun information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ -public final class GetLunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetLunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetLunRequest) GetLunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetLunRequest.newBuilder() to construct. private GetLunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetLunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetLunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetLunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetLunRequest( 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,34 +91,41 @@ private GetLunRequest( } 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.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetLunRequest other = (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; + com.google.cloud.baremetalsolution.v2.GetLunRequest other = + (com.google.cloud.baremetalsolution.v2.GetLunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,126 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetLunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetLunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting storage lun information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetLunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetLunRequest) com.google.cloud.baremetalsolution.v2.GetLunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetLunRequest.class, com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetLunRequest.class, + com.google.cloud.baremetalsolution.v2.GetLunRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetLunRequest.newBuilder() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; } @java.lang.Override @@ -362,7 +397,8 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetLunRequest result = new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); + com.google.cloud.baremetalsolution.v2.GetLunRequest result = + new com.google.cloud.baremetalsolution.v2.GetLunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.baremetalsolution.v2.GetLunRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetLunRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetLunRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetLunRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetLunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +473,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetLunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +486,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +510,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +534,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetLunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetLunRequest) private static final com.google.cloud.baremetalsolution.v2.GetLunRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetLunRequest(); } @@ -566,16 +625,16 @@ public static com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetLunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java new file mode 100644 index 0000000..9f97c73 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetLunRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetLunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetLunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java index 8b4f73a..c7048ac 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting network information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ -public final class GetNetworkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) GetNetworkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNetworkRequest.newBuilder() to construct. private GetNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNetworkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetNetworkRequest( 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,34 +91,41 @@ private GetNetworkRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNetworkRequest other = + (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetNetworkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting network information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNetworkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNetworkRequest) com.google.cloud.baremetalsolution.v2.GetNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.GetNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNetworkRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.GetNetworkRequest result = + new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetNetworkRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNetworkRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNetworkRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNetworkRequest) private static final com.google.cloud.baremetalsolution.v2.GetNetworkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNetworkRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNetworkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNetworkRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNetworkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNetworkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNetworkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java new file mode 100644 index 0000000..c619b65 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNetworkRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNetworkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNetworkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java index 888e6a6..30fffbf 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequest.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting NFS share information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} */ -public final class GetNfsShareRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNfsShareRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) GetNfsShareRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNfsShareRequest.newBuilder() to construct. private GetNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNfsShareRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNfsShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetNfsShareRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetNfsShareRequest( 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,34 +91,41 @@ private GetNfsShareRequest( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other = + (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting NFS share information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetNfsShareRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetNfsShareRequest) com.google.cloud.baremetalsolution.v2.GetNfsShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); + com.google.cloud.baremetalsolution.v2.GetNfsShareRequest result = + new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetNfsShareRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetNfsShareRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetNfsShareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetNfsShareRequest) private static final com.google.cloud.baremetalsolution.v2.GetNfsShareRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetNfsShareRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNfsShareRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNfsShareRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNfsShareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNfsShareRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetNfsShareRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java new file mode 100644 index 0000000..072571e --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetNfsShareRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetNfsShareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetNfsShareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java index 01d7345..1a670e5 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting storage volume information.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ -public final class GetVolumeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetVolumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) GetVolumeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetVolumeRequest.newBuilder() to construct. private GetVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetVolumeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetVolumeRequest( 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,34 +91,41 @@ private GetVolumeRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.GetVolumeRequest other = + (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.GetVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting storage volume information.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.GetVolumeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.GetVolumeRequest) com.google.cloud.baremetalsolution.v2.GetVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.GetVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.GetVolumeRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.GetVolumeRequest result = + new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.GetVolumeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.GetVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.GetVolumeRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.GetVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.GetVolumeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.GetVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.GetVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.GetVolumeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.GetVolumeRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.GetVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java new file mode 100644 index 0000000..9830fba --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/GetVolumeRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface GetVolumeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.GetVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java index 293d61c..66c8eeb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Instance.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} */ -public final class Instance extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Instance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Instance) InstanceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Instance() { name_ = ""; id_ = ""; @@ -34,16 +52,15 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Instance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -63,131 +80,152 @@ private Instance( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 48: { + machineType_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); - hyperthreadingEnabled_ = input.readBool(); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + state_ = rawValue; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 48: + { + hyperthreadingEnabled_ = input.readBool(); + break; } - luns_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - networks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - networks_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; - } - case 80: { - - interactiveSerialConsoleEnabled_ = input.readBool(); - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); + case 66: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + luns_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + networks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + networks_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; + } + case 80: + { + interactiveSerialConsoleEnabled_ = input.readBool(); + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - osImage_ = s; - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); + osImage_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; - } - case 114: { - java.lang.String s = input.readStringRequireUtf8(); + pod_ = s; + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); - networkTemplate_ = s; - break; - } - case 122: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + networkTemplate_ = s; + break; } - logicalInterfaces_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 122: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + logicalInterfaces_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.LogicalInterface>(); + mutable_bitField0_ |= 0x00000008; + } + logicalInterfaces_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -195,8 +233,7 @@ private Instance( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -211,41 +248,46 @@ private Instance( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + com.google.cloud.baremetalsolution.v2.Instance.class, + com.google.cloud.baremetalsolution.v2.Instance.Builder.class); } /** + * + * *
    * The possible states for this server.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The server is in an unknown state.
      * 
@@ -254,6 +296,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The server is being provisioned.
      * 
@@ -262,6 +306,8 @@ public enum State */ PROVISIONING(1), /** + * + * *
      * The server is running.
      * 
@@ -270,6 +316,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The server has been deleted.
      * 
@@ -281,6 +329,8 @@ public enum State ; /** + * + * *
      * The server is in an unknown state.
      * 
@@ -289,6 +339,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The server is being provisioned.
      * 
@@ -297,6 +349,8 @@ public enum State */ public static final int PROVISIONING_VALUE = 1; /** + * + * *
      * The server is running.
      * 
@@ -305,6 +359,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The server has been deleted.
      * 
@@ -313,7 +369,6 @@ public enum State */ public static final int DELETED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -338,50 +393,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONING; - case 2: return RUNNING; - case 3: return DELETED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return RUNNING; + case 3: + return DELETED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Instance.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -401,6 +457,8 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -410,6 +468,7 @@ private State(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -418,14 +477,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; } } /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -435,16 +495,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -455,11 +514,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 11; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ @java.lang.Override @@ -468,29 +530,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; } } /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @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 { @@ -501,11 +563,15 @@ public java.lang.String getId() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -513,11 +579,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -525,11 +595,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -539,11 +612,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -551,11 +628,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -563,11 +644,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -577,6 +661,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MACHINE_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object machineType_; /** + * + * *
    * The server type.
    * [Available server
@@ -584,6 +670,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string machine_type = 4; + * * @return The machineType. */ @java.lang.Override @@ -592,14 +679,15 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** + * + * *
    * The server type.
    * [Available server
@@ -607,16 +695,15 @@ public java.lang.String getMachineType() {
    * 
* * string machine_type = 4; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -627,39 +714,53 @@ public java.lang.String getMachineType() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Instance.State result = + com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED + : result; } public static final int HYPERTHREADING_ENABLED_FIELD_NUMBER = 6; private boolean hyperthreadingEnabled_; /** + * + * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; + * * @return The hyperthreadingEnabled. */ @java.lang.Override @@ -668,24 +769,23 @@ public boolean getHyperthreadingEnabled() { } public static final int LABELS_FIELD_NUMBER = 7; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -694,28 +794,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -723,11 +825,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 7; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -735,16 +838,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -752,12 +855,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 7; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -767,6 +869,8 @@ public java.lang.String getLabelsOrThrow( public static final int LUNS_FIELD_NUMBER = 8; private java.util.List luns_; /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -778,6 +882,8 @@ public java.util.List getLunsList() { return luns_; } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -785,11 +891,13 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -801,6 +909,8 @@ public int getLunsCount() { return luns_.size(); } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -812,6 +922,8 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -819,14 +931,15 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { return luns_.get(index); } public static final int NETWORKS_FIELD_NUMBER = 9; private java.util.List networks_; /** + * + * *
    * List of networks associated with this server.
    * 
@@ -838,6 +951,8 @@ public java.util.List getNetworks return networks_; } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -845,11 +960,13 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -861,6 +978,8 @@ public int getNetworksCount() { return networks_.size(); } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -872,6 +991,8 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** + * + * *
    * List of networks associated with this server.
    * 
@@ -879,14 +1000,15 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { return networks_.get(index); } public static final int INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER = 10; private boolean interactiveSerialConsoleEnabled_; /** + * + * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -894,6 +1016,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild
    * 
* * bool interactive_serial_console_enabled = 10; + * * @return The interactiveSerialConsoleEnabled. */ @java.lang.Override @@ -904,11 +1027,14 @@ public boolean getInteractiveSerialConsoleEnabled() { public static final int OS_IMAGE_FIELD_NUMBER = 12; private volatile java.lang.Object osImage_; /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The osImage. */ @java.lang.Override @@ -917,29 +1043,29 @@ public java.lang.String getOsImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osImage_ = s; return s; } } /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The bytes for osImage. */ @java.lang.Override - public com.google.protobuf.ByteString - getOsImageBytes() { + public com.google.protobuf.ByteString getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); osImage_ = b; return b; } else { @@ -950,6 +1076,8 @@ public java.lang.String getOsImage() { public static final int POD_FIELD_NUMBER = 13; private volatile java.lang.Object pod_; /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -958,6 +1086,7 @@ public java.lang.String getOsImage() {
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ @java.lang.Override @@ -966,14 +1095,15 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -982,16 +1112,15 @@ public java.lang.String getPod() {
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -1002,6 +1131,8 @@ public java.lang.String getPod() { public static final int NETWORK_TEMPLATE_FIELD_NUMBER = 14; private volatile java.lang.Object networkTemplate_; /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -1009,6 +1140,7 @@ public java.lang.String getPod() {
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The networkTemplate. */ @java.lang.Override @@ -1017,14 +1149,15 @@ public java.lang.String getNetworkTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkTemplate_ = s; return s; } } /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -1032,16 +1165,15 @@ public java.lang.String getNetworkTemplate() {
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for networkTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkTemplateBytes() { + public com.google.protobuf.ByteString getNetworkTemplateBytes() { java.lang.Object ref = networkTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkTemplate_ = b; return b; } else { @@ -1052,6 +1184,8 @@ public java.lang.String getNetworkTemplate() { public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 15; private java.util.List logicalInterfaces_; /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1062,13 +1196,17 @@ public java.lang.String getNetworkTemplate() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override - public java.util.List getLogicalInterfacesList() { + public java.util.List + getLogicalInterfacesList() { return logicalInterfaces_; } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1079,14 +1217,17 @@ public java.util.List ge
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override - public java.util.List + public java.util.List getLogicalInterfacesOrBuilderList() { return logicalInterfaces_; } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1097,13 +1238,16 @@ public java.util.List ge
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override public int getLogicalInterfacesCount() { return logicalInterfaces_.size(); } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1114,13 +1258,16 @@ public int getLogicalInterfacesCount() {
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { return logicalInterfaces_.get(index); } /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -1131,15 +1278,17 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { return logicalInterfaces_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1151,8 +1300,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1165,18 +1313,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (hyperthreadingEnabled_ != false) { output.writeBool(6, hyperthreadingEnabled_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); for (int i = 0; i < luns_.size(); i++) { output.writeMessage(8, luns_.get(i)); } @@ -1214,45 +1359,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.Instance.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (hyperthreadingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, hyperthreadingEnabled_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, labels__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, hyperthreadingEnabled_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); } for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, luns_.get(i)); } for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, networks_.get(i)); } if (interactiveSerialConsoleEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, interactiveSerialConsoleEnabled_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 10, interactiveSerialConsoleEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); @@ -1267,8 +1408,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, networkTemplate_); } for (int i = 0; i < logicalInterfaces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, logicalInterfaces_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, logicalInterfaces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1278,48 +1419,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Instance)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Instance other = (com.google.cloud.baremetalsolution.v2.Instance) obj; + com.google.cloud.baremetalsolution.v2.Instance other = + (com.google.cloud.baremetalsolution.v2.Instance) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getMachineType() - .equals(other.getMachineType())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (state_ != other.state_) return false; - if (getHyperthreadingEnabled() - != other.getHyperthreadingEnabled()) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getLunsList() - .equals(other.getLunsList())) return false; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; - if (getInteractiveSerialConsoleEnabled() - != other.getInteractiveSerialConsoleEnabled()) return false; - if (!getOsImage() - .equals(other.getOsImage())) return false; - if (!getPod() - .equals(other.getPod())) return false; - if (!getNetworkTemplate() - .equals(other.getNetworkTemplate())) return false; - if (!getLogicalInterfacesList() - .equals(other.getLogicalInterfacesList())) return false; + if (getHyperthreadingEnabled() != other.getHyperthreadingEnabled()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getLunsList().equals(other.getLunsList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; + if (getInteractiveSerialConsoleEnabled() != other.getInteractiveSerialConsoleEnabled()) + return false; + if (!getOsImage().equals(other.getOsImage())) return false; + if (!getPod().equals(other.getPod())) return false; + if (!getNetworkTemplate().equals(other.getNetworkTemplate())) return false; + if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1348,8 +1477,7 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + HYPERTHREADING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHyperthreadingEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHyperthreadingEnabled()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -1363,8 +1491,9 @@ public int hashCode() { hash = (53 * hash) + getNetworksList().hashCode(); } hash = (37 * hash) + INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInteractiveSerialConsoleEnabled()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getInteractiveSerialConsoleEnabled()); hash = (37 * hash) + OS_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getOsImage().hashCode(); hash = (37 * hash) + POD_FIELD_NUMBER; @@ -1380,140 +1509,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Instance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Instance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Instance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Instance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Instance) com.google.cloud.baremetalsolution.v2.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 7: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Instance.class, com.google.cloud.baremetalsolution.v2.Instance.Builder.class); + com.google.cloud.baremetalsolution.v2.Instance.class, + com.google.cloud.baremetalsolution.v2.Instance.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Instance.newBuilder() @@ -1521,19 +1657,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLunsFieldBuilder(); getNetworksFieldBuilder(); getLogicalInterfacesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1590,9 +1726,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor; } @java.lang.Override @@ -1611,7 +1747,8 @@ public com.google.cloud.baremetalsolution.v2.Instance build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { - com.google.cloud.baremetalsolution.v2.Instance result = new com.google.cloud.baremetalsolution.v2.Instance(this); + com.google.cloud.baremetalsolution.v2.Instance result = + new com.google.cloud.baremetalsolution.v2.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -1669,38 +1806,39 @@ public com.google.cloud.baremetalsolution.v2.Instance buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Instance) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Instance) other); } else { super.mergeFrom(other); return this; @@ -1733,8 +1871,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { if (other.getHyperthreadingEnabled() != false) { setHyperthreadingEnabled(other.getHyperthreadingEnabled()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -1753,9 +1890,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000002); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLunsFieldBuilder() : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLunsFieldBuilder() + : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -1779,9 +1917,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -1820,9 +1959,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Instance other) { logicalInterfacesBuilder_ = null; logicalInterfaces_ = other.logicalInterfaces_; bitField0_ = (bitField0_ & ~0x00000008); - logicalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogicalInterfacesFieldBuilder() : null; + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogicalInterfacesFieldBuilder() + : null; } else { logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); } @@ -1856,10 +1996,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1869,13 +2012,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1884,6 +2027,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1893,15 +2038,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1909,6 +2053,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1918,20 +2064,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1941,15 +2089,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Instance`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1959,16 +2110,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1976,18 +2127,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -1996,20 +2149,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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 { @@ -2017,54 +2171,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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; } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the `Instance`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -2072,39 +2233,58 @@ public Builder setIdBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2120,14 +2300,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2138,17 +2321,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2160,11 +2347,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2178,48 +2369,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Create a time stamp.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2227,39 +2434,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2275,14 +2501,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2293,17 +2522,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2315,11 +2548,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2333,48 +2570,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Update a time stamp.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2382,6 +2635,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object machineType_ = ""; /** + * + * *
      * The server type.
      * [Available server
@@ -2389,13 +2644,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string machine_type = 4; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -2404,6 +2659,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * The server type.
      * [Available server
@@ -2411,15 +2668,14 @@ public java.lang.String getMachineType() {
      * 
* * string machine_type = 4; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -2427,6 +2683,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * The server type.
      * [Available server
@@ -2434,20 +2692,22 @@ public java.lang.String getMachineType() {
      * 
* * string machine_type = 4; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * The server type.
      * [Available server
@@ -2455,15 +2715,18 @@ public Builder setMachineType(
      * 
* * string machine_type = 4; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * The server type.
      * [Available server
@@ -2471,16 +2734,16 @@ public Builder clearMachineType() {
      * 
* * string machine_type = 4; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; @@ -2488,51 +2751,67 @@ public Builder setMachineTypeBytes( private int state_ = 0; /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Instance.State result = com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Instance.State result = + com.google.cloud.baremetalsolution.v2.Instance.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Instance.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2540,34 +2819,40 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Instance.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the server.
      * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private boolean hyperthreadingEnabled_ ; + private boolean hyperthreadingEnabled_; /** + * + * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; + * * @return The hyperthreadingEnabled. */ @java.lang.Override @@ -2575,53 +2860,58 @@ public boolean getHyperthreadingEnabled() { return hyperthreadingEnabled_; } /** + * + * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; + * * @param value The hyperthreadingEnabled to set. * @return This builder for chaining. */ public Builder setHyperthreadingEnabled(boolean value) { - + hyperthreadingEnabled_ = value; onChanged(); return this; } /** + * + * *
      * True if you enable hyperthreading for the server, otherwise false.
      * The default value is false.
      * 
* * bool hyperthreading_enabled = 6; + * * @return This builder for chaining. */ public Builder clearHyperthreadingEnabled() { - + hyperthreadingEnabled_ = false; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2633,28 +2923,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2662,11 +2954,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 7; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2674,16 +2967,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2691,12 +2985,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 7; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2704,80 +2997,83 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 7; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.util.List luns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> + lunsBuilder_; /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2792,6 +3088,8 @@ public java.util.List getLunsList() { } } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2806,6 +3104,8 @@ public int getLunsCount() { } } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2820,14 +3120,15 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder setLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2841,6 +3142,8 @@ public Builder setLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2859,6 +3162,8 @@ public Builder setLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2879,14 +3184,15 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder addLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2900,14 +3206,15 @@ public Builder addLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public Builder addLuns( - com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -2918,6 +3225,8 @@ public Builder addLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2936,6 +3245,8 @@ public Builder addLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2946,8 +3257,7 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -2955,6 +3265,8 @@ public Builder addAllLuns( return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2972,6 +3284,8 @@ public Builder clearLuns() { return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -2989,39 +3303,44 @@ public Builder removeLuns(int index) { return this; } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { return getLunsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { if (lunsBuilder_ == null) { - return luns_.get(index); } else { + return luns_.get(index); + } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -3029,6 +3348,8 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( } } /** + * + * *
      * List of LUNs associated with this server.
      * 
@@ -3036,60 +3357,72 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( - int index) { - return getLunsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { + return getLunsFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * List of LUNs associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - public java.util.List - getLunsBuilderList() { + public java.util.List getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + lunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); luns_ = null; } return lunsBuilder_; } private java.util.List networks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - networks_ = new java.util.ArrayList(networks_); + networks_ = + new java.util.ArrayList(networks_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networksBuilder_; /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3104,6 +3437,8 @@ public java.util.List getNetworks } } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3118,6 +3453,8 @@ public int getNetworksCount() { } } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3132,14 +3469,15 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public Builder setNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3153,6 +3491,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3171,6 +3511,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3191,14 +3533,15 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public Builder addNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3212,6 +3555,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3230,6 +3575,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3248,6 +3595,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3258,8 +3607,7 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -3267,6 +3615,8 @@ public Builder addAllNetworks( return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3284,6 +3634,8 @@ public Builder clearNetworks() { return this; } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3301,39 +3653,44 @@ public Builder removeNetworks(int index) { return this; } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { return getNetworksFieldBuilder().getBuilder(index); } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { if (networksBuilder_ == null) { - return networks_.get(index); } else { + return networks_.get(index); + } else { return networksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -3341,6 +3698,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** + * + * *
      * List of networks associated with this server.
      * 
@@ -3348,49 +3707,57 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( - int index) { - return getNetworksFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { + return getNetworksFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * List of networks associated with this server.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + networksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); networks_ = null; } return networksBuilder_; } - private boolean interactiveSerialConsoleEnabled_ ; + private boolean interactiveSerialConsoleEnabled_; /** + * + * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3398,6 +3765,7 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(
      * 
* * bool interactive_serial_console_enabled = 10; + * * @return The interactiveSerialConsoleEnabled. */ @java.lang.Override @@ -3405,6 +3773,8 @@ public boolean getInteractiveSerialConsoleEnabled() { return interactiveSerialConsoleEnabled_; } /** + * + * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3412,16 +3782,19 @@ public boolean getInteractiveSerialConsoleEnabled() {
      * 
* * bool interactive_serial_console_enabled = 10; + * * @param value The interactiveSerialConsoleEnabled to set. * @return This builder for chaining. */ public Builder setInteractiveSerialConsoleEnabled(boolean value) { - + interactiveSerialConsoleEnabled_ = value; onChanged(); return this; } /** + * + * *
      * True if the interactive serial console feature is enabled for the instance,
      * false otherwise.
@@ -3429,10 +3802,11 @@ public Builder setInteractiveSerialConsoleEnabled(boolean value) {
      * 
* * bool interactive_serial_console_enabled = 10; + * * @return This builder for chaining. */ public Builder clearInteractiveSerialConsoleEnabled() { - + interactiveSerialConsoleEnabled_ = false; onChanged(); return this; @@ -3440,18 +3814,20 @@ public Builder clearInteractiveSerialConsoleEnabled() { private java.lang.Object osImage_ = ""; /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @return The osImage. */ public java.lang.String getOsImage() { java.lang.Object ref = osImage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); osImage_ = s; return s; @@ -3460,20 +3836,21 @@ public java.lang.String getOsImage() { } } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @return The bytes for osImage. */ - public com.google.protobuf.ByteString - getOsImageBytes() { + public com.google.protobuf.ByteString getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); osImage_ = b; return b; } else { @@ -3481,54 +3858,61 @@ public java.lang.String getOsImage() { } } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @param value The osImage to set. * @return This builder for chaining. */ - public Builder setOsImage( - java.lang.String value) { + public Builder setOsImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + osImage_ = value; onChanged(); return this; } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @return This builder for chaining. */ public Builder clearOsImage() { - + osImage_ = getDefaultInstance().getOsImage(); onChanged(); return this; } /** + * + * *
      * The OS image currently installed on the server.
      * 
* * string os_image = 12; + * * @param value The bytes for osImage to set. * @return This builder for chaining. */ - public Builder setOsImageBytes( - com.google.protobuf.ByteString value) { + public Builder setOsImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + osImage_ = value; onChanged(); return this; @@ -3536,6 +3920,8 @@ public Builder setOsImageBytes( private java.lang.Object pod_ = ""; /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3544,13 +3930,13 @@ public Builder setOsImageBytes(
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -3559,6 +3945,8 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3567,15 +3955,14 @@ public java.lang.String getPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -3583,6 +3970,8 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3591,20 +3980,22 @@ public java.lang.String getPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod( - java.lang.String value) { + public Builder setPod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3613,15 +4004,18 @@ public Builder setPod(
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * Pod is an independent part of infrastructure.
@@ -3630,16 +4024,16 @@ public Builder clearPod() {
      * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes( - com.google.protobuf.ByteString value) { + public Builder setPodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = value; onChanged(); return this; @@ -3647,6 +4041,8 @@ public Builder setPodBytes( private java.lang.Object networkTemplate_ = ""; /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3654,13 +4050,13 @@ public Builder setPodBytes(
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The networkTemplate. */ public java.lang.String getNetworkTemplate() { java.lang.Object ref = networkTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkTemplate_ = s; return s; @@ -3669,6 +4065,8 @@ public java.lang.String getNetworkTemplate() { } } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3676,15 +4074,14 @@ public java.lang.String getNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for networkTemplate. */ - public com.google.protobuf.ByteString - getNetworkTemplateBytes() { + public com.google.protobuf.ByteString getNetworkTemplateBytes() { java.lang.Object ref = networkTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkTemplate_ = b; return b; } else { @@ -3692,6 +4089,8 @@ public java.lang.String getNetworkTemplate() { } } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3699,20 +4098,22 @@ public java.lang.String getNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @param value The networkTemplate to set. * @return This builder for chaining. */ - public Builder setNetworkTemplate( - java.lang.String value) { + public Builder setNetworkTemplate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + networkTemplate_ = value; onChanged(); return this; } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3720,15 +4121,18 @@ public Builder setNetworkTemplate(
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearNetworkTemplate() { - + networkTemplate_ = getDefaultInstance().getNetworkTemplate(); onChanged(); return this; } /** + * + * *
      * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
      * Generally, the template name follows the syntax of
@@ -3736,34 +4140,42 @@ public Builder clearNetworkTemplate() {
      * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for networkTemplate to set. * @return This builder for chaining. */ - public Builder setNetworkTemplateBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkTemplateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkTemplate_ = value; onChanged(); return this; } - private java.util.List logicalInterfaces_ = - java.util.Collections.emptyList(); + private java.util.List + logicalInterfaces_ = java.util.Collections.emptyList(); + private void ensureLogicalInterfacesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); + logicalInterfaces_ = + new java.util.ArrayList( + logicalInterfaces_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; + com.google.cloud.baremetalsolution.v2.LogicalInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> + logicalInterfacesBuilder_; /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3774,9 +4186,11 @@ private void ensureLogicalInterfacesIsMutable() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public java.util.List getLogicalInterfacesList() { + public java.util.List + getLogicalInterfacesList() { if (logicalInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalInterfaces_); } else { @@ -3784,6 +4198,8 @@ public java.util.List ge } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3794,7 +4210,8 @@ public java.util.List ge
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public int getLogicalInterfacesCount() { if (logicalInterfacesBuilder_ == null) { @@ -3804,6 +4221,8 @@ public int getLogicalInterfacesCount() { } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3814,7 +4233,8 @@ public int getLogicalInterfacesCount() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -3824,6 +4244,8 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3834,7 +4256,8 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfac
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder setLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { @@ -3851,6 +4274,8 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3861,7 +4286,8 @@ public Builder setLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder setLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -3875,6 +4301,8 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3885,9 +4313,11 @@ public Builder setLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface value) { + public Builder addLogicalInterfaces( + com.google.cloud.baremetalsolution.v2.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3901,6 +4331,8 @@ public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.Logica return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3911,7 +4343,8 @@ public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.Logica
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) { @@ -3928,6 +4361,8 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3938,7 +4373,8 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addLogicalInterfaces( com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -3952,6 +4388,8 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3962,7 +4400,8 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addLogicalInterfaces( int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder builderForValue) { @@ -3976,6 +4415,8 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -3986,14 +4427,15 @@ public Builder addLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder addAllLogicalInterfaces( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logicalInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalInterfaces_); onChanged(); } else { logicalInterfacesBuilder_.addAllMessages(values); @@ -4001,6 +4443,8 @@ public Builder addAllLogicalInterfaces( return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4011,7 +4455,8 @@ public Builder addAllLogicalInterfaces(
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder clearLogicalInterfaces() { if (logicalInterfacesBuilder_ == null) { @@ -4024,6 +4469,8 @@ public Builder clearLogicalInterfaces() { return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4034,7 +4481,8 @@ public Builder clearLogicalInterfaces() {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ public Builder removeLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -4047,6 +4495,8 @@ public Builder removeLogicalInterfaces(int index) { return this; } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4057,13 +4507,16 @@ public Builder removeLogicalInterfaces(int index) {
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder getLogicalInterfacesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder + getLogicalInterfacesBuilder(int index) { return getLogicalInterfacesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4074,16 +4527,20 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder getLogical
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { if (logicalInterfacesBuilder_ == null) { - return logicalInterfaces_.get(index); } else { + return logicalInterfaces_.get(index); + } else { return logicalInterfacesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4094,10 +4551,11 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogica
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public java.util.List - getLogicalInterfacesOrBuilderList() { + public java.util.List + getLogicalInterfacesOrBuilderList() { if (logicalInterfacesBuilder_ != null) { return logicalInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -4105,6 +4563,8 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogica } } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4115,13 +4575,17 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogica
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder() { - return getLogicalInterfacesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder + addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4132,14 +4596,18 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogical
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogicalInterfacesBuilder( - int index) { - return getLogicalInterfacesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder + addLogicalInterfacesBuilder(int index) { + return getLogicalInterfacesFieldBuilder() + .addBuilder( + index, com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()); } /** + * + * *
      * List of logical interfaces for the instance. The number of logical
      * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -4150,18 +4618,25 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogical
      * Instance.logical_interfaces will be filled.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - public java.util.List - getLogicalInterfacesBuilderList() { + public java.util.List + getLogicalInterfacesBuilderList() { return getLogicalInterfacesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.LogicalInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder> getLogicalInterfacesFieldBuilder() { if (logicalInterfacesBuilder_ == null) { - logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( + logicalInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>( logicalInterfaces_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -4170,9 +4645,9 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder addLogical } return logicalInterfacesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4182,12 +4657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Instance) private static final com.google.cloud.baremetalsolution.v2.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Instance(); } @@ -4196,16 +4671,16 @@ public static com.google.cloud.baremetalsolution.v2.Instance getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4220,6 +4695,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java similarity index 83% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java index eccecfd..d375ed9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -17,10 +35,13 @@ public interface InstanceOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of this `Instance`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -30,86 +51,115 @@ public interface InstanceOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the `Instance`, generated by the backend.
    * 
* * string id = 11; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Create a time stamp.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Update a time stamp.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * The server type.
    * [Available server
@@ -117,10 +167,13 @@ public interface InstanceOrBuilder extends
    * 
* * string machine_type = 4; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * The server type.
    * [Available server
@@ -128,42 +181,53 @@ public interface InstanceOrBuilder extends
    * 
* * string machine_type = 4; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the server.
    * 
* * .google.cloud.baremetalsolution.v2.Instance.State state = 5; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Instance.State getState(); /** + * + * *
    * True if you enable hyperthreading for the server, otherwise false.
    * The default value is false.
    * 
* * bool hyperthreading_enabled = 6; + * * @return The hyperthreadingEnabled. */ boolean getHyperthreadingEnabled(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -172,30 +236,31 @@ public interface InstanceOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -204,31 +269,34 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 7; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List - getLunsList(); + java.util.List getLunsList(); /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -237,6 +305,8 @@ java.lang.String getLabelsOrThrow( */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** + * + * *
    * List of LUNs associated with this server.
    * 
@@ -245,34 +315,40 @@ java.lang.String getLabelsOrThrow( */ int getLunsCount(); /** + * + * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** + * + * *
    * List of LUNs associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 8; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); /** + * + * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List - getNetworksList(); + java.util.List getNetworksList(); /** + * + * *
    * List of networks associated with this server.
    * 
@@ -281,6 +357,8 @@ com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** + * + * *
    * List of networks associated with this server.
    * 
@@ -289,25 +367,30 @@ com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( */ int getNetworksCount(); /** + * + * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** + * + * *
    * List of networks associated with this server.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 9; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); /** + * + * *
    * True if the interactive serial console feature is enabled for the instance,
    * false otherwise.
@@ -315,31 +398,39 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * bool interactive_serial_console_enabled = 10; + * * @return The interactiveSerialConsoleEnabled. */ boolean getInteractiveSerialConsoleEnabled(); /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The osImage. */ java.lang.String getOsImage(); /** + * + * *
    * The OS image currently installed on the server.
    * 
* * string os_image = 12; + * * @return The bytes for osImage. */ - com.google.protobuf.ByteString - getOsImageBytes(); + com.google.protobuf.ByteString getOsImageBytes(); /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -348,10 +439,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ java.lang.String getPod(); /** + * + * *
    * Immutable. Pod name.
    * Pod is an independent part of infrastructure.
@@ -360,12 +454,14 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string pod = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - com.google.protobuf.ByteString - getPodBytes(); + com.google.protobuf.ByteString getPodBytes(); /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -373,10 +469,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The networkTemplate. */ java.lang.String getNetworkTemplate(); /** + * + * *
    * Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
    * Generally, the template name follows the syntax of
@@ -384,12 +483,14 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * 
* * string network_template = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for networkTemplate. */ - com.google.protobuf.ByteString - getNetworkTemplateBytes(); + com.google.protobuf.ByteString getNetworkTemplateBytes(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -400,11 +501,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - java.util.List - getLogicalInterfacesList(); + java.util.List getLogicalInterfacesList(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -415,10 +518,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ com.google.cloud.baremetalsolution.v2.LogicalInterface getLogicalInterfaces(int index); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -429,10 +535,13 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ int getLogicalInterfacesCount(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -443,11 +552,14 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ - java.util.List + java.util.List getLogicalInterfacesOrBuilderList(); /** + * + * *
    * List of logical interfaces for the instance. The number of logical
    * interfaces will be the same as number of hardware bond/nic on the chosen
@@ -458,7 +570,8 @@ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(
    * Instance.logical_interfaces will be filled.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15; + * */ com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( int index); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java new file mode 100644 index 0000000..7b9b6d4 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceProto.java @@ -0,0 +1,325 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class InstanceProto { + private InstanceProto() {} + + 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_baremetalsolution_v2_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/baremetalsolution/v2/inst" + + "ance.proto\022!google.cloud.baremetalsoluti" + + "on.v2\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032+google/cloud/" + + "baremetalsolution/v2/lun.proto\032/google/c" + + "loud/baremetalsolution/v2/network.proto\032" + + " google/protobuf/field_mask.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\253\007\n\010Instance\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\024\n\014machine_type\030\004 \001(\t" + + "\022@\n\005state\030\005 \001(\01621.google.cloud.baremetal" + + "solution.v2.Instance.State\022\036\n\026hyperthrea" + + "ding_enabled\030\006 \001(\010\022G\n\006labels\030\007 \003(\01327.goo" + + "gle.cloud.baremetalsolution.v2.Instance." + + "LabelsEntry\0224\n\004luns\030\010 \003(\0132&.google.cloud" + + ".baremetalsolution.v2.Lun\022<\n\010networks\030\t " + + "\003(\0132*.google.cloud.baremetalsolution.v2." + + "Network\022*\n\"interactive_serial_console_en" + + "abled\030\n \001(\010\022\020\n\010os_image\030\014 \001(\t\022\020\n\003pod\030\r \001" + + "(\tB\003\340A\005\022U\n\020network_template\030\016 \001(\tB;\372A8\n6" + + "baremetalsolution.googleapis.com/ServerN" + + "etworkTemplate\022O\n\022logical_interfaces\030\017 \003" + + "(\01323.google.cloud.baremetalsolution.v2.L" + + "ogicalInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"J\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNN" + + "ING\020\002\022\013\n\007DELETED\020\003:l\352Ai\n)baremetalsoluti" + + "on.googleapis.com/Instance\022\n\tinstances\030\001 \003(\0132" + + "+.google.cloud.baremetalsolution.v2.Inst" + + "ance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" + + "able\030\003 \003(\t\"\214\001\n\025UpdateInstanceRequest\022B\n\010" + + "instance\030\001 \001(\0132+.google.cloud.baremetals" + + "olution.v2.InstanceB\003\340A\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"W\n\024Res" + + "etInstanceRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")baremetalsolution.googleapis.com/Instan" + + "ce\"W\n\024StartInstanceRequest\022?\n\004name\030\001 \001(\t" + + "B1\340A\002\372A+\n)baremetalsolution.googleapis.c" + + "om/Instance\"V\n\023StopInstanceRequest\022?\n\004na" + + "me\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.goog" + + "leapis.com/Instance\"\222\001\n\020DetachLunRequest" + + "\022C\n\010instance\030\001 \001(\tB1\340A\002\372A+\n)baremetalsol" + + "ution.googleapis.com/Instance\0229\n\003lun\030\002 \001" + + "(\tB,\340A\002\372A&\n$baremetalsolution.googleapis" + + ".com/Lun\"\254\004\n\025ServerNetworkTemplate\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022!\n\031applicable_instance_typ" + + "es\030\002 \003(\t\022e\n\022logical_interfaces\030\003 \003(\0132I.g" + + "oogle.cloud.baremetalsolution.v2.ServerN" + + "etworkTemplate.LogicalInterface\032\335\001\n\020Logi" + + "calInterface\022\014\n\004name\030\001 \001(\t\022e\n\004type\030\002 \001(\016" + + "2W.google.cloud.baremetalsolution.v2.Ser" + + "verNetworkTemplate.LogicalInterface.Inte" + + "rfaceType\022\020\n\010required\030\003 \001(\010\"B\n\rInterface" + + "Type\022\036\n\032INTERFACE_TYPE_UNSPECIFIED\020\000\022\010\n\004" + + "BOND\020\001\022\007\n\003NIC\020\002:\225\001\352A\221\001\n6baremetalsolutio" + + "n.googleapis.com/ServerNetworkTemplate\022W" + + "projects/{project}/locations/{location}/" + + "serverNetworkTemplate/{server_network_te" + + "mplate}\"\027\n\025StartInstanceResponse\"\026\n\024Stop" + + "InstanceResponseB\373\001\n%com.google.cloud.ba" + + "remetalsolution.v2B\rInstanceProtoP\001ZRgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/baremetalsolution/v2;baremetalsolution\252" + + "\002!Google.Cloud.BareMetalSolution.V2\312\002!Go" + + "ogle\\Cloud\\BareMetalSolution\\V2\352\002$Google" + + "::Cloud::BareMetalSolution::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(), + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor, + new java.lang.String[] { + "Name", + "Id", + "CreateTime", + "UpdateTime", + "MachineType", + "State", + "HyperthreadingEnabled", + "Labels", + "Luns", + "Networks", + "InteractiveSerialConsoleEnabled", + "OsImage", + "Pod", + "NetworkTemplate", + "LogicalInterfaces", + }); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Instance_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Instance_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Instances", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor, + new java.lang.String[] { + "Instance", "UpdateMask", + }); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_DetachLunRequest_descriptor, + new java.lang.String[] { + "Instance", "Lun", + }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor, + new java.lang.String[] { + "Name", "ApplicableInstanceTypes", "LogicalInterfaces", + }); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor, + new java.lang.String[] { + "Name", "Type", "Required", + }); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor, + new java.lang.String[] {}); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.LunProto.getDescriptor(); + com.google.cloud.baremetalsolution.v2.NetworkProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java index 7c955f4..8419229 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ -public final class ListInstancesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) ListInstancesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesRequest.newBuilder() to construct. private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstancesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListInstancesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListInstancesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesRequest other = + (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListInstancesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.cloud.baremetalsolution.v2.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.class, + com.google.cloud.baremetalsolution.v2.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); + com.google.cloud.baremetalsolution.v2.ListInstancesRequest result = + new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListInstancesRequest.
      * 
* - * 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. Parent value for ListInstancesRequest.
      * 
* - * string 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. Parent value for ListInstancesRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. Server may return fewer items than requested.
      * If unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesRequest) private static final com.google.cloud.baremetalsolution.v2.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java index 1d504fd..10c9345 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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. Parent value for ListInstancesRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. Server may return fewer items than requested.
    * If unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java index 9d37ccd..69f116a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message for the list of servers.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ -public final class ListInstancesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstancesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) ListInstancesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstancesResponse.newBuilder() to construct. private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstancesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,42 @@ private ListInstancesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instances_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + instances_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); + break; } - instances_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +116,7 @@ private ListInstancesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -107,22 +128,27 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** + * + * *
    * The list of servers.
    * 
@@ -134,6 +160,8 @@ public java.util.List getInstanc return instances_; } /** + * + * *
    * The list of servers.
    * 
@@ -141,11 +169,13 @@ public java.util.List getInstanc * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public java.util.List + public java.util.List getInstancesOrBuilderList() { return instances_; } /** + * + * *
    * The list of servers.
    * 
@@ -157,6 +187,8 @@ public int getInstancesCount() { return instances_.size(); } /** + * + * *
    * The list of servers.
    * 
@@ -168,6 +200,8 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { return instances_.get(index); } /** + * + * *
    * The list of servers.
    * 
@@ -175,19 +209,21 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index) { return instances_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +232,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.baremetalsolution.v2.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListInstancesResponse other = + (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListInstancesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the list of servers.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListInstancesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.cloud.baremetalsolution.v2.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.class, + com.google.cloud.baremetalsolution.v2.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListInstancesResponse.newBuilder() @@ -490,17 +543,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInstancesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ListInstancesResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); + com.google.cloud.baremetalsolution.v2.ListInstancesResponse result = + new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.baremetalsolution.v2.ListInstancesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListInstancesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListInstancesResponse.getDefaultInstance()) + return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListInstancesResp instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000001); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInstancesFieldBuilder() : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(instances_); + instances_ = + new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instancesBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + instancesBuilder_; /** + * + * *
      * The list of servers.
      * 
@@ -701,6 +767,8 @@ public java.util.List getInstanc } } /** + * + * *
      * The list of servers.
      * 
@@ -715,6 +783,8 @@ public int getInstancesCount() { } } /** + * + * *
      * The list of servers.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.baremetalsolution.v2.Instance getInstances(int index) { } } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder setInstances( - int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder setInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -768,6 +841,8 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -788,14 +863,15 @@ public Builder addInstances(com.google.cloud.baremetalsolution.v2.Instance value return this; } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public Builder addInstances( - int index, com.google.cloud.baremetalsolution.v2.Instance value) { + public Builder addInstances(int index, com.google.cloud.baremetalsolution.v2.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +885,8 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -827,6 +905,8 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -845,6 +925,8 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -855,8 +937,7 @@ public Builder addAllInstances( java.lang.Iterable values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); @@ -864,6 +945,8 @@ public Builder addAllInstances( return this; } /** + * + * *
      * The list of servers.
      * 
@@ -881,6 +964,8 @@ public Builder clearInstances() { return this; } /** + * + * *
      * The list of servers.
      * 
@@ -898,17 +983,20 @@ public Builder removeInstances(int index) { return this; } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilder(int index) { return getInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of servers.
      * 
@@ -918,19 +1006,22 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstancesBuilde public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( int index) { if (instancesBuilder_ == null) { - return instances_.get(index); } else { + return instances_.get(index); + } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1029,8 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui } } /** + * + * *
      * The list of servers.
      * 
@@ -945,42 +1038,48 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBui * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + return getInstancesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder( - int index) { - return getInstancesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance()); } /** + * + * *
      * The list of servers.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - instances_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; @@ -988,18 +1087,20 @@ public com.google.cloud.baremetalsolution.v2.Instance.Builder addInstancesBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1109,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1131,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1244,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1337,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1370,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListInstancesResponse) private static final com.google.cloud.baremetalsolution.v2.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListInstancesResponse(); } @@ -1253,16 +1384,16 @@ public static com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstancesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1408,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java index 5523911..65768d2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListInstancesResponseOrBuilder.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List - getInstancesList(); + java.util.List getInstancesList(); /** + * + * *
    * The list of servers.
    * 
@@ -25,6 +44,8 @@ public interface ListInstancesResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Instance getInstances(int index); /** + * + * *
    * The list of servers.
    * 
@@ -33,82 +54,100 @@ public interface ListInstancesResponseOrBuilder extends */ int getInstancesCount(); /** + * + * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** + * + * *
    * The list of servers.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Instance instances = 1; */ - com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstancesOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java index 78bf806..625cb29 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequest.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ -public final class ListLunsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) ListLunsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLunsRequest.newBuilder() to construct. private ListLunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLunsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListLunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListLunsRequest( 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,34 +104,41 @@ private ListLunsRequest( } 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.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -121,29 +147,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. Parent value for ListLunsRequest.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -154,12 +182,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -170,11 +201,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -183,29 +217,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -214,6 +248,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -249,8 +283,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_); @@ -263,19 +296,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.baremetalsolution.v2.ListLunsRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsRequest other = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) obj; + com.google.cloud.baremetalsolution.v2.ListLunsRequest other = + (com.google.cloud.baremetalsolution.v2.ListLunsRequest) 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; } @@ -299,117 +330,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListLunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.cloud.baremetalsolution.v2.ListLunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsRequest.class, + com.google.cloud.baremetalsolution.v2.ListLunsRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsRequest.newBuilder() @@ -417,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 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; } @java.lang.Override @@ -461,7 +501,8 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsRequest result = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); + com.google.cloud.baremetalsolution.v2.ListLunsRequest result = + new com.google.cloud.baremetalsolution.v2.ListLunsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -473,38 +514,39 @@ public com.google.cloud.baremetalsolution.v2.ListLunsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsRequest) other); } else { super.mergeFrom(other); return this; @@ -512,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -543,7 +586,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListLunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -555,18 +599,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * string parent = 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; @@ -575,20 +623,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * string parent = 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 { @@ -596,67 +647,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListLunsRequest.
      * 
* - * 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. Parent value for ListLunsRequest.
      * 
* - * string 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. Parent value for ListLunsRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -664,32 +731,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -697,18 +770,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -717,20 +792,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -738,61 +814,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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); } @@ -802,12 +885,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsRequest) private static final com.google.cloud.baremetalsolution.v2.ListLunsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsRequest(); } @@ -816,16 +899,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +923,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java index 633ab6f..c79ee15 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsRequestOrBuilder.java @@ -1,60 +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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsRequestOrBuilder extends +public interface ListLunsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListLunsRequest.
    * 
* - * string parent = 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. Parent value for ListLunsRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java index 46512a7..e1c0471 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponse.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of storage volume luns.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ -public final class ListLunsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) ListLunsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLunsResponse.newBuilder() to construct. private ListLunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLunsResponse() { luns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListLunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListLunsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - luns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + luns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + luns_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); + break; } - luns_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Lun.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListLunsResponse( } 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)) { luns_ = java.util.Collections.unmodifiableList(luns_); @@ -107,22 +127,27 @@ private ListLunsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } public static final int LUNS_FIELD_NUMBER = 1; private java.util.List luns_; /** + * + * *
    * The list of luns.
    * 
@@ -134,6 +159,8 @@ public java.util.List getLunsList() { return luns_; } /** + * + * *
    * The list of luns.
    * 
@@ -141,11 +168,13 @@ public java.util.List getLunsList() { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLunsOrBuilderList() { return luns_; } /** + * + * *
    * The list of luns.
    * 
@@ -157,6 +186,8 @@ public int getLunsCount() { return luns_.size(); } /** + * + * *
    * The list of luns.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { return luns_.get(index); } /** + * + * *
    * The list of luns.
    * 
@@ -175,19 +208,21 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { return luns_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +231,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +264,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +307,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < luns_.size(); i++) { output.writeMessage(1, luns_.get(i)); } @@ -310,8 +355,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < luns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, luns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, luns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +376,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListLunsResponse other = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; + com.google.cloud.baremetalsolution.v2.ListLunsResponse other = + (com.google.cloud.baremetalsolution.v2.ListLunsResponse) obj; - if (!getLunsList() - .equals(other.getLunsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getLunsList().equals(other.getLunsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +414,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListLunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListLunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of storage volume luns.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListLunsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.cloud.baremetalsolution.v2.ListLunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListLunsResponse.class, + com.google.cloud.baremetalsolution.v2.ListLunsResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListLunsResponse.newBuilder() @@ -490,17 +542,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLunsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; } @java.lang.Override @@ -539,7 +591,8 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListLunsResponse result = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); + com.google.cloud.baremetalsolution.v2.ListLunsResponse result = + new com.google.cloud.baremetalsolution.v2.ListLunsResponse(this); int from_bitField0_ = bitField0_; if (lunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +617,39 @@ public com.google.cloud.baremetalsolution.v2.ListLunsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListLunsResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListLunsResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListLunsResponse.getDefaultInstance()) + return this; if (lunsBuilder_ == null) { if (!other.luns_.isEmpty()) { if (luns_.isEmpty()) { @@ -622,9 +677,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListLunsResponse lunsBuilder_ = null; luns_ = other.luns_; bitField0_ = (bitField0_ & ~0x00000001); - lunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLunsFieldBuilder() : null; + lunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLunsFieldBuilder() + : null; } else { lunsBuilder_.addAllMessages(other.luns_); } @@ -663,7 +719,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListLunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +729,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List luns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { luns_ = new java.util.ArrayList(luns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> lunsBuilder_; + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> + lunsBuilder_; /** + * + * *
      * The list of luns.
      * 
@@ -701,6 +765,8 @@ public java.util.List getLunsList() { } } /** + * + * *
      * The list of luns.
      * 
@@ -715,6 +781,8 @@ public int getLunsCount() { } } /** + * + * *
      * The list of luns.
      * 
@@ -729,14 +797,15 @@ public com.google.cloud.baremetalsolution.v2.Lun getLuns(int index) { } } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder setLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder setLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +819,8 @@ public Builder setLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -768,6 +839,8 @@ public Builder setLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -788,14 +861,15 @@ public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun value) { return this; } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns( - int index, com.google.cloud.baremetalsolution.v2.Lun value) { + public Builder addLuns(int index, com.google.cloud.baremetalsolution.v2.Lun value) { if (lunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,14 +883,15 @@ public Builder addLuns( return this; } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public Builder addLuns( - com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { + public Builder addLuns(com.google.cloud.baremetalsolution.v2.Lun.Builder builderForValue) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); luns_.add(builderForValue.build()); @@ -827,6 +902,8 @@ public Builder addLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -845,6 +922,8 @@ public Builder addLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -855,8 +934,7 @@ public Builder addAllLuns( java.lang.Iterable values) { if (lunsBuilder_ == null) { ensureLunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, luns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, luns_); onChanged(); } else { lunsBuilder_.addAllMessages(values); @@ -864,6 +942,8 @@ public Builder addAllLuns( return this; } /** + * + * *
      * The list of luns.
      * 
@@ -881,6 +961,8 @@ public Builder clearLuns() { return this; } /** + * + * *
      * The list of luns.
      * 
@@ -898,39 +980,44 @@ public Builder removeLuns(int index) { return this; } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Lun.Builder getLunsBuilder(int index) { return getLunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index) { if (lunsBuilder_ == null) { - return luns_.get(index); } else { + return luns_.get(index); + } else { return lunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List - getLunsOrBuilderList() { + public java.util.List + getLunsOrBuilderList() { if (lunsBuilder_ != null) { return lunsBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1025,8 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( } } /** + * + * *
      * The list of luns.
      * 
@@ -945,42 +1034,47 @@ public com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder() { - return getLunsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + return getLunsFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( - int index) { - return getLunsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder(int index) { + return getLunsFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Lun.getDefaultInstance()); } /** + * + * *
      * The list of luns.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - public java.util.List - getLunsBuilderList() { + public java.util.List getLunsBuilderList() { return getLunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder> + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder> getLunsFieldBuilder() { if (lunsBuilder_ == null) { - lunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Lun, com.google.cloud.baremetalsolution.v2.Lun.Builder, com.google.cloud.baremetalsolution.v2.LunOrBuilder>( - luns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + lunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Lun, + com.google.cloud.baremetalsolution.v2.Lun.Builder, + com.google.cloud.baremetalsolution.v2.LunOrBuilder>( + luns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); luns_ = null; } return lunsBuilder_; @@ -988,18 +1082,20 @@ public com.google.cloud.baremetalsolution.v2.Lun.Builder addLunsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1104,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1126,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1239,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1332,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1365,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListLunsResponse) private static final com.google.cloud.baremetalsolution.v2.ListLunsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListLunsResponse(); } @@ -1253,16 +1379,16 @@ public static com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1403,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListLunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java index 23a95a3..4e01c38 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListLunsResponseOrBuilder.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface ListLunsResponseOrBuilder extends +public interface ListLunsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListLunsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List - getLunsList(); + java.util.List getLunsList(); /** + * + * *
    * The list of luns.
    * 
@@ -25,6 +44,8 @@ public interface ListLunsResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Lun getLuns(int index); /** + * + * *
    * The list of luns.
    * 
@@ -33,82 +54,100 @@ public interface ListLunsResponseOrBuilder extends */ int getLunsCount(); /** + * + * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - java.util.List + java.util.List getLunsOrBuilderList(); /** + * + * *
    * The list of luns.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Lun luns = 1; */ - com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.LunOrBuilder getLunsOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java index 4c7201a..98e6e14 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Request to get networks with IPs.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} */ -public final class ListNetworkUsageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworkUsageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) ListNetworkUsageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworkUsageRequest.newBuilder() to construct. private ListNetworkUsageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworkUsageRequest() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNetworkUsageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworkUsageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ListNetworkUsageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + location_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private ListNetworkUsageRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** + * + * *
    * Required. Parent value (project and location).
    * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The location. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
    * Required. Parent value (project and location).
    * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getLocation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) obj; - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to get networks with IPs.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,13 +377,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance(); } @@ -362,7 +399,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest result = + new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(this); result.location_ = location_; onBuilt(); return result; @@ -372,38 +410,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +450,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest.getDefaultInstance()) + return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -435,7 +476,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +490,22 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -467,20 +514,23 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -488,61 +538,74 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
      * Required. Parent value (project and location).
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +615,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) - private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest(); } @@ -566,16 +630,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworkUsageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworkUsageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java new file mode 100644 index 0000000..05ccf8f --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ListNetworkUsageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value (project and location).
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+   * Required. Parent value (project and location).
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java index 470b090..78f0f77 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponse.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response with Networks with IPs
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} */ -public final class ListNetworkUsageResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworkUsageResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) ListNetworkUsageResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworkUsageResponse.newBuilder() to construct. private ListNetworkUsageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworkUsageResponse() { networks_ = 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 ListNetworkUsageResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworkUsageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,26 @@ private ListNetworkUsageResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + networks_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NetworkUsage.parser(), + extensionRegistry)); + break; } - networks_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkUsage.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 +98,7 @@ private ListNetworkUsageResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -87,22 +107,27 @@ private ListNetworkUsageResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** + * + * *
    * Networks with IPs.
    * 
@@ -114,6 +139,8 @@ public java.util.List getNet return networks_; } /** + * + * *
    * Networks with IPs.
    * 
@@ -121,11 +148,13 @@ public java.util.List getNet * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** + * + * *
    * Networks with IPs.
    * 
@@ -137,6 +166,8 @@ public int getNetworksCount() { return networks_.size(); } /** + * + * *
    * Networks with IPs.
    * 
@@ -148,6 +179,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) return networks_.get(index); } /** + * + * *
    * Networks with IPs.
    * 
@@ -161,6 +194,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -187,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +230,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) obj; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +260,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 with Networks with IPs
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworkUsageResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.newBuilder() @@ -346,17 +388,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) { getNetworksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,13 +412,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance(); } @@ -391,7 +434,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse result = + new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +454,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) other); } else { super.mergeFrom(other); return this; @@ -449,7 +494,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse.getDefaultInstance()) + return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -468,9 +515,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworkUsageR networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -495,7 +543,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +554,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(networks_); + networks_ = + new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> networksBuilder_; + com.google.cloud.baremetalsolution.v2.NetworkUsage, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> + networksBuilder_; /** + * + * *
      * Networks with IPs.
      * 
@@ -533,6 +591,8 @@ public java.util.List getNet } } /** + * + * *
      * Networks with IPs.
      * 
@@ -547,6 +607,8 @@ public int getNetworksCount() { } } /** + * + * *
      * Networks with IPs.
      * 
@@ -561,6 +623,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index) } } /** + * + * *
      * Networks with IPs.
      * 
@@ -582,6 +646,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -600,6 +666,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -620,6 +688,8 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.NetworkUsage va return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -641,6 +711,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -659,6 +731,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -677,6 +751,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -687,8 +763,7 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -696,6 +771,8 @@ public Builder addAllNetworks( return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -713,6 +790,8 @@ public Builder clearNetworks() { return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -730,6 +809,8 @@ public Builder removeNetworks(int index) { return this; } /** + * + * *
      * Networks with IPs.
      * 
@@ -741,6 +822,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBui return getNetworksFieldBuilder().getBuilder(index); } /** + * + * *
      * Networks with IPs.
      * 
@@ -750,19 +833,22 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder getNetworksBui public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( int index) { if (networksBuilder_ == null) { - return networks_.get(index); } else { + return networks_.get(index); + } else { return networksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Networks with IPs.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +856,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr } } /** + * + * *
      * Networks with IPs.
      * 
@@ -777,10 +865,12 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOr * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder() { - return getNetworksFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); } /** + * + * *
      * Networks with IPs.
      * 
@@ -789,37 +879,43 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBui */ public com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder addNetworksBuilder( int index) { - return getNetworksFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder( + index, com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()); } /** + * + * *
      * Networks with IPs.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> + com.google.cloud.baremetalsolution.v2.NetworkUsage, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkUsage, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( - networks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + networksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkUsage, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder, + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder>( + networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); networks_ = null; } return networksBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,30 +925,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) - private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse(); } - public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworkUsageResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworkUsageResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworkUsageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworkUsageResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,9 +962,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java index 6d55ac6..ef8a66b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworkUsageResponseOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworkUsageResponseOrBuilder extends +public interface ListNetworkUsageResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworkUsageResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - java.util.List - getNetworksList(); + java.util.List getNetworksList(); /** + * + * *
    * Networks with IPs.
    * 
@@ -25,6 +44,8 @@ public interface ListNetworkUsageResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.NetworkUsage getNetworks(int index); /** + * + * *
    * Networks with IPs.
    * 
@@ -33,21 +54,24 @@ public interface ListNetworkUsageResponseOrBuilder extends */ int getNetworksCount(); /** + * + * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** + * + * *
    * Networks with IPs.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder getNetworksOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java index 02b44ee..276a02f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequest.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ -public final class ListNetworksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) ListNetworksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworksRequest.newBuilder() to construct. private ListNetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworksRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListNetworksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNetworksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListNetworksRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListNetworksRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListNetworksRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksRequest other = + (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.cloud.baremetalsolution.v2.ListNetworksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.class, + com.google.cloud.baremetalsolution.v2.ListNetworksRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); + com.google.cloud.baremetalsolution.v2.ListNetworksRequest result = + new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNetworksRequest.
      * 
* - * 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. Parent value for ListNetworksRequest.
      * 
* - * string 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. Parent value for ListNetworksRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksRequest) private static final com.google.cloud.baremetalsolution.v2.ListNetworksRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java index 4c26a87..f0ccc2f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksRequestOrBuilder extends +public interface ListNetworksRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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. Parent value for ListNetworksRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java index f98c159..ce6d426 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponse.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of networks.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ -public final class ListNetworksResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNetworksResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) ListNetworksResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNetworksResponse.newBuilder() to construct. private ListNetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNetworksResponse() { networks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListNetworksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNetworksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNetworksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,42 @@ private ListNetworksResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + networks_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); + break; } - networks_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +116,7 @@ private ListNetworksResponse( } 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)) { networks_ = java.util.Collections.unmodifiableList(networks_); @@ -107,22 +128,27 @@ private ListNetworksResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } public static final int NETWORKS_FIELD_NUMBER = 1; private java.util.List networks_; /** + * + * *
    * The list of networks.
    * 
@@ -134,6 +160,8 @@ public java.util.List getNetworks return networks_; } /** + * + * *
    * The list of networks.
    * 
@@ -141,11 +169,13 @@ public java.util.List getNetworks * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNetworksOrBuilderList() { return networks_; } /** + * + * *
    * The list of networks.
    * 
@@ -157,6 +187,8 @@ public int getNetworksCount() { return networks_.size(); } /** + * + * *
    * The list of networks.
    * 
@@ -168,6 +200,8 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { return networks_.get(index); } /** + * + * *
    * The list of networks.
    * 
@@ -175,19 +209,21 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { return networks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +232,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, networks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.baremetalsolution.v2.ListNetworksResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNetworksResponse other = + (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) obj; - if (!getNetworksList() - .equals(other.getNetworksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getNetworksList().equals(other.getNetworksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNetworksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of networks.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNetworksResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.cloud.baremetalsolution.v2.ListNetworksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.class, + com.google.cloud.baremetalsolution.v2.ListNetworksResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNetworksResponse.newBuilder() @@ -490,17 +543,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) { getNetworksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); + com.google.cloud.baremetalsolution.v2.ListNetworksResponse result = + new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(this); int from_bitField0_ = bitField0_; if (networksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.baremetalsolution.v2.ListNetworksResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNetworksResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNetworksResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNetworksResponse.getDefaultInstance()) + return this; if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNetworksRespo networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000001); - networksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNetworksFieldBuilder() : null; + networksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworksFieldBuilder() + : null; } else { networksBuilder_.addAllMessages(other.networks_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNetworksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List networks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networks_ = new java.util.ArrayList(networks_); + networks_ = + new java.util.ArrayList(networks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networksBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networksBuilder_; /** + * + * *
      * The list of networks.
      * 
@@ -701,6 +767,8 @@ public java.util.List getNetworks } } /** + * + * *
      * The list of networks.
      * 
@@ -715,6 +783,8 @@ public int getNetworksCount() { } } /** + * + * *
      * The list of networks.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.baremetalsolution.v2.Network getNetworks(int index) { } } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder setNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder setNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -768,6 +841,8 @@ public Builder setNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -788,14 +863,15 @@ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public Builder addNetworks( - int index, com.google.cloud.baremetalsolution.v2.Network value) { + public Builder addNetworks(int index, com.google.cloud.baremetalsolution.v2.Network value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +885,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -827,6 +905,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -845,6 +925,8 @@ public Builder addNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -855,8 +937,7 @@ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); @@ -864,6 +945,8 @@ public Builder addAllNetworks( return this; } /** + * + * *
      * The list of networks.
      * 
@@ -881,6 +964,8 @@ public Builder clearNetworks() { return this; } /** + * + * *
      * The list of networks.
      * 
@@ -898,39 +983,44 @@ public Builder removeNetworks(int index) { return this; } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworksBuilder(int index) { return getNetworksFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index) { if (networksBuilder_ == null) { - return networks_.get(index); } else { + return networks_.get(index); + } else { return networksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksOrBuilderList() { + public java.util.List + getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1028,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild } } /** + * + * *
      * The list of networks.
      * 
@@ -945,42 +1037,48 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuild * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder() { - return getNetworksFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + return getNetworksFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( - int index) { - return getNetworksFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder(int index) { + return getNetworksFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance()); } /** + * + * *
      * The list of networks.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - public java.util.List - getNetworksBuilderList() { + public java.util.List + getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { - networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - networks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + networksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + networks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); networks_ = null; } return networksBuilder_; @@ -988,18 +1086,20 @@ public com.google.cloud.baremetalsolution.v2.Network.Builder addNetworksBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1108,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1130,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1243,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1336,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1369,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNetworksResponse) private static final com.google.cloud.baremetalsolution.v2.ListNetworksResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNetworksResponse(); } @@ -1253,16 +1383,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNetworksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNetworksResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNetworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNetworksResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1407,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNetworksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java index 8b09c36..8718101 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNetworksResponseOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNetworksResponseOrBuilder extends +public interface ListNetworksResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNetworksResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List - getNetworksList(); + java.util.List getNetworksList(); /** + * + * *
    * The list of networks.
    * 
@@ -25,6 +44,8 @@ public interface ListNetworksResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Network getNetworks(int index); /** + * + * *
    * The list of networks.
    * 
@@ -33,82 +54,100 @@ public interface ListNetworksResponseOrBuilder extends */ int getNetworksCount(); /** + * + * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - java.util.List + java.util.List getNetworksOrBuilderList(); /** + * + * *
    * The list of networks.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Network networks = 1; */ - com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworksOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java index 27cd94f..ff77931 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequest.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of NFS shares.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} */ -public final class ListNfsSharesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNfsSharesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) ListNfsSharesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNfsSharesRequest.newBuilder() to construct. private ListNfsSharesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNfsSharesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListNfsSharesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNfsSharesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNfsSharesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListNfsSharesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListNfsSharesRequest( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListNfsSharesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of NFS shares.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) com.google.cloud.baremetalsolution.v2.ListNfsSharesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); + com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest result = + new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListNfsSharesRequest.
      * 
* - * 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. Parent value for ListNfsSharesRequest.
      * 
* - * string 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. Parent value for ListNfsSharesRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNfsSharesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNfsSharesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNfsSharesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java index c1029fe..195f826 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNfsSharesRequestOrBuilder extends +public interface ListNfsSharesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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. Parent value for ListNfsSharesRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java index 95fe371..c9c1e94 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponse.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of NFS shares.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} */ -public final class ListNfsSharesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNfsSharesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) ListNfsSharesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNfsSharesResponse.newBuilder() to construct. private ListNfsSharesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNfsSharesResponse() { nfsShares_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListNfsSharesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNfsSharesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNfsSharesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,42 @@ private ListNfsSharesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nfsShares_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nfsShares_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nfsShares_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); + break; } - nfsShares_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +116,7 @@ private ListNfsSharesResponse( } 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)) { nfsShares_ = java.util.Collections.unmodifiableList(nfsShares_); @@ -107,22 +128,27 @@ private ListNfsSharesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); } public static final int NFS_SHARES_FIELD_NUMBER = 1; private java.util.List nfsShares_; /** + * + * *
    * The list of NFS shares.
    * 
@@ -134,6 +160,8 @@ public java.util.List getNfsShar return nfsShares_; } /** + * + * *
    * The list of NFS shares.
    * 
@@ -141,11 +169,13 @@ public java.util.List getNfsShar * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNfsSharesOrBuilderList() { return nfsShares_; } /** + * + * *
    * The list of NFS shares.
    * 
@@ -157,6 +187,8 @@ public int getNfsSharesCount() { return nfsShares_.size(); } /** + * + * *
    * The list of NFS shares.
    * 
@@ -168,6 +200,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { return nfsShares_.get(index); } /** + * + * *
    * The list of NFS shares.
    * 
@@ -175,19 +209,21 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder(int index) { return nfsShares_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +232,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < nfsShares_.size(); i++) { output.writeMessage(1, nfsShares_.get(i)); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < nfsShares_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nfsShares_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nfsShares_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.baremetalsolution.v2.ListNfsSharesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) obj; - if (!getNfsSharesList() - .equals(other.getNfsSharesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getNfsSharesList().equals(other.getNfsSharesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of NFS shares.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListNfsSharesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) com.google.cloud.baremetalsolution.v2.ListNfsSharesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.class, + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.newBuilder() @@ -490,17 +543,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) { getNfsSharesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); + com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse result = + new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(this); int from_bitField0_ = bitField0_; if (nfsSharesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse.getDefaultInstance()) + return this; if (nfsSharesBuilder_ == null) { if (!other.nfsShares_.isEmpty()) { if (nfsShares_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListNfsSharesResp nfsSharesBuilder_ = null; nfsShares_ = other.nfsShares_; bitField0_ = (bitField0_ & ~0x00000001); - nfsSharesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNfsSharesFieldBuilder() : null; + nfsSharesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNfsSharesFieldBuilder() + : null; } else { nfsSharesBuilder_.addAllMessages(other.nfsShares_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List nfsShares_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNfsSharesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nfsShares_ = new java.util.ArrayList(nfsShares_); + nfsShares_ = + new java.util.ArrayList(nfsShares_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsSharesBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + nfsSharesBuilder_; /** + * + * *
      * The list of NFS shares.
      * 
@@ -701,6 +767,8 @@ public java.util.List getNfsShar } } /** + * + * *
      * The list of NFS shares.
      * 
@@ -715,6 +783,8 @@ public int getNfsSharesCount() { } } /** + * + * *
      * The list of NFS shares.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index) { } } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public Builder setNfsShares( - int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + public Builder setNfsShares(int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -768,6 +841,8 @@ public Builder setNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -788,14 +863,15 @@ public Builder addNfsShares(com.google.cloud.baremetalsolution.v2.NfsShare value return this; } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public Builder addNfsShares( - int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { + public Builder addNfsShares(int index, com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsSharesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +885,8 @@ public Builder addNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -827,6 +905,8 @@ public Builder addNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -845,6 +925,8 @@ public Builder addNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -855,8 +937,7 @@ public Builder addAllNfsShares( java.lang.Iterable values) { if (nfsSharesBuilder_ == null) { ensureNfsSharesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nfsShares_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nfsShares_); onChanged(); } else { nfsSharesBuilder_.addAllMessages(values); @@ -864,6 +945,8 @@ public Builder addAllNfsShares( return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -881,6 +964,8 @@ public Builder clearNfsShares() { return this; } /** + * + * *
      * The list of NFS shares.
      * 
@@ -898,17 +983,20 @@ public Builder removeNfsShares(int index) { return this; } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilder(int index) { return getNfsSharesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of NFS shares.
      * 
@@ -918,19 +1006,22 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsSharesBuilde public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( int index) { if (nfsSharesBuilder_ == null) { - return nfsShares_.get(index); } else { + return nfsShares_.get(index); + } else { return nfsSharesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public java.util.List - getNfsSharesOrBuilderList() { + public java.util.List + getNfsSharesOrBuilderList() { if (nfsSharesBuilder_ != null) { return nfsSharesBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1029,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBui } } /** + * + * *
      * The list of NFS shares.
      * 
@@ -945,42 +1038,48 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBui * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder() { - return getNfsSharesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + return getNfsSharesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder( - int index) { - return getNfsSharesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilder(int index) { + return getNfsSharesFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance()); } /** + * + * *
      * The list of NFS shares.
      * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - public java.util.List - getNfsSharesBuilderList() { + public java.util.List + getNfsSharesBuilderList() { return getNfsSharesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> getNfsSharesFieldBuilder() { if (nfsSharesBuilder_ == null) { - nfsSharesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( - nfsShares_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + nfsSharesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + nfsShares_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nfsShares_ = null; } return nfsSharesBuilder_; @@ -988,18 +1087,20 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder addNfsSharesBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1109,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1131,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1244,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1337,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1370,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) private static final com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse(); } @@ -1253,16 +1384,16 @@ public static com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNfsSharesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNfsSharesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNfsSharesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNfsSharesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1408,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListNfsSharesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java index 4e3cedd..219771e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListNfsSharesResponseOrBuilder.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface ListNfsSharesResponseOrBuilder extends +public interface ListNfsSharesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListNfsSharesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - java.util.List - getNfsSharesList(); + java.util.List getNfsSharesList(); /** + * + * *
    * The list of NFS shares.
    * 
@@ -25,6 +44,8 @@ public interface ListNfsSharesResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.NfsShare getNfsShares(int index); /** + * + * *
    * The list of NFS shares.
    * 
@@ -33,82 +54,100 @@ public interface ListNfsSharesResponseOrBuilder extends */ int getNfsSharesCount(); /** + * + * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - java.util.List + java.util.List getNfsSharesOrBuilderList(); /** + * + * *
    * The list of NFS shares.
    * 
* * repeated .google.cloud.baremetalsolution.v2.NfsShare nfs_shares = 1; */ - com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsSharesOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java index 3fb2e23..31b65d9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message for requesting a list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ -public final class ListVolumesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVolumesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) ListVolumesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVolumesRequest.newBuilder() to construct. private ListVolumesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVolumesRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListVolumesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVolumesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVolumesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListVolumesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private ListVolumesRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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 @@ -128,29 +155,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. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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 { @@ -161,12 +190,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,11 +209,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -190,29 +225,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * 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 { @@ -223,11 +258,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -236,29 +274,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +305,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -305,8 +343,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_); @@ -322,21 +359,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.baremetalsolution.v2.ListVolumesRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesRequest other = + (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListVolumesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for requesting a list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.cloud.baremetalsolution.v2.ListVolumesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.class, + com.google.cloud.baremetalsolution.v2.ListVolumesRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesRequest.newBuilder() @@ -480,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; } @java.lang.Override @@ -526,7 +569,8 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); + com.google.cloud.baremetalsolution.v2.ListVolumesRequest result = + new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +583,39 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -613,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListVolumesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +672,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * string parent = 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; @@ -645,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * string parent = 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 { @@ -666,67 +720,83 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent value for ListVolumesRequest.
      * 
* - * 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. Parent value for ListVolumesRequest.
      * 
* - * string 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. Parent value for ListVolumesRequest.
      * 
* - * 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_; /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -734,32 +804,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * 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; } /** + * + * *
      * Requested page size. The server might return fewer items than requested.
      * If unspecified, server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -767,18 +843,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -787,20 +865,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -808,54 +887,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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; @@ -863,18 +949,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -883,20 +971,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -904,61 +993,68 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -968,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesRequest) private static final com.google.cloud.baremetalsolution.v2.ListVolumesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesRequest(); } @@ -982,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java index 4b30dd3..6db8315 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesRequestOrBuilder.java @@ -1,80 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesRequestOrBuilder extends +public interface ListVolumesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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. Parent value for ListVolumesRequest.
    * 
* - * string parent = 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(); /** + * + * *
    * Requested page size. The server might return fewer items than requested.
    * If unspecified, server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java index 0af4bba..06aba84 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponse.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message containing the list of storage volumes.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ -public final class ListVolumesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVolumesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) ListVolumesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVolumesResponse.newBuilder() to construct. private ListVolumesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVolumesResponse() { volumes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListVolumesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVolumesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVolumesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListVolumesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - volumes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + volumes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + volumes_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); + break; } - volumes_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListVolumesResponse( } 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)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); @@ -107,22 +127,27 @@ private ListVolumesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } public static final int VOLUMES_FIELD_NUMBER = 1; private java.util.List volumes_; /** + * + * *
    * The list of storage volumes.
    * 
@@ -134,6 +159,8 @@ public java.util.List getVolumesLi return volumes_; } /** + * + * *
    * The list of storage volumes.
    * 
@@ -141,11 +168,13 @@ public java.util.List getVolumesLi * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** + * + * *
    * The list of storage volumes.
    * 
@@ -157,6 +186,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * The list of storage volumes.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * The list of storage volumes.
    * 
@@ -175,19 +208,21 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { return volumes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +231,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -229,34 +264,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -264,20 +307,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(1, volumes_.get(i)); } @@ -310,8 +355,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +376,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; + com.google.cloud.baremetalsolution.v2.ListVolumesResponse other = + (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) obj; - if (!getVolumesList() - .equals(other.getVolumesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getVolumesList().equals(other.getVolumesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +414,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ListVolumesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message containing the list of storage volumes.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ListVolumesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.cloud.baremetalsolution.v2.ListVolumesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.class, + com.google.cloud.baremetalsolution.v2.ListVolumesResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ListVolumesResponse.newBuilder() @@ -490,17 +542,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVolumesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; } @java.lang.Override @@ -539,7 +591,8 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); + com.google.cloud.baremetalsolution.v2.ListVolumesResponse result = + new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(this); int from_bitField0_ = bitField0_; if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +617,39 @@ public com.google.cloud.baremetalsolution.v2.ListVolumesResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ListVolumesResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ListVolumesResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ListVolumesResponse.getDefaultInstance()) + return this; if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { @@ -622,9 +677,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ListVolumesRespon volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); - volumesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVolumesFieldBuilder() : null; + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVolumesFieldBuilder() + : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } @@ -663,7 +719,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ListVolumesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +729,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List volumes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumesBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + volumesBuilder_; /** + * + * *
      * The list of storage volumes.
      * 
@@ -701,6 +765,8 @@ public java.util.List getVolumesLi } } /** + * + * *
      * The list of storage volumes.
      * 
@@ -715,6 +781,8 @@ public int getVolumesCount() { } } /** + * + * *
      * The list of storage volumes.
      * 
@@ -729,14 +797,15 @@ public com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index) { } } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder setVolumes( - int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder setVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +819,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -768,6 +839,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -788,14 +861,15 @@ public Builder addVolumes(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public Builder addVolumes( - int index, com.google.cloud.baremetalsolution.v2.Volume value) { + public Builder addVolumes(int index, com.google.cloud.baremetalsolution.v2.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +883,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -827,6 +903,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -845,6 +923,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -855,8 +935,7 @@ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); @@ -864,6 +943,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -881,6 +962,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * The list of storage volumes.
      * 
@@ -898,39 +981,44 @@ public Builder removeVolumes(int index) { return this; } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumesBuilder(int index) { return getVolumesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { if (volumesBuilder_ == null) { - return volumes_.get(index); } else { + return volumes_.get(index); + } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1026,8 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder } } /** + * + * *
      * The list of storage volumes.
      * 
@@ -945,42 +1035,48 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder() + .addBuilder(com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder( - int index) { - return getVolumesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder(int index) { + return getVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance()); } /** + * + * *
      * The list of storage volumes.
      * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - public java.util.List - getVolumesBuilderList() { + public java.util.List + getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - volumes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + volumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + volumes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; @@ -988,18 +1084,20 @@ public com.google.cloud.baremetalsolution.v2.Volume.Builder addVolumesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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,20 +1106,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * 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 { @@ -1029,95 +1128,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results from the server.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1125,80 +1241,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1208,28 +1334,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1367,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ListVolumesResponse) private static final com.google.cloud.baremetalsolution.v2.ListVolumesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ListVolumesResponse(); } @@ -1253,16 +1381,16 @@ public static com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVolumesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVolumesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVolumesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVolumesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1405,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ListVolumesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java index 52657e8..4d4b8f6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ListVolumesResponseOrBuilder.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface ListVolumesResponseOrBuilder extends +public interface ListVolumesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ListVolumesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List - getVolumesList(); + java.util.List getVolumesList(); /** + * + * *
    * The list of storage volumes.
    * 
@@ -25,6 +44,8 @@ public interface ListVolumesResponseOrBuilder extends */ com.google.cloud.baremetalsolution.v2.Volume getVolumes(int index); /** + * + * *
    * The list of storage volumes.
    * 
@@ -33,82 +54,100 @@ public interface ListVolumesResponseOrBuilder extends */ int getVolumesCount(); /** + * + * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - java.util.List + java.util.List getVolumesOrBuilderList(); /** + * + * *
    * The list of storage volumes.
    * 
* * repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1; */ - com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumesOrBuilder(int index); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token identifying a page of results from the server.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java index e418612..2a49f8b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterface.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Each logical interface represents a logical abstraction of the underlying
  * physical interface (for eg. bond, nic) of the instance. Each logical
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface}
  */
-public final class LogicalInterface extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LogicalInterface extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface)
     LogicalInterfaceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LogicalInterface.newBuilder() to construct.
   private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LogicalInterface() {
     logicalNetworkInterfaces_ = java.util.Collections.emptyList();
     name_ = "";
@@ -29,16 +47,15 @@ private LogicalInterface() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogicalInterface();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LogicalInterface(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,33 +75,41 @@ private LogicalInterface(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              logicalNetworkInterfaces_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                logicalNetworkInterfaces_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.baremetalsolution.v2.LogicalInterface
+                            .LogicalNetworkInterface>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              logicalNetworkInterfaces_.add(
+                  input.readMessage(
+                      com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface
+                          .parser(),
+                      extensionRegistry));
+              break;
             }
-            logicalNetworkInterfaces_.add(
-                input.readMessage(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 24: {
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            interfaceIndex_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          case 24:
+            {
+              interfaceIndex_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,139 +117,171 @@ private LogicalInterface(
     } 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)) {
-        logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
+        logicalNetworkInterfaces_ =
+            java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.baremetalsolution.v2.NetworkProto
+        .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
+    return com.google.cloud.baremetalsolution.v2.NetworkProto
+        .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.class,
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
   }
 
-  public interface LogicalNetworkInterfaceOrBuilder extends
+  public interface LogicalNetworkInterfaceOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Name of the network
      * 
* * string network = 1; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
      * Name of the network
      * 
* * string network = 1; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
      * Whether this interface is the default gateway for the instance. Only
      * one interface can be the default gateway for the instance.
      * 
* * bool default_gateway = 3; + * * @return The defaultGateway. */ boolean getDefaultGateway(); /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The enum numeric value on the wire for networkType. */ int getNetworkTypeValue(); /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The networkType. */ com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType(); /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @return The id. */ java.lang.String getId(); /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); } /** + * + * *
    * Each logical network interface is effectively a network and IP pair.
    * 
* - * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + * Protobuf type {@code + * google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} */ - public static final class LogicalNetworkInterface extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LogicalNetworkInterface extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) LogicalNetworkInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogicalNetworkInterface.newBuilder() to construct. private LogicalNetworkInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LogicalNetworkInterface() { network_ = ""; ipAddress_ = ""; @@ -234,16 +291,15 @@ private LogicalNetworkInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogicalNetworkInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LogicalNetworkInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -262,42 +318,46 @@ private LogicalNetworkInterface( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - network_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - ipAddress_ = s; - break; - } - case 24: { + network_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - defaultGateway_ = input.readBool(); - break; - } - case 32: { - int rawValue = input.readEnum(); + ipAddress_ = s; + break; + } + case 24: + { + defaultGateway_ = input.readBool(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - networkType_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + networkType_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + id_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -305,34 +365,40 @@ private LogicalNetworkInterface( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + .class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** + * + * *
      * Name of the network
      * 
* * string network = 1; + * * @return The network. */ @java.lang.Override @@ -341,29 +407,29 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
      * Name of the network
      * 
* * string network = 1; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -374,11 +440,14 @@ public java.lang.String getNetwork() { public static final int IP_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object ipAddress_; /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The ipAddress. */ @java.lang.Override @@ -387,29 +456,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
      * IP address in the network
      * 
* * string ip_address = 2; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -420,12 +489,15 @@ public java.lang.String getIpAddress() { public static final int DEFAULT_GATEWAY_FIELD_NUMBER = 3; private boolean defaultGateway_; /** + * + * *
      * Whether this interface is the default gateway for the instance. Only
      * one interface can be the default gateway for the instance.
      * 
* * bool default_gateway = 3; + * * @return The defaultGateway. */ @java.lang.Override @@ -436,38 +508,52 @@ public boolean getDefaultGateway() { public static final int NETWORK_TYPE_FIELD_NUMBER = 4; private int networkType_; /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The enum numeric value on the wire for networkType. */ - @java.lang.Override public int getNetworkTypeValue() { + @java.lang.Override + public int getNetworkTypeValue() { return networkType_; } /** + * + * *
      * Type of network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The networkType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } public static final int ID_FIELD_NUMBER = 5; private volatile java.lang.Object id_; /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @return The id. */ @java.lang.Override @@ -476,29 +562,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; } } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 5; + * * @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 { @@ -507,6 +593,7 @@ public java.lang.String getId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -518,8 +605,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -529,7 +615,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (defaultGateway_ != false) { output.writeBool(3, defaultGateway_); } - if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + if (networkType_ + != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, networkType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { @@ -551,12 +638,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_); } if (defaultGateway_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, defaultGateway_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, defaultGateway_); } - if (networkType_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, networkType_); + if (networkType_ + != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, networkType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, id_); @@ -569,22 +655,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.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { + if (!(obj + instanceof + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other = + (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) obj; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (getDefaultGateway() - != other.getDefaultGateway()) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (getDefaultGateway() != other.getDefaultGateway()) return false; if (networkType_ != other.networkType_) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getId().equals(other.getId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -601,8 +686,7 @@ public int hashCode() { hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); hash = (37 * hash) + DEFAULT_GATEWAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDefaultGateway()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultGateway()); hash = (37 * hash) + NETWORK_TYPE_FIELD_NUMBER; hash = (53 * hash) + networkType_; hash = (37 * hash) + ID_FIELD_NUMBER; @@ -612,88 +696,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -703,44 +800,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Each logical network interface is effectively a network and IP pair.
      * 
* - * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} + * Protobuf type {@code + * google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .class, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .Builder.class); } - // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() + // Construct using + // com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -758,19 +863,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface build() { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = buildPartial(); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + build() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -778,8 +887,11 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface buildPartial() { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(this); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + buildPartial() { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface result = + new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface( + this); result.network_ = network_; result.ipAddress_ = ipAddress_; result.defaultGateway_ = defaultGateway_; @@ -793,46 +905,56 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface)other); + if (other + instanceof + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) { + return mergeFrom( + (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { - if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface other) { + if (other + == com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -866,11 +988,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface parsedMessage = null; + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -882,18 +1007,20 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -902,20 +1029,21 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -923,54 +1051,61 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
        * Name of the network
        * 
* * string network = 1; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -978,18 +1113,20 @@ public Builder setNetworkBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -998,20 +1135,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -1019,67 +1157,77 @@ public java.lang.String getIpAddress() { } } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
        * IP address in the network
        * 
* * string ip_address = 2; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private boolean defaultGateway_ ; + private boolean defaultGateway_; /** + * + * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; + * * @return The defaultGateway. */ @java.lang.Override @@ -1087,32 +1235,38 @@ public boolean getDefaultGateway() { return defaultGateway_; } /** + * + * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; + * * @param value The defaultGateway to set. * @return This builder for chaining. */ public Builder setDefaultGateway(boolean value) { - + defaultGateway_ = value; onChanged(); return this; } /** + * + * *
        * Whether this interface is the default gateway for the instance. Only
        * one interface can be the default gateway for the instance.
        * 
* * bool default_gateway = 3; + * * @return This builder for chaining. */ public Builder clearDefaultGateway() { - + defaultGateway_ = false; onChanged(); return this; @@ -1120,51 +1274,67 @@ public Builder clearDefaultGateway() { private int networkType_ = 0; /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The enum numeric value on the wire for networkType. */ - @java.lang.Override public int getNetworkTypeValue() { + @java.lang.Override + public int getNetworkTypeValue() { return networkType_; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @param value The enum numeric value on the wire for networkType to set. * @return This builder for chaining. */ public Builder setNetworkTypeValue(int value) { - + networkType_ = value; onChanged(); return this; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return The networkType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getNetworkType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(networkType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @param value The networkType to set. * @return This builder for chaining. */ @@ -1172,21 +1342,24 @@ public Builder setNetworkType(com.google.cloud.baremetalsolution.v2.Network.Type if (value == null) { throw new NullPointerException(); } - + networkType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Type of network.
        * 
* * .google.cloud.baremetalsolution.v2.Network.Type network_type = 4; + * * @return This builder for chaining. */ public Builder clearNetworkType() { - + networkType_ = 0; onChanged(); return this; @@ -1194,18 +1367,20 @@ public Builder clearNetworkType() { private java.lang.Object id_ = ""; /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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; @@ -1214,20 +1389,21 @@ public java.lang.String getId() { } } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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 { @@ -1235,58 +1411,66 @@ public java.lang.String getId() { } } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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; } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
        * An identifier for the `Network`, generated by the backend.
        * 
* * string id = 5; + * * @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; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1299,30 +1483,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface) - private static final com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterface + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); + DEFAULT_INSTANCE = + new com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface(); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalNetworkInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalNetworkInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalNetworkInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalNetworkInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1334,81 +1522,112 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LOGICAL_NETWORK_INTERFACES_FIELD_NUMBER = 1; - private java.util.List logicalNetworkInterfaces_; + private java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + logicalNetworkInterfaces_; /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public java.util.List getLogicalNetworkInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + getLogicalNetworkInterfacesList() { return logicalNetworkInterfaces_; } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesOrBuilderList() { return logicalNetworkInterfaces_; } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override public int getLogicalNetworkInterfacesCount() { return logicalNetworkInterfaces_.size(); } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getLogicalNetworkInterfaces(int index) { return logicalNetworkInterfaces_.get(index); } /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder + getLogicalNetworkInterfacesOrBuilder(int index) { return logicalNetworkInterfaces_.get(index); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -1417,30 +1636,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; } } /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * 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 { @@ -1451,12 +1670,15 @@ public java.lang.String getName() { public static final int INTERFACE_INDEX_FIELD_NUMBER = 3; private int interfaceIndex_; /** + * + * *
    * The index of the logical interface mapping to the index of the hardware
    * bond or nic on the chosen network template.
    * 
* * int32 interface_index = 3; + * * @return The interfaceIndex. */ @java.lang.Override @@ -1465,6 +1687,7 @@ public int getInterfaceIndex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1476,8 +1699,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < logicalNetworkInterfaces_.size(); i++) { output.writeMessage(1, logicalNetworkInterfaces_.get(i)); } @@ -1497,15 +1719,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < logicalNetworkInterfaces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, logicalNetworkInterfaces_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, logicalNetworkInterfaces_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (interfaceIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, interfaceIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, interfaceIndex_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1515,19 +1737,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.baremetalsolution.v2.LogicalInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; + com.google.cloud.baremetalsolution.v2.LogicalInterface other = + (com.google.cloud.baremetalsolution.v2.LogicalInterface) obj; - if (!getLogicalNetworkInterfacesList() - .equals(other.getLogicalNetworkInterfacesList())) return false; - if (!getName() - .equals(other.getName())) return false; - if (getInterfaceIndex() - != other.getInterfaceIndex()) return false; + if (!getLogicalNetworkInterfacesList().equals(other.getLogicalNetworkInterfacesList())) + return false; + if (!getName().equals(other.getName())) return false; + if (getInterfaceIndex() != other.getInterfaceIndex()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1553,96 +1774,104 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.LogicalInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Each logical interface represents a logical abstraction of the underlying
    * physical interface (for eg. bond, nic) of the instance. Each logical
@@ -1652,21 +1881,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.baremetalsolution.v2.LogicalInterface}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.LogicalInterface)
       com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.baremetalsolution.v2.NetworkProto
+          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
+      return com.google.cloud.baremetalsolution.v2.NetworkProto
+          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.baremetalsolution.v2.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
+              com.google.cloud.baremetalsolution.v2.LogicalInterface.class,
+              com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder.class);
     }
 
     // Construct using com.google.cloud.baremetalsolution.v2.LogicalInterface.newBuilder()
@@ -1674,17 +1905,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) {
         getLogicalNetworkInterfacesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1702,9 +1933,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.baremetalsolution.v2.NetworkProto
+          .internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor;
     }
 
     @java.lang.Override
@@ -1723,11 +1954,13 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface build() {
 
     @java.lang.Override
     public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() {
-      com.google.cloud.baremetalsolution.v2.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.LogicalInterface(this);
+      com.google.cloud.baremetalsolution.v2.LogicalInterface result =
+          new com.google.cloud.baremetalsolution.v2.LogicalInterface(this);
       int from_bitField0_ = bitField0_;
       if (logicalNetworkInterfacesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          logicalNetworkInterfaces_ = java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
+          logicalNetworkInterfaces_ =
+              java.util.Collections.unmodifiableList(logicalNetworkInterfaces_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.logicalNetworkInterfaces_ = logicalNetworkInterfaces_;
@@ -1744,38 +1977,39 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.baremetalsolution.v2.LogicalInterface) {
-        return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface)other);
+        return mergeFrom((com.google.cloud.baremetalsolution.v2.LogicalInterface) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1783,7 +2017,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface other) {
-      if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance()) return this;
+      if (other == com.google.cloud.baremetalsolution.v2.LogicalInterface.getDefaultInstance())
+        return this;
       if (logicalNetworkInterfacesBuilder_ == null) {
         if (!other.logicalNetworkInterfaces_.isEmpty()) {
           if (logicalNetworkInterfaces_.isEmpty()) {
@@ -1802,9 +2037,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.LogicalInterface
             logicalNetworkInterfacesBuilder_ = null;
             logicalNetworkInterfaces_ = other.logicalNetworkInterfaces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            logicalNetworkInterfacesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLogicalNetworkInterfacesFieldBuilder() : null;
+            logicalNetworkInterfacesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLogicalNetworkInterfacesFieldBuilder()
+                    : null;
           } else {
             logicalNetworkInterfacesBuilder_.addAllMessages(other.logicalNetworkInterfaces_);
           }
@@ -1836,7 +2072,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.baremetalsolution.v2.LogicalInterface) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1845,28 +2082,43 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List logicalNetworkInterfaces_ =
-      java.util.Collections.emptyList();
+    private java.util.List<
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>
+        logicalNetworkInterfaces_ = java.util.Collections.emptyList();
+
     private void ensureLogicalNetworkInterfacesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        logicalNetworkInterfaces_ = new java.util.ArrayList(logicalNetworkInterfaces_);
+        logicalNetworkInterfaces_ =
+            new java.util.ArrayList<
+                com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>(
+                logicalNetworkInterfaces_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> logicalNetworkInterfacesBuilder_;
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface,
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder,
+            com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>
+        logicalNetworkInterfacesBuilder_;
 
     /**
+     *
+     *
      * 
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public java.util.List getLogicalNetworkInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + getLogicalNetworkInterfacesList() { if (logicalNetworkInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalNetworkInterfaces_); } else { @@ -1874,11 +2126,15 @@ public java.util.List * List of logical network interfaces within a logical interface. *
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public int getLogicalNetworkInterfacesCount() { if (logicalNetworkInterfacesBuilder_ == null) { @@ -1888,13 +2144,18 @@ public int getLogicalNetworkInterfacesCount() { } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getLogicalNetworkInterfaces(int index) { if (logicalNetworkInterfacesBuilder_ == null) { return logicalNetworkInterfaces_.get(index); } else { @@ -1902,14 +2163,19 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder setLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1923,14 +2189,20 @@ public Builder setLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder setLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.set(index, builderForValue.build()); @@ -1941,13 +2213,18 @@ public Builder setLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public Builder addLogicalNetworkInterfaces(com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + public Builder addLogicalNetworkInterfaces( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1961,14 +2238,19 @@ public Builder addLogicalNetworkInterfaces(com.google.cloud.baremetalsolution.v2 return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface value) { if (logicalNetworkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1982,14 +2264,19 @@ public Builder addLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addLogicalNetworkInterfaces( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.add(builderForValue.build()); @@ -2000,14 +2287,20 @@ public Builder addLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addLogicalNetworkInterfaces( - int index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + builderForValue) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); logicalNetworkInterfaces_.add(index, builderForValue.build()); @@ -2018,18 +2311,24 @@ public Builder addLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder addAllLogicalNetworkInterfaces( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface> + values) { if (logicalNetworkInterfacesBuilder_ == null) { ensureLogicalNetworkInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logicalNetworkInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalNetworkInterfaces_); onChanged(); } else { logicalNetworkInterfacesBuilder_.addAllMessages(values); @@ -2037,11 +2336,15 @@ public Builder addAllLogicalNetworkInterfaces( return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder clearLogicalNetworkInterfaces() { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2054,11 +2357,15 @@ public Builder clearLogicalNetworkInterfaces() { return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ public Builder removeLogicalNetworkInterfaces(int index) { if (logicalNetworkInterfacesBuilder_ == null) { @@ -2071,39 +2378,55 @@ public Builder removeLogicalNetworkInterfaces(int index) { return this; } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder getLogicalNetworkInterfacesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + getLogicalNetworkInterfacesBuilder(int index) { return getLogicalNetworkInterfacesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder + getLogicalNetworkInterfacesOrBuilder(int index) { if (logicalNetworkInterfacesBuilder_ == null) { - return logicalNetworkInterfaces_.get(index); } else { + return logicalNetworkInterfaces_.get(index); + } else { return logicalNetworkInterfacesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public java.util.List - getLogicalNetworkInterfacesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder> + getLogicalNetworkInterfacesOrBuilderList() { if (logicalNetworkInterfacesBuilder_ != null) { return logicalNetworkInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -2111,45 +2434,72 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte } } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder() { - return getLogicalNetworkInterfacesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + addLogicalNetworkInterfacesBuilder() { + return getLogicalNetworkInterfacesFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance()); } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder( - int index) { - return getLogicalNetworkInterfacesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder + addLogicalNetworkInterfacesBuilder(int index) { + return getLogicalNetworkInterfacesFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .getDefaultInstance()); } /** + * + * *
      * List of logical network interfaces within a logical interface.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - public java.util.List - getLogicalNetworkInterfacesBuilderList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder> + getLogicalNetworkInterfacesBuilderList() { return getLogicalNetworkInterfacesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesFieldBuilder() { if (logicalNetworkInterfacesBuilder_ == null) { - logicalNetworkInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface.Builder, com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder>( + logicalNetworkInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface, + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + .Builder, + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder>( logicalNetworkInterfaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2161,19 +2511,21 @@ public com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInte private java.lang.Object name_ = ""; /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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; @@ -2182,21 +2534,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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 { @@ -2204,70 +2557,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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; } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Interface name. This is of syntax <bond><bond_mode> or <nic> and
      * forms part of the network template name.
      * 
* * 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 int interfaceIndex_ ; + private int interfaceIndex_; /** + * + * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; + * * @return The interfaceIndex. */ @java.lang.Override @@ -2275,39 +2638,45 @@ public int getInterfaceIndex() { return interfaceIndex_; } /** + * + * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; + * * @param value The interfaceIndex to set. * @return This builder for chaining. */ public Builder setInterfaceIndex(int value) { - + interfaceIndex_ = value; onChanged(); return this; } /** + * + * *
      * The index of the logical interface mapping to the index of the hardware
      * bond or nic on the chosen network template.
      * 
* * int32 interface_index = 3; + * * @return This builder for chaining. */ public Builder clearInterfaceIndex() { - + interfaceIndex_ = 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); } @@ -2317,12 +2686,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.LogicalInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.LogicalInterface) private static final com.google.cloud.baremetalsolution.v2.LogicalInterface DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.LogicalInterface(); } @@ -2331,16 +2700,16 @@ public static com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2355,6 +2724,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.LogicalInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java similarity index 51% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java index da8ff8e..f3faf3f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LogicalInterfaceOrBuilder.java @@ -1,85 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface LogicalInterfaceOrBuilder extends +public interface LogicalInterfaceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.LogicalInterface) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - java.util.List + java.util.List getLogicalNetworkInterfacesList(); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface + getLogicalNetworkInterfaces(int index); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ int getLogicalNetworkInterfacesCount(); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.LogicalInterface + .LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesOrBuilderList(); /** + * + * *
    * List of logical network interfaces within a logical interface.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * + * repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1; + * */ - com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder + getLogicalNetworkInterfacesOrBuilder(int index); /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Interface name. This is of syntax <bond><bond_mode> or <nic> and
    * forms part of the network template name.
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The index of the logical interface mapping to the index of the hardware
    * bond or nic on the chosen network template.
    * 
* * int32 interface_index = 3; + * * @return The interfaceIndex. */ int getInterfaceIndex(); diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java index d586da5..cbd6146 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Lun.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/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A storage volume logical unit number (LUN).
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ -public final class Lun extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Lun extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Lun) LunOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Lun.newBuilder() to construct. private Lun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Lun() { name_ = ""; id_ = ""; @@ -31,16 +49,15 @@ private Lun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Lun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Lun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,70 +76,77 @@ private Lun( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 24: { - - sizeGb_ = input.readInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - multiprotocolType_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - storageVolume_ = s; - break; - } - case 48: { + state_ = rawValue; + break; + } + case 24: + { + sizeGb_ = input.readInt64(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - shareable_ = input.readBool(); - break; - } - case 56: { + multiprotocolType_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - bootLun_ = input.readBool(); - break; - } - case 64: { - int rawValue = input.readEnum(); + storageVolume_ = s; + break; + } + case 48: + { + shareable_ = input.readBool(); + break; + } + case 56: + { + bootLun_ = input.readBool(); + break; + } + case 64: + { + int rawValue = input.readEnum(); - storageType_ = rawValue; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); + storageType_ = rawValue; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - wwid_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + wwid_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + id_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -130,36 +154,41 @@ private Lun( } 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.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, + com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } /** + * + * *
    * The possible states for the LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The LUN is in an unknown state.
      * 
@@ -168,6 +197,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The LUN is being created.
      * 
@@ -176,6 +207,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The LUN is being updated.
      * 
@@ -184,6 +217,8 @@ public enum State */ UPDATING(2), /** + * + * *
      * The LUN is ready for use.
      * 
@@ -192,6 +227,8 @@ public enum State */ READY(3), /** + * + * *
      * The LUN has been requested to be deleted.
      * 
@@ -203,6 +240,8 @@ public enum State ; /** + * + * *
      * The LUN is in an unknown state.
      * 
@@ -211,6 +250,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The LUN is being created.
      * 
@@ -219,6 +260,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The LUN is being updated.
      * 
@@ -227,6 +270,8 @@ public enum State */ public static final int UPDATING_VALUE = 2; /** + * + * *
      * The LUN is ready for use.
      * 
@@ -235,6 +280,8 @@ public enum State */ public static final int READY_VALUE = 3; /** + * + * *
      * The LUN has been requested to be deleted.
      * 
@@ -243,7 +290,6 @@ public enum State */ public static final int DELETING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -268,51 +314,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return UPDATING; - case 3: return READY; - case 4: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return UPDATING; + case 3: + return READY; + case 4: + return DELETING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -330,15 +378,18 @@ private State(int value) { } /** + * + * *
    * Display the operating systems present for the LUN multiprotocol type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.MultiprotocolType} */ - public enum MultiprotocolType - implements com.google.protobuf.ProtocolMessageEnum { + public enum MultiprotocolType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Server has no OS specified.
      * 
@@ -347,6 +398,8 @@ public enum MultiprotocolType */ MULTIPROTOCOL_TYPE_UNSPECIFIED(0), /** + * + * *
      * Server with Linux OS.
      * 
@@ -358,6 +411,8 @@ public enum MultiprotocolType ; /** + * + * *
      * Server has no OS specified.
      * 
@@ -366,6 +421,8 @@ public enum MultiprotocolType */ public static final int MULTIPROTOCOL_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Server with Linux OS.
      * 
@@ -374,7 +431,6 @@ public enum MultiprotocolType */ public static final int LINUX_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -399,9 +455,12 @@ public static MultiprotocolType valueOf(int value) { */ public static MultiprotocolType forNumber(int value) { switch (value) { - case 0: return MULTIPROTOCOL_TYPE_UNSPECIFIED; - case 1: return LINUX; - default: return null; + case 0: + return MULTIPROTOCOL_TYPE_UNSPECIFIED; + case 1: + return LINUX; + default: + return null; } } @@ -409,28 +468,28 @@ public static MultiprotocolType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - MultiprotocolType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MultiprotocolType findValueByNumber(int number) { - return MultiprotocolType.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 MultiprotocolType findValueByNumber(int number) { + return MultiprotocolType.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.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(1); } @@ -439,8 +498,7 @@ public MultiprotocolType findValueByNumber(int number) { public static MultiprotocolType 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; @@ -458,15 +516,18 @@ private MultiprotocolType(int value) { } /** + * + * *
    * The storage types for a LUN.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Lun.StorageType} */ - public enum StorageType - implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The storage type for this LUN is unknown.
      * 
@@ -475,6 +536,8 @@ public enum StorageType */ STORAGE_TYPE_UNSPECIFIED(0), /** + * + * *
      * This storage type for this LUN is SSD.
      * 
@@ -483,6 +546,8 @@ public enum StorageType */ SSD(1), /** + * + * *
      * This storage type for this LUN is HDD.
      * 
@@ -494,6 +559,8 @@ public enum StorageType ; /** + * + * *
      * The storage type for this LUN is unknown.
      * 
@@ -502,6 +569,8 @@ public enum StorageType */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * This storage type for this LUN is SSD.
      * 
@@ -510,6 +579,8 @@ public enum StorageType */ public static final int SSD_VALUE = 1; /** + * + * *
      * This storage type for this LUN is HDD.
      * 
@@ -518,7 +589,6 @@ public enum StorageType */ public static final int HDD_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -543,49 +613,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: return STORAGE_TYPE_UNSPECIFIED; - case 1: return SSD; - case 2: return HDD; - default: return null; + case 0: + return STORAGE_TYPE_UNSPECIFIED; + case 1: + return SSD; + case 2: + return HDD; + 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< - StorageType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.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 StorageType findValueByNumber(int number) { + return StorageType.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.baremetalsolution.v2.Lun.getDescriptor().getEnumTypes().get(2); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -605,11 +675,14 @@ private StorageType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -618,29 +691,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -651,11 +724,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ @java.lang.Override @@ -664,29 +740,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; } } /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @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 { @@ -697,38 +773,50 @@ public java.lang.String getId() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = + com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } public static final int SIZE_GB_FIELD_NUMBER = 3; private long sizeGb_; /** + * + * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; + * * @return The sizeGb. */ @java.lang.Override @@ -739,40 +827,54 @@ public long getSizeGb() { public static final int MULTIPROTOCOL_TYPE_FIELD_NUMBER = 4; private int multiprotocolType_; /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override public int getMultiprotocolTypeValue() { + @java.lang.Override + public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The multiprotocolType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED + : result; } public static final int STORAGE_VOLUME_FIELD_NUMBER = 5; private volatile java.lang.Object storageVolume_; /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The storageVolume. */ @java.lang.Override @@ -781,29 +883,29 @@ public java.lang.String getStorageVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; } } /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for storageVolume. */ @java.lang.Override - public com.google.protobuf.ByteString - getStorageVolumeBytes() { + public com.google.protobuf.ByteString getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -814,11 +916,14 @@ public java.lang.String getStorageVolume() { public static final int SHAREABLE_FIELD_NUMBER = 6; private boolean shareable_; /** + * + * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; + * * @return The shareable. */ @java.lang.Override @@ -829,11 +934,14 @@ public boolean getShareable() { public static final int BOOT_LUN_FIELD_NUMBER = 7; private boolean bootLun_; /** + * + * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; + * * @return The bootLun. */ @java.lang.Override @@ -844,38 +952,52 @@ public boolean getBootLun() { public static final int STORAGE_TYPE_FIELD_NUMBER = 8; private int storageType_; /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The storageType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = + com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED + : result; } public static final int WWID_FIELD_NUMBER = 9; private volatile java.lang.Object wwid_; /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The wwid. */ @java.lang.Override @@ -884,29 +1006,29 @@ public java.lang.String getWwid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; } } /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The bytes for wwid. */ @java.lang.Override - public com.google.protobuf.ByteString - getWwidBytes() { + public com.google.protobuf.ByteString getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); wwid_ = b; return b; } else { @@ -915,6 +1037,7 @@ public java.lang.String getWwid() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -926,8 +1049,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -937,7 +1059,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (sizeGb_ != 0L) { output.writeInt64(3, sizeGb_); } - if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { + if (multiprotocolType_ + != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType + .MULTIPROTOCOL_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { @@ -949,7 +1074,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (bootLun_ != false) { output.writeBool(7, bootLun_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { @@ -971,31 +1098,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.Lun.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (sizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, sizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeGb_); } - if (multiprotocolType_ != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.MULTIPROTOCOL_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, multiprotocolType_); + if (multiprotocolType_ + != com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType + .MULTIPROTOCOL_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, multiprotocolType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageVolume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageVolume_); } if (shareable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, shareable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, shareable_); } if (bootLun_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, bootLun_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, bootLun_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, storageType_); + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Lun.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, storageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wwid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, wwid_); @@ -1011,30 +1137,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.baremetalsolution.v2.Lun)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Lun other = (com.google.cloud.baremetalsolution.v2.Lun) obj; + com.google.cloud.baremetalsolution.v2.Lun other = + (com.google.cloud.baremetalsolution.v2.Lun) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (state_ != other.state_) return false; - if (getSizeGb() - != other.getSizeGb()) return false; + if (getSizeGb() != other.getSizeGb()) return false; if (multiprotocolType_ != other.multiprotocolType_) return false; - if (!getStorageVolume() - .equals(other.getStorageVolume())) return false; - if (getShareable() - != other.getShareable()) return false; - if (getBootLun() - != other.getBootLun()) return false; + if (!getStorageVolume().equals(other.getStorageVolume())) return false; + if (getShareable() != other.getShareable()) return false; + if (getBootLun() != other.getBootLun()) return false; if (storageType_ != other.storageType_) return false; - if (!getWwid() - .equals(other.getWwid())) return false; + if (!getWwid().equals(other.getWwid())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1053,18 +1173,15 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGb()); hash = (37 * hash) + MULTIPROTOCOL_TYPE_FIELD_NUMBER; hash = (53 * hash) + multiprotocolType_; hash = (37 * hash) + STORAGE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getStorageVolume().hashCode(); hash = (37 * hash) + SHAREABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShareable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShareable()); hash = (37 * hash) + BOOT_LUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBootLun()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBootLun()); hash = (37 * hash) + STORAGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + storageType_; hash = (37 * hash) + WWID_FIELD_NUMBER; @@ -1074,118 +1191,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun 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.baremetalsolution.v2.Lun parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Lun parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Lun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Lun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume logical unit number (LUN).
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Lun} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Lun) com.google.cloud.baremetalsolution.v2.LunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Lun.class, com.google.cloud.baremetalsolution.v2.Lun.Builder.class); + com.google.cloud.baremetalsolution.v2.Lun.class, + com.google.cloud.baremetalsolution.v2.Lun.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Lun.newBuilder() @@ -1193,16 +1319,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(); @@ -1230,9 +1355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.LunProto.internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.LunProto + .internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor; } @java.lang.Override @@ -1251,7 +1376,8 @@ public com.google.cloud.baremetalsolution.v2.Lun build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { - com.google.cloud.baremetalsolution.v2.Lun result = new com.google.cloud.baremetalsolution.v2.Lun(this); + com.google.cloud.baremetalsolution.v2.Lun result = + new com.google.cloud.baremetalsolution.v2.Lun(this); result.name_ = name_; result.id_ = id_; result.state_ = state_; @@ -1270,38 +1396,39 @@ public com.google.cloud.baremetalsolution.v2.Lun buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Lun) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Lun) other); } else { super.mergeFrom(other); return this; @@ -1375,18 +1502,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1395,20 +1524,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1416,54 +1546,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the LUN.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1471,18 +1608,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1491,20 +1630,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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 { @@ -1512,54 +1652,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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; } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the LUN, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1567,51 +1714,65 @@ public Builder setIdBytes( private int state_ = 0; /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.State result = com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.Lun.State result = + com.google.cloud.baremetalsolution.v2.Lun.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.Lun.State.UNRECOGNIZED : result; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1619,33 +1780,39 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Lun.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long sizeGb_ ; + private long sizeGb_; /** + * + * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; + * * @return The sizeGb. */ @java.lang.Override @@ -1653,30 +1820,36 @@ public long getSizeGb() { return sizeGb_; } /** + * + * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; + * * @param value The sizeGb to set. * @return This builder for chaining. */ public Builder setSizeGb(long value) { - + sizeGb_ = value; onChanged(); return this; } /** + * + * *
      * The size of this LUN, in gigabytes.
      * 
* * int64 size_gb = 3; + * * @return This builder for chaining. */ public Builder clearSizeGb() { - + sizeGb_ = 0L; onChanged(); return this; @@ -1684,78 +1857,98 @@ public Builder clearSizeGb() { private int multiprotocolType_ = 0; /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The enum numeric value on the wire for multiprotocolType. */ - @java.lang.Override public int getMultiprotocolTypeValue() { + @java.lang.Override + public int getMultiprotocolTypeValue() { return multiprotocolType_; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @param value The enum numeric value on the wire for multiprotocolType to set. * @return This builder for chaining. */ public Builder setMultiprotocolTypeValue(int value) { - + multiprotocolType_ = value; onChanged(); return this; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The multiprotocolType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType result = + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.valueOf(multiprotocolType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType.UNRECOGNIZED + : result; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @param value The multiprotocolType to set. * @return This builder for chaining. */ - public Builder setMultiprotocolType(com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { + public Builder setMultiprotocolType( + com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType value) { if (value == null) { throw new NullPointerException(); } - + multiprotocolType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The LUN multiprotocol type ensures the characteristics of the LUN are
      * optimized for each operating system.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return This builder for chaining. */ public Builder clearMultiprotocolType() { - + multiprotocolType_ = 0; onChanged(); return this; @@ -1763,18 +1956,20 @@ public Builder clearMultiprotocolType() { private java.lang.Object storageVolume_ = ""; /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The storageVolume. */ public java.lang.String getStorageVolume() { java.lang.Object ref = storageVolume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageVolume_ = s; return s; @@ -1783,20 +1978,21 @@ public java.lang.String getStorageVolume() { } } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for storageVolume. */ - public com.google.protobuf.ByteString - getStorageVolumeBytes() { + public com.google.protobuf.ByteString getStorageVolumeBytes() { java.lang.Object ref = storageVolume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageVolume_ = b; return b; } else { @@ -1804,66 +2000,76 @@ public java.lang.String getStorageVolume() { } } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @param value The storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolume( - java.lang.String value) { + public Builder setStorageVolume(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + storageVolume_ = value; onChanged(); return this; } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearStorageVolume() { - + storageVolume_ = getDefaultInstance().getStorageVolume(); onChanged(); return this; } /** + * + * *
      * Display the storage volume for this LUN.
      * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for storageVolume to set. * @return This builder for chaining. */ - public Builder setStorageVolumeBytes( - com.google.protobuf.ByteString value) { + public Builder setStorageVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageVolume_ = value; onChanged(); return this; } - private boolean shareable_ ; + private boolean shareable_; /** + * + * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; + * * @return The shareable. */ @java.lang.Override @@ -1871,42 +2077,51 @@ public boolean getShareable() { return shareable_; } /** + * + * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; + * * @param value The shareable to set. * @return This builder for chaining. */ public Builder setShareable(boolean value) { - + shareable_ = value; onChanged(); return this; } /** + * + * *
      * Display if this LUN can be shared between multiple physical servers.
      * 
* * bool shareable = 6; + * * @return This builder for chaining. */ public Builder clearShareable() { - + shareable_ = false; onChanged(); return this; } - private boolean bootLun_ ; + private boolean bootLun_; /** + * + * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; + * * @return The bootLun. */ @java.lang.Override @@ -1914,30 +2129,36 @@ public boolean getBootLun() { return bootLun_; } /** + * + * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; + * * @param value The bootLun to set. * @return This builder for chaining. */ public Builder setBootLun(boolean value) { - + bootLun_ = value; onChanged(); return this; } /** + * + * *
      * Display if this LUN is a boot LUN.
      * 
* * bool boot_lun = 7; + * * @return This builder for chaining. */ public Builder clearBootLun() { - + bootLun_ = false; onChanged(); return this; @@ -1945,51 +2166,67 @@ public Builder clearBootLun() { private int storageType_ = 0; /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Lun.StorageType result = com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Lun.StorageType result = + com.google.cloud.baremetalsolution.v2.Lun.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Lun.StorageType.UNRECOGNIZED + : result; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @param value The storageType to set. * @return This builder for chaining. */ @@ -1997,21 +2234,24 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Lun.StorageT if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The storage type for this LUN.
      * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -2019,18 +2259,20 @@ public Builder clearStorageType() { private java.lang.Object wwid_ = ""; /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @return The wwid. */ public java.lang.String getWwid() { java.lang.Object ref = wwid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); wwid_ = s; return s; @@ -2039,20 +2281,21 @@ public java.lang.String getWwid() { } } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @return The bytes for wwid. */ - public com.google.protobuf.ByteString - getWwidBytes() { + public com.google.protobuf.ByteString getWwidBytes() { java.lang.Object ref = wwid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); wwid_ = b; return b; } else { @@ -2060,61 +2303,68 @@ public java.lang.String getWwid() { } } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @param value The wwid to set. * @return This builder for chaining. */ - public Builder setWwid( - java.lang.String value) { + public Builder setWwid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + wwid_ = value; onChanged(); return this; } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @return This builder for chaining. */ public Builder clearWwid() { - + wwid_ = getDefaultInstance().getWwid(); onChanged(); return this; } /** + * + * *
      * The WWID for this LUN.
      * 
* * string wwid = 9; + * * @param value The bytes for wwid to set. * @return This builder for chaining. */ - public Builder setWwidBytes( - com.google.protobuf.ByteString value) { + public Builder setWwidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + wwid_ = 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); } @@ -2124,12 +2374,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Lun) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Lun) private static final com.google.cloud.baremetalsolution.v2.Lun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Lun(); } @@ -2138,16 +2388,16 @@ public static com.google.cloud.baremetalsolution.v2.Lun getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Lun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Lun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Lun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Lun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2162,6 +2412,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Lun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java index eae3681..df63068 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunOrBuilder.java @@ -1,178 +1,241 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/lun.proto package com.google.cloud.baremetalsolution.v2; -public interface LunOrBuilder extends +public interface LunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Lun) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of the LUN.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the LUN, generated by the backend.
    * 
* * string id = 10; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.State state = 2; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Lun.State getState(); /** + * + * *
    * The size of this LUN, in gigabytes.
    * 
* * int64 size_gb = 3; + * * @return The sizeGb. */ long getSizeGb(); /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The enum numeric value on the wire for multiprotocolType. */ int getMultiprotocolTypeValue(); /** + * + * *
    * The LUN multiprotocol type ensures the characteristics of the LUN are
    * optimized for each operating system.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4; + * * @return The multiprotocolType. */ com.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType getMultiprotocolType(); /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The storageVolume. */ java.lang.String getStorageVolume(); /** + * + * *
    * Display the storage volume for this LUN.
    * 
* * string storage_volume = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for storageVolume. */ - com.google.protobuf.ByteString - getStorageVolumeBytes(); + com.google.protobuf.ByteString getStorageVolumeBytes(); /** + * + * *
    * Display if this LUN can be shared between multiple physical servers.
    * 
* * bool shareable = 6; + * * @return The shareable. */ boolean getShareable(); /** + * + * *
    * Display if this LUN is a boot LUN.
    * 
* * bool boot_lun = 7; + * * @return The bootLun. */ boolean getBootLun(); /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** + * + * *
    * The storage type for this LUN.
    * 
* * .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8; + * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Lun.StorageType getStorageType(); /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The wwid. */ java.lang.String getWwid(); /** + * + * *
    * The WWID for this LUN.
    * 
* * string wwid = 9; + * * @return The bytes for wwid. */ - com.google.protobuf.ByteString - getWwidBytes(); + com.google.protobuf.ByteString getWwidBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java new file mode 100644 index 0000000..94372e2 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunProto.java @@ -0,0 +1,153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/lun.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class LunProto { + private LunProto() {} + + 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_baremetalsolution_v2_Lun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_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/baremetalsolution/v2/lun." + + "proto\022!google.cloud.baremetalsolution.v2" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\"\323\005\n\003Lun\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022;\n\005state\030\002 \001(\0162,.goo" + + "gle.cloud.baremetalsolution.v2.Lun.State" + + "\022\017\n\007size_gb\030\003 \001(\003\022T\n\022multiprotocol_type\030" + + "\004 \001(\01628.google.cloud.baremetalsolution.v" + + "2.Lun.MultiprotocolType\022D\n\016storage_volum" + + "e\030\005 \001(\tB,\372A)\n\'baremetalsolution.googleap" + + "is.com/Volume\022\021\n\tshareable\030\006 \001(\010\022\020\n\010boot" + + "_lun\030\007 \001(\010\022H\n\014storage_type\030\010 \001(\01622.googl" + + "e.cloud.baremetalsolution.v2.Lun.Storage" + + "Type\022\014\n\004wwid\030\t \001(\t\"S\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010UPDATING\020\002\022\t" + + "\n\005READY\020\003\022\014\n\010DELETING\020\004\"B\n\021Multiprotocol" + + "Type\022\"\n\036MULTIPROTOCOL_TYPE_UNSPECIFIED\020\000" + + "\022\t\n\005LINUX\020\001\"=\n\013StorageType\022\034\n\030STORAGE_TY" + + "PE_UNSPECIFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002:n\352Ak\n" + + "$baremetalsolution.googleapis.com/Lun\022Cp" + + "rojects/{project}/locations/{location}/v" + + "olumes/{volume}/luns/{lun}\"K\n\rGetLunRequ" + + "est\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$baremetalsolu" + + "tion.googleapis.com/Lun\"y\n\017ListLunsReque" + + "st\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsol" + + "ution.googleapis.com/Volume\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\020ListLunsRe" + + "sponse\0224\n\004luns\030\001 \003(\0132&.google.cloud.bare" + + "metalsolution.v2.Lun\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\tB\366\001\n%com.googl" + + "e.cloud.baremetalsolution.v2B\010LunProtoP\001" + + "ZRgoogle.golang.org/genproto/googleapis/" + + "cloud/baremetalsolution/v2;baremetalsolu" + + "tion\252\002!Google.Cloud.BareMetalSolution.V2" + + "\312\002!Google\\Cloud\\BareMetalSolution\\V2\352\002$G" + + "oogle::Cloud::BareMetalSolution::V2b\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Lun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Lun_descriptor, + new java.lang.String[] { + "Name", + "Id", + "State", + "SizeGb", + "MultiprotocolType", + "StorageVolume", + "Shareable", + "BootLun", + "StorageType", + "Wwid", + }); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetLunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListLunsResponse_descriptor, + new java.lang.String[] { + "Luns", "NextPageToken", "Unreachable", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java index 26b360f..3977086 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Network.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A Network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} */ -public final class Network extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Network extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Network) NetworkOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Network.newBuilder() to construct. private Network(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Network() { name_ = ""; id_ = ""; @@ -34,16 +52,15 @@ private Network() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Network(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Network( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -63,105 +80,122 @@ private Network( case 0: done = true; break; - case 16: { - int rawValue = input.readEnum(); + case 16: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - ipAddress_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - macAddress_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + ipAddress_ = s; + break; } - macAddress_.add(s); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + macAddress_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + macAddress_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 48: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - vlanId_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + vlanId_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - cidr_ = s; - break; - } - case 74: { - com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; - if (vrf_ != null) { - subBuilder = vrf_.toBuilder(); + cidr_ = s; + break; } - vrf_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(vrf_); - vrf_ = subBuilder.buildPartial(); + case 74: + { + com.google.cloud.baremetalsolution.v2.VRF.Builder subBuilder = null; + if (vrf_ != null) { + subBuilder = vrf_.toBuilder(); + } + vrf_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.VRF.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(vrf_); + vrf_ = subBuilder.buildPartial(); + } + + break; } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + id_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); + case 90: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - servicesCidr_ = s; - break; - } - case 106: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - reservations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + servicesCidr_ = s; + break; } - reservations_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 106: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + reservations_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>(); + mutable_bitField0_ |= 0x00000004; + } + reservations_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -169,8 +203,7 @@ private Network( } 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)) { macAddress_ = macAddress_.getUnmodifiableView(); @@ -182,41 +215,46 @@ private Network( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_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 11: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); + com.google.cloud.baremetalsolution.v2.Network.class, + com.google.cloud.baremetalsolution.v2.Network.Builder.class); } /** + * + * *
    * Network type.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified value.
      * 
@@ -225,6 +263,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Client network, a network peered to a Google Cloud VPC.
      * 
@@ -233,6 +273,8 @@ public enum Type */ CLIENT(1), /** + * + * *
      * Private network, a network local to the Bare Metal Solution environment.
      * 
@@ -244,6 +286,8 @@ public enum Type ; /** + * + * *
      * Unspecified value.
      * 
@@ -252,6 +296,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Client network, a network peered to a Google Cloud VPC.
      * 
@@ -260,6 +306,8 @@ public enum Type */ public static final int CLIENT_VALUE = 1; /** + * + * *
      * Private network, a network local to the Bare Metal Solution environment.
      * 
@@ -268,7 +316,6 @@ public enum Type */ public static final int PRIVATE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -293,49 +340,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return CLIENT; - case 2: return PRIVATE; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return CLIENT; + case 2: + return PRIVATE; + 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< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.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 Type findValueByNumber(int number) { + return Type.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.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -353,15 +400,18 @@ private Type(int value) { } /** + * + * *
    * The possible states for this Network.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Network.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The Network is in an unknown state.
      * 
@@ -370,6 +420,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Network is provisioning.
      * 
@@ -378,6 +430,8 @@ public enum State */ PROVISIONING(1), /** + * + * *
      * The Network has been provisioned.
      * 
@@ -389,6 +443,8 @@ public enum State ; /** + * + * *
      * The Network is in an unknown state.
      * 
@@ -397,6 +453,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Network is provisioning.
      * 
@@ -405,6 +463,8 @@ public enum State */ public static final int PROVISIONING_VALUE = 1; /** + * + * *
      * The Network has been provisioned.
      * 
@@ -413,7 +473,6 @@ public enum State */ public static final int PROVISIONED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -438,49 +497,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONING; - case 2: return PROVISIONED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return PROVISIONED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Network.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -500,6 +559,8 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 5; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -509,6 +570,7 @@ private State(int value) {
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -517,14 +579,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; } } /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -534,16 +597,15 @@ public java.lang.String getName() {
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -554,11 +616,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ @java.lang.Override @@ -567,29 +632,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; } } /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @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 { @@ -600,38 +665,52 @@ public java.lang.String getId() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The type. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } public static final int IP_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object ipAddress_; /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ @java.lang.Override @@ -640,29 +719,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -673,34 +752,42 @@ public java.lang.String getIpAddress() { public static final int MAC_ADDRESS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList macAddress_; /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return A list containing the macAddress. */ - public com.google.protobuf.ProtocolStringList - getMacAddressList() { + public com.google.protobuf.ProtocolStringList getMacAddressList() { return macAddress_; } /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return The count of macAddress. */ public int getMacAddressCount() { return macAddress_.size(); } /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the element to return. * @return The macAddress at the given index. */ @@ -708,54 +795,70 @@ public java.lang.String getMacAddress(int index) { return macAddress_.get(index); } /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - public com.google.protobuf.ByteString - getMacAddressBytes(int index) { + public com.google.protobuf.ByteString getMacAddressBytes(int index) { return macAddress_.getByteString(index); } public static final int STATE_FIELD_NUMBER = 6; private int state_; /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Network.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.State result = + com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED + : result; } public static final int VLAN_ID_FIELD_NUMBER = 7; private volatile java.lang.Object vlanId_; /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The vlanId. */ @java.lang.Override @@ -764,29 +867,29 @@ public java.lang.String getVlanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vlanId_ = s; return s; } } /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The bytes for vlanId. */ @java.lang.Override - public com.google.protobuf.ByteString - getVlanIdBytes() { + public com.google.protobuf.ByteString getVlanIdBytes() { java.lang.Object ref = vlanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vlanId_ = b; return b; } else { @@ -797,11 +900,14 @@ public java.lang.String getVlanId() { public static final int CIDR_FIELD_NUMBER = 8; private volatile java.lang.Object cidr_; /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The cidr. */ @java.lang.Override @@ -810,29 +916,29 @@ public java.lang.String getCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; } } /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The bytes for cidr. */ @java.lang.Override - public com.google.protobuf.ByteString - getCidrBytes() { + public com.google.protobuf.ByteString getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidr_ = b; return b; } else { @@ -843,11 +949,14 @@ public java.lang.String getCidr() { public static final int VRF_FIELD_NUMBER = 9; private com.google.cloud.baremetalsolution.v2.VRF vrf_; /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return Whether the vrf field is set. */ @java.lang.Override @@ -855,11 +964,14 @@ public boolean hasVrf() { return vrf_ != null; } /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return The vrf. */ @java.lang.Override @@ -867,6 +979,8 @@ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; } /** + * + * *
    * The vrf for the Network.
    * 
@@ -879,24 +993,23 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 11; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -905,28 +1018,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -934,11 +1049,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 11; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -946,16 +1062,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -963,12 +1079,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -978,11 +1093,14 @@ public java.lang.String getLabelsOrThrow( public static final int SERVICES_CIDR_FIELD_NUMBER = 12; private volatile java.lang.Object servicesCidr_; /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The servicesCidr. */ @java.lang.Override @@ -991,29 +1109,29 @@ public java.lang.String getServicesCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servicesCidr_ = s; return s; } } /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The bytes for servicesCidr. */ @java.lang.Override - public com.google.protobuf.ByteString - getServicesCidrBytes() { + public com.google.protobuf.ByteString getServicesCidrBytes() { java.lang.Object ref = servicesCidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); servicesCidr_ = b; return b; } else { @@ -1022,76 +1140,96 @@ public java.lang.String getServicesCidr() { } public static final int RESERVATIONS_FIELD_NUMBER = 13; - private java.util.List reservations_; + private java.util.List + reservations_; /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public java.util.List getReservationsList() { + public java.util.List + getReservationsList() { return reservations_; } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> getReservationsOrBuilderList() { return reservations_; } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override public int getReservationsCount() { return reservations_.size(); } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations( + int index) { return reservations_.get(index); } /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder + getReservationsOrBuilder(int index) { return reservations_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1103,8 +1241,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } @@ -1117,7 +1254,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { @@ -1132,12 +1270,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, id_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 11); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, servicesCidr_); } @@ -1154,8 +1288,7 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.baremetalsolution.v2.Network.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); @@ -1171,9 +1304,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.Network.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlanId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, vlanId_); @@ -1182,28 +1315,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cidr_); } if (vrf_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getVrf()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getVrf()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, id_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, servicesCidr_); } for (int i = 0; i < reservations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, reservations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, reservations_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1213,38 +1344,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Network)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Network other = (com.google.cloud.baremetalsolution.v2.Network) obj; + com.google.cloud.baremetalsolution.v2.Network other = + (com.google.cloud.baremetalsolution.v2.Network) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (type_ != other.type_) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (!getMacAddressList() - .equals(other.getMacAddressList())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getMacAddressList().equals(other.getMacAddressList())) return false; if (state_ != other.state_) return false; - if (!getVlanId() - .equals(other.getVlanId())) return false; - if (!getCidr() - .equals(other.getCidr())) return false; + if (!getVlanId().equals(other.getVlanId())) return false; + if (!getCidr().equals(other.getCidr())) return false; if (hasVrf() != other.hasVrf()) return false; if (hasVrf()) { - if (!getVrf() - .equals(other.getVrf())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getServicesCidr() - .equals(other.getServicesCidr())) return false; - if (!getReservationsList() - .equals(other.getReservationsList())) return false; + if (!getVrf().equals(other.getVrf())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getServicesCidr().equals(other.getServicesCidr())) return false; + if (!getReservationsList().equals(other.getReservationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1293,140 +1415,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Network parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network 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.baremetalsolution.v2.Network parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Network parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Network parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Network prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Network} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Network) com.google.cloud.baremetalsolution.v2.NetworkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 11: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 11: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Network.class, com.google.cloud.baremetalsolution.v2.Network.Builder.class); + com.google.cloud.baremetalsolution.v2.Network.class, + com.google.cloud.baremetalsolution.v2.Network.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Network.newBuilder() @@ -1434,17 +1563,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) { getReservationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1483,9 +1612,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_Network_descriptor; } @java.lang.Override @@ -1504,7 +1633,8 @@ public com.google.cloud.baremetalsolution.v2.Network build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network buildPartial() { - com.google.cloud.baremetalsolution.v2.Network result = new com.google.cloud.baremetalsolution.v2.Network(this); + com.google.cloud.baremetalsolution.v2.Network result = + new com.google.cloud.baremetalsolution.v2.Network(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -1543,38 +1673,39 @@ public com.google.cloud.baremetalsolution.v2.Network buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Network) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Network)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Network) other); } else { super.mergeFrom(other); return this; @@ -1622,8 +1753,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { if (other.hasVrf()) { mergeVrf(other.getVrf()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getServicesCidr().isEmpty()) { servicesCidr_ = other.servicesCidr_; onChanged(); @@ -1646,9 +1776,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Network other) { reservationsBuilder_ = null; reservations_ = other.reservations_; bitField0_ = (bitField0_ & ~0x00000004); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReservationsFieldBuilder() : null; + reservationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReservationsFieldBuilder() + : null; } else { reservationsBuilder_.addAllMessages(other.reservations_); } @@ -1682,10 +1813,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1695,13 +1829,13 @@ public Builder mergeFrom(
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1710,6 +1844,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1719,15 +1855,14 @@ public java.lang.String getName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1735,6 +1870,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1744,20 +1881,22 @@ public java.lang.String getName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1767,15 +1906,18 @@ public Builder setName(
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Network`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -1785,16 +1927,16 @@ public Builder clearName() {
      * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1802,18 +1944,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1822,20 +1966,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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 { @@ -1843,54 +1988,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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; } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the `Network`, generated by the backend.
      * 
* * string id = 10; + * * @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; @@ -1898,51 +2050,67 @@ public Builder setIdBytes( private int type_ = 0; /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The type. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.Type result = com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.Type result = + com.google.cloud.baremetalsolution.v2.Network.Type.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.Type.UNRECOGNIZED + : result; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1950,21 +2118,24 @@ public Builder setType(com.google.cloud.baremetalsolution.v2.Network.Type value) if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of this network.
      * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1972,18 +2143,20 @@ public Builder clearType() { private java.lang.Object ipAddress_ = ""; /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -1992,20 +2165,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -2013,95 +2187,112 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
      * IP address configured.
      * 
* * string ip_address = 3; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList macAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList macAddress_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMacAddressIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { macAddress_ = new com.google.protobuf.LazyStringArrayList(macAddress_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @return A list containing the macAddress. */ - public com.google.protobuf.ProtocolStringList - getMacAddressList() { + public com.google.protobuf.ProtocolStringList getMacAddressList() { return macAddress_.getUnmodifiableView(); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @return The count of macAddress. */ public int getMacAddressCount() { return macAddress_.size(); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param index The index of the element to return. * @return The macAddress at the given index. */ @@ -2109,80 +2300,90 @@ public java.lang.String getMacAddress(int index) { return macAddress_.get(index); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - public com.google.protobuf.ByteString - getMacAddressBytes(int index) { + public com.google.protobuf.ByteString getMacAddressBytes(int index) { return macAddress_.getByteString(index); } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param index The index to set the value at. * @param value The macAddress to set. * @return This builder for chaining. */ - public Builder setMacAddress( - int index, java.lang.String value) { + public Builder setMacAddress(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); macAddress_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param value The macAddress to add. * @return This builder for chaining. */ - public Builder addMacAddress( - java.lang.String value) { + public Builder addMacAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMacAddressIsMutable(); + throw new NullPointerException(); + } + ensureMacAddressIsMutable(); macAddress_.add(value); onChanged(); return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param values The macAddress to add. * @return This builder for chaining. */ - public Builder addAllMacAddress( - java.lang.Iterable values) { + public Builder addAllMacAddress(java.lang.Iterable values) { ensureMacAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, macAddress_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, macAddress_); onChanged(); return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @return This builder for chaining. */ public Builder clearMacAddress() { @@ -2192,20 +2393,22 @@ public Builder clearMacAddress() { return this; } /** + * + * *
      * List of physical interfaces.
      * 
* * repeated string mac_address = 4; + * * @param value The bytes of the macAddress to add. * @return This builder for chaining. */ - public Builder addMacAddressBytes( - com.google.protobuf.ByteString value) { + public Builder addMacAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMacAddressIsMutable(); macAddress_.add(value); onChanged(); @@ -2214,51 +2417,67 @@ public Builder addMacAddressBytes( private int state_ = 0; /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Network.State result = com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Network.State result = + com.google.cloud.baremetalsolution.v2.Network.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Network.State.UNRECOGNIZED + : result; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2266,21 +2485,24 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Network.State valu if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The Network state.
      * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2288,18 +2510,20 @@ public Builder clearState() { private java.lang.Object vlanId_ = ""; /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @return The vlanId. */ public java.lang.String getVlanId() { java.lang.Object ref = vlanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vlanId_ = s; return s; @@ -2308,20 +2532,21 @@ public java.lang.String getVlanId() { } } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @return The bytes for vlanId. */ - public com.google.protobuf.ByteString - getVlanIdBytes() { + public com.google.protobuf.ByteString getVlanIdBytes() { java.lang.Object ref = vlanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vlanId_ = b; return b; } else { @@ -2329,54 +2554,61 @@ public java.lang.String getVlanId() { } } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @param value The vlanId to set. * @return This builder for chaining. */ - public Builder setVlanId( - java.lang.String value) { + public Builder setVlanId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vlanId_ = value; onChanged(); return this; } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @return This builder for chaining. */ public Builder clearVlanId() { - + vlanId_ = getDefaultInstance().getVlanId(); onChanged(); return this; } /** + * + * *
      * The vlan id of the Network.
      * 
* * string vlan_id = 7; + * * @param value The bytes for vlanId to set. * @return This builder for chaining. */ - public Builder setVlanIdBytes( - com.google.protobuf.ByteString value) { + public Builder setVlanIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vlanId_ = value; onChanged(); return this; @@ -2384,18 +2616,20 @@ public Builder setVlanIdBytes( private java.lang.Object cidr_ = ""; /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @return The cidr. */ public java.lang.String getCidr() { java.lang.Object ref = cidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cidr_ = s; return s; @@ -2404,20 +2638,21 @@ public java.lang.String getCidr() { } } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @return The bytes for cidr. */ - public com.google.protobuf.ByteString - getCidrBytes() { + public com.google.protobuf.ByteString getCidrBytes() { java.lang.Object ref = cidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cidr_ = b; return b; } else { @@ -2425,54 +2660,61 @@ public java.lang.String getCidr() { } } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @param value The cidr to set. * @return This builder for chaining. */ - public Builder setCidr( - java.lang.String value) { + public Builder setCidr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cidr_ = value; onChanged(); return this; } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @return This builder for chaining. */ public Builder clearCidr() { - + cidr_ = getDefaultInstance().getCidr(); onChanged(); return this; } /** + * + * *
      * The cidr of the Network.
      * 
* * string cidr = 8; + * * @param value The bytes for cidr to set. * @return This builder for chaining. */ - public Builder setCidrBytes( - com.google.protobuf.ByteString value) { + public Builder setCidrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidr_ = value; onChanged(); return this; @@ -2480,24 +2722,33 @@ public Builder setCidrBytes( private com.google.cloud.baremetalsolution.v2.VRF vrf_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> vrfBuilder_; + com.google.cloud.baremetalsolution.v2.VRF, + com.google.cloud.baremetalsolution.v2.VRF.Builder, + com.google.cloud.baremetalsolution.v2.VRFOrBuilder> + vrfBuilder_; /** + * + * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return Whether the vrf field is set. */ public boolean hasVrf() { return vrfBuilder_ != null || vrf_ != null; } /** + * + * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return The vrf. */ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { @@ -2508,6 +2759,8 @@ public com.google.cloud.baremetalsolution.v2.VRF getVrf() { } } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2528,14 +2781,15 @@ public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF value) { return this; } /** + * + * *
      * The vrf for the Network.
      * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ - public Builder setVrf( - com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { + public Builder setVrf(com.google.cloud.baremetalsolution.v2.VRF.Builder builderForValue) { if (vrfBuilder_ == null) { vrf_ = builderForValue.build(); onChanged(); @@ -2546,6 +2800,8 @@ public Builder setVrf( return this; } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2556,7 +2812,14 @@ public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { if (vrfBuilder_ == null) { if (vrf_ != null) { vrf_ = - com.google.cloud.baremetalsolution.v2.VRF.newBuilder(vrf_).mergeFrom(value).buildPartial(); + com.google + .cloud + .baremetalsolution + .v2 + .VRF + .newBuilder(vrf_) + .mergeFrom(value) + .buildPartial(); } else { vrf_ = value; } @@ -2568,6 +2831,8 @@ public Builder mergeVrf(com.google.cloud.baremetalsolution.v2.VRF value) { return this; } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2586,6 +2851,8 @@ public Builder clearVrf() { return this; } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2593,11 +2860,13 @@ public Builder clearVrf() { * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ public com.google.cloud.baremetalsolution.v2.VRF.Builder getVrfBuilder() { - + onChanged(); return getVrfFieldBuilder().getBuilder(); } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2608,11 +2877,12 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { if (vrfBuilder_ != null) { return vrfBuilder_.getMessageOrBuilder(); } else { - return vrf_ == null ? - com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; + return vrf_ == null ? com.google.cloud.baremetalsolution.v2.VRF.getDefaultInstance() : vrf_; } } /** + * + * *
      * The vrf for the Network.
      * 
@@ -2620,35 +2890,37 @@ public com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder() { * .google.cloud.baremetalsolution.v2.VRF vrf = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF, + com.google.cloud.baremetalsolution.v2.VRF.Builder, + com.google.cloud.baremetalsolution.v2.VRFOrBuilder> getVrfFieldBuilder() { if (vrfBuilder_ == null) { - vrfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF, com.google.cloud.baremetalsolution.v2.VRF.Builder, com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( - getVrf(), - getParentForChildren(), - isClean()); + vrfBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF, + com.google.cloud.baremetalsolution.v2.VRF.Builder, + com.google.cloud.baremetalsolution.v2.VRFOrBuilder>( + getVrf(), getParentForChildren(), isClean()); vrf_ = null; } return vrfBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2660,28 +2932,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2689,11 +2963,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 11; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2701,16 +2976,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -2718,12 +2994,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2731,81 +3006,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 11; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.lang.Object servicesCidr_ = ""; /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @return The servicesCidr. */ public java.lang.String getServicesCidr() { java.lang.Object ref = servicesCidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servicesCidr_ = s; return s; @@ -2814,20 +3088,21 @@ public java.lang.String getServicesCidr() { } } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @return The bytes for servicesCidr. */ - public com.google.protobuf.ByteString - getServicesCidrBytes() { + public com.google.protobuf.ByteString getServicesCidrBytes() { java.lang.Object ref = servicesCidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); servicesCidr_ = b; return b; } else { @@ -2835,81 +3110,99 @@ public java.lang.String getServicesCidr() { } } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @param value The servicesCidr to set. * @return This builder for chaining. */ - public Builder setServicesCidr( - java.lang.String value) { + public Builder setServicesCidr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + servicesCidr_ = value; onChanged(); return this; } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @return This builder for chaining. */ public Builder clearServicesCidr() { - + servicesCidr_ = getDefaultInstance().getServicesCidr(); onChanged(); return this; } /** + * + * *
      * IP range for reserved for services (e.g. NFS).
      * 
* * string services_cidr = 12; + * * @param value The bytes for servicesCidr to set. * @return This builder for chaining. */ - public Builder setServicesCidrBytes( - com.google.protobuf.ByteString value) { + public Builder setServicesCidrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesCidr_ = value; onChanged(); return this; } - private java.util.List reservations_ = - java.util.Collections.emptyList(); + private java.util.List + reservations_ = java.util.Collections.emptyList(); + private void ensureReservationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - reservations_ = new java.util.ArrayList(reservations_); + reservations_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation>(reservations_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> reservationsBuilder_; + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + reservationsBuilder_; /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public java.util.List getReservationsList() { + public java.util.List + getReservationsList() { if (reservationsBuilder_ == null) { return java.util.Collections.unmodifiableList(reservations_); } else { @@ -2917,13 +3210,17 @@ public java.util.List * List of IP address reservations in this network. * When updating this field, an error will be generated if a reservation * conflicts with an IP address already allocated to a physical server. *
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public int getReservationsCount() { if (reservationsBuilder_ == null) { @@ -2933,15 +3230,20 @@ public int getReservationsCount() { } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations( + int index) { if (reservationsBuilder_ == null) { return reservations_.get(index); } else { @@ -2949,13 +3251,17 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReserv } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder setReservations( int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { @@ -2972,16 +3278,21 @@ public Builder setReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder setReservations( - int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.set(index, builderForValue.build()); @@ -2992,15 +3303,20 @@ public Builder setReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public Builder addReservations(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { + public Builder addReservations( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { if (reservationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3014,13 +3330,17 @@ public Builder addReservations(com.google.cloud.baremetalsolution.v2.NetworkAddr return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addReservations( int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation value) { @@ -3037,13 +3357,17 @@ public Builder addReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addReservations( com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { @@ -3057,16 +3381,21 @@ public Builder addReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addReservations( - int index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder builderForValue) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); reservations_.add(index, builderForValue.build()); @@ -3077,20 +3406,25 @@ public Builder addReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder addAllReservations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservation> + values) { if (reservationsBuilder_ == null) { ensureReservationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reservations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservations_); onChanged(); } else { reservationsBuilder_.addAllMessages(values); @@ -3098,13 +3432,17 @@ public Builder addAllReservations( return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder clearReservations() { if (reservationsBuilder_ == null) { @@ -3117,13 +3455,17 @@ public Builder clearReservations() { return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ public Builder removeReservations(int index) { if (reservationsBuilder_ == null) { @@ -3136,45 +3478,59 @@ public Builder removeReservations(int index) { return this; } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder getReservationsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder + getReservationsBuilder(int index) { return getReservationsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder + getReservationsOrBuilder(int index) { if (reservationsBuilder_ == null) { - return reservations_.get(index); } else { + return reservations_.get(index); + } else { return reservationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public java.util.List - getReservationsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + getReservationsOrBuilderList() { if (reservationsBuilder_ != null) { return reservationsBuilder_.getMessageOrBuilderList(); } else { @@ -3182,62 +3538,81 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder } } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder() { - return getReservationsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder + addReservationsBuilder() { + return getReservationsFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder addReservationsBuilder( - int index) { - return getReservationsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder + addReservationsBuilder(int index) { + return getReservationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()); } /** + * + * *
      * List of IP address reservations in this network.
      * When updating this field, an error will be generated if a reservation
      * conflicts with an IP address already allocated to a physical server.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - public java.util.List - getReservationsBuilderList() { + public java.util.List + getReservationsBuilderList() { return getReservationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder> getReservationsFieldBuilder() { if (reservationsBuilder_ == null) { - reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( - reservations_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + reservationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder>( + reservations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); reservations_ = null; } return reservationsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3247,12 +3622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Network) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Network) private static final com.google.cloud.baremetalsolution.v2.Network DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Network(); } @@ -3261,16 +3636,16 @@ public static com.google.cloud.baremetalsolution.v2.Network getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Network parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Network(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Network parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Network(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3285,6 +3660,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Network getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java index 30e66f8..fa6c9b0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservation.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A reservation of one or more addresses in a network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} */ -public final class NetworkAddressReservation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkAddressReservation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) NetworkAddressReservationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkAddressReservation.newBuilder() to construct. private NetworkAddressReservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkAddressReservation() { startAddress_ = ""; endAddress_ = ""; @@ -27,16 +45,15 @@ private NetworkAddressReservation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkAddressReservation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NetworkAddressReservation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private NetworkAddressReservation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - startAddress_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + startAddress_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - endAddress_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + endAddress_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - note_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + note_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,35 +107,40 @@ private NetworkAddressReservation( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); } public static final int START_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object startAddress_; /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The startAddress. */ @java.lang.Override @@ -124,30 +149,30 @@ public java.lang.String getStartAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startAddress_ = s; return s; } } /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The bytes for startAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getStartAddressBytes() { + public com.google.protobuf.ByteString getStartAddressBytes() { java.lang.Object ref = startAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); startAddress_ = b; return b; } else { @@ -158,6 +183,8 @@ public java.lang.String getStartAddress() { public static final int END_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object endAddress_; /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -166,6 +193,7 @@ public java.lang.String getStartAddress() {
    * 
* * string end_address = 2; + * * @return The endAddress. */ @java.lang.Override @@ -174,14 +202,15 @@ public java.lang.String getEndAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endAddress_ = s; return s; } } /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -190,16 +219,15 @@ public java.lang.String getEndAddress() {
    * 
* * string end_address = 2; + * * @return The bytes for endAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getEndAddressBytes() { + public com.google.protobuf.ByteString getEndAddressBytes() { java.lang.Object ref = endAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endAddress_ = b; return b; } else { @@ -210,11 +238,14 @@ public java.lang.String getEndAddress() { public static final int NOTE_FIELD_NUMBER = 3; private volatile java.lang.Object note_; /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The note. */ @java.lang.Override @@ -223,29 +254,29 @@ public java.lang.String getNote() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); note_ = s; return s; } } /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The bytes for note. */ @java.lang.Override - public com.google.protobuf.ByteString - getNoteBytes() { + public com.google.protobuf.ByteString getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); note_ = b; return b; } else { @@ -254,6 +285,7 @@ public java.lang.String getNote() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startAddress_); } @@ -302,19 +333,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.baremetalsolution.v2.NetworkAddressReservation)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other = + (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) obj; - if (!getStartAddress() - .equals(other.getStartAddress())) return false; - if (!getEndAddress() - .equals(other.getEndAddress())) return false; - if (!getNote() - .equals(other.getNote())) return false; + if (!getStartAddress().equals(other.getStartAddress())) return false; + if (!getEndAddress().equals(other.getEndAddress())) return false; + if (!getNote().equals(other.getNote())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,117 +367,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 reservation of one or more addresses in a network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation) com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class, + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.newBuilder() @@ -456,16 +495,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,13 +517,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance(); } @@ -500,7 +539,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPartial() { - com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation result = + new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(this); result.startAddress_ = startAddress_; result.endAddress_ = endAddress_; result.note_ = note_; @@ -512,46 +552,50 @@ public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { - if (other == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.NetworkAddressReservation other) { + if (other + == com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.getDefaultInstance()) + return this; if (!other.getStartAddress().isEmpty()) { startAddress_ = other.startAddress_; onChanged(); @@ -583,7 +627,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.NetworkAddressReservation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,19 +641,21 @@ public Builder mergeFrom( private java.lang.Object startAddress_ = ""; /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @return The startAddress. */ public java.lang.String getStartAddress() { java.lang.Object ref = startAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startAddress_ = s; return s; @@ -616,21 +664,22 @@ public java.lang.String getStartAddress() { } } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @return The bytes for startAddress. */ - public com.google.protobuf.ByteString - getStartAddressBytes() { + public com.google.protobuf.ByteString getStartAddressBytes() { java.lang.Object ref = startAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); startAddress_ = b; return b; } else { @@ -638,57 +687,64 @@ public java.lang.String getStartAddress() { } } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @param value The startAddress to set. * @return This builder for chaining. */ - public Builder setStartAddress( - java.lang.String value) { + public Builder setStartAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + startAddress_ = value; onChanged(); return this; } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @return This builder for chaining. */ public Builder clearStartAddress() { - + startAddress_ = getDefaultInstance().getStartAddress(); onChanged(); return this; } /** + * + * *
      * The first address of this reservation block.
      * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
      * 
* * string start_address = 1; + * * @param value The bytes for startAddress to set. * @return This builder for chaining. */ - public Builder setStartAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setStartAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + startAddress_ = value; onChanged(); return this; @@ -696,6 +752,8 @@ public Builder setStartAddressBytes( private java.lang.Object endAddress_ = ""; /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -704,13 +762,13 @@ public Builder setStartAddressBytes(
      * 
* * string end_address = 2; + * * @return The endAddress. */ public java.lang.String getEndAddress() { java.lang.Object ref = endAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endAddress_ = s; return s; @@ -719,6 +777,8 @@ public java.lang.String getEndAddress() { } } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -727,15 +787,14 @@ public java.lang.String getEndAddress() {
      * 
* * string end_address = 2; + * * @return The bytes for endAddress. */ - public com.google.protobuf.ByteString - getEndAddressBytes() { + public com.google.protobuf.ByteString getEndAddressBytes() { java.lang.Object ref = endAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endAddress_ = b; return b; } else { @@ -743,6 +802,8 @@ public java.lang.String getEndAddress() { } } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -751,20 +812,22 @@ public java.lang.String getEndAddress() {
      * 
* * string end_address = 2; + * * @param value The endAddress to set. * @return This builder for chaining. */ - public Builder setEndAddress( - java.lang.String value) { + public Builder setEndAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endAddress_ = value; onChanged(); return this; } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -773,15 +836,18 @@ public Builder setEndAddress(
      * 
* * string end_address = 2; + * * @return This builder for chaining. */ public Builder clearEndAddress() { - + endAddress_ = getDefaultInstance().getEndAddress(); onChanged(); return this; } /** + * + * *
      * The last address of this reservation block, inclusive. I.e., for cases when
      * reservations are only single addresses, end_address and start_address will
@@ -790,16 +856,16 @@ public Builder clearEndAddress() {
      * 
* * string end_address = 2; + * * @param value The bytes for endAddress to set. * @return This builder for chaining. */ - public Builder setEndAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setEndAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endAddress_ = value; onChanged(); return this; @@ -807,18 +873,20 @@ public Builder setEndAddressBytes( private java.lang.Object note_ = ""; /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @return The note. */ public java.lang.String getNote() { java.lang.Object ref = note_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); note_ = s; return s; @@ -827,20 +895,21 @@ public java.lang.String getNote() { } } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @return The bytes for note. */ - public com.google.protobuf.ByteString - getNoteBytes() { + public com.google.protobuf.ByteString getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); note_ = b; return b; } else { @@ -848,61 +917,68 @@ public java.lang.String getNote() { } } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @param value The note to set. * @return This builder for chaining. */ - public Builder setNote( - java.lang.String value) { + public Builder setNote(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + note_ = value; onChanged(); return this; } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @return This builder for chaining. */ public Builder clearNote() { - + note_ = getDefaultInstance().getNote(); onChanged(); return this; } /** + * + * *
      * A note about this reservation, intended for human consumption.
      * 
* * string note = 3; + * * @param value The bytes for note to set. * @return This builder for chaining. */ - public Builder setNoteBytes( - com.google.protobuf.ByteString value) { + public Builder setNoteBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + note_ = 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,30 +988,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkAddressReservation) - private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkAddressReservation(); } - public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkAddressReservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkAddressReservation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkAddressReservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkAddressReservation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,9 +1025,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NetworkAddressReservation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java index 9f27f17..a9839c9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkAddressReservationOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkAddressReservationOrBuilder extends +public interface NetworkAddressReservationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkAddressReservation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The startAddress. */ java.lang.String getStartAddress(); /** + * + * *
    * The first address of this reservation block.
    * Must be specified as a single IPv4 address, e.g. 10.1.2.2.
    * 
* * string start_address = 1; + * * @return The bytes for startAddress. */ - com.google.protobuf.ByteString - getStartAddressBytes(); + com.google.protobuf.ByteString getStartAddressBytes(); /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -38,10 +61,13 @@ public interface NetworkAddressReservationOrBuilder extends
    * 
* * string end_address = 2; + * * @return The endAddress. */ java.lang.String getEndAddress(); /** + * + * *
    * The last address of this reservation block, inclusive. I.e., for cases when
    * reservations are only single addresses, end_address and start_address will
@@ -50,28 +76,33 @@ public interface NetworkAddressReservationOrBuilder extends
    * 
* * string end_address = 2; + * * @return The bytes for endAddress. */ - com.google.protobuf.ByteString - getEndAddressBytes(); + com.google.protobuf.ByteString getEndAddressBytes(); /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The note. */ java.lang.String getNote(); /** + * + * *
    * A note about this reservation, intended for human consumption.
    * 
* * string note = 3; + * * @return The bytes for note. */ - com.google.protobuf.ByteString - getNoteBytes(); + com.google.protobuf.ByteString getNoteBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java index a9ee27f..8f4c764 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkOrBuilder extends +public interface NetworkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Network) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -17,10 +35,13 @@ public interface NetworkOrBuilder extends
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of this `Network`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -30,189 +51,239 @@ public interface NetworkOrBuilder extends
    * 
* * string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the `Network`, generated by the backend.
    * 
* * string id = 10; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The type of this network.
    * 
* * .google.cloud.baremetalsolution.v2.Network.Type type = 2; + * * @return The type. */ com.google.cloud.baremetalsolution.v2.Network.Type getType(); /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * IP address configured.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return A list containing the macAddress. */ - java.util.List - getMacAddressList(); + java.util.List getMacAddressList(); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @return The count of macAddress. */ int getMacAddressCount(); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the element to return. * @return The macAddress at the given index. */ java.lang.String getMacAddress(int index); /** + * + * *
    * List of physical interfaces.
    * 
* * repeated string mac_address = 4; + * * @param index The index of the value to return. * @return The bytes of the macAddress at the given index. */ - com.google.protobuf.ByteString - getMacAddressBytes(int index); + com.google.protobuf.ByteString getMacAddressBytes(int index); /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The Network state.
    * 
* * .google.cloud.baremetalsolution.v2.Network.State state = 6; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Network.State getState(); /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The vlanId. */ java.lang.String getVlanId(); /** + * + * *
    * The vlan id of the Network.
    * 
* * string vlan_id = 7; + * * @return The bytes for vlanId. */ - com.google.protobuf.ByteString - getVlanIdBytes(); + com.google.protobuf.ByteString getVlanIdBytes(); /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The cidr. */ java.lang.String getCidr(); /** + * + * *
    * The cidr of the Network.
    * 
* * string cidr = 8; + * * @return The bytes for cidr. */ - com.google.protobuf.ByteString - getCidrBytes(); + com.google.protobuf.ByteString getCidrBytes(); /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return Whether the vrf field is set. */ boolean hasVrf(); /** + * + * *
    * The vrf for the Network.
    * 
* * .google.cloud.baremetalsolution.v2.VRF vrf = 9; + * * @return The vrf. */ com.google.cloud.baremetalsolution.v2.VRF getVrf(); /** + * + * *
    * The vrf for the Network.
    * 
@@ -222,6 +293,8 @@ public interface NetworkOrBuilder extends com.google.cloud.baremetalsolution.v2.VRFOrBuilder getVrfOrBuilder(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -230,30 +303,31 @@ public interface NetworkOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -262,91 +336,111 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 11; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The servicesCidr. */ java.lang.String getServicesCidr(); /** + * + * *
    * IP range for reserved for services (e.g. NFS).
    * 
* * string services_cidr = 12; + * * @return The bytes for servicesCidr. */ - com.google.protobuf.ByteString - getServicesCidrBytes(); + com.google.protobuf.ByteString getServicesCidrBytes(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - java.util.List + java.util.List getReservationsList(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ com.google.cloud.baremetalsolution.v2.NetworkAddressReservation getReservations(int index); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ int getReservationsCount(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ - java.util.List + java.util.List getReservationsOrBuilderList(); /** + * + * *
    * List of IP address reservations in this network.
    * When updating this field, an error will be generated if a reservation
    * conflicts with an IP address already allocated to a physical server.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13; + * */ com.google.cloud.baremetalsolution.v2.NetworkAddressReservationOrBuilder getReservationsOrBuilder( int index); diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java new file mode 100644 index 0000000..06274bd --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkProto.java @@ -0,0 +1,327 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/network.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NetworkProto { + private NetworkProto() {} + + 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_baremetalsolution_v2_Network_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_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/baremetalsolution/v2/netw" + + "ork.proto\022!google.cloud.baremetalsolutio" + + "n.v2\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032 google/protobu" + + "f/field_mask.proto\"\354\005\n\007Network\022\021\n\004name\030\005" + + " \001(\tB\003\340A\003\022\n\n\002id\030\n \001(\t\022=\n\004type\030\002 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\022\n\nip_address\030\003 \001(\t\022\023\n\013mac_address\030" + + "\004 \003(\t\022?\n\005state\030\006 \001(\01620.google.cloud.bare" + + "metalsolution.v2.Network.State\022\017\n\007vlan_i" + + "d\030\007 \001(\t\022\014\n\004cidr\030\010 \001(\t\0223\n\003vrf\030\t \001(\0132&.goo" + + "gle.cloud.baremetalsolution.v2.VRF\022F\n\006la" + + "bels\030\013 \003(\01326.google.cloud.baremetalsolut" + + "ion.v2.Network.LabelsEntry\022\025\n\rservices_c" + + "idr\030\014 \001(\t\022R\n\014reservations\030\r \003(\0132<.google" + + ".cloud.baremetalsolution.v2.NetworkAddre" + + "ssReservation\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\004Type\022\024\n\020TYPE_UNS" + + "PECIFIED\020\000\022\n\n\006CLIENT\020\001\022\013\n\007PRIVATE\020\002\"A\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISION" + + "ING\020\001\022\017\n\013PROVISIONED\020\002:i\352Af\n(baremetalso" + + "lution.googleapis.com/Network\022:projects/" + + "{project}/locations/{location}/networks/" + + "{network}\"U\n\031NetworkAddressReservation\022\025" + + "\n\rstart_address\030\001 \001(\t\022\023\n\013end_address\030\002 \001" + + "(\t\022\014\n\004note\030\003 \001(\t\"\233\003\n\003VRF\022\014\n\004name\030\001 \001(\t\022;" + + "\n\005state\030\005 \001(\0162,.google.cloud.baremetalso" + + "lution.v2.VRF.State\022D\n\nqos_policy\030\006 \001(\0132" + + "0.google.cloud.baremetalsolution.v2.VRF." + + "QosPolicy\022O\n\020vlan_attachments\030\007 \003(\01325.go" + + "ogle.cloud.baremetalsolution.v2.VRF.Vlan" + + "Attachment\032#\n\tQosPolicy\022\026\n\016bandwidth_gbp" + + "s\030\001 \001(\001\032J\n\016VlanAttachment\022\024\n\014peer_vlan_i" + + "d\030\001 \001(\003\022\017\n\007peer_ip\030\002 \001(\t\022\021\n\trouter_ip\030\003 " + + "\001(\t\"A\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014P" + + "ROVISIONING\020\001\022\017\n\013PROVISIONED\020\002\"\327\002\n\020Logic" + + "alInterface\022o\n\032logical_network_interface" + + "s\030\001 \003(\0132K.google.cloud.baremetalsolution" + + ".v2.LogicalInterface.LogicalNetworkInter" + + "face\022\014\n\004name\030\002 \001(\t\022\027\n\017interface_index\030\003 " + + "\001(\005\032\252\001\n\027LogicalNetworkInterface\022\017\n\007netwo" + + "rk\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\027\n\017default_" + + "gateway\030\003 \001(\010\022E\n\014network_type\030\004 \001(\0162/.go" + + "ogle.cloud.baremetalsolution.v2.Network." + + "Type\022\n\n\002id\030\005 \001(\t\"S\n\021GetNetworkRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n(baremetalsolution.g" + + "oogleapis.com/Network\"\207\001\n\023ListNetworksRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"" + + "\202\001\n\024ListNetworksResponse\022<\n\010networks\030\001 \003" + + "(\0132*.google.cloud.baremetalsolution.v2.N" + + "etwork\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\211\001\n\024UpdateNetworkRequest\022@\n" + + "\007network\030\001 \001(\0132*.google.cloud.baremetals" + + "olution.v2.NetworkB\003\340A\002\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"]\n\014Netw" + + "orkUsage\022;\n\007network\030\001 \001(\0132*.google.cloud" + + ".baremetalsolution.v2.Network\022\020\n\010used_ip" + + "s\030\002 \003(\t\"V\n\027ListNetworkUsageRequest\022;\n\010lo" + + "cation\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\"]\n\030ListNetworkUsageRespo" + + "nse\022A\n\010networks\030\001 \003(\0132/.google.cloud.bar" + + "emetalsolution.v2.NetworkUsageB\372\001\n%com.g" + + "oogle.cloud.baremetalsolution.v2B\014Networ" + + "kProtoP\001ZRgoogle.golang.org/genproto/goo" + + "gleapis/cloud/baremetalsolution/v2;barem" + + "etalsolution\252\002!Google.Cloud.BareMetalSol" + + "ution.V2\312\002!Google\\Cloud\\BareMetalSolutio" + + "n\\V2\352\002$Google::Cloud::BareMetalSolution:" + + ":V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor, + new java.lang.String[] { + "Name", + "Id", + "Type", + "IpAddress", + "MacAddress", + "State", + "VlanId", + "Cidr", + "Vrf", + "Labels", + "ServicesCidr", + "Reservations", + }); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Network_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Network_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor, + new java.lang.String[] { + "StartAddress", "EndAddress", "Note", + }); + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor, + new java.lang.String[] { + "Name", "State", "QosPolicy", "VlanAttachments", + }); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor, + new java.lang.String[] { + "BandwidthGbps", + }); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor = + internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor, + new java.lang.String[] { + "PeerVlanId", "PeerIp", "RouterIp", + }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor, + new java.lang.String[] { + "LogicalNetworkInterfaces", "Name", "InterfaceIndex", + }); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor = + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_LogicalInterface_LogicalNetworkInterface_descriptor, + new java.lang.String[] { + "Network", "IpAddress", "DefaultGateway", "NetworkType", "Id", + }); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNetworkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworksResponse_descriptor, + new java.lang.String[] { + "Networks", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor, + new java.lang.String[] { + "Network", "UpdateMask", + }); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor, + new java.lang.String[] { + "Network", "UsedIps", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageRequest_descriptor, + new java.lang.String[] { + "Location", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNetworkUsageResponse_descriptor, + new java.lang.String[] { + "Networks", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java index 3ffd7b9..19550dd 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsage.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Network with all used IP addresses.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} */ -public final class NetworkUsage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NetworkUsage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkUsage) NetworkUsageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkUsage.newBuilder() to construct. private NetworkUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NetworkUsage() { usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NetworkUsage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NetworkUsage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,35 +71,39 @@ private NetworkUsage( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; - if (network_ != null) { - subBuilder = network_.toBuilder(); - } - network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(network_); - network_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - usedIps_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + usedIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + usedIps_.add(s); + break; } - usedIps_.add(s); - 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) { @@ -90,8 +111,7 @@ private NetworkUsage( } 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)) { usedIps_ = usedIps_.getUnmodifiableView(); @@ -100,27 +120,33 @@ private NetworkUsage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Network network_; /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return Whether the network field is set. */ @java.lang.Override @@ -128,18 +154,25 @@ public boolean hasNetwork() { return network_ != null; } /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return The network. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network getNetwork() { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } /** + * + * *
    * Network.
    * 
@@ -154,34 +187,42 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde public static final int USED_IPS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList usedIps_; /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return A list containing the usedIps. */ - public com.google.protobuf.ProtocolStringList - getUsedIpsList() { + public com.google.protobuf.ProtocolStringList getUsedIpsList() { return usedIps_; } /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return The count of usedIps. */ public int getUsedIpsCount() { return usedIps_.size(); } /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the element to return. * @return The usedIps at the given index. */ @@ -189,20 +230,23 @@ public java.lang.String getUsedIps(int index) { return usedIps_.get(index); } /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - public com.google.protobuf.ByteString - getUsedIpsBytes(int index) { + public com.google.protobuf.ByteString getUsedIpsBytes(int index) { return usedIps_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,8 +258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (network_ != null) { output.writeMessage(1, getNetwork()); } @@ -232,8 +275,7 @@ public int getSerializedSize() { size = 0; if (network_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNetwork()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetwork()); } { int dataSize = 0; @@ -251,20 +293,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.baremetalsolution.v2.NetworkUsage)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NetworkUsage other = (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; + com.google.cloud.baremetalsolution.v2.NetworkUsage other = + (com.google.cloud.baremetalsolution.v2.NetworkUsage) obj; if (hasNetwork() != other.hasNetwork()) return false; if (hasNetwork()) { - if (!getNetwork() - .equals(other.getNetwork())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; } - if (!getUsedIpsList() - .equals(other.getUsedIpsList())) return false; + if (!getUsedIpsList().equals(other.getUsedIpsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,117 +331,126 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NetworkUsage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NetworkUsage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Network with all used IP addresses.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkUsage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NetworkUsage) com.google.cloud.baremetalsolution.v2.NetworkUsageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NetworkUsage.class, com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); + com.google.cloud.baremetalsolution.v2.NetworkUsage.class, + com.google.cloud.baremetalsolution.v2.NetworkUsage.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NetworkUsage.newBuilder() @@ -408,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(); @@ -433,9 +482,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_NetworkUsage_descriptor; } @java.lang.Override @@ -454,7 +503,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { - com.google.cloud.baremetalsolution.v2.NetworkUsage result = new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); + com.google.cloud.baremetalsolution.v2.NetworkUsage result = + new com.google.cloud.baremetalsolution.v2.NetworkUsage(this); int from_bitField0_ = bitField0_; if (networkBuilder_ == null) { result.network_ = network_; @@ -474,38 +524,39 @@ public com.google.cloud.baremetalsolution.v2.NetworkUsage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NetworkUsage) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NetworkUsage) other); } else { super.mergeFrom(other); return this; @@ -513,7 +564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NetworkUsage other) { - if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.NetworkUsage.getDefaultInstance()) + return this; if (other.hasNetwork()) { mergeNetwork(other.getNetwork()); } @@ -546,7 +598,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.NetworkUsage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -555,38 +608,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.baremetalsolution.v2.Network network_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networkBuilder_; /** + * + * *
      * Network.
      * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** + * + * *
      * Network.
      * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return The network. */ public com.google.cloud.baremetalsolution.v2.Network getNetwork() { if (networkBuilder_ == null) { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } else { return networkBuilder_.getMessage(); } } /** + * + * *
      * Network.
      * 
@@ -607,6 +674,8 @@ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { return this; } /** + * + * *
      * Network.
      * 
@@ -625,6 +694,8 @@ public Builder setNetwork( return this; } /** + * + * *
      * Network.
      * 
@@ -635,7 +706,9 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_) + .mergeFrom(value) + .buildPartial(); } else { network_ = value; } @@ -647,6 +720,8 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * Network.
      * 
@@ -665,6 +740,8 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Network.
      * 
@@ -672,11 +749,13 @@ public Builder clearNetwork() { * .google.cloud.baremetalsolution.v2.Network network = 1; */ public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** + * + * *
      * Network.
      * 
@@ -687,11 +766,14 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilder(); } else { - return network_ == null ? - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } } /** + * + * *
      * Network.
      * 
@@ -699,55 +781,68 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde * .google.cloud.baremetalsolution.v2.Network network = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { - networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - getNetwork(), - getParentForChildren(), - isClean()); + networkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), getParentForChildren(), isClean()); network_ = null; } return networkBuilder_; } - private com.google.protobuf.LazyStringList usedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList usedIps_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUsedIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { usedIps_ = new com.google.protobuf.LazyStringArrayList(usedIps_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @return A list containing the usedIps. */ - public com.google.protobuf.ProtocolStringList - getUsedIpsList() { + public com.google.protobuf.ProtocolStringList getUsedIpsList() { return usedIps_.getUnmodifiableView(); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @return The count of usedIps. */ public int getUsedIpsCount() { return usedIps_.size(); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param index The index of the element to return. * @return The usedIps at the given index. */ @@ -755,80 +850,90 @@ public java.lang.String getUsedIps(int index) { return usedIps_.get(index); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - public com.google.protobuf.ByteString - getUsedIpsBytes(int index) { + public com.google.protobuf.ByteString getUsedIpsBytes(int index) { return usedIps_.getByteString(index); } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param index The index to set the value at. * @param value The usedIps to set. * @return This builder for chaining. */ - public Builder setUsedIps( - int index, java.lang.String value) { + public Builder setUsedIps(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUsedIpsIsMutable(); + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); usedIps_.set(index, value); onChanged(); return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param value The usedIps to add. * @return This builder for chaining. */ - public Builder addUsedIps( - java.lang.String value) { + public Builder addUsedIps(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUsedIpsIsMutable(); + throw new NullPointerException(); + } + ensureUsedIpsIsMutable(); usedIps_.add(value); onChanged(); return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param values The usedIps to add. * @return This builder for chaining. */ - public Builder addAllUsedIps( - java.lang.Iterable values) { + public Builder addAllUsedIps(java.lang.Iterable values) { ensureUsedIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, usedIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, usedIps_); onChanged(); return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @return This builder for chaining. */ public Builder clearUsedIps() { @@ -838,28 +943,30 @@ public Builder clearUsedIps() { return this; } /** + * + * *
      * All used IP addresses in this network.
      * 
* * repeated string used_ips = 2; + * * @param value The bytes of the usedIps to add. * @return This builder for chaining. */ - public Builder addUsedIpsBytes( - com.google.protobuf.ByteString value) { + public Builder addUsedIpsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUsedIpsIsMutable(); usedIps_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -869,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NetworkUsage) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NetworkUsage) private static final com.google.cloud.baremetalsolution.v2.NetworkUsage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NetworkUsage(); } @@ -883,16 +990,16 @@ public static com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkUsage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkUsage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkUsage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -907,6 +1014,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.NetworkUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java index ea45772..60acf99 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkUsageOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface NetworkUsageOrBuilder extends +public interface NetworkUsageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NetworkUsage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return Whether the network field is set. */ boolean hasNetwork(); /** + * + * *
    * Network.
    * 
* * .google.cloud.baremetalsolution.v2.Network network = 1; + * * @return The network. */ com.google.cloud.baremetalsolution.v2.Network getNetwork(); /** + * + * *
    * Network.
    * 
@@ -35,43 +59,53 @@ public interface NetworkUsageOrBuilder extends com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return A list containing the usedIps. */ - java.util.List - getUsedIpsList(); + java.util.List getUsedIpsList(); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @return The count of usedIps. */ int getUsedIpsCount(); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the element to return. * @return The usedIps at the given index. */ java.lang.String getUsedIps(int index); /** + * + * *
    * All used IP addresses in this network.
    * 
* * repeated string used_ips = 2; + * * @param index The index of the value to return. * @return The bytes of the usedIps at the given index. */ - com.google.protobuf.ByteString - getUsedIpsBytes(int index); + com.google.protobuf.ByteString getUsedIpsBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java index 7be4d09..b8bb184 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShare.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/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * An NFS share.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} */ -public final class NfsShare extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NfsShare extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare) NfsShareOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NfsShare.newBuilder() to construct. private NfsShare(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NfsShare() { name_ = ""; nfsShareId_ = ""; @@ -29,16 +47,15 @@ private NfsShare() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NfsShare(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NfsShare( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,59 +75,68 @@ private NfsShare( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nfsShareId_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + nfsShareId_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - volume_ = s; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedClients_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + volume_ = s; + break; } - allowedClients_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedClients_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient>(); + mutable_bitField0_ |= 0x00000001; + } + allowedClients_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.parser(), + extensionRegistry)); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,8 +144,7 @@ private NfsShare( } 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)) { allowedClients_ = java.util.Collections.unmodifiableList(allowedClients_); @@ -128,41 +153,46 @@ private NfsShare( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.class, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); } /** + * + * *
    * The possible states for this NFS share.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The share is in an unknown state.
      * 
@@ -171,6 +201,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The share has been provisioned.
      * 
@@ -182,6 +214,8 @@ public enum State ; /** + * + * *
      * The share is in an unknown state.
      * 
@@ -190,6 +224,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The share has been provisioned.
      * 
@@ -198,7 +234,6 @@ public enum State */ public static final int PROVISIONED_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -223,48 +258,47 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -282,15 +316,18 @@ private State(int value) { } /** + * + * *
    * The possible mount permissions.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.NfsShare.MountPermissions} */ - public enum MountPermissions - implements com.google.protobuf.ProtocolMessageEnum { + public enum MountPermissions implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Permissions were not specified.
      * 
@@ -299,6 +336,8 @@ public enum MountPermissions */ MOUNT_PERMISSIONS_UNSPECIFIED(0), /** + * + * *
      * NFS share can be mount with read-only permissions.
      * 
@@ -307,6 +346,8 @@ public enum MountPermissions */ READ(1), /** + * + * *
      * NFS share can be mount with read-write permissions.
      * 
@@ -318,6 +359,8 @@ public enum MountPermissions ; /** + * + * *
      * Permissions were not specified.
      * 
@@ -326,6 +369,8 @@ public enum MountPermissions */ public static final int MOUNT_PERMISSIONS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * NFS share can be mount with read-only permissions.
      * 
@@ -334,6 +379,8 @@ public enum MountPermissions */ public static final int READ_VALUE = 1; /** + * + * *
      * NFS share can be mount with read-write permissions.
      * 
@@ -342,7 +389,6 @@ public enum MountPermissions */ public static final int READ_WRITE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -367,39 +413,42 @@ public static MountPermissions valueOf(int value) { */ public static MountPermissions forNumber(int value) { switch (value) { - case 0: return MOUNT_PERMISSIONS_UNSPECIFIED; - case 1: return READ; - case 2: return READ_WRITE; - default: return null; + case 0: + return MOUNT_PERMISSIONS_UNSPECIFIED; + case 1: + return READ; + case 2: + return READ_WRITE; + 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< - MountPermissions> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MountPermissions findValueByNumber(int number) { - return MountPermissions.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 MountPermissions findValueByNumber(int number) { + return MountPermissions.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.baremetalsolution.v2.NfsShare.getDescriptor().getEnumTypes().get(1); } @@ -408,8 +457,7 @@ public MountPermissions findValueByNumber(int number) { public static MountPermissions 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; @@ -426,110 +474,142 @@ private MountPermissions(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.NfsShare.MountPermissions) } - public interface AllowedClientOrBuilder extends + public interface AllowedClientOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The shareIp. */ java.lang.String getShareIp(); /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The bytes for shareIp. */ - com.google.protobuf.ByteString - getShareIpBytes(); + com.google.protobuf.ByteString getShareIpBytes(); /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The allowedClientsCidr. */ java.lang.String getAllowedClientsCidr(); /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The bytes for allowedClientsCidr. */ - com.google.protobuf.ByteString - getAllowedClientsCidrBytes(); + com.google.protobuf.ByteString getAllowedClientsCidrBytes(); /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The enum numeric value on the wire for mountPermissions. */ int getMountPermissionsValue(); /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The mountPermissions. */ com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions(); /** + * + * *
      * Allow dev flag.  Which controls whether to allow creation of devices.
      * 
* * bool allow_dev = 5; + * * @return The allowDev. */ boolean getAllowDev(); /** + * + * *
      * Allow the setuid flag.
      * 
* * bool allow_suid = 6; + * * @return The allowSuid. */ boolean getAllowSuid(); /** + * + * *
      * Disable root squashing, which is a feature of NFS.
      * Root squash is a special mapping of the remote superuser (root) identity
@@ -537,26 +617,30 @@ public interface AllowedClientOrBuilder extends
      * 
* * bool no_root_squash = 7; + * * @return The noRootSquash. */ boolean getNoRootSquash(); } /** + * + * *
    * Represents an 'access point' for the share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} */ - public static final class AllowedClient extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AllowedClient extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) AllowedClientOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowedClient.newBuilder() to construct. private AllowedClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AllowedClient() { network_ = ""; shareIp_ = ""; @@ -566,16 +650,15 @@ private AllowedClient() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AllowedClient(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AllowedClient( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -594,52 +677,56 @@ private AllowedClient( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - shareIp_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - allowedClientsCidr_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - mountPermissions_ = rawValue; - break; - } - case 40: { + network_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - allowDev_ = input.readBool(); - break; - } - case 48: { + shareIp_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - allowSuid_ = input.readBool(); - break; - } - case 56: { + allowedClientsCidr_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); - noRootSquash_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mountPermissions_ = rawValue; + break; + } + case 40: + { + allowDev_ = input.readBool(); + break; + } + case 48: + { + allowSuid_ = input.readBool(); + break; + } + case 56: + { + noRootSquash_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -647,34 +734,39 @@ private AllowedClient( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The network. */ @java.lang.Override @@ -683,29 +775,29 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
      * The network the access point sits on.
      * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -716,11 +808,14 @@ public java.lang.String getNetwork() { public static final int SHARE_IP_FIELD_NUMBER = 2; private volatile java.lang.Object shareIp_; /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The shareIp. */ @java.lang.Override @@ -729,29 +824,29 @@ public java.lang.String getShareIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareIp_ = s; return s; } } /** + * + * *
      * The IP address of the share on this network.
      * 
* * string share_ip = 2; + * * @return The bytes for shareIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getShareIpBytes() { + public com.google.protobuf.ByteString getShareIpBytes() { java.lang.Object ref = shareIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareIp_ = b; return b; } else { @@ -762,11 +857,14 @@ public java.lang.String getShareIp() { public static final int ALLOWED_CLIENTS_CIDR_FIELD_NUMBER = 3; private volatile java.lang.Object allowedClientsCidr_; /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The allowedClientsCidr. */ @java.lang.Override @@ -775,29 +873,29 @@ public java.lang.String getAllowedClientsCidr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClientsCidr_ = s; return s; } } /** + * + * *
      * The subnet of IP addresses permitted to access the share.
      * 
* * string allowed_clients_cidr = 3; + * * @return The bytes for allowedClientsCidr. */ @java.lang.Override - public com.google.protobuf.ByteString - getAllowedClientsCidrBytes() { + public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { java.lang.Object ref = allowedClientsCidr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); allowedClientsCidr_ = b; return b; } else { @@ -808,38 +906,55 @@ public java.lang.String getAllowedClientsCidr() { public static final int MOUNT_PERMISSIONS_FIELD_NUMBER = 4; private int mountPermissions_; /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The enum numeric value on the wire for mountPermissions. */ - @java.lang.Override public int getMountPermissionsValue() { + @java.lang.Override + public int getMountPermissionsValue() { return mountPermissions_; } /** + * + * *
      * Mount permissions.
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The mountPermissions. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf( + mountPermissions_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED + : result; } public static final int ALLOW_DEV_FIELD_NUMBER = 5; private boolean allowDev_; /** + * + * *
      * Allow dev flag.  Which controls whether to allow creation of devices.
      * 
* * bool allow_dev = 5; + * * @return The allowDev. */ @java.lang.Override @@ -850,11 +965,14 @@ public boolean getAllowDev() { public static final int ALLOW_SUID_FIELD_NUMBER = 6; private boolean allowSuid_; /** + * + * *
      * Allow the setuid flag.
      * 
* * bool allow_suid = 6; + * * @return The allowSuid. */ @java.lang.Override @@ -865,6 +983,8 @@ public boolean getAllowSuid() { public static final int NO_ROOT_SQUASH_FIELD_NUMBER = 7; private boolean noRootSquash_; /** + * + * *
      * Disable root squashing, which is a feature of NFS.
      * Root squash is a special mapping of the remote superuser (root) identity
@@ -872,6 +992,7 @@ public boolean getAllowSuid() {
      * 
* * bool no_root_squash = 7; + * * @return The noRootSquash. */ @java.lang.Override @@ -880,6 +1001,7 @@ public boolean getNoRootSquash() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -891,8 +1013,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -902,7 +1023,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allowedClientsCidr_); } - if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { + if (mountPermissions_ + != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions + .MOUNT_PERMISSIONS_UNSPECIFIED + .getNumber()) { output.writeEnum(4, mountPermissions_); } if (allowDev_ != false) { @@ -932,21 +1056,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allowedClientsCidr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, allowedClientsCidr_); } - if (mountPermissions_ != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.MOUNT_PERMISSIONS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, mountPermissions_); + if (mountPermissions_ + != com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions + .MOUNT_PERMISSIONS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, mountPermissions_); } if (allowDev_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, allowDev_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowDev_); } if (allowSuid_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, allowSuid_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowSuid_); } if (noRootSquash_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, noRootSquash_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, noRootSquash_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -956,26 +1079,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.baremetalsolution.v2.NfsShare.AllowedClient)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other = + (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) obj; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getShareIp() - .equals(other.getShareIp())) return false; - if (!getAllowedClientsCidr() - .equals(other.getAllowedClientsCidr())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getShareIp().equals(other.getShareIp())) return false; + if (!getAllowedClientsCidr().equals(other.getAllowedClientsCidr())) return false; if (mountPermissions_ != other.mountPermissions_) return false; - if (getAllowDev() - != other.getAllowDev()) return false; - if (getAllowSuid() - != other.getAllowSuid()) return false; - if (getNoRootSquash() - != other.getNoRootSquash()) return false; + if (getAllowDev() != other.getAllowDev()) return false; + if (getAllowSuid() != other.getAllowSuid()) return false; + if (getNoRootSquash() != other.getNoRootSquash()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -996,101 +1114,105 @@ public int hashCode() { hash = (37 * hash) + MOUNT_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + mountPermissions_; hash = (37 * hash) + ALLOW_DEV_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowDev()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowDev()); hash = (37 * hash) + ALLOW_SUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowSuid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowSuid()); hash = (37 * hash) + NO_ROOT_SQUASH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNoRootSquash()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoRootSquash()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1100,27 +1222,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Represents an 'access point' for the share.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare.AllowedClient} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.class, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.newBuilder() @@ -1128,16 +1255,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(); @@ -1159,13 +1285,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance(); } @@ -1180,7 +1307,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial() { - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient result = + new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(this); result.network_ = network_; result.shareIp_ = shareIp_; result.allowedClientsCidr_ = allowedClientsCidr_; @@ -1196,38 +1324,41 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) other); } else { super.mergeFrom(other); return this; @@ -1235,7 +1366,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient other) { - if (other == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) return this; + if (other + == com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()) + return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); @@ -1279,7 +1412,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1291,18 +1426,20 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -1311,20 +1448,21 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1332,54 +1470,61 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
        * The network the access point sits on.
        * 
* * string network = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -1387,18 +1532,20 @@ public Builder setNetworkBytes( private java.lang.Object shareIp_ = ""; /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @return The shareIp. */ public java.lang.String getShareIp() { java.lang.Object ref = shareIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shareIp_ = s; return s; @@ -1407,20 +1554,21 @@ public java.lang.String getShareIp() { } } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @return The bytes for shareIp. */ - public com.google.protobuf.ByteString - getShareIpBytes() { + public com.google.protobuf.ByteString getShareIpBytes() { java.lang.Object ref = shareIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareIp_ = b; return b; } else { @@ -1428,54 +1576,61 @@ public java.lang.String getShareIp() { } } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @param value The shareIp to set. * @return This builder for chaining. */ - public Builder setShareIp( - java.lang.String value) { + public Builder setShareIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + shareIp_ = value; onChanged(); return this; } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @return This builder for chaining. */ public Builder clearShareIp() { - + shareIp_ = getDefaultInstance().getShareIp(); onChanged(); return this; } /** + * + * *
        * The IP address of the share on this network.
        * 
* * string share_ip = 2; + * * @param value The bytes for shareIp to set. * @return This builder for chaining. */ - public Builder setShareIpBytes( - com.google.protobuf.ByteString value) { + public Builder setShareIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shareIp_ = value; onChanged(); return this; @@ -1483,18 +1638,20 @@ public Builder setShareIpBytes( private java.lang.Object allowedClientsCidr_ = ""; /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @return The allowedClientsCidr. */ public java.lang.String getAllowedClientsCidr() { java.lang.Object ref = allowedClientsCidr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); allowedClientsCidr_ = s; return s; @@ -1503,20 +1660,21 @@ public java.lang.String getAllowedClientsCidr() { } } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @return The bytes for allowedClientsCidr. */ - public com.google.protobuf.ByteString - getAllowedClientsCidrBytes() { + public com.google.protobuf.ByteString getAllowedClientsCidrBytes() { java.lang.Object ref = allowedClientsCidr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); allowedClientsCidr_ = b; return b; } else { @@ -1524,54 +1682,61 @@ public java.lang.String getAllowedClientsCidr() { } } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @param value The allowedClientsCidr to set. * @return This builder for chaining. */ - public Builder setAllowedClientsCidr( - java.lang.String value) { + public Builder setAllowedClientsCidr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + allowedClientsCidr_ = value; onChanged(); return this; } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @return This builder for chaining. */ public Builder clearAllowedClientsCidr() { - + allowedClientsCidr_ = getDefaultInstance().getAllowedClientsCidr(); onChanged(); return this; } /** + * + * *
        * The subnet of IP addresses permitted to access the share.
        * 
* * string allowed_clients_cidr = 3; + * * @param value The bytes for allowedClientsCidr to set. * @return This builder for chaining. */ - public Builder setAllowedClientsCidrBytes( - com.google.protobuf.ByteString value) { + public Builder setAllowedClientsCidrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allowedClientsCidr_ = value; onChanged(); return this; @@ -1579,85 +1744,114 @@ public Builder setAllowedClientsCidrBytes( private int mountPermissions_ = 0; /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The enum numeric value on the wire for mountPermissions. */ - @java.lang.Override public int getMountPermissionsValue() { + @java.lang.Override + public int getMountPermissionsValue() { return mountPermissions_; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @param value The enum numeric value on the wire for mountPermissions to set. * @return This builder for chaining. */ public Builder setMountPermissionsValue(int value) { - + mountPermissions_ = value; onChanged(); return this; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return The mountPermissions. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions getMountPermissions() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf(mountPermissions_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions result = + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.valueOf( + mountPermissions_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions.UNRECOGNIZED + : result; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @param value The mountPermissions to set. * @return This builder for chaining. */ - public Builder setMountPermissions(com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { + public Builder setMountPermissions( + com.google.cloud.baremetalsolution.v2.NfsShare.MountPermissions value) { if (value == null) { throw new NullPointerException(); } - + mountPermissions_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Mount permissions.
        * 
* - * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4; + * + * * @return This builder for chaining. */ public Builder clearMountPermissions() { - + mountPermissions_ = 0; onChanged(); return this; } - private boolean allowDev_ ; + private boolean allowDev_; /** + * + * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; + * * @return The allowDev. */ @java.lang.Override @@ -1665,42 +1859,51 @@ public boolean getAllowDev() { return allowDev_; } /** + * + * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; + * * @param value The allowDev to set. * @return This builder for chaining. */ public Builder setAllowDev(boolean value) { - + allowDev_ = value; onChanged(); return this; } /** + * + * *
        * Allow dev flag.  Which controls whether to allow creation of devices.
        * 
* * bool allow_dev = 5; + * * @return This builder for chaining. */ public Builder clearAllowDev() { - + allowDev_ = false; onChanged(); return this; } - private boolean allowSuid_ ; + private boolean allowSuid_; /** + * + * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; + * * @return The allowSuid. */ @java.lang.Override @@ -1708,37 +1911,45 @@ public boolean getAllowSuid() { return allowSuid_; } /** + * + * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; + * * @param value The allowSuid to set. * @return This builder for chaining. */ public Builder setAllowSuid(boolean value) { - + allowSuid_ = value; onChanged(); return this; } /** + * + * *
        * Allow the setuid flag.
        * 
* * bool allow_suid = 6; + * * @return This builder for chaining. */ public Builder clearAllowSuid() { - + allowSuid_ = false; onChanged(); return this; } - private boolean noRootSquash_ ; + private boolean noRootSquash_; /** + * + * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1746,6 +1957,7 @@ public Builder clearAllowSuid() {
        * 
* * bool no_root_squash = 7; + * * @return The noRootSquash. */ @java.lang.Override @@ -1753,6 +1965,8 @@ public boolean getNoRootSquash() { return noRootSquash_; } /** + * + * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1760,16 +1974,19 @@ public boolean getNoRootSquash() {
        * 
* * bool no_root_squash = 7; + * * @param value The noRootSquash to set. * @return This builder for chaining. */ public Builder setNoRootSquash(boolean value) { - + noRootSquash_ = value; onChanged(); return this; } /** + * + * *
        * Disable root squashing, which is a feature of NFS.
        * Root squash is a special mapping of the remote superuser (root) identity
@@ -1777,14 +1994,16 @@ public Builder setNoRootSquash(boolean value) {
        * 
* * bool no_root_squash = 7; + * * @return This builder for chaining. */ public Builder clearNoRootSquash() { - + noRootSquash_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1797,30 +2016,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare.AllowedClient) - private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient(); } - public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedClient parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedClient(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedClient parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedClient(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1832,20 +2053,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1854,29 +2078,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1887,11 +2111,14 @@ public java.lang.String getName() { public static final int NFS_SHARE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nfsShareId_; /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nfsShareId. */ @java.lang.Override @@ -1900,29 +2127,29 @@ public java.lang.String getNfsShareId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nfsShareId_ = s; return s; } } /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nfsShareId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNfsShareIdBytes() { + public com.google.protobuf.ByteString getNfsShareIdBytes() { java.lang.Object ref = nfsShareId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nfsShareId_ = b; return b; } else { @@ -1933,38 +2160,52 @@ public java.lang.String getNfsShareId() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.State result = + com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED + : result; } public static final int VOLUME_FIELD_NUMBER = 4; private volatile java.lang.Object volume_; /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The volume. */ @java.lang.Override @@ -1973,29 +2214,29 @@ public java.lang.String getVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; } } /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for volume. */ @java.lang.Override - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -2004,84 +2245,101 @@ public java.lang.String getVolume() { } public static final int ALLOWED_CLIENTS_FIELD_NUMBER = 5; - private java.util.List allowedClients_; + private java.util.List + allowedClients_; /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override - public java.util.List getAllowedClientsList() { + public java.util.List + getAllowedClientsList() { return allowedClients_; } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> getAllowedClientsOrBuilderList() { return allowedClients_; } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override public int getAllowedClientsCount() { return allowedClients_.size(); } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { return allowedClients_.get(index); } /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder + getAllowedClientsOrBuilder(int index) { return allowedClients_.get(index); } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -2090,28 +2348,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -2119,11 +2379,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -2131,16 +2392,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -2148,12 +2409,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2161,6 +2421,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2172,15 +2433,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nfsShareId_); } - if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { @@ -2189,12 +2450,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < allowedClients_.size(); i++) { output.writeMessage(5, allowedClients_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); unknownFields.writeTo(output); } @@ -2210,26 +2467,25 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfsShareId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nfsShareId_); } - if (state_ != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.NfsShare.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, volume_); } for (int i = 0; i < allowedClients_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, allowedClients_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, allowedClients_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2239,24 +2495,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.baremetalsolution.v2.NfsShare)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.NfsShare other = (com.google.cloud.baremetalsolution.v2.NfsShare) obj; + com.google.cloud.baremetalsolution.v2.NfsShare other = + (com.google.cloud.baremetalsolution.v2.NfsShare) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getNfsShareId() - .equals(other.getNfsShareId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getNfsShareId().equals(other.getNfsShareId())) return false; if (state_ != other.state_) return false; - if (!getVolume() - .equals(other.getVolume())) return false; - if (!getAllowedClientsList() - .equals(other.getAllowedClientsList())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getVolume().equals(other.getVolume())) return false; + if (!getAllowedClientsList().equals(other.getAllowedClientsList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2289,140 +2541,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare 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.baremetalsolution.v2.NfsShare parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.NfsShare parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.NfsShare prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An NFS share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.NfsShare} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.NfsShare) com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.NfsShare.class, com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); + com.google.cloud.baremetalsolution.v2.NfsShare.class, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder() @@ -2430,17 +2689,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) { getAllowedClientsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2463,9 +2722,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor; } @java.lang.Override @@ -2484,7 +2743,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShare build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { - com.google.cloud.baremetalsolution.v2.NfsShare result = new com.google.cloud.baremetalsolution.v2.NfsShare(this); + com.google.cloud.baremetalsolution.v2.NfsShare result = + new com.google.cloud.baremetalsolution.v2.NfsShare(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.nfsShareId_ = nfsShareId_; @@ -2509,38 +2769,39 @@ public com.google.cloud.baremetalsolution.v2.NfsShare buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.NfsShare) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.NfsShare) other); } else { super.mergeFrom(other); return this; @@ -2582,16 +2843,16 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.NfsShare other) { allowedClientsBuilder_ = null; allowedClients_ = other.allowedClients_; bitField0_ = (bitField0_ & ~0x00000001); - allowedClientsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAllowedClientsFieldBuilder() : null; + allowedClientsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAllowedClientsFieldBuilder() + : null; } else { allowedClientsBuilder_.addAllMessages(other.allowedClients_); } } } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2620,22 +2881,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2644,20 +2908,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2665,54 +2930,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the NFS share.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2720,18 +2992,20 @@ public Builder setNameBytes( private java.lang.Object nfsShareId_ = ""; /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nfsShareId. */ public java.lang.String getNfsShareId() { java.lang.Object ref = nfsShareId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nfsShareId_ = s; return s; @@ -2740,20 +3014,21 @@ public java.lang.String getNfsShareId() { } } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nfsShareId. */ - public com.google.protobuf.ByteString - getNfsShareIdBytes() { + public com.google.protobuf.ByteString getNfsShareIdBytes() { java.lang.Object ref = nfsShareId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nfsShareId_ = b; return b; } else { @@ -2761,54 +3036,61 @@ public java.lang.String getNfsShareId() { } } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nfsShareId to set. * @return This builder for chaining. */ - public Builder setNfsShareId( - java.lang.String value) { + public Builder setNfsShareId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nfsShareId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNfsShareId() { - + nfsShareId_ = getDefaultInstance().getNfsShareId(); onChanged(); return this; } /** + * + * *
      * Output only. An identifier for the NFS share, generated by the backend.
      * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nfsShareId to set. * @return This builder for chaining. */ - public Builder setNfsShareIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNfsShareIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nfsShareId_ = value; onChanged(); return this; @@ -2816,51 +3098,67 @@ public Builder setNfsShareIdBytes( private int state_ = 0; /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.NfsShare.State result = com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.NfsShare.State result = + com.google.cloud.baremetalsolution.v2.NfsShare.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2868,21 +3166,24 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.NfsShare.State val if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the NFS share.
      * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2890,18 +3191,20 @@ public Builder clearState() { private java.lang.Object volume_ = ""; /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The volume. */ public java.lang.String getVolume() { java.lang.Object ref = volume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; @@ -2910,20 +3213,21 @@ public java.lang.String getVolume() { } } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for volume. */ - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -2931,79 +3235,96 @@ public java.lang.String getVolume() { } } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @param value The volume to set. * @return This builder for chaining. */ - public Builder setVolume( - java.lang.String value) { + public Builder setVolume(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volume_ = value; onChanged(); return this; } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearVolume() { - + volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** + * + * *
      * The volume containing the share.
      * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for volume to set. * @return This builder for chaining. */ - public Builder setVolumeBytes( - com.google.protobuf.ByteString value) { + public Builder setVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volume_ = value; onChanged(); return this; } - private java.util.List allowedClients_ = - java.util.Collections.emptyList(); + private java.util.List + allowedClients_ = java.util.Collections.emptyList(); + private void ensureAllowedClientsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedClients_ = new java.util.ArrayList(allowedClients_); + allowedClients_ = + new java.util.ArrayList( + allowedClients_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> allowedClientsBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + allowedClientsBuilder_; /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public java.util.List getAllowedClientsList() { + public java.util.List + getAllowedClientsList() { if (allowedClientsBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedClients_); } else { @@ -3011,11 +3332,14 @@ public java.util.List * List of allowed access points. *
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public int getAllowedClientsCount() { if (allowedClientsBuilder_ == null) { @@ -3025,13 +3349,17 @@ public int getAllowedClientsCount() { } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients( + int index) { if (allowedClientsBuilder_ == null) { return allowedClients_.get(index); } else { @@ -3039,11 +3367,14 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedCl } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder setAllowedClients( int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { @@ -3060,14 +3391,18 @@ public Builder setAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder setAllowedClients( - int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); allowedClients_.set(index, builderForValue.build()); @@ -3078,13 +3413,17 @@ public Builder setAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public Builder addAllowedClients(com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { + public Builder addAllowedClients( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { if (allowedClientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3098,11 +3437,14 @@ public Builder addAllowedClients(com.google.cloud.baremetalsolution.v2.NfsShare. return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllowedClients( int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient value) { @@ -3119,11 +3461,14 @@ public Builder addAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllowedClients( com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { @@ -3137,14 +3482,18 @@ public Builder addAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllowedClients( - int index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder builderForValue) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); allowedClients_.add(index, builderForValue.build()); @@ -3155,18 +3504,21 @@ public Builder addAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder addAllAllowedClients( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (allowedClientsBuilder_ == null) { ensureAllowedClientsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedClients_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedClients_); onChanged(); } else { allowedClientsBuilder_.addAllMessages(values); @@ -3174,11 +3526,14 @@ public Builder addAllAllowedClients( return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder clearAllowedClients() { if (allowedClientsBuilder_ == null) { @@ -3191,11 +3546,14 @@ public Builder clearAllowedClients() { return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ public Builder removeAllowedClients(int index) { if (allowedClientsBuilder_ == null) { @@ -3208,39 +3566,50 @@ public Builder removeAllowedClients(int index) { return this; } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder getAllowedClientsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder + getAllowedClientsBuilder(int index) { return getAllowedClientsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder + getAllowedClientsOrBuilder(int index) { if (allowedClientsBuilder_ == null) { - return allowedClients_.get(index); } else { + return allowedClients_.get(index); + } else { return allowedClientsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public java.util.List - getAllowedClientsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + getAllowedClientsOrBuilderList() { if (allowedClientsBuilder_ != null) { return allowedClientsBuilder_.getMessageOrBuilderList(); } else { @@ -3248,45 +3617,64 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder get } } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder() { - return getAllowedClientsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder + addAllowedClientsBuilder() { + return getAllowedClientsFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addAllowedClientsBuilder( - int index) { - return getAllowedClientsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder + addAllowedClientsBuilder(int index) { + return getAllowedClientsFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.getDefaultInstance()); } /** + * + * *
      * List of allowed access points.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - public java.util.List - getAllowedClientsBuilderList() { + public java.util.List + getAllowedClientsBuilderList() { return getAllowedClientsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder> getAllowedClientsFieldBuilder() { if (allowedClientsBuilder_ == null) { - allowedClientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( + allowedClientsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder, + com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>( allowedClients_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3296,22 +3684,21 @@ public com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient.Builder addA return allowedClientsBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3323,28 +3710,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3352,11 +3741,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 6; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3364,16 +3754,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3381,12 +3772,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3394,69 +3784,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 6; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3466,12 +3853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.NfsShare) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.NfsShare) private static final com.google.cloud.baremetalsolution.v2.NfsShare DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.NfsShare(); } @@ -3480,16 +3867,16 @@ public static com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NfsShare parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NfsShare(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NfsShare parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NfsShare(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3504,6 +3891,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.NfsShare getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java index b7ebe95..89eba99 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareOrBuilder.java @@ -1,136 +1,190 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/nfs_share.proto package com.google.cloud.baremetalsolution.v2; -public interface NfsShareOrBuilder extends +public interface NfsShareOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.NfsShare) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of the NFS share.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nfsShareId. */ java.lang.String getNfsShareId(); /** + * + * *
    * Output only. An identifier for the NFS share, generated by the backend.
    * 
* * string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nfsShareId. */ - com.google.protobuf.ByteString - getNfsShareIdBytes(); + com.google.protobuf.ByteString getNfsShareIdBytes(); /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the NFS share.
    * 
* * .google.cloud.baremetalsolution.v2.NfsShare.State state = 3; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.NfsShare.State getState(); /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The volume. */ java.lang.String getVolume(); /** + * + * *
    * The volume containing the share.
    * 
* * string volume = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for volume. */ - com.google.protobuf.ByteString - getVolumeBytes(); + com.google.protobuf.ByteString getVolumeBytes(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - java.util.List + java.util.List getAllowedClientsList(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient getAllowedClients(int index); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ int getAllowedClientsCount(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ - java.util.List + java.util.List getAllowedClientsOrBuilderList(); /** + * + * *
    * List of allowed access points.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5; + * */ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder( int index); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -139,30 +193,31 @@ com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder getAllowed */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -171,18 +226,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 6; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java new file mode 100644 index 0000000..b476bcc --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NfsShareProto.java @@ -0,0 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/nfs_share.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class NfsShareProto { + private NfsShareProto() {} + + 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_baremetalsolution_v2_NfsShare_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/baremetalsolution/v2/nfs_" + + "share.proto\022!google.cloud.baremetalsolut" + + "ion.v2\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032 google/proto" + + "buf/field_mask.proto\"\217\007\n\010NfsShare\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022\031\n\014nfs_share_id\030\002 \001(\tB\003\340A\003\022" + + "@\n\005state\030\003 \001(\01621.google.cloud.baremetals" + + "olution.v2.NfsShare.State\022<\n\006volume\030\004 \001(" + + "\tB,\372A)\n\'baremetalsolution.googleapis.com" + + "/Volume\022R\n\017allowed_clients\030\005 \003(\01329.googl" + + "e.cloud.baremetalsolution.v2.NfsShare.Al" + + "lowedClient\022G\n\006labels\030\006 \003(\01327.google.clo" + + "ud.baremetalsolution.v2.NfsShare.LabelsE" + + "ntry\032\227\002\n\rAllowedClient\022>\n\007network\030\001 \001(\tB" + + "-\372A*\n(baremetalsolution.googleapis.com/N" + + "etwork\022\020\n\010share_ip\030\002 \001(\t\022\034\n\024allowed_clie" + + "nts_cidr\030\003 \001(\t\022W\n\021mount_permissions\030\004 \001(" + + "\0162<.google.cloud.baremetalsolution.v2.Nf" + + "sShare.MountPermissions\022\021\n\tallow_dev\030\005 \001" + + "(\010\022\022\n\nallow_suid\030\006 \001(\010\022\026\n\016no_root_squash" + + "\030\007 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"/\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\017\n\013PROVISIONED\020\001\"O\n\020MountPermissio" + + "ns\022!\n\035MOUNT_PERMISSIONS_UNSPECIFIED\020\000\022\010\n" + + "\004READ\020\001\022\016\n\nREAD_WRITE\020\002:m\352Aj\n)baremetals" + + "olution.googleapis.com/NFSShare\022=project" + + "s/{project}/locations/{location}/nfsShar" + + "es/{nfs_share}\"U\n\022GetNfsShareRequest\022?\n\004" + + "name\030\001 \001(\tB1\340A\002\372A+\n)baremetalsolution.go" + + "ogleapis.com/NFSShare\"\210\001\n\024ListNfsSharesR" + + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" + + "s.googleapis.com/Location\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t" + + "\"\206\001\n\025ListNfsSharesResponse\022?\n\nnfs_shares" + + "\030\001 \003(\0132+.google.cloud.baremetalsolution." + + "v2.NfsShare\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\215\001\n\025UpdateNfsShareRequ" + + "est\022C\n\tnfs_share\030\001 \001(\0132+.google.cloud.ba" + + "remetalsolution.v2.NfsShareB\003\340A\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\373\001\n%com.google.cloud.baremetalsolution" + + ".v2B\rNfsShareProtoP\001ZRgoogle.golang.org/" + + "genproto/googleapis/cloud/baremetalsolut" + + "ion/v2;baremetalsolution\252\002!Google.Cloud." + + "BareMetalSolution.V2\312\002!Google\\Cloud\\Bare" + + "MetalSolution\\V2\352\002$Google::Cloud::BareMe" + + "talSolution::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor, + new java.lang.String[] { + "Name", "NfsShareId", "State", "Volume", "AllowedClients", "Labels", + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_AllowedClient_descriptor, + new java.lang.String[] { + "Network", + "ShareIp", + "AllowedClientsCidr", + "MountPermissions", + "AllowDev", + "AllowSuid", + "NoRootSquash", + }); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_NfsShare_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_NfsShare_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetNfsShareRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListNfsSharesResponse_descriptor, + new java.lang.String[] { + "NfsShares", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor, + new java.lang.String[] { + "NfsShare", "UpdateMask", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java index ce84b7e..a5cd605 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Represents the metadata from a long-running operation.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusMessage_ = s; + break; + } + case 48: + { + requestedCancellation_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +150,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, + com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -160,11 +191,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -172,11 +207,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -186,11 +224,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -198,11 +240,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -210,11 +256,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -224,11 +273,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -237,29 +289,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -270,11 +322,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -283,29 +338,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -316,11 +371,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -329,29 +387,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -362,6 +420,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -370,6 +430,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -380,11 +441,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -393,29 +457,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -424,6 +488,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -468,12 +532,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -485,8 +547,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -499,33 +560,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.OperationMetadata other = (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; + com.google.cloud.baremetalsolution.v2.OperationMetadata other = + (com.google.cloud.baremetalsolution.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -552,8 +607,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -562,117 +616,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata from a long-running operation.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.cloud.baremetalsolution.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.OperationMetadata.class, com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); + com.google.cloud.baremetalsolution.v2.OperationMetadata.class, + com.google.cloud.baremetalsolution.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.OperationMetadata.newBuilder() @@ -680,16 +744,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -719,9 +782,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -740,7 +803,8 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { - com.google.cloud.baremetalsolution.v2.OperationMetadata result = new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); + com.google.cloud.baremetalsolution.v2.OperationMetadata result = + new com.google.cloud.baremetalsolution.v2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -764,38 +828,39 @@ public com.google.cloud.baremetalsolution.v2.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -803,7 +868,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.OperationMetadata other) { - if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -848,7 +914,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -860,39 +927,58 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -908,14 +994,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -926,17 +1015,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -948,11 +1041,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -966,48 +1063,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1015,24 +1128,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1043,11 +1167,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1063,14 +1190,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1081,17 +1210,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1103,11 +1235,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1121,48 +1256,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1170,18 +1316,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1190,20 +1338,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1211,54 +1360,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1266,18 +1422,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1286,20 +1444,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1307,54 +1466,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Name of the action executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1362,18 +1528,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1382,20 +1550,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1403,61 +1572,70 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1466,6 +1644,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1473,6 +1652,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1481,16 +1662,19 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** + * + * *
      * Identifies whether the user requested the cancellation
      * of the operation. Operations that have been successfully cancelled
@@ -1499,10 +1683,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1510,18 +1695,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1530,20 +1717,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1551,61 +1739,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * API version used with the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1615,12 +1810,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.OperationMetadata) private static final com.google.cloud.baremetalsolution.v2.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.OperationMetadata(); } @@ -1629,16 +1824,16 @@ public static com.google.cloud.baremetalsolution.v2.OperationMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1653,6 +1848,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java index 28fd6c5..5d598a7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the action executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Identifies whether the user requested the cancellation
    * of the operation. Operations that have been successfully cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version used with the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java index f4cba4a..bebcfd2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to reset a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ -public final class ResetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) ResetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResetInstanceRequest.newBuilder() to construct. private ResetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResetInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ResetInstanceRequest( 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,34 +91,41 @@ private ResetInstanceRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message requesting to reset a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceRequest) com.google.cloud.baremetalsolution.v2.ResetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ResetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java new file mode 100644 index 0000000..1f953fe --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java index 4fc6068..8c117cb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponse.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/baremetalsolution/v2/baremetalsolution.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message from resetting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ -public final class ResetInstanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResetInstanceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) ResetInstanceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResetInstanceResponse.newBuilder() to construct. private ResetInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResetInstanceResponse() { - } + + private ResetInstanceResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResetInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResetInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private ResetInstanceResponse( 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 ResetInstanceResponse( } 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.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.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.baremetalsolution.v2.ResetInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other = + (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message from resetting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResetInstanceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResetInstanceResponse) com.google.cloud.baremetalsolution.v2.ResetInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto.internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.BareMetalSolutionProto + .internal_static_google_cloud_baremetalsolution_v2_ResetInstanceResponse_descriptor; } @java.lang.Override @@ -297,7 +325,8 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.ResetInstanceResponse result = + new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(this); onBuilt(); return result; } @@ -306,38 +335,39 @@ public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +375,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResetInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ResetInstanceResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ResetInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,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 +418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResetInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.ResetInstanceResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResetInstanceResponse(); } @@ -400,16 +432,16 @@ public static com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResetInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResetInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.java new file mode 100644 index 0000000..6123d2c --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResetInstanceResponseOrBuilder.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/baremetalsolution/v2/baremetalsolution.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResetInstanceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResetInstanceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java index c6bff70..44bea73 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequest.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Request for emergency resize Volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} */ -public final class ResizeVolumeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResizeVolumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) ResizeVolumeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResizeVolumeRequest.newBuilder() to construct. private ResizeVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResizeVolumeRequest() { volume_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResizeVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResizeVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,24 +70,25 @@ private ResizeVolumeRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - volume_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sizeGib_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + volume_ = s; + break; + } + case 16: + { + sizeGib_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,34 +96,41 @@ private ResizeVolumeRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private volatile java.lang.Object volume_; /** + * + * *
    * Required. Volume to resize.
    * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The volume. */ @java.lang.Override @@ -114,29 +139,31 @@ public java.lang.String getVolume() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; } } /** + * + * *
    * Required. Volume to resize.
    * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for volume. */ @java.lang.Override - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -147,11 +174,14 @@ public java.lang.String getVolume() { public static final int SIZE_GIB_FIELD_NUMBER = 2; private long sizeGib_; /** + * + * *
    * New Volume size, in GiB.
    * 
* * int64 size_gib = 2; + * * @return The sizeGib. */ @java.lang.Override @@ -160,6 +190,7 @@ public long getSizeGib() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volume_); } @@ -192,8 +222,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volume_); } if (sizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, sizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeGib_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -203,17 +232,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.baremetalsolution.v2.ResizeVolumeRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other = + (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) obj; - if (!getVolume() - .equals(other.getVolume())) return false; - if (getSizeGib() - != other.getSizeGib()) return false; + if (!getVolume().equals(other.getVolume())) return false; + if (getSizeGib() != other.getSizeGib()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,125 +256,134 @@ public int hashCode() { hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + getVolume().hashCode(); hash = (37 * hash) + SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGib()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 emergency resize Volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ResizeVolumeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) com.google.cloud.baremetalsolution.v2.ResizeVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.newBuilder() @@ -354,16 +391,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(); @@ -375,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; } @java.lang.Override @@ -396,7 +432,8 @@ public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest result = + new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(this); result.volume_ = volume_; result.sizeGib_ = sizeGib_; onBuilt(); @@ -407,38 +444,39 @@ public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) other); } else { super.mergeFrom(other); return this; @@ -446,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest.getDefaultInstance()) + return this; if (!other.getVolume().isEmpty()) { volume_ = other.volume_; onChanged(); @@ -473,7 +512,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,18 +525,22 @@ public Builder mergeFrom( private java.lang.Object volume_ = ""; /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The volume. */ public java.lang.String getVolume() { java.lang.Object ref = volume_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); volume_ = s; return s; @@ -505,20 +549,23 @@ public java.lang.String getVolume() { } } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for volume. */ - public com.google.protobuf.ByteString - getVolumeBytes() { + public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { @@ -526,66 +573,82 @@ public java.lang.String getVolume() { } } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The volume to set. * @return This builder for chaining. */ - public Builder setVolume( - java.lang.String value) { + public Builder setVolume(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + volume_ = value; onChanged(); return this; } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearVolume() { - + volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** + * + * *
      * Required. Volume to resize.
      * 
* - * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for volume to set. * @return This builder for chaining. */ - public Builder setVolumeBytes( - com.google.protobuf.ByteString value) { + public Builder setVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volume_ = value; onChanged(); return this; } - private long sizeGib_ ; + private long sizeGib_; /** + * + * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; + * * @return The sizeGib. */ @java.lang.Override @@ -593,37 +656,43 @@ public long getSizeGib() { return sizeGib_; } /** + * + * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; + * * @param value The sizeGib to set. * @return This builder for chaining. */ public Builder setSizeGib(long value) { - + sizeGib_ = value; onChanged(); return this; } /** + * + * *
      * New Volume size, in GiB.
      * 
* * int64 size_gib = 2; + * * @return This builder for chaining. */ public Builder clearSizeGib() { - + sizeGib_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) private static final com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest(); } @@ -647,16 +716,16 @@ public static com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResizeVolumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResizeVolumeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResizeVolumeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResizeVolumeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,6 +740,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ResizeVolumeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java new file mode 100644 index 0000000..072aeb8 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ResizeVolumeRequestOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface ResizeVolumeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ResizeVolumeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Volume to resize.
+   * 
+ * + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The volume. + */ + java.lang.String getVolume(); + /** + * + * + *
+   * Required. Volume to resize.
+   * 
+ * + * + * string volume = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for volume. + */ + com.google.protobuf.ByteString getVolumeBytes(); + + /** + * + * + *
+   * New Volume size, in GiB.
+   * 
+ * + * int64 size_gib = 2; + * + * @return The sizeGib. + */ + long getSizeGib(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java index 694ee3d..6992d46 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplate.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Network template.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} */ -public final class ServerNetworkTemplate extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ServerNetworkTemplate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) ServerNetworkTemplateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ServerNetworkTemplate.newBuilder() to construct. private ServerNetworkTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ServerNetworkTemplate() { name_ = ""; applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private ServerNetworkTemplate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ServerNetworkTemplate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ServerNetworkTemplate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,46 @@ private ServerNetworkTemplate( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - applicableInstanceTypes_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + applicableInstanceTypes_.add(s); + break; } - logicalInterfaces_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + logicalInterfaces_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterface>(); + mutable_bitField0_ |= 0x00000002; + } + logicalInterfaces_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +120,7 @@ private ServerNetworkTemplate( } 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)) { applicableInstanceTypes_ = applicableInstanceTypes_.getUnmodifiableView(); @@ -107,24 +132,30 @@ private ServerNetworkTemplate( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); } - public interface LogicalInterfaceOrBuilder extends + public interface LogicalInterfaceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -134,10 +165,13 @@ public interface LogicalInterfaceOrBuilder extends
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -147,56 +181,73 @@ public interface LogicalInterfaceOrBuilder extends
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The type. */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType(); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + getType(); /** + * + * *
      * If true, interface must have network connected.
      * 
* * bool required = 3; + * * @return The required. */ boolean getRequired(); } /** + * + * *
    * Logical interface.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} */ - public static final class LogicalInterface extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LogicalInterface extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) LogicalInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogicalInterface.newBuilder() to construct. private LogicalInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LogicalInterface() { name_ = ""; type_ = 0; @@ -204,16 +255,15 @@ private LogicalInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogicalInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LogicalInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -232,30 +282,32 @@ private LogicalInterface( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 24: { + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - required_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + type_ = rawValue; + break; + } + case 24: + { + required_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -263,36 +315,43 @@ private LogicalInterface( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + .class); } /** + * + * *
      * Interface type.
      * 
* - * Protobuf enum {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} + * Protobuf enum {@code + * google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType} */ - public enum InterfaceType - implements com.google.protobuf.ProtocolMessageEnum { + public enum InterfaceType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified value.
        * 
@@ -301,6 +360,8 @@ public enum InterfaceType */ INTERFACE_TYPE_UNSPECIFIED(0), /** + * + * *
        * Bond interface type.
        * 
@@ -309,6 +370,8 @@ public enum InterfaceType */ BOND(1), /** + * + * *
        * NIC interface type.
        * 
@@ -320,6 +383,8 @@ public enum InterfaceType ; /** + * + * *
        * Unspecified value.
        * 
@@ -328,6 +393,8 @@ public enum InterfaceType */ public static final int INTERFACE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Bond interface type.
        * 
@@ -336,6 +403,8 @@ public enum InterfaceType */ public static final int BOND_VALUE = 1; /** + * + * *
        * NIC interface type.
        * 
@@ -344,7 +413,6 @@ public enum InterfaceType */ public static final int NIC_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -369,40 +437,46 @@ public static InterfaceType valueOf(int value) { */ public static InterfaceType forNumber(int value) { switch (value) { - case 0: return INTERFACE_TYPE_UNSPECIFIED; - case 1: return BOND; - case 2: return NIC; - default: return null; + case 0: + return INTERFACE_TYPE_UNSPECIFIED; + case 1: + return BOND; + case 2: + return NIC; + 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< - InterfaceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InterfaceType findValueByNumber(int number) { - return InterfaceType.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 InterfaceType findValueByNumber(int number) { + return InterfaceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDescriptor() + .getEnumTypes() + .get(0); } private static final InterfaceType[] VALUES = values(); @@ -410,8 +484,7 @@ public InterfaceType findValueByNumber(int number) { public static InterfaceType 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; @@ -431,6 +504,8 @@ private InterfaceType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -440,6 +515,7 @@ private InterfaceType(int value) {
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -448,14 +524,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; } } /** + * + * *
      * Interface name.
      * This is not a globally unique identifier.
@@ -465,16 +542,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @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 { @@ -485,38 +561,61 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Interface type.
      * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType + getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + result = + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.UNRECOGNIZED + : result; } public static final int REQUIRED_FIELD_NUMBER = 3; private boolean required_; /** + * + * *
      * If true, interface must have network connected.
      * 
* * bool required = 3; + * * @return The required. */ @java.lang.Override @@ -525,6 +624,7 @@ public boolean getRequired() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -536,12 +636,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.INTERFACE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } if (required_ != false) { @@ -559,13 +661,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.INTERFACE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.INTERFACE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (required_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, required_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, required_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -575,18 +678,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.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { + if (!(obj + instanceof + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; - if (getRequired() - != other.getRequired()) return false; + if (getRequired() != other.getRequired()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -603,95 +707,107 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequired()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -701,44 +817,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Logical interface.
      * 
* - * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} + * Protobuf type {@code + * google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + .class); } - // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() + // Construct using + // com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -752,19 +875,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_LogicalInterface_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface build() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = buildPartial(); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -772,8 +898,10 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface buildPartial() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + buildPartial() { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface result = + new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(this); result.name_ = name_; result.type_ = type_; result.required_ = required_; @@ -785,46 +913,55 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface)other); + if (other + instanceof + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) { + return mergeFrom( + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { - if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface other) { + if (other + == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -850,11 +987,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = null; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -866,6 +1006,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -875,13 +1017,13 @@ public Builder mergeFrom(
        * 
* * string name = 1; + * * @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; @@ -890,6 +1032,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -899,15 +1043,14 @@ public java.lang.String getName() {
        * 
* * string name = 1; + * * @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 { @@ -915,6 +1058,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -924,20 +1069,22 @@ public java.lang.String getName() {
        * 
* * string name = 1; + * * @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; } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -947,15 +1094,18 @@ public Builder setName(
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Interface name.
        * This is not a globally unique identifier.
@@ -965,16 +1115,16 @@ public Builder clearName() {
        * 
* * string name = 1; + * * @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; @@ -982,85 +1132,124 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return The type. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType getType() { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType + getType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType result = com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.valueOf(type_); - return result == null ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + result = + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.valueOf(type_); + return result == null + ? com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .InterfaceType.UNRECOGNIZED + : result; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType value) { + public Builder setType( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType + value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Interface type.
        * 
* - * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType type = 2; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private boolean required_ ; + private boolean required_; /** + * + * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; + * * @return The required. */ @java.lang.Override @@ -1068,34 +1257,41 @@ public boolean getRequired() { return required_; } /** + * + * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; + * * @param value The required to set. * @return This builder for chaining. */ public Builder setRequired(boolean value) { - + required_ = value; onChanged(); return this; } /** + * + * *
        * If true, interface must have network connected.
        * 
* * bool required = 3; + * * @return This builder for chaining. */ public Builder clearRequired() { - + required_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1108,30 +1304,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface) - private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterface + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); + DEFAULT_INSTANCE = + new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface(); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogicalInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogicalInterface(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,15 +1343,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1160,6 +1362,7 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1168,14 +1371,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; } } /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1184,16 +1388,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1204,34 +1407,42 @@ public java.lang.String getName() { public static final int APPLICABLE_INSTANCE_TYPES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList applicableInstanceTypes_; /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return A list containing the applicableInstanceTypes. */ - public com.google.protobuf.ProtocolStringList - getApplicableInstanceTypesList() { + public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList() { return applicableInstanceTypes_; } /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return The count of applicableInstanceTypes. */ public int getApplicableInstanceTypesCount() { return applicableInstanceTypes_.size(); } /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ @@ -1239,80 +1450,110 @@ public java.lang.String getApplicableInstanceTypes(int index) { return applicableInstanceTypes_.get(index); } /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - public com.google.protobuf.ByteString - getApplicableInstanceTypesBytes(int index) { + public com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index) { return applicableInstanceTypes_.getByteString(index); } public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 3; - private java.util.List logicalInterfaces_; + private java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + logicalInterfaces_; /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public java.util.List getLogicalInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + getLogicalInterfacesList() { return logicalInterfaces_; } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesOrBuilderList() { return logicalInterfaces_; } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override public int getLogicalInterfacesCount() { return logicalInterfaces_.size(); } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getLogicalInterfaces(int index) { return logicalInterfaces_.get(index); } /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { return logicalInterfaces_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1324,13 +1565,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < applicableInstanceTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicableInstanceTypes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, applicableInstanceTypes_.getRaw(i)); } for (int i = 0; i < logicalInterfaces_.size(); i++) { output.writeMessage(3, logicalInterfaces_.get(i)); @@ -1356,8 +1597,8 @@ public int getSerializedSize() { size += 1 * getApplicableInstanceTypesList().size(); } for (int i = 0; i < logicalInterfaces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, logicalInterfaces_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, logicalInterfaces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1367,19 +1608,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.baremetalsolution.v2.ServerNetworkTemplate)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getApplicableInstanceTypesList() - .equals(other.getApplicableInstanceTypesList())) return false; - if (!getLogicalInterfacesList() - .equals(other.getLogicalInterfacesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getApplicableInstanceTypesList().equals(other.getApplicableInstanceTypesList())) + return false; + if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1407,117 +1647,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Network template.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ServerNetworkTemplate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) com.google.cloud.baremetalsolution.v2.ServerNetworkTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.class, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.newBuilder() @@ -1525,17 +1775,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) { getLogicalInterfacesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1553,9 +1803,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_ServerNetworkTemplate_descriptor; } @java.lang.Override @@ -1574,7 +1824,8 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial() { - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate result = + new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1599,38 +1850,39 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) other); } else { super.mergeFrom(other); return this; @@ -1638,7 +1890,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate other) { - if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1671,9 +1924,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ServerNetworkTemp logicalInterfacesBuilder_ = null; logicalInterfaces_ = other.logicalInterfaces_; bitField0_ = (bitField0_ & ~0x00000002); - logicalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogicalInterfacesFieldBuilder() : null; + logicalInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogicalInterfacesFieldBuilder() + : null; } else { logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_); } @@ -1698,7 +1952,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1707,10 +1962,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1719,13 +1977,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1734,6 +1992,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1742,15 +2002,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1758,6 +2017,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1766,20 +2027,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1788,15 +2051,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Template's unique name. The full resource name follows the pattern:
      * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -1805,57 +2071,68 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList applicableInstanceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList applicableInstanceTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureApplicableInstanceTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - applicableInstanceTypes_ = new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); + applicableInstanceTypes_ = + new com.google.protobuf.LazyStringArrayList(applicableInstanceTypes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @return A list containing the applicableInstanceTypes. */ - public com.google.protobuf.ProtocolStringList - getApplicableInstanceTypesList() { + public com.google.protobuf.ProtocolStringList getApplicableInstanceTypesList() { return applicableInstanceTypes_.getUnmodifiableView(); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @return The count of applicableInstanceTypes. */ public int getApplicableInstanceTypesCount() { return applicableInstanceTypes_.size(); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ @@ -1863,80 +2140,90 @@ public java.lang.String getApplicableInstanceTypes(int index) { return applicableInstanceTypes_.get(index); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - public com.google.protobuf.ByteString - getApplicableInstanceTypesBytes(int index) { + public com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index) { return applicableInstanceTypes_.getByteString(index); } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param index The index to set the value at. * @param value The applicableInstanceTypes to set. * @return This builder for chaining. */ - public Builder setApplicableInstanceTypes( - int index, java.lang.String value) { + public Builder setApplicableInstanceTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureApplicableInstanceTypesIsMutable(); + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param value The applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addApplicableInstanceTypes( - java.lang.String value) { + public Builder addApplicableInstanceTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureApplicableInstanceTypesIsMutable(); + throw new NullPointerException(); + } + ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.add(value); onChanged(); return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param values The applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addAllApplicableInstanceTypes( - java.lang.Iterable values) { + public Builder addAllApplicableInstanceTypes(java.lang.Iterable values) { ensureApplicableInstanceTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, applicableInstanceTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicableInstanceTypes_); onChanged(); return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @return This builder for chaining. */ public Builder clearApplicableInstanceTypes() { @@ -1946,46 +2233,62 @@ public Builder clearApplicableInstanceTypes() { return this; } /** + * + * *
      * Instance types this template is applicable to.
      * 
* * repeated string applicable_instance_types = 2; + * * @param value The bytes of the applicableInstanceTypes to add. * @return This builder for chaining. */ - public Builder addApplicableInstanceTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addApplicableInstanceTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureApplicableInstanceTypesIsMutable(); applicableInstanceTypes_.add(value); onChanged(); return this; } - private java.util.List logicalInterfaces_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + logicalInterfaces_ = java.util.Collections.emptyList(); + private void ensureLogicalInterfacesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - logicalInterfaces_ = new java.util.ArrayList(logicalInterfaces_); + logicalInterfaces_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface>( + logicalInterfaces_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> logicalInterfacesBuilder_; + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + logicalInterfacesBuilder_; /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public java.util.List getLogicalInterfacesList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + getLogicalInterfacesList() { if (logicalInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(logicalInterfaces_); } else { @@ -1993,11 +2296,15 @@ public java.util.List * Logical interfaces. *
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public int getLogicalInterfacesCount() { if (logicalInterfacesBuilder_ == null) { @@ -2007,13 +2314,18 @@ public int getLogicalInterfacesCount() { } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + getLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { return logicalInterfaces_.get(index); } else { @@ -2021,14 +2333,19 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder setLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2042,14 +2359,20 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder setLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.set(index, builderForValue.build()); @@ -2060,13 +2383,18 @@ public Builder setLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + public Builder addLogicalInterfaces( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2080,14 +2408,19 @@ public Builder addLogicalInterfaces(com.google.cloud.baremetalsolution.v2.Server return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface value) { if (logicalInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2101,14 +2434,19 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addLogicalInterfaces( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.add(builderForValue.build()); @@ -2119,14 +2457,20 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addLogicalInterfaces( - int index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + builderForValue) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); logicalInterfaces_.add(index, builderForValue.build()); @@ -2137,18 +2481,24 @@ public Builder addLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder addAllLogicalInterfaces( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface> + values) { if (logicalInterfacesBuilder_ == null) { ensureLogicalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logicalInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logicalInterfaces_); onChanged(); } else { logicalInterfacesBuilder_.addAllMessages(values); @@ -2156,11 +2506,15 @@ public Builder addAllLogicalInterfaces( return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder clearLogicalInterfaces() { if (logicalInterfacesBuilder_ == null) { @@ -2173,11 +2527,15 @@ public Builder clearLogicalInterfaces() { return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ public Builder removeLogicalInterfaces(int index) { if (logicalInterfacesBuilder_ == null) { @@ -2190,39 +2548,55 @@ public Builder removeLogicalInterfaces(int index) { return this; } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder getLogicalInterfacesBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + getLogicalInterfacesBuilder(int index) { return getLogicalInterfacesFieldBuilder().getBuilder(index); } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index) { if (logicalInterfacesBuilder_ == null) { - return logicalInterfaces_.get(index); } else { + return logicalInterfaces_.get(index); + } else { return logicalInterfacesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public java.util.List - getLogicalInterfacesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterfaceOrBuilder> + getLogicalInterfacesOrBuilderList() { if (logicalInterfacesBuilder_ != null) { return logicalInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -2230,45 +2604,72 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder() { - return getLogicalInterfacesFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + addLogicalInterfacesBuilder() { + return getLogicalInterfacesFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance()); } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder addLogicalInterfacesBuilder( - int index) { - return getLogicalInterfacesFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder + addLogicalInterfacesBuilder(int index) { + return getLogicalInterfacesFieldBuilder() + .addBuilder( + index, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .getDefaultInstance()); } /** + * + * *
      * Logical interfaces.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - public java.util.List - getLogicalInterfacesBuilderList() { + public java.util.List< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder> + getLogicalInterfacesBuilderList() { return getLogicalInterfacesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesFieldBuilder() { if (logicalInterfacesBuilder_ == null) { - logicalInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.Builder, com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder>( + logicalInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface + .Builder, + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate + .LogicalInterfaceOrBuilder>( logicalInterfaces_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2277,9 +2678,9 @@ public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterf } return logicalInterfacesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2289,12 +2690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) private static final com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate(); } @@ -2303,16 +2704,16 @@ public static com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServerNetworkTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerNetworkTemplate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerNetworkTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerNetworkTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2327,6 +2728,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java similarity index 61% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java index 7c1339a..f038bd7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ServerNetworkTemplateOrBuilder.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; -public interface ServerNetworkTemplateOrBuilder extends +public interface ServerNetworkTemplateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.ServerNetworkTemplate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -16,10 +34,13 @@ public interface ServerNetworkTemplateOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Template's unique name. The full resource name follows the pattern:
    * `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
@@ -28,93 +49,126 @@ public interface ServerNetworkTemplateOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return A list containing the applicableInstanceTypes. */ - java.util.List - getApplicableInstanceTypesList(); + java.util.List getApplicableInstanceTypesList(); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @return The count of applicableInstanceTypes. */ int getApplicableInstanceTypesCount(); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the element to return. * @return The applicableInstanceTypes at the given index. */ java.lang.String getApplicableInstanceTypes(int index); /** + * + * *
    * Instance types this template is applicable to.
    * 
* * repeated string applicable_instance_types = 2; + * * @param index The index of the value to return. * @return The bytes of the applicableInstanceTypes at the given index. */ - com.google.protobuf.ByteString - getApplicableInstanceTypesBytes(int index); + com.google.protobuf.ByteString getApplicableInstanceTypesBytes(int index); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - java.util.List + java.util.List getLogicalInterfacesList(); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces(int index); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface getLogicalInterfaces( + int index); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ int getLogicalInterfacesCount(); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder> getLogicalInterfacesOrBuilderList(); /** + * + * *
    * Logical interfaces.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * + * repeated .google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface logical_interfaces = 3; + * */ - com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder( - int index); + com.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterfaceOrBuilder + getLogicalInterfacesOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java index 693c5f0..bde5537 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to start a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} */ -public final class StartInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) StartInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartInstanceRequest.newBuilder() to construct. private StartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StartInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StartInstanceRequest( 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,34 +91,41 @@ private StartInstanceRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.StartInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StartInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message requesting to start a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceRequest) com.google.cloud.baremetalsolution.v2.StartInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StartInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.StartInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StartInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.StartInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StartInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java new file mode 100644 index 0000000..4cb55b2 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java index 5c0a6d8..c708c7e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponse.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message from starting a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} */ -public final class StartInstanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartInstanceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) StartInstanceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartInstanceResponse.newBuilder() to construct. private StartInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartInstanceResponse() { - } + + private StartInstanceResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StartInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private StartInstanceResponse( 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 StartInstanceResponse( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.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.baremetalsolution.v2.StartInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.StartInstanceResponse other = + (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StartInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message from starting a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StartInstanceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StartInstanceResponse) com.google.cloud.baremetalsolution.v2.StartInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StartInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StartInstanceResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StartInstanceResponse_descriptor; } @java.lang.Override @@ -297,7 +325,8 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.StartInstanceResponse result = + new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(this); onBuilt(); return result; } @@ -306,38 +335,39 @@ public com.google.cloud.baremetalsolution.v2.StartInstanceResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StartInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StartInstanceResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +375,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StartInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StartInstanceResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StartInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,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 +418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StartInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.StartInstanceResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StartInstanceResponse(); } @@ -400,16 +432,16 @@ public static com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StartInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.java new file mode 100644 index 0000000..a4673c6 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StartInstanceResponseOrBuilder.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/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StartInstanceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StartInstanceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java index 664e09a..ca5b555 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequest.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to stop a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} */ -public final class StopInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) StopInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopInstanceRequest.newBuilder() to construct. private StopInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StopInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StopInstanceRequest( 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,34 +91,41 @@ private StopInstanceRequest( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the resource.
    * 
* - * string name = 1 [(.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 @@ -109,29 +134,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. Name of the resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; + com.google.cloud.baremetalsolution.v2.StopInstanceRequest other = + (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StopInstanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message requesting to stop a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceRequest) com.google.cloud.baremetalsolution.v2.StopInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.StopInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.StopInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StopInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the resource.
      * 
* - * 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. Name of the resource.
      * 
* - * string 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. Name of the resource.
      * 
* - * 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceRequest) private static final com.google.cloud.baremetalsolution.v2.StopInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StopInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java new file mode 100644 index 0000000..4b93ef8 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource.
+   * 
+ * + * + * 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/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java index ef520a4..182ad22 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponse.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/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Response message from stopping a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} */ -public final class StopInstanceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopInstanceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) StopInstanceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopInstanceResponse.newBuilder() to construct. private StopInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopInstanceResponse() { - } + + private StopInstanceResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopInstanceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StopInstanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private StopInstanceResponse( 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 StopInstanceResponse( } 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.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.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.baremetalsolution.v2.StopInstanceResponse)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; + com.google.cloud.baremetalsolution.v2.StopInstanceResponse other = + (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.StopInstanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message from stopping a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.StopInstanceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.StopInstanceResponse) com.google.cloud.baremetalsolution.v2.StopInstanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.class, + com.google.cloud.baremetalsolution.v2.StopInstanceResponse.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.StopInstanceResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_StopInstanceResponse_descriptor; } @java.lang.Override @@ -297,7 +325,8 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceResponse build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() { - com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); + com.google.cloud.baremetalsolution.v2.StopInstanceResponse result = + new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(this); onBuilt(); return result; } @@ -306,38 +335,39 @@ public com.google.cloud.baremetalsolution.v2.StopInstanceResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.StopInstanceResponse) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.StopInstanceResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +375,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.StopInstanceResponse other) { - if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.StopInstanceResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.StopInstanceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,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 +418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.StopInstanceResponse) private static final com.google.cloud.baremetalsolution.v2.StopInstanceResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.StopInstanceResponse(); } @@ -400,16 +432,16 @@ public static com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopInstanceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.StopInstanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.java new file mode 100644 index 0000000..0e0f7b9 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/StopInstanceResponseOrBuilder.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/baremetalsolution/v2/instance.proto + +package com.google.cloud.baremetalsolution.v2; + +public interface StopInstanceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.StopInstanceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java index 19dde2e..867bf65 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/baremetalsolution/v2/instance.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * Message requesting to updating a server.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} */ -public final class UpdateInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) UpdateInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateInstanceRequest.newBuilder() to construct. private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateInstanceRequest() { - } + + private UpdateInstanceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateInstanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateInstanceRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = 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 UpdateInstanceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Instance instance_; /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Instance getInstance() { - return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -168,6 +209,7 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -175,6 +217,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -184,6 +228,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -191,6 +236,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -207,6 +254,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -218,8 +266,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (instance_ != null) {
       output.writeMessage(1, getInstance());
     }
@@ -236,12 +283,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (instance_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getInstance());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance());
     }
     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 +296,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.baremetalsolution.v2.UpdateInstanceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) obj;
 
     if (hasInstance() != other.hasInstance()) return false;
     if (hasInstance()) {
-      if (!getInstance()
-          .equals(other.getInstance())) return false;
+      if (!getInstance().equals(other.getInstance())) 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 +337,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message requesting to updating a server.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateInstanceRequest) com.google.cloud.baremetalsolution.v2.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.newBuilder() @@ -411,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(); @@ -440,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.InstanceProto.internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.InstanceProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -461,7 +514,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest(this); if (instanceBuilder_ == null) { result.instance_ = instance_; } else { @@ -480,38 +534,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest.getDefaultInstance()) + return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } @@ -545,7 +601,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -557,45 +614,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.baremetalsolution.v2.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) { if (instanceBuilder_ == null) { @@ -611,13 +687,17 @@ public Builder setInstance(com.google.cloud.baremetalsolution.v2.Instance value) return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance( com.google.cloud.baremetalsolution.v2.Instance.Builder builderForValue) { @@ -631,19 +711,25 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -655,13 +741,17 @@ public Builder mergeInstance(com.google.cloud.baremetalsolution.v2.Instance valu return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -675,54 +765,70 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.baremetalsolution.v2.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. The server to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/instances/{instance}
      * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Instance, com.google.cloud.baremetalsolution.v2.Instance.Builder, com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Instance, + com.google.cloud.baremetalsolution.v2.Instance.Builder, + com.google.cloud.baremetalsolution.v2.InstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; @@ -730,8 +836,13 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil 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_; /** + * + * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -741,12 +852,15 @@ public com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -756,16 +870,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The currently supported fields are:
@@ -790,6 +909,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -800,8 +921,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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 +932,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -826,7 +948,7 @@ 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 +960,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -860,6 +984,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -871,11 +997,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -890,11 +1018,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The currently supported fields are:
@@ -906,21 +1037,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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 +1064,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest();
   }
@@ -944,16 +1078,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateInstanceRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateInstanceRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateInstanceRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateInstanceRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -968,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateInstanceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
similarity index 65%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
index 61fb3c1..90f5ce9 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateInstanceRequestOrBuilder.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/baremetalsolution/v2/instance.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateInstanceRequestOrBuilder extends
+public interface UpdateInstanceRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateInstanceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.baremetalsolution.v2.Instance getInstance(); /** + * + * *
    * Required. The server to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/instances/{instance}
    * 
* - * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.InstanceOrBuilder getInstanceOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -50,10 +82,13 @@ public interface UpdateInstanceRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
@@ -63,10 +98,13 @@ public interface UpdateInstanceRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
similarity index 67%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
index 448e185..70529ea 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequest.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * Message requesting to updating a network.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} */ -public final class UpdateNetworkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNetworkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) UpdateNetworkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNetworkRequest.newBuilder() to construct. private UpdateNetworkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNetworkRequest() { - } + + private UpdateNetworkRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNetworkRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateNetworkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateNetworkRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; - if (network_ != null) { - subBuilder = network_.toBuilder(); - } - network_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(network_); - network_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.Network.Builder subBuilder = null; + if (network_ != null) { + subBuilder = network_.toBuilder(); + } + network_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Network.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(network_); + network_ = 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 UpdateNetworkRequest( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Network network_; /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the network field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasNetwork() { return network_ != null; } /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The network. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Network getNetwork() { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -166,6 +207,7 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,6 +215,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -180,6 +224,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -187,6 +232,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -201,6 +248,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,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 (network_ != null) {
       output.writeMessage(1, getNetwork());
     }
@@ -230,12 +277,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (network_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getNetwork());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetwork());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -245,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.baremetalsolution.v2.UpdateNetworkRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) obj;
 
     if (hasNetwork() != other.hasNetwork()) return false;
     if (hasNetwork()) {
-      if (!getNetwork()
-          .equals(other.getNetwork())) return false;
+      if (!getNetwork().equals(other.getNetwork())) 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;
@@ -287,117 +331,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message requesting to updating a network.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNetworkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNetworkRequest) com.google.cloud.baremetalsolution.v2.UpdateNetworkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.newBuilder() @@ -405,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNetworkRequest_descriptor; } @java.lang.Override @@ -455,7 +508,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest(this); if (networkBuilder_ == null) { result.network_ = network_; } else { @@ -474,38 +528,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest.getDefaultInstance()) + return this; if (other.hasNetwork()) { mergeNetwork(other.getNetwork()); } @@ -539,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,45 +608,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Network network_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> networkBuilder_; + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + networkBuilder_; /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The network. */ public com.google.cloud.baremetalsolution.v2.Network getNetwork() { if (networkBuilder_ == null) { - return network_ == null ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } else { return networkBuilder_.getMessage(); } } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { if (networkBuilder_ == null) { @@ -605,13 +681,17 @@ public Builder setNetwork(com.google.cloud.baremetalsolution.v2.Network value) { return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNetwork( com.google.cloud.baremetalsolution.v2.Network.Builder builderForValue) { @@ -625,19 +705,25 @@ public Builder setNetwork( return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) { if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Network.newBuilder(network_) + .mergeFrom(value) + .buildPartial(); } else { network_ = value; } @@ -649,13 +735,17 @@ public Builder mergeNetwork(com.google.cloud.baremetalsolution.v2.Network value) return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNetwork() { if (networkBuilder_ == null) { @@ -669,54 +759,70 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.Network.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder() { if (networkBuilder_ != null) { return networkBuilder_.getMessageOrBuilder(); } else { - return network_ == null ? - com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() : network_; + return network_ == null + ? com.google.cloud.baremetalsolution.v2.Network.getDefaultInstance() + : network_; } } /** + * + * *
      * Required. The network to update.
      * The `name` field is used to identify the instance to update.
      * Format: projects/{project}/locations/{location}/networks/{network}
      * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> getNetworkFieldBuilder() { if (networkBuilder_ == null) { - networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Network, com.google.cloud.baremetalsolution.v2.Network.Builder, com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( - getNetwork(), - getParentForChildren(), - isClean()); + networkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Network, + com.google.cloud.baremetalsolution.v2.Network.Builder, + com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>( + getNetwork(), getParentForChildren(), isClean()); network_ = null; } return networkBuilder_; @@ -724,8 +830,13 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde 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_; /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -733,12 +844,15 @@ public com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilde
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -746,16 +860,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -778,6 +897,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -786,8 +907,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -798,6 +918,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -810,7 +932,7 @@ 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;
         }
@@ -822,6 +944,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -842,6 +966,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -851,11 +977,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -868,11 +996,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -882,21 +1013,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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);
     }
 
@@ -906,12 +1040,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest();
   }
@@ -920,16 +1054,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateNetworkRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateNetworkRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateNetworkRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateNetworkRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -944,6 +1078,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateNetworkRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
index c43d1e2..fa34464 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNetworkRequestOrBuilder.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateNetworkRequestOrBuilder extends
+public interface UpdateNetworkRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNetworkRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the network field is set. */ boolean hasNetwork(); /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The network. */ com.google.cloud.baremetalsolution.v2.Network getNetwork(); /** + * + * *
    * Required. The network to update.
    * The `name` field is used to identify the instance to update.
    * Format: projects/{project}/locations/{location}/networks/{network}
    * 
* - * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Network network = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.NetworkOrBuilder getNetworkOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -48,10 +80,13 @@ public interface UpdateNetworkRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -59,10 +94,13 @@ public interface UpdateNetworkRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
similarity index 67%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
index 81f29d7..eef8a54 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequest.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/baremetalsolution/v2/nfs_share.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * Message requesting to updating a NFS share.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} */ -public final class UpdateNfsShareRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNfsShareRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) UpdateNfsShareRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNfsShareRequest.newBuilder() to construct. private UpdateNfsShareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNfsShareRequest() { - } + + private UpdateNfsShareRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNfsShareRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateNfsShareRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateNfsShareRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; - if (nfsShare_ != null) { - subBuilder = nfsShare_.toBuilder(); - } - nfsShare_ = input.readMessage(com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nfsShare_); - nfsShare_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.NfsShare.Builder subBuilder = null; + if (nfsShare_ != null) { + subBuilder = nfsShare_.toBuilder(); + } + nfsShare_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.NfsShare.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nfsShare_); + nfsShare_ = 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 UpdateNfsShareRequest( } 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.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); } public static final int NFS_SHARE_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nfsShare field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasNfsShare() { return nfsShare_ != null; } /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nfsShare. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { - return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + return nfsShare_ == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() + : nfsShare_; } /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -166,6 +207,7 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,6 +215,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -180,6 +224,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -187,6 +232,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -201,6 +248,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,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 (nfsShare_ != null) {
       output.writeMessage(1, getNfsShare());
     }
@@ -230,12 +277,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (nfsShare_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getNfsShare());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNfsShare());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -245,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.baremetalsolution.v2.UpdateNfsShareRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) obj;
 
     if (hasNfsShare() != other.hasNfsShare()) return false;
     if (hasNfsShare()) {
-      if (!getNfsShare()
-          .equals(other.getNfsShare())) return false;
+      if (!getNfsShare().equals(other.getNfsShare())) 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;
@@ -287,117 +331,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message requesting to updating a NFS share.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateNfsShareRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.newBuilder() @@ -405,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NfsShareProto.internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NfsShareProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateNfsShareRequest_descriptor; } @java.lang.Override @@ -455,7 +508,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest(this); if (nfsShareBuilder_ == null) { result.nfsShare_ = nfsShare_; } else { @@ -474,38 +528,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest.getDefaultInstance()) + return this; if (other.hasNfsShare()) { mergeNfsShare(other.getNfsShare()); } @@ -539,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,45 +608,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.NfsShare nfsShare_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> nfsShareBuilder_; + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + nfsShareBuilder_; /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nfsShare field is set. */ public boolean hasNfsShare() { return nfsShareBuilder_ != null || nfsShare_ != null; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nfsShare. */ public com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare() { if (nfsShareBuilder_ == null) { - return nfsShare_ == null ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + return nfsShare_ == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() + : nfsShare_; } else { return nfsShareBuilder_.getMessage(); } } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsShareBuilder_ == null) { @@ -605,13 +681,17 @@ public Builder setNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNfsShare( com.google.cloud.baremetalsolution.v2.NfsShare.Builder builderForValue) { @@ -625,19 +705,25 @@ public Builder setNfsShare( return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare value) { if (nfsShareBuilder_ == null) { if (nfsShare_ != null) { nfsShare_ = - com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.NfsShare.newBuilder(nfsShare_) + .mergeFrom(value) + .buildPartial(); } else { nfsShare_ = value; } @@ -649,13 +735,17 @@ public Builder mergeNfsShare(com.google.cloud.baremetalsolution.v2.NfsShare valu return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNfsShare() { if (nfsShareBuilder_ == null) { @@ -669,54 +759,70 @@ public Builder clearNfsShare() { return this; } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.NfsShare.Builder getNfsShareBuilder() { - + onChanged(); return getNfsShareFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder() { if (nfsShareBuilder_ != null) { return nfsShareBuilder_.getMessageOrBuilder(); } else { - return nfsShare_ == null ? - com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() : nfsShare_; + return nfsShare_ == null + ? com.google.cloud.baremetalsolution.v2.NfsShare.getDefaultInstance() + : nfsShare_; } } /** + * + * *
      * Required. The NFS share to update.
      * The `name` field is used to identify the NFS share to update.
      * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
      * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder> getNfsShareFieldBuilder() { if (nfsShareBuilder_ == null) { - nfsShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.NfsShare, com.google.cloud.baremetalsolution.v2.NfsShare.Builder, com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( - getNfsShare(), - getParentForChildren(), - isClean()); + nfsShareBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.NfsShare, + com.google.cloud.baremetalsolution.v2.NfsShare.Builder, + com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder>( + getNfsShare(), getParentForChildren(), isClean()); nfsShare_ = null; } return nfsShareBuilder_; @@ -724,8 +830,13 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil 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_; /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -733,12 +844,15 @@ public com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuil
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -746,16 +860,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -778,6 +897,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -786,8 +907,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -798,6 +918,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -810,7 +932,7 @@ 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;
         }
@@ -822,6 +944,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -842,6 +966,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -851,11 +977,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -868,11 +996,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -882,21 +1013,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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);
     }
 
@@ -906,12 +1040,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest();
   }
@@ -920,16 +1054,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateNfsShareRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateNfsShareRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateNfsShareRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateNfsShareRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -944,6 +1078,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
similarity index 64%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
index 76b8f82..64a6b99 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateNfsShareRequestOrBuilder.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/baremetalsolution/v2/nfs_share.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateNfsShareRequestOrBuilder extends
+public interface UpdateNfsShareRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateNfsShareRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nfsShare field is set. */ boolean hasNfsShare(); /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nfsShare. */ com.google.cloud.baremetalsolution.v2.NfsShare getNfsShare(); /** + * + * *
    * Required. The NFS share to update.
    * The `name` field is used to identify the NFS share to update.
    * Format: projects/{project}/locations/{location}/nfsShares/{nfs_share}
    * 
* - * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.NfsShare nfs_share = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.NfsShareOrBuilder getNfsShareOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -48,10 +80,13 @@ public interface UpdateNfsShareRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -59,10 +94,13 @@ public interface UpdateNfsShareRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
similarity index 68%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
index 53ee6b0..38d881f 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequest.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/baremetalsolution/v2/volume.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * Message for updating a volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ -public final class UpdateVolumeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateVolumeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) UpdateVolumeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateVolumeRequest.newBuilder() to construct. private UpdateVolumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateVolumeRequest() { - } + + private UpdateVolumeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateVolumeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateVolumeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateVolumeRequest( case 0: done = true; break; - case 10: { - com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; - if (volume_ != null) { - subBuilder = volume_.toBuilder(); - } - volume_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(volume_); - volume_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.baremetalsolution.v2.Volume.Builder subBuilder = null; + if (volume_ != null) { + subBuilder = volume_.toBuilder(); + } + volume_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Volume.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(volume_); + volume_ = 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 UpdateVolumeRequest( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } public static final int VOLUME_FIELD_NUMBER = 1; private com.google.cloud.baremetalsolution.v2.Volume volume_; /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the volume field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasVolume() { return volume_ != null; } /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The volume. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume getVolume() { - return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; + return volume_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() + : volume_; } /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -170,6 +211,7 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -177,6 +219,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -188,6 +232,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -195,6 +240,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -213,6 +260,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -224,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 (volume_ != null) {
       output.writeMessage(1, getVolume());
     }
@@ -242,12 +289,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (volume_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getVolume());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVolume());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -257,22 +302,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.baremetalsolution.v2.UpdateVolumeRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj;
+    com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other =
+        (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) obj;
 
     if (hasVolume() != other.hasVolume()) return false;
     if (hasVolume()) {
-      if (!getVolume()
-          .equals(other.getVolume())) return false;
+      if (!getVolume().equals(other.getVolume())) 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;
@@ -299,117 +343,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Message for updating a volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.UpdateVolumeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.UpdateVolumeRequest) com.google.cloud.baremetalsolution.v2.UpdateVolumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.class, + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.newBuilder() @@ -417,16 +471,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; } @java.lang.Override @@ -467,7 +520,8 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() { - com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); + com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest result = + new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest(this); if (volumeBuilder_ == null) { result.volume_ = volume_; } else { @@ -486,38 +540,39 @@ public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +580,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest other) { - if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest.getDefaultInstance()) + return this; if (other.hasVolume()) { mergeVolume(other.getVolume()); } @@ -551,7 +607,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,45 +620,64 @@ public Builder mergeFrom( private com.google.cloud.baremetalsolution.v2.Volume volume_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> volumeBuilder_; + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + volumeBuilder_; /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the volume field is set. */ public boolean hasVolume() { return volumeBuilder_ != null || volume_ != null; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The volume. */ public com.google.cloud.baremetalsolution.v2.Volume getVolume() { if (volumeBuilder_ == null) { - return volume_ == null ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; + return volume_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() + : volume_; } else { return volumeBuilder_.getMessage(); } } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { @@ -617,16 +693,19 @@ public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setVolume( - com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { + public Builder setVolume(com.google.cloud.baremetalsolution.v2.Volume.Builder builderForValue) { if (volumeBuilder_ == null) { volume_ = builderForValue.build(); onChanged(); @@ -637,19 +716,25 @@ public Builder setVolume( return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { if (volumeBuilder_ == null) { if (volume_ != null) { volume_ = - com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.newBuilder(volume_) + .mergeFrom(value) + .buildPartial(); } else { volume_ = value; } @@ -661,13 +746,17 @@ public Builder mergeVolume(com.google.cloud.baremetalsolution.v2.Volume value) { return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearVolume() { if (volumeBuilder_ == null) { @@ -681,54 +770,70 @@ public Builder clearVolume() { return this; } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.Volume.Builder getVolumeBuilder() { - + onChanged(); return getVolumeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder() { if (volumeBuilder_ != null) { return volumeBuilder_.getMessageOrBuilder(); } else { - return volume_ == null ? - com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() : volume_; + return volume_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.getDefaultInstance() + : volume_; } } /** + * + * *
      * Required. The volume to update.
      * The `name` field is used to identify the volume to update.
      * Format: projects/{project}/locations/{location}/volumes/{volume}
      * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder> getVolumeFieldBuilder() { if (volumeBuilder_ == null) { - volumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume, com.google.cloud.baremetalsolution.v2.Volume.Builder, com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( - getVolume(), - getParentForChildren(), - isClean()); + volumeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume, + com.google.cloud.baremetalsolution.v2.Volume.Builder, + com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>( + getVolume(), getParentForChildren(), isClean()); volume_ = null; } return volumeBuilder_; @@ -736,8 +841,13 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder( 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_; /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -749,12 +859,15 @@ public com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -766,16 +879,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * The list of fields to update.
      * The only currently supported fields are:
@@ -802,6 +920,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -814,8 +934,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    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();
@@ -826,6 +945,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -842,7 +963,7 @@ 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;
         }
@@ -854,6 +975,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -878,6 +1001,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -891,11 +1016,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -912,11 +1039,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to update.
      * The only currently supported fields are:
@@ -930,21 +1060,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_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>
         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);
     }
 
@@ -954,12 +1087,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
   private static final com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest();
   }
@@ -968,16 +1101,16 @@ public static com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateVolumeRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateVolumeRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateVolumeRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateVolumeRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -992,6 +1125,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.baremetalsolution.v2.UpdateVolumeRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
index 345ca45..a1d2271 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/UpdateVolumeRequestOrBuilder.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/baremetalsolution/v2/volume.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
-public interface UpdateVolumeRequestOrBuilder extends
+public interface UpdateVolumeRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.UpdateVolumeRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the volume field is set. */ boolean hasVolume(); /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The volume. */ com.google.cloud.baremetalsolution.v2.Volume getVolume(); /** + * + * *
    * Required. The volume to update.
    * The `name` field is used to identify the volume to update.
    * Format: projects/{project}/locations/{location}/volumes/{volume}
    * 
* - * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.baremetalsolution.v2.Volume volume = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.baremetalsolution.v2.VolumeOrBuilder getVolumeOrBuilder(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -52,10 +84,13 @@ public interface UpdateVolumeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
@@ -67,10 +102,13 @@ public interface UpdateVolumeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update.
    * The only currently supported fields are:
diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
similarity index 72%
rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
index 4209331..e47ad61 100644
--- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.java
+++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRF.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/baremetalsolution/v2/network.proto
 
 package com.google.cloud.baremetalsolution.v2;
 
 /**
+ *
+ *
  * 
  * A network VRF.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ -public final class VRF extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VRF extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF) VRFOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VRF.newBuilder() to construct. private VRF(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VRF() { name_ = ""; state_ = 0; @@ -27,16 +45,15 @@ private VRF() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VRF(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VRF( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,47 +73,58 @@ private VRF( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 50: { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; - if (qosPolicy_ != null) { - subBuilder = qosPolicy_.toBuilder(); + name_ = s; + break; } - qosPolicy_ = input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qosPolicy_); - qosPolicy_ = subBuilder.buildPartial(); + case 40: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; } + case 50: + { + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder subBuilder = null; + if (qosPolicy_ != null) { + subBuilder = qosPolicy_.toBuilder(); + } + qosPolicy_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qosPolicy_); + qosPolicy_ = subBuilder.buildPartial(); + } - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - vlanAttachments_.add( - input.readMessage(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vlanAttachments_ = + new java.util.ArrayList< + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment>(); + mutable_bitField0_ |= 0x00000001; + } + vlanAttachments_.add( + input.readMessage( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,8 +132,7 @@ private VRF( } 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)) { vlanAttachments_ = java.util.Collections.unmodifiableList(vlanAttachments_); @@ -114,29 +141,35 @@ private VRF( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, + com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } /** + * + * *
    * The possible states for this VRF.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.VRF.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The unspecified state.
      * 
@@ -145,6 +178,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The vrf is provisioning.
      * 
@@ -153,6 +188,8 @@ public enum State */ PROVISIONING(1), /** + * + * *
      * The vrf is provisioned.
      * 
@@ -164,6 +201,8 @@ public enum State ; /** + * + * *
      * The unspecified state.
      * 
@@ -172,6 +211,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The vrf is provisioning.
      * 
@@ -180,6 +221,8 @@ public enum State */ public static final int PROVISIONING_VALUE = 1; /** + * + * *
      * The vrf is provisioned.
      * 
@@ -188,7 +231,6 @@ public enum State */ public static final int PROVISIONED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -213,49 +255,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PROVISIONING; - case 2: return PROVISIONED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return PROVISIONED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.VRF.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -272,51 +314,56 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.VRF.State) } - public interface QosPolicyOrBuilder extends + public interface QosPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; + * * @return The bandwidthGbps. */ double getBandwidthGbps(); } /** + * + * *
    * QOS policy parameters.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class QosPolicy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class QosPolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) QosPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QosPolicy.newBuilder() to construct. private QosPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QosPolicy() { - } + + private QosPolicy() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QosPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private QosPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -335,18 +382,18 @@ private QosPolicy( case 0: done = true; break; - case 9: { - - bandwidthGbps_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 9: + { + bandwidthGbps_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -354,34 +401,39 @@ private QosPolicy( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } public static final int BANDWIDTH_GBPS_FIELD_NUMBER = 1; private double bandwidthGbps_; /** + * + * *
      * The bandwidth permitted by the QOS policy, in gbps.
      * 
* * double bandwidth_gbps = 1; + * * @return The bandwidthGbps. */ @java.lang.Override @@ -390,6 +442,7 @@ public double getBandwidthGbps() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -401,8 +454,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { output.writeDouble(1, bandwidthGbps_); } @@ -416,8 +468,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(bandwidthGbps_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, bandwidthGbps_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, bandwidthGbps_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -427,16 +478,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.baremetalsolution.v2.VRF.QosPolicy)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other = + (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) obj; if (java.lang.Double.doubleToLongBits(getBandwidthGbps()) - != java.lang.Double.doubleToLongBits( - other.getBandwidthGbps())) return false; + != java.lang.Double.doubleToLongBits(other.getBandwidthGbps())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -449,95 +500,104 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BANDWIDTH_GBPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBandwidthGbps())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBandwidthGbps())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -547,27 +607,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * QOS policy parameters.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.QosPolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.QosPolicy) com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.class, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder() @@ -575,16 +640,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(); @@ -594,9 +658,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_QosPolicy_descriptor; } @java.lang.Override @@ -615,7 +679,8 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy result = + new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(this); result.bandwidthGbps_ = bandwidthGbps_; onBuilt(); return result; @@ -625,38 +690,41 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) other); } else { super.mergeFrom(other); return this; @@ -664,7 +732,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance()) + return this; if (other.getBandwidthGbps() != 0D) { setBandwidthGbps(other.getBandwidthGbps()); } @@ -687,7 +756,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.VRF.QosPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -697,13 +767,16 @@ public Builder mergeFrom( return this; } - private double bandwidthGbps_ ; + private double bandwidthGbps_; /** + * + * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; + * * @return The bandwidthGbps. */ @java.lang.Override @@ -711,34 +784,41 @@ public double getBandwidthGbps() { return bandwidthGbps_; } /** + * + * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; + * * @param value The bandwidthGbps to set. * @return This builder for chaining. */ public Builder setBandwidthGbps(double value) { - + bandwidthGbps_ = value; onChanged(); return this; } /** + * + * *
        * The bandwidth permitted by the QOS policy, in gbps.
        * 
* * double bandwidth_gbps = 1; + * * @return This builder for chaining. */ public Builder clearBandwidthGbps() { - + bandwidthGbps_ = 0D; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -751,12 +831,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.QosPolicy) private static final com.google.cloud.baremetalsolution.v2.VRF.QosPolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.QosPolicy(); } @@ -765,16 +845,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QosPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QosPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QosPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QosPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -789,79 +869,95 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface VlanAttachmentOrBuilder extends + public interface VlanAttachmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; + * * @return The peerVlanId. */ long getPeerVlanId(); /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The peerIp. */ java.lang.String getPeerIp(); /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The bytes for peerIp. */ - com.google.protobuf.ByteString - getPeerIpBytes(); + com.google.protobuf.ByteString getPeerIpBytes(); /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The routerIp. */ java.lang.String getRouterIp(); /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The bytes for routerIp. */ - com.google.protobuf.ByteString - getRouterIpBytes(); + com.google.protobuf.ByteString getRouterIpBytes(); } /** + * + * *
    * VLAN attachment details.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class VlanAttachment extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class VlanAttachment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) VlanAttachmentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VlanAttachment.newBuilder() to construct. private VlanAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VlanAttachment() { peerIp_ = ""; routerIp_ = ""; @@ -869,16 +965,15 @@ private VlanAttachment() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VlanAttachment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VlanAttachment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -897,30 +992,32 @@ private VlanAttachment( case 0: done = true; break; - case 8: { - - peerVlanId_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + peerVlanId_ = input.readInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - peerIp_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + peerIp_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - routerIp_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + routerIp_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -928,34 +1025,39 @@ private VlanAttachment( } 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.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } public static final int PEER_VLAN_ID_FIELD_NUMBER = 1; private long peerVlanId_; /** + * + * *
      * The peer vlan ID of the attachment.
      * 
* * int64 peer_vlan_id = 1; + * * @return The peerVlanId. */ @java.lang.Override @@ -966,11 +1068,14 @@ public long getPeerVlanId() { public static final int PEER_IP_FIELD_NUMBER = 2; private volatile java.lang.Object peerIp_; /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The peerIp. */ @java.lang.Override @@ -979,29 +1084,29 @@ public java.lang.String getPeerIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; } } /** + * + * *
      * The peer IP of the attachment.
      * 
* * string peer_ip = 2; + * * @return The bytes for peerIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getPeerIpBytes() { + public com.google.protobuf.ByteString getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1012,11 +1117,14 @@ public java.lang.String getPeerIp() { public static final int ROUTER_IP_FIELD_NUMBER = 3; private volatile java.lang.Object routerIp_; /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The routerIp. */ @java.lang.Override @@ -1025,29 +1133,29 @@ public java.lang.String getRouterIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; } } /** + * + * *
      * The router IP of the attachment.
      * 
* * string router_ip = 3; + * * @return The bytes for routerIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getRouterIpBytes() { + public com.google.protobuf.ByteString getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1056,6 +1164,7 @@ public java.lang.String getRouterIp() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1067,8 +1176,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (peerVlanId_ != 0L) { output.writeInt64(1, peerVlanId_); } @@ -1088,8 +1196,7 @@ public int getSerializedSize() { size = 0; if (peerVlanId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, peerVlanId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, peerVlanId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peerIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, peerIp_); @@ -1105,19 +1212,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.baremetalsolution.v2.VRF.VlanAttachment)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other = + (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) obj; - if (getPeerVlanId() - != other.getPeerVlanId()) return false; - if (!getPeerIp() - .equals(other.getPeerIp())) return false; - if (!getRouterIp() - .equals(other.getRouterIp())) return false; + if (getPeerVlanId() != other.getPeerVlanId()) return false; + if (!getPeerIp().equals(other.getPeerIp())) return false; + if (!getRouterIp().equals(other.getRouterIp())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1130,8 +1235,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PEER_VLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPeerVlanId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPeerVlanId()); hash = (37 * hash) + PEER_IP_FIELD_NUMBER; hash = (53 * hash) + getPeerIp().hashCode(); hash = (37 * hash) + ROUTER_IP_FIELD_NUMBER; @@ -1142,87 +1246,94 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1232,27 +1343,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * VLAN attachment details.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF.VlanAttachment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.class, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.newBuilder() @@ -1260,16 +1376,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(); @@ -1283,9 +1398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_VlanAttachment_descriptor; } @java.lang.Override @@ -1304,7 +1419,8 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment result = + new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(this); result.peerVlanId_ = peerVlanId_; result.peerIp_ = peerIp_; result.routerIp_ = routerIp_; @@ -1316,38 +1432,41 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) other); } else { super.mergeFrom(other); return this; @@ -1355,7 +1474,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment other) { - if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) return this; + if (other == com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()) + return this; if (other.getPeerVlanId() != 0L) { setPeerVlanId(other.getPeerVlanId()); } @@ -1386,7 +1506,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1396,13 +1517,16 @@ public Builder mergeFrom( return this; } - private long peerVlanId_ ; + private long peerVlanId_; /** + * + * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; + * * @return The peerVlanId. */ @java.lang.Override @@ -1410,30 +1534,36 @@ public long getPeerVlanId() { return peerVlanId_; } /** + * + * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; + * * @param value The peerVlanId to set. * @return This builder for chaining. */ public Builder setPeerVlanId(long value) { - + peerVlanId_ = value; onChanged(); return this; } /** + * + * *
        * The peer vlan ID of the attachment.
        * 
* * int64 peer_vlan_id = 1; + * * @return This builder for chaining. */ public Builder clearPeerVlanId() { - + peerVlanId_ = 0L; onChanged(); return this; @@ -1441,18 +1571,20 @@ public Builder clearPeerVlanId() { private java.lang.Object peerIp_ = ""; /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @return The peerIp. */ public java.lang.String getPeerIp() { java.lang.Object ref = peerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); peerIp_ = s; return s; @@ -1461,20 +1593,21 @@ public java.lang.String getPeerIp() { } } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @return The bytes for peerIp. */ - public com.google.protobuf.ByteString - getPeerIpBytes() { + public com.google.protobuf.ByteString getPeerIpBytes() { java.lang.Object ref = peerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); peerIp_ = b; return b; } else { @@ -1482,54 +1615,61 @@ public java.lang.String getPeerIp() { } } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @param value The peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIp( - java.lang.String value) { + public Builder setPeerIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + peerIp_ = value; onChanged(); return this; } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @return This builder for chaining. */ public Builder clearPeerIp() { - + peerIp_ = getDefaultInstance().getPeerIp(); onChanged(); return this; } /** + * + * *
        * The peer IP of the attachment.
        * 
* * string peer_ip = 2; + * * @param value The bytes for peerIp to set. * @return This builder for chaining. */ - public Builder setPeerIpBytes( - com.google.protobuf.ByteString value) { + public Builder setPeerIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + peerIp_ = value; onChanged(); return this; @@ -1537,18 +1677,20 @@ public Builder setPeerIpBytes( private java.lang.Object routerIp_ = ""; /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @return The routerIp. */ public java.lang.String getRouterIp() { java.lang.Object ref = routerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routerIp_ = s; return s; @@ -1557,20 +1699,21 @@ public java.lang.String getRouterIp() { } } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @return The bytes for routerIp. */ - public com.google.protobuf.ByteString - getRouterIpBytes() { + public com.google.protobuf.ByteString getRouterIpBytes() { java.lang.Object ref = routerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routerIp_ = b; return b; } else { @@ -1578,58 +1721,66 @@ public java.lang.String getRouterIp() { } } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @param value The routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIp( - java.lang.String value) { + public Builder setRouterIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + routerIp_ = value; onChanged(); return this; } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @return This builder for chaining. */ public Builder clearRouterIp() { - + routerIp_ = getDefaultInstance().getRouterIp(); onChanged(); return this; } /** + * + * *
        * The router IP of the attachment.
        * 
* * string router_ip = 3; + * * @param value The bytes for routerIp to set. * @return This builder for chaining. */ - public Builder setRouterIpBytes( - com.google.protobuf.ByteString value) { + public Builder setRouterIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routerIp_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1642,12 +1793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF.VlanAttachment) private static final com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment(); } @@ -1656,16 +1807,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VlanAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VlanAttachment(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VlanAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VlanAttachment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1680,17 +1831,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1699,29 +1852,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @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 { @@ -1732,38 +1885,50 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 5; private int state_; /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = + com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } public static final int QOS_POLICY_FIELD_NUMBER = 6; private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return Whether the qosPolicy field is set. */ @java.lang.Override @@ -1771,18 +1936,25 @@ public boolean hasQosPolicy() { return qosPolicy_ != null; } /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return The qosPolicy. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { - return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; + return qosPolicy_ == null + ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() + : qosPolicy_; } /** + * + * *
    * The QOS policy applied to this VRF.
    * 
@@ -1797,64 +1969,81 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy public static final int VLAN_ATTACHMENTS_FIELD_NUMBER = 7; private java.util.List vlanAttachments_; /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override - public java.util.List getVlanAttachmentsList() { + public java.util.List + getVlanAttachmentsList() { return vlanAttachments_; } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override - public java.util.List + public java.util.List getVlanAttachmentsOrBuilderList() { return vlanAttachments_; } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override public int getVlanAttachmentsCount() { return vlanAttachments_.size(); } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { return vlanAttachments_.get(index); } /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder + getVlanAttachmentsOrBuilder(int index) { return vlanAttachments_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1866,8 +2055,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1893,16 +2081,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.baremetalsolution.v2.VRF.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (qosPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getQosPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getQosPolicy()); } for (int i = 0; i < vlanAttachments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, vlanAttachments_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, vlanAttachments_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1912,23 +2097,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.baremetalsolution.v2.VRF)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.VRF other = (com.google.cloud.baremetalsolution.v2.VRF) obj; + com.google.cloud.baremetalsolution.v2.VRF other = + (com.google.cloud.baremetalsolution.v2.VRF) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasQosPolicy() != other.hasQosPolicy()) return false; if (hasQosPolicy()) { - if (!getQosPolicy() - .equals(other.getQosPolicy())) return false; + if (!getQosPolicy().equals(other.getQosPolicy())) return false; } - if (!getVlanAttachmentsList() - .equals(other.getVlanAttachmentsList())) return false; + if (!getVlanAttachmentsList().equals(other.getVlanAttachmentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1957,118 +2140,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF 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.baremetalsolution.v2.VRF parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.VRF parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.VRF prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 network VRF.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.VRF} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.VRF) com.google.cloud.baremetalsolution.v2.VRFOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.VRF.class, com.google.cloud.baremetalsolution.v2.VRF.Builder.class); + com.google.cloud.baremetalsolution.v2.VRF.class, + com.google.cloud.baremetalsolution.v2.VRF.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.VRF.newBuilder() @@ -2076,17 +2268,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) { getVlanAttachmentsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2110,9 +2302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.NetworkProto.internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.NetworkProto + .internal_static_google_cloud_baremetalsolution_v2_VRF_descriptor; } @java.lang.Override @@ -2131,7 +2323,8 @@ public com.google.cloud.baremetalsolution.v2.VRF build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { - com.google.cloud.baremetalsolution.v2.VRF result = new com.google.cloud.baremetalsolution.v2.VRF(this); + com.google.cloud.baremetalsolution.v2.VRF result = + new com.google.cloud.baremetalsolution.v2.VRF(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.state_ = state_; @@ -2157,38 +2350,39 @@ public com.google.cloud.baremetalsolution.v2.VRF buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.VRF) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.VRF) other); } else { super.mergeFrom(other); return this; @@ -2225,9 +2419,10 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.VRF other) { vlanAttachmentsBuilder_ = null; vlanAttachments_ = other.vlanAttachments_; bitField0_ = (bitField0_ & ~0x00000001); - vlanAttachmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVlanAttachmentsFieldBuilder() : null; + vlanAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVlanAttachmentsFieldBuilder() + : null; } else { vlanAttachmentsBuilder_.addAllMessages(other.vlanAttachments_); } @@ -2261,22 +2456,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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; @@ -2285,20 +2483,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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 { @@ -2306,54 +2505,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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 name of the VRF.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the VRF.
      * 
* * string name = 1; + * * @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; @@ -2361,51 +2567,65 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VRF.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.VRF.State result = com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); + com.google.cloud.baremetalsolution.v2.VRF.State result = + com.google.cloud.baremetalsolution.v2.VRF.State.valueOf(state_); return result == null ? com.google.cloud.baremetalsolution.v2.VRF.State.UNRECOGNIZED : result; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2413,21 +2633,24 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.VRF.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The possible state of VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2435,34 +2658,47 @@ public Builder clearState() { private com.google.cloud.baremetalsolution.v2.VRF.QosPolicy qosPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> qosPolicyBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> + qosPolicyBuilder_; /** + * + * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return Whether the qosPolicy field is set. */ public boolean hasQosPolicy() { return qosPolicyBuilder_ != null || qosPolicy_ != null; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return The qosPolicy. */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy() { if (qosPolicyBuilder_ == null) { - return qosPolicy_ == null ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; + return qosPolicy_ == null + ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() + : qosPolicy_; } else { return qosPolicyBuilder_.getMessage(); } } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2483,6 +2719,8 @@ public Builder setQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolicy return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2501,6 +2739,8 @@ public Builder setQosPolicy( return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2511,7 +2751,9 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic if (qosPolicyBuilder_ == null) { if (qosPolicy_ != null) { qosPolicy_ = - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.newBuilder(qosPolicy_) + .mergeFrom(value) + .buildPartial(); } else { qosPolicy_ = value; } @@ -2523,6 +2765,8 @@ public Builder mergeQosPolicy(com.google.cloud.baremetalsolution.v2.VRF.QosPolic return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2541,6 +2785,8 @@ public Builder clearQosPolicy() { return this; } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2548,11 +2794,13 @@ public Builder clearQosPolicy() { * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder getQosPolicyBuilder() { - + onChanged(); return getQosPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2563,11 +2811,14 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy if (qosPolicyBuilder_ != null) { return qosPolicyBuilder_.getMessageOrBuilder(); } else { - return qosPolicy_ == null ? - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() : qosPolicy_; + return qosPolicy_ == null + ? com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.getDefaultInstance() + : qosPolicy_; } } /** + * + * *
      * The QOS policy applied to this VRF.
      * 
@@ -2575,39 +2826,52 @@ public com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicy * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder> getQosPolicyFieldBuilder() { if (qosPolicyBuilder_ == null) { - qosPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( - getQosPolicy(), - getParentForChildren(), - isClean()); + qosPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicy.Builder, + com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder>( + getQosPolicy(), getParentForChildren(), isClean()); qosPolicy_ = null; } return qosPolicyBuilder_; } - private java.util.List vlanAttachments_ = - java.util.Collections.emptyList(); + private java.util.List + vlanAttachments_ = java.util.Collections.emptyList(); + private void ensureVlanAttachmentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - vlanAttachments_ = new java.util.ArrayList(vlanAttachments_); + vlanAttachments_ = + new java.util.ArrayList( + vlanAttachments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> vlanAttachmentsBuilder_; + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + vlanAttachmentsBuilder_; /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public java.util.List getVlanAttachmentsList() { + public java.util.List + getVlanAttachmentsList() { if (vlanAttachmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(vlanAttachments_); } else { @@ -2615,11 +2879,14 @@ public java.util.List } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public int getVlanAttachmentsCount() { if (vlanAttachmentsBuilder_ == null) { @@ -2629,11 +2896,14 @@ public int getVlanAttachmentsCount() { } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -2643,11 +2913,14 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachmen } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder setVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -2664,14 +2937,18 @@ public Builder setVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder setVlanAttachments( - int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.set(index, builderForValue.build()); @@ -2682,13 +2959,17 @@ public Builder setVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public Builder addVlanAttachments(com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { + public Builder addVlanAttachments( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { if (vlanAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2702,11 +2983,14 @@ public Builder addVlanAttachments(com.google.cloud.baremetalsolution.v2.VRF.Vlan return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addVlanAttachments( int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment value) { @@ -2723,11 +3007,14 @@ public Builder addVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addVlanAttachments( com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { @@ -2741,14 +3028,18 @@ public Builder addVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addVlanAttachments( - int index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { + int index, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder builderForValue) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); vlanAttachments_.add(index, builderForValue.build()); @@ -2759,18 +3050,21 @@ public Builder addVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder addAllVlanAttachments( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (vlanAttachmentsBuilder_ == null) { ensureVlanAttachmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vlanAttachments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vlanAttachments_); onChanged(); } else { vlanAttachmentsBuilder_.addAllMessages(values); @@ -2778,11 +3072,14 @@ public Builder addAllVlanAttachments( return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder clearVlanAttachments() { if (vlanAttachmentsBuilder_ == null) { @@ -2795,11 +3092,14 @@ public Builder clearVlanAttachments() { return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ public Builder removeVlanAttachments(int index) { if (vlanAttachmentsBuilder_ == null) { @@ -2812,39 +3112,50 @@ public Builder removeVlanAttachments(int index) { return this; } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder getVlanAttachmentsBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder + getVlanAttachmentsBuilder(int index) { return getVlanAttachmentsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( - int index) { + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder + getVlanAttachmentsOrBuilder(int index) { if (vlanAttachmentsBuilder_ == null) { - return vlanAttachments_.get(index); } else { + return vlanAttachments_.get(index); + } else { return vlanAttachmentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public java.util.List - getVlanAttachmentsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + getVlanAttachmentsOrBuilderList() { if (vlanAttachmentsBuilder_ != null) { return vlanAttachmentsBuilder_.getMessageOrBuilderList(); } else { @@ -2852,45 +3163,63 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlan } } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder() { - return getVlanAttachmentsFieldBuilder().addBuilder( - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder + addVlanAttachmentsBuilder() { + return getVlanAttachmentsFieldBuilder() + .addBuilder( + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanAttachmentsBuilder( - int index) { - return getVlanAttachmentsFieldBuilder().addBuilder( - index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); + public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder + addVlanAttachmentsBuilder(int index) { + return getVlanAttachmentsFieldBuilder() + .addBuilder( + index, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.getDefaultInstance()); } /** + * + * *
      * The list of VLAN attachments for the VRF.
      * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - public java.util.List - getVlanAttachmentsBuilderList() { + public java.util.List + getVlanAttachmentsBuilderList() { return getVlanAttachmentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder> getVlanAttachmentsFieldBuilder() { if (vlanAttachmentsBuilder_ == null) { - vlanAttachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( + vlanAttachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder, + com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder>( vlanAttachments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2899,9 +3228,9 @@ public com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment.Builder addVlanA } return vlanAttachmentsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2911,12 +3240,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.VRF) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.VRF) private static final com.google.cloud.baremetalsolution.v2.VRF DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.VRF(); } @@ -2925,16 +3254,16 @@ public static com.google.cloud.baremetalsolution.v2.VRF getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VRF parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VRF(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VRF parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VRF(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2949,6 +3278,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.VRF getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java index deba571..fb8d57d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VRFOrBuilder.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/baremetalsolution/v2/network.proto package com.google.cloud.baremetalsolution.v2; -public interface VRFOrBuilder extends +public interface VRFOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.VRF) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the VRF.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The possible state of VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.State state = 5; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.VRF.State getState(); /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return Whether the qosPolicy field is set. */ boolean hasQosPolicy(); /** + * + * *
    * The QOS policy applied to this VRF.
    * 
* * .google.cloud.baremetalsolution.v2.VRF.QosPolicy qos_policy = 6; + * * @return The qosPolicy. */ com.google.cloud.baremetalsolution.v2.VRF.QosPolicy getQosPolicy(); /** + * + * *
    * The QOS policy applied to this VRF.
    * 
@@ -74,45 +109,59 @@ public interface VRFOrBuilder extends com.google.cloud.baremetalsolution.v2.VRF.QosPolicyOrBuilder getQosPolicyOrBuilder(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - java.util.List - getVlanAttachmentsList(); + java.util.List getVlanAttachmentsList(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachment getVlanAttachments(int index); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ int getVlanAttachmentsCount(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ - java.util.List + java.util.List getVlanAttachmentsOrBuilderList(); /** + * + * *
    * The list of VLAN attachments for the VRF.
    * 
* - * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * repeated .google.cloud.baremetalsolution.v2.VRF.VlanAttachment vlan_attachments = 7; + * */ com.google.cloud.baremetalsolution.v2.VRF.VlanAttachmentOrBuilder getVlanAttachmentsOrBuilder( int index); diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java index 926e0a1..bdd0c0b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/Volume.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; /** + * + * *
  * A storage volume.
  * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ -public final class Volume extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Volume extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume) VolumeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Volume() { name_ = ""; id_ = ""; @@ -30,16 +48,15 @@ private Volume() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Volume(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Volume( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,105 +76,117 @@ private Volume( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - storageType_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 32: { - - requestedSizeGib_ = input.readInt64(); - break; - } - case 40: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - currentSizeGib_ = input.readInt64(); - break; - } - case 48: { + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - autoGrownSizeGib_ = input.readInt64(); - break; - } - case 56: { + storageType_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); - remainingSpaceGib_ = input.readInt64(); - break; - } - case 66: { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder subBuilder = null; - if (snapshotReservationDetail_ != null) { - subBuilder = snapshotReservationDetail_.toBuilder(); + state_ = rawValue; + break; } - snapshotReservationDetail_ = input.readMessage(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshotReservationDetail_); - snapshotReservationDetail_ = subBuilder.buildPartial(); + case 32: + { + requestedSizeGib_ = input.readInt64(); + break; } + case 40: + { + currentSizeGib_ = input.readInt64(); + break; + } + case 48: + { + autoGrownSizeGib_ = input.readInt64(); + break; + } + case 56: + { + remainingSpaceGib_ = input.readInt64(); + break; + } + case 66: + { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + subBuilder = null; + if (snapshotReservationDetail_ != null) { + subBuilder = snapshotReservationDetail_.toBuilder(); + } + snapshotReservationDetail_ = + input.readMessage( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshotReservationDetail_); + snapshotReservationDetail_ = subBuilder.buildPartial(); + } - break; - } - case 72: { - int rawValue = input.readEnum(); - - snapshotAutoDeleteBehavior_ = rawValue; - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 104: { + case 72: + { + int rawValue = input.readEnum(); - snapshotEnabled_ = input.readBool(); - break; - } - case 112: { + snapshotAutoDeleteBehavior_ = rawValue; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - emergencySizeGib_ = input.readInt64(); - break; - } - case 122: { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 104: + { + snapshotEnabled_ = input.readBool(); + break; + } + case 112: + { + emergencySizeGib_ = input.readInt64(); + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pod_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -165,48 +194,52 @@ private Volume( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_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 12: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, + com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } /** + * + * *
    * The storage type for a volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.StorageType} */ - public enum StorageType - implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The storage type for this volume is unknown.
      * 
@@ -215,6 +248,8 @@ public enum StorageType */ STORAGE_TYPE_UNSPECIFIED(0), /** + * + * *
      * The storage type for this volume is SSD.
      * 
@@ -223,6 +258,8 @@ public enum StorageType */ SSD(1), /** + * + * *
      * This storage type for this volume is HDD.
      * 
@@ -234,6 +271,8 @@ public enum StorageType ; /** + * + * *
      * The storage type for this volume is unknown.
      * 
@@ -242,6 +281,8 @@ public enum StorageType */ public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The storage type for this volume is SSD.
      * 
@@ -250,6 +291,8 @@ public enum StorageType */ public static final int SSD_VALUE = 1; /** + * + * *
      * This storage type for this volume is HDD.
      * 
@@ -258,7 +301,6 @@ public enum StorageType */ public static final int HDD_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -283,49 +325,49 @@ public static StorageType valueOf(int value) { */ public static StorageType forNumber(int value) { switch (value) { - case 0: return STORAGE_TYPE_UNSPECIFIED; - case 1: return SSD; - case 2: return HDD; - default: return null; + case 0: + return STORAGE_TYPE_UNSPECIFIED; + case 1: + return SSD; + case 2: + return HDD; + 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< - StorageType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageType findValueByNumber(int number) { - return StorageType.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 StorageType findValueByNumber(int number) { + return StorageType.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.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(0); } private static final StorageType[] VALUES = values(); - public static StorageType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StorageType 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; @@ -343,15 +385,18 @@ private StorageType(int value) { } /** + * + * *
    * The possible states for a storage volume.
    * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The storage volume is in an unknown state.
      * 
@@ -360,6 +405,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The storage volume is being created.
      * 
@@ -368,6 +415,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The storage volume is ready for use.
      * 
@@ -376,6 +425,8 @@ public enum State */ READY(2), /** + * + * *
      * The storage volume has been requested to be deleted.
      * 
@@ -387,6 +438,8 @@ public enum State ; /** + * + * *
      * The storage volume is in an unknown state.
      * 
@@ -395,6 +448,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The storage volume is being created.
      * 
@@ -403,6 +458,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The storage volume is ready for use.
      * 
@@ -411,6 +468,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * The storage volume has been requested to be deleted.
      * 
@@ -419,7 +478,6 @@ public enum State */ public static final int DELETING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -444,50 +502,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 3: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -505,6 +564,8 @@ private State(int value) { } /** + * + * *
    * The kinds of auto delete behavior to use when snapshot reserved space is
    * full.
@@ -512,9 +573,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior}
    */
-  public enum SnapshotAutoDeleteBehavior
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SnapshotAutoDeleteBehavior implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * The unspecified behavior.
      * 
@@ -523,6 +585,8 @@ public enum SnapshotAutoDeleteBehavior */ SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED(0), /** + * + * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -532,6 +596,8 @@ public enum SnapshotAutoDeleteBehavior
      */
     DISABLED(1),
     /**
+     *
+     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -540,6 +606,8 @@ public enum SnapshotAutoDeleteBehavior */ OLDEST_FIRST(2), /** + * + * *
      * Delete the newest snapshots first.
      * 
@@ -551,6 +619,8 @@ public enum SnapshotAutoDeleteBehavior ; /** + * + * *
      * The unspecified behavior.
      * 
@@ -559,6 +629,8 @@ public enum SnapshotAutoDeleteBehavior */ public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Don't delete any snapshots. This disables new snapshot creation, as
      * long as the snapshot reserved space is full.
@@ -568,6 +640,8 @@ public enum SnapshotAutoDeleteBehavior
      */
     public static final int DISABLED_VALUE = 1;
     /**
+     *
+     *
      * 
      * Delete the oldest snapshots first.
      * 
@@ -576,6 +650,8 @@ public enum SnapshotAutoDeleteBehavior */ public static final int OLDEST_FIRST_VALUE = 2; /** + * + * *
      * Delete the newest snapshots first.
      * 
@@ -584,7 +660,6 @@ public enum SnapshotAutoDeleteBehavior */ public static final int NEWEST_FIRST_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -609,11 +684,16 @@ public static SnapshotAutoDeleteBehavior valueOf(int value) { */ public static SnapshotAutoDeleteBehavior forNumber(int value) { switch (value) { - case 0: return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; - case 1: return DISABLED; - case 2: return OLDEST_FIRST; - case 3: return NEWEST_FIRST; - default: return null; + case 0: + return SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return OLDEST_FIRST; + case 3: + return NEWEST_FIRST; + default: + return null; } } @@ -621,28 +701,28 @@ public static SnapshotAutoDeleteBehavior forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SnapshotAutoDeleteBehavior> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SnapshotAutoDeleteBehavior findValueByNumber(int number) { - return SnapshotAutoDeleteBehavior.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 SnapshotAutoDeleteBehavior findValueByNumber(int number) { + return SnapshotAutoDeleteBehavior.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.baremetalsolution.v2.Volume.getDescriptor().getEnumTypes().get(2); } @@ -651,8 +731,7 @@ public SnapshotAutoDeleteBehavior findValueByNumber(int number) { public static SnapshotAutoDeleteBehavior 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; @@ -669,21 +748,27 @@ private SnapshotAutoDeleteBehavior(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior) } - public interface SnapshotReservationDetailOrBuilder extends + public interface SnapshotReservationDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; + * * @return The reservedSpaceGib. */ long getReservedSpaceGib(); /** + * + * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -692,22 +777,28 @@ public interface SnapshotReservationDetailOrBuilder extends
      * 
* * int32 reserved_space_used_percent = 2; + * * @return The reservedSpaceUsedPercent. */ int getReservedSpaceUsedPercent(); /** + * + * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; + * * @return The reservedSpaceRemainingGib. */ long getReservedSpaceRemainingGib(); /** + * + * *
      * Percent of the total Volume size reserved for snapshot copies.
      * Enabling snapshots requires reserving 20% or more of
@@ -717,41 +808,43 @@ public interface SnapshotReservationDetailOrBuilder extends
      * 
* * int32 reserved_space_percent = 4; + * * @return The reservedSpacePercent. */ int getReservedSpacePercent(); } /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class SnapshotReservationDetail extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SnapshotReservationDetail extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) SnapshotReservationDetailOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SnapshotReservationDetail.newBuilder() to construct. private SnapshotReservationDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SnapshotReservationDetail() { - } + + private SnapshotReservationDetail() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SnapshotReservationDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SnapshotReservationDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -770,33 +863,33 @@ private SnapshotReservationDetail( case 0: done = true; break; - case 8: { - - reservedSpaceGib_ = input.readInt64(); - break; - } - case 16: { - - reservedSpaceUsedPercent_ = input.readInt32(); - break; - } - case 24: { - - reservedSpaceRemainingGib_ = input.readInt64(); - break; - } - case 32: { - - reservedSpacePercent_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + reservedSpaceGib_ = input.readInt64(); + break; + } + case 16: + { + reservedSpaceUsedPercent_ = input.readInt32(); + break; + } + case 24: + { + reservedSpaceRemainingGib_ = input.readInt64(); + break; + } + case 32: + { + reservedSpacePercent_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -804,34 +897,39 @@ private SnapshotReservationDetail( } 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.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); } public static final int RESERVED_SPACE_GIB_FIELD_NUMBER = 1; private long reservedSpaceGib_; /** + * + * *
      * The space on this storage volume reserved for snapshots, shown in GiB.
      * 
* * int64 reserved_space_gib = 1; + * * @return The reservedSpaceGib. */ @java.lang.Override @@ -842,6 +940,8 @@ public long getReservedSpaceGib() { public static final int RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER = 2; private int reservedSpaceUsedPercent_; /** + * + * *
      * The percent of snapshot space on this storage volume actually being used
      * by the snapshot copies. This value might be higher than 100% if the
@@ -850,6 +950,7 @@ public long getReservedSpaceGib() {
      * 
* * int32 reserved_space_used_percent = 2; + * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -860,12 +961,15 @@ public int getReservedSpaceUsedPercent() { public static final int RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER = 3; private long reservedSpaceRemainingGib_; /** + * + * *
      * The amount, in GiB, of available space in this storage volume's reserved
      * snapshot space.
      * 
* * int64 reserved_space_remaining_gib = 3; + * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -876,6 +980,8 @@ public long getReservedSpaceRemainingGib() { public static final int RESERVED_SPACE_PERCENT_FIELD_NUMBER = 4; private int reservedSpacePercent_; /** + * + * *
      * Percent of the total Volume size reserved for snapshot copies.
      * Enabling snapshots requires reserving 20% or more of
@@ -885,6 +991,7 @@ public long getReservedSpaceRemainingGib() {
      * 
* * int32 reserved_space_percent = 4; + * * @return The reservedSpacePercent. */ @java.lang.Override @@ -893,6 +1000,7 @@ public int getReservedSpacePercent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -904,8 +1012,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reservedSpaceGib_ != 0L) { output.writeInt64(1, reservedSpaceGib_); } @@ -928,20 +1035,18 @@ public int getSerializedSize() { size = 0; if (reservedSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, reservedSpaceGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, reservedSpaceGib_); } if (reservedSpaceUsedPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, reservedSpaceUsedPercent_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(2, reservedSpaceUsedPercent_); } if (reservedSpaceRemainingGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, reservedSpaceRemainingGib_); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(3, reservedSpaceRemainingGib_); } if (reservedSpacePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, reservedSpacePercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, reservedSpacePercent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -951,21 +1056,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.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { + if (!(obj + instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other = + (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) obj; - if (getReservedSpaceGib() - != other.getReservedSpaceGib()) return false; - if (getReservedSpaceUsedPercent() - != other.getReservedSpaceUsedPercent()) return false; - if (getReservedSpaceRemainingGib() - != other.getReservedSpaceRemainingGib()) return false; - if (getReservedSpacePercent() - != other.getReservedSpacePercent()) return false; + if (getReservedSpaceGib() != other.getReservedSpaceGib()) return false; + if (getReservedSpaceUsedPercent() != other.getReservedSpaceUsedPercent()) return false; + if (getReservedSpaceRemainingGib() != other.getReservedSpaceRemainingGib()) return false; + if (getReservedSpacePercent() != other.getReservedSpacePercent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -978,13 +1081,11 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESERVED_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReservedSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceGib()); hash = (37 * hash) + RESERVED_SPACE_USED_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpaceUsedPercent(); hash = (37 * hash) + RESERVED_SPACE_REMAINING_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReservedSpaceRemainingGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReservedSpaceRemainingGib()); hash = (37 * hash) + RESERVED_SPACE_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getReservedSpacePercent(); hash = (29 * hash) + unknownFields.hashCode(); @@ -993,87 +1094,95 @@ public int hashCode() { } public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { + + public static Builder newBuilder( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1083,44 +1192,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.class, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + .class); } - // Construct using com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() + // Construct using + // com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1136,19 +1251,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { - return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance(); + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getDefaultInstanceForType() { + return com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail build() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1157,7 +1275,8 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail result = + new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(this); result.reservedSpaceGib_ = reservedSpaceGib_; result.reservedSpaceUsedPercent_ = reservedSpaceUsedPercent_; result.reservedSpaceRemainingGib_ = reservedSpaceRemainingGib_; @@ -1170,46 +1289,54 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail)other); + if (other + instanceof com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) { + return mergeFrom( + (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { - if (other == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail other) { + if (other + == com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance()) return this; if (other.getReservedSpaceGib() != 0L) { setReservedSpaceGib(other.getReservedSpaceGib()); } @@ -1241,7 +1368,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1251,13 +1380,16 @@ public Builder mergeFrom( return this; } - private long reservedSpaceGib_ ; + private long reservedSpaceGib_; /** + * + * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; + * * @return The reservedSpaceGib. */ @java.lang.Override @@ -1265,37 +1397,45 @@ public long getReservedSpaceGib() { return reservedSpaceGib_; } /** + * + * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; + * * @param value The reservedSpaceGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceGib(long value) { - + reservedSpaceGib_ = value; onChanged(); return this; } /** + * + * *
        * The space on this storage volume reserved for snapshots, shown in GiB.
        * 
* * int64 reserved_space_gib = 1; + * * @return This builder for chaining. */ public Builder clearReservedSpaceGib() { - + reservedSpaceGib_ = 0L; onChanged(); return this; } - private int reservedSpaceUsedPercent_ ; + private int reservedSpaceUsedPercent_; /** + * + * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1304,6 +1444,7 @@ public Builder clearReservedSpaceGib() {
        * 
* * int32 reserved_space_used_percent = 2; + * * @return The reservedSpaceUsedPercent. */ @java.lang.Override @@ -1311,6 +1452,8 @@ public int getReservedSpaceUsedPercent() { return reservedSpaceUsedPercent_; } /** + * + * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1319,16 +1462,19 @@ public int getReservedSpaceUsedPercent() {
        * 
* * int32 reserved_space_used_percent = 2; + * * @param value The reservedSpaceUsedPercent to set. * @return This builder for chaining. */ public Builder setReservedSpaceUsedPercent(int value) { - + reservedSpaceUsedPercent_ = value; onChanged(); return this; } /** + * + * *
        * The percent of snapshot space on this storage volume actually being used
        * by the snapshot copies. This value might be higher than 100% if the
@@ -1337,23 +1483,27 @@ public Builder setReservedSpaceUsedPercent(int value) {
        * 
* * int32 reserved_space_used_percent = 2; + * * @return This builder for chaining. */ public Builder clearReservedSpaceUsedPercent() { - + reservedSpaceUsedPercent_ = 0; onChanged(); return this; } - private long reservedSpaceRemainingGib_ ; + private long reservedSpaceRemainingGib_; /** + * + * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; + * * @return The reservedSpaceRemainingGib. */ @java.lang.Override @@ -1361,39 +1511,47 @@ public long getReservedSpaceRemainingGib() { return reservedSpaceRemainingGib_; } /** + * + * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; + * * @param value The reservedSpaceRemainingGib to set. * @return This builder for chaining. */ public Builder setReservedSpaceRemainingGib(long value) { - + reservedSpaceRemainingGib_ = value; onChanged(); return this; } /** + * + * *
        * The amount, in GiB, of available space in this storage volume's reserved
        * snapshot space.
        * 
* * int64 reserved_space_remaining_gib = 3; + * * @return This builder for chaining. */ public Builder clearReservedSpaceRemainingGib() { - + reservedSpaceRemainingGib_ = 0L; onChanged(); return this; } - private int reservedSpacePercent_ ; + private int reservedSpacePercent_; /** + * + * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1403,6 +1561,7 @@ public Builder clearReservedSpaceRemainingGib() {
        * 
* * int32 reserved_space_percent = 4; + * * @return The reservedSpacePercent. */ @java.lang.Override @@ -1410,6 +1569,8 @@ public int getReservedSpacePercent() { return reservedSpacePercent_; } /** + * + * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1419,16 +1580,19 @@ public int getReservedSpacePercent() {
        * 
* * int32 reserved_space_percent = 4; + * * @param value The reservedSpacePercent to set. * @return This builder for chaining. */ public Builder setReservedSpacePercent(int value) { - + reservedSpacePercent_ = value; onChanged(); return this; } /** + * + * *
        * Percent of the total Volume size reserved for snapshot copies.
        * Enabling snapshots requires reserving 20% or more of
@@ -1438,14 +1602,16 @@ public Builder setReservedSpacePercent(int value) {
        * 
* * int32 reserved_space_percent = 4; + * * @return This builder for chaining. */ public Builder clearReservedSpacePercent() { - + reservedSpacePercent_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1458,30 +1624,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail) - private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail DEFAULT_INSTANCE; + private static final com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); + DEFAULT_INSTANCE = + new com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail(); } - public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstance() { + public static com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotReservationDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotReservationDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotReservationDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotReservationDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1493,15 +1662,17 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getDefaultInstanceForType() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1511,6 +1682,7 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail ge
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1519,14 +1691,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; } } /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -1536,16 +1709,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1556,11 +1728,14 @@ public java.lang.String getName() { public static final int ID_FIELD_NUMBER = 11; private volatile java.lang.Object id_; /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ @java.lang.Override @@ -1569,29 +1744,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; } } /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @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 { @@ -1602,65 +1777,90 @@ public java.lang.String getId() { public static final int STORAGE_TYPE_FIELD_NUMBER = 2; private int storageType_; /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The storageType. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = + com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED + : result; } public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The state. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = + com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED + : result; } public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER = 4; private long requestedSizeGib_; /** + * + * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; + * * @return The requestedSizeGib. */ @java.lang.Override @@ -1671,6 +1871,8 @@ public long getRequestedSizeGib() { public static final int CURRENT_SIZE_GIB_FIELD_NUMBER = 5; private long currentSizeGib_; /** + * + * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -1678,6 +1880,7 @@ public long getRequestedSizeGib() {
    * 
* * int64 current_size_gib = 5; + * * @return The currentSizeGib. */ @java.lang.Override @@ -1688,12 +1891,15 @@ public long getCurrentSizeGib() { public static final int EMERGENCY_SIZE_GIB_FIELD_NUMBER = 14; private long emergencySizeGib_; /** + * + * *
    * Additional emergency size that was requested for this Volume, in GiB.
    * current_size_gib includes this value.
    * 
* * int64 emergency_size_gib = 14; + * * @return The emergencySizeGib. */ @java.lang.Override @@ -1704,12 +1910,15 @@ public long getEmergencySizeGib() { public static final int AUTO_GROWN_SIZE_GIB_FIELD_NUMBER = 6; private long autoGrownSizeGib_; /** + * + * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; + * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -1720,12 +1929,15 @@ public long getAutoGrownSizeGib() { public static final int REMAINING_SPACE_GIB_FIELD_NUMBER = 7; private long remainingSpaceGib_; /** + * + * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; + * * @return The remainingSpaceGib. */ @java.lang.Override @@ -1734,13 +1946,19 @@ public long getRemainingSpaceGib() { } public static final int SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER = 8; - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + snapshotReservationDetail_; /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return Whether the snapshotReservationDetail field is set. */ @java.lang.Override @@ -1748,75 +1966,105 @@ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetail_ != null; } /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return The snapshotReservationDetail. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { - return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getSnapshotReservationDetail() { + return snapshotReservationDetail_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance() + : snapshotReservationDetail_; } /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder + getSnapshotReservationDetailOrBuilder() { return getSnapshotReservationDetail(); } public static final int SNAPSHOT_AUTO_DELETE_BEHAVIOR_FIELD_NUMBER = 9; private int snapshotAutoDeleteBehavior_; /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override + public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The snapshotAutoDeleteBehavior. */ - @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { + @java.lang.Override + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( + snapshotAutoDeleteBehavior_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED + : result; } public static final int LABELS_FIELD_NUMBER = 12; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1825,28 +2073,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -1854,11 +2104,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 12; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -1866,16 +2117,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels as key value pairs.
    * 
@@ -1883,12 +2134,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 12; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1898,11 +2148,14 @@ public java.lang.String getLabelsOrThrow( public static final int SNAPSHOT_ENABLED_FIELD_NUMBER = 13; private boolean snapshotEnabled_; /** + * + * *
    * Whether snapshots are enabled.
    * 
* * bool snapshot_enabled = 13; + * * @return The snapshotEnabled. */ @java.lang.Override @@ -1913,11 +2166,14 @@ public boolean getSnapshotEnabled() { public static final int POD_FIELD_NUMBER = 15; private volatile java.lang.Object pod_; /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ @java.lang.Override @@ -1926,29 +2182,29 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -1957,6 +2213,7 @@ public java.lang.String getPod() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1968,15 +2225,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, storageType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (requestedSizeGib_ != 0L) { @@ -1994,18 +2253,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (snapshotReservationDetail_ != null) { output.writeMessage(8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { + if (snapshotAutoDeleteBehavior_ + != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED + .getNumber()) { output.writeEnum(9, snapshotAutoDeleteBehavior_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, id_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 12); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); if (snapshotEnabled_ != false) { output.writeBool(13, snapshotEnabled_); } @@ -2027,58 +2285,56 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (storageType_ != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, storageType_); + if (storageType_ + != com.google.cloud.baremetalsolution.v2.Volume.StorageType.STORAGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, storageType_); } - if (state_ != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + if (state_ + != com.google.cloud.baremetalsolution.v2.Volume.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (requestedSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, requestedSizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, requestedSizeGib_); } if (currentSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, currentSizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, currentSizeGib_); } if (autoGrownSizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, autoGrownSizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, autoGrownSizeGib_); } if (remainingSpaceGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, remainingSpaceGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, remainingSpaceGib_); } if (snapshotReservationDetail_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSnapshotReservationDetail()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getSnapshotReservationDetail()); } - if (snapshotAutoDeleteBehavior_ != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, snapshotAutoDeleteBehavior_); + if (snapshotAutoDeleteBehavior_ + != com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + .SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, snapshotAutoDeleteBehavior_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, id_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, labels__); } if (snapshotEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, snapshotEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, snapshotEnabled_); } if (emergencySizeGib_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, emergencySizeGib_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, emergencySizeGib_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, pod_); @@ -2091,41 +2347,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.baremetalsolution.v2.Volume)) { return super.equals(obj); } - com.google.cloud.baremetalsolution.v2.Volume other = (com.google.cloud.baremetalsolution.v2.Volume) obj; + com.google.cloud.baremetalsolution.v2.Volume other = + (com.google.cloud.baremetalsolution.v2.Volume) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getId() - .equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (storageType_ != other.storageType_) return false; if (state_ != other.state_) return false; - if (getRequestedSizeGib() - != other.getRequestedSizeGib()) return false; - if (getCurrentSizeGib() - != other.getCurrentSizeGib()) return false; - if (getEmergencySizeGib() - != other.getEmergencySizeGib()) return false; - if (getAutoGrownSizeGib() - != other.getAutoGrownSizeGib()) return false; - if (getRemainingSpaceGib() - != other.getRemainingSpaceGib()) return false; + if (getRequestedSizeGib() != other.getRequestedSizeGib()) return false; + if (getCurrentSizeGib() != other.getCurrentSizeGib()) return false; + if (getEmergencySizeGib() != other.getEmergencySizeGib()) return false; + if (getAutoGrownSizeGib() != other.getAutoGrownSizeGib()) return false; + if (getRemainingSpaceGib() != other.getRemainingSpaceGib()) return false; if (hasSnapshotReservationDetail() != other.hasSnapshotReservationDetail()) return false; if (hasSnapshotReservationDetail()) { - if (!getSnapshotReservationDetail() - .equals(other.getSnapshotReservationDetail())) return false; + if (!getSnapshotReservationDetail().equals(other.getSnapshotReservationDetail())) + return false; } if (snapshotAutoDeleteBehavior_ != other.snapshotAutoDeleteBehavior_) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getSnapshotEnabled() - != other.getSnapshotEnabled()) return false; - if (!getPod() - .equals(other.getPod())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getSnapshotEnabled() != other.getSnapshotEnabled()) return false; + if (!getPod().equals(other.getPod())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2146,20 +2393,15 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + REQUESTED_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestedSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestedSizeGib()); hash = (37 * hash) + CURRENT_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurrentSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurrentSizeGib()); hash = (37 * hash) + EMERGENCY_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEmergencySizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEmergencySizeGib()); hash = (37 * hash) + AUTO_GROWN_SIZE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAutoGrownSizeGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAutoGrownSizeGib()); hash = (37 * hash) + REMAINING_SPACE_GIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRemainingSpaceGib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRemainingSpaceGib()); if (hasSnapshotReservationDetail()) { hash = (37 * hash) + SNAPSHOT_RESERVATION_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getSnapshotReservationDetail().hashCode(); @@ -2171,8 +2413,7 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + SNAPSHOT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSnapshotEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSnapshotEnabled()); hash = (37 * hash) + POD_FIELD_NUMBER; hash = (53 * hash) + getPod().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -2180,140 +2421,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume 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.baremetalsolution.v2.Volume parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.baremetalsolution.v2.Volume parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.baremetalsolution.v2.Volume prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 storage volume.
    * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.Volume} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.Volume) com.google.cloud.baremetalsolution.v2.VolumeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 12: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 12: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.baremetalsolution.v2.Volume.class, com.google.cloud.baremetalsolution.v2.Volume.Builder.class); + com.google.cloud.baremetalsolution.v2.Volume.class, + com.google.cloud.baremetalsolution.v2.Volume.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.Volume.newBuilder() @@ -2321,16 +2569,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(); @@ -2369,9 +2616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.baremetalsolution.v2.VolumeProto.internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.baremetalsolution.v2.VolumeProto + .internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor; } @java.lang.Override @@ -2390,7 +2637,8 @@ public com.google.cloud.baremetalsolution.v2.Volume build() { @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { - com.google.cloud.baremetalsolution.v2.Volume result = new com.google.cloud.baremetalsolution.v2.Volume(this); + com.google.cloud.baremetalsolution.v2.Volume result = + new com.google.cloud.baremetalsolution.v2.Volume(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.id_ = id_; @@ -2419,38 +2667,39 @@ public com.google.cloud.baremetalsolution.v2.Volume buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.baremetalsolution.v2.Volume) { - return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume)other); + return mergeFrom((com.google.cloud.baremetalsolution.v2.Volume) other); } else { super.mergeFrom(other); return this; @@ -2494,8 +2743,7 @@ public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.Volume other) { if (other.snapshotAutoDeleteBehavior_ != 0) { setSnapshotAutoDeleteBehaviorValue(other.getSnapshotAutoDeleteBehaviorValue()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.getSnapshotEnabled() != false) { setSnapshotEnabled(other.getSnapshotEnabled()); } @@ -2531,10 +2779,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2544,13 +2795,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2559,6 +2810,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2568,15 +2821,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2584,6 +2836,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2593,20 +2847,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2616,15 +2872,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of this `Volume`.
      * Resource names are schemeless URIs that follow the conventions in
@@ -2634,16 +2893,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2651,18 +2910,20 @@ public Builder setNameBytes( private java.lang.Object id_ = ""; /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -2671,20 +2932,21 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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 { @@ -2692,54 +2954,61 @@ public java.lang.String getId() { } } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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; } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * An identifier for the `Volume`, generated by the backend.
      * 
* * string id = 11; + * * @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; @@ -2747,51 +3016,67 @@ public Builder setIdBytes( private int storageType_ = 0; /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The enum numeric value on the wire for storageType. */ - @java.lang.Override public int getStorageTypeValue() { + @java.lang.Override + public int getStorageTypeValue() { return storageType_; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @param value The enum numeric value on the wire for storageType to set. * @return This builder for chaining. */ public Builder setStorageTypeValue(int value) { - + storageType_ = value; onChanged(); return this; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The storageType. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.StorageType result = com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.StorageType result = + com.google.cloud.baremetalsolution.v2.Volume.StorageType.valueOf(storageType_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.StorageType.UNRECOGNIZED + : result; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @param value The storageType to set. * @return This builder for chaining. */ @@ -2799,21 +3084,24 @@ public Builder setStorageType(com.google.cloud.baremetalsolution.v2.Volume.Stora if (value == null) { throw new NullPointerException(); } - + storageType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The storage type for this volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return This builder for chaining. */ public Builder clearStorageType() { - + storageType_ = 0; onChanged(); return this; @@ -2821,51 +3109,67 @@ public Builder clearStorageType() { private int state_ = 0; /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.Volume.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.State result = com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.State result = + com.google.cloud.baremetalsolution.v2.Volume.State.valueOf(state_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2873,33 +3177,39 @@ public Builder setState(com.google.cloud.baremetalsolution.v2.Volume.State value if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of this storage volume.
      * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private long requestedSizeGib_ ; + private long requestedSizeGib_; /** + * + * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; + * * @return The requestedSizeGib. */ @java.lang.Override @@ -2907,37 +3217,45 @@ public long getRequestedSizeGib() { return requestedSizeGib_; } /** + * + * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; + * * @param value The requestedSizeGib to set. * @return This builder for chaining. */ public Builder setRequestedSizeGib(long value) { - + requestedSizeGib_ = value; onChanged(); return this; } /** + * + * *
      * The requested size of this storage volume, in GiB.
      * 
* * int64 requested_size_gib = 4; + * * @return This builder for chaining. */ public Builder clearRequestedSizeGib() { - + requestedSizeGib_ = 0L; onChanged(); return this; } - private long currentSizeGib_ ; + private long currentSizeGib_; /** + * + * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2945,6 +3263,7 @@ public Builder clearRequestedSizeGib() {
      * 
* * int64 current_size_gib = 5; + * * @return The currentSizeGib. */ @java.lang.Override @@ -2952,6 +3271,8 @@ public long getCurrentSizeGib() { return currentSizeGib_; } /** + * + * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2959,16 +3280,19 @@ public long getCurrentSizeGib() {
      * 
* * int64 current_size_gib = 5; + * * @param value The currentSizeGib to set. * @return This builder for chaining. */ public Builder setCurrentSizeGib(long value) { - + currentSizeGib_ = value; onChanged(); return this; } /** + * + * *
      * The current size of this storage volume, in GiB, including space reserved
      * for snapshots. This size might be different than the requested size if the
@@ -2976,23 +3300,27 @@ public Builder setCurrentSizeGib(long value) {
      * 
* * int64 current_size_gib = 5; + * * @return This builder for chaining. */ public Builder clearCurrentSizeGib() { - + currentSizeGib_ = 0L; onChanged(); return this; } - private long emergencySizeGib_ ; + private long emergencySizeGib_; /** + * + * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; + * * @return The emergencySizeGib. */ @java.lang.Override @@ -3000,45 +3328,54 @@ public long getEmergencySizeGib() { return emergencySizeGib_; } /** + * + * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; + * * @param value The emergencySizeGib to set. * @return This builder for chaining. */ public Builder setEmergencySizeGib(long value) { - + emergencySizeGib_ = value; onChanged(); return this; } /** + * + * *
      * Additional emergency size that was requested for this Volume, in GiB.
      * current_size_gib includes this value.
      * 
* * int64 emergency_size_gib = 14; + * * @return This builder for chaining. */ public Builder clearEmergencySizeGib() { - + emergencySizeGib_ = 0L; onChanged(); return this; } - private long autoGrownSizeGib_ ; + private long autoGrownSizeGib_; /** + * + * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; + * * @return The autoGrownSizeGib. */ @java.lang.Override @@ -3046,45 +3383,54 @@ public long getAutoGrownSizeGib() { return autoGrownSizeGib_; } /** + * + * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; + * * @param value The autoGrownSizeGib to set. * @return This builder for chaining. */ public Builder setAutoGrownSizeGib(long value) { - + autoGrownSizeGib_ = value; onChanged(); return this; } /** + * + * *
      * The size, in GiB, that this storage volume has expanded as a result of an
      * auto grow policy. In the absence of auto-grow, the value is 0.
      * 
* * int64 auto_grown_size_gib = 6; + * * @return This builder for chaining. */ public Builder clearAutoGrownSizeGib() { - + autoGrownSizeGib_ = 0L; onChanged(); return this; } - private long remainingSpaceGib_ ; + private long remainingSpaceGib_; /** + * + * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; + * * @return The remainingSpaceGib. */ @java.lang.Override @@ -3092,74 +3438,103 @@ public long getRemainingSpaceGib() { return remainingSpaceGib_; } /** + * + * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; + * * @param value The remainingSpaceGib to set. * @return This builder for chaining. */ public Builder setRemainingSpaceGib(long value) { - + remainingSpaceGib_ = value; onChanged(); return this; } /** + * + * *
      * The space remaining in the storage volume for new LUNs, in GiB, excluding
      * space reserved for snapshots.
      * 
* * int64 remaining_space_gib = 7; + * * @return This builder for chaining. */ public Builder clearRemainingSpaceGib() { - + remainingSpaceGib_ = 0L; onChanged(); return this; } - private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshotReservationDetail_; + private com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + snapshotReservationDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> snapshotReservationDetailBuilder_; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> + snapshotReservationDetailBuilder_; /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return Whether the snapshotReservationDetail field is set. */ public boolean hasSnapshotReservationDetail() { return snapshotReservationDetailBuilder_ != null || snapshotReservationDetail_ != null; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return The snapshotReservationDetail. */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { - return snapshotReservationDetail_ == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; + return snapshotReservationDetail_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance() + : snapshotReservationDetail_; } else { return snapshotReservationDetailBuilder_.getMessage(); } } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public Builder setSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder setSnapshotReservationDetail( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3173,14 +3548,19 @@ public Builder setSnapshotReservationDetail(com.google.cloud.baremetalsolution.v return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ public Builder setSnapshotReservationDetail( - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder builderForValue) { + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + builderForValue) { if (snapshotReservationDetailBuilder_ == null) { snapshotReservationDetail_ = builderForValue.build(); onChanged(); @@ -3191,17 +3571,25 @@ public Builder setSnapshotReservationDetail( return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public Builder mergeSnapshotReservationDetail(com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { + public Builder mergeSnapshotReservationDetail( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail value) { if (snapshotReservationDetailBuilder_ == null) { if (snapshotReservationDetail_ != null) { snapshotReservationDetail_ = - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder(snapshotReservationDetail_).mergeFrom(value).buildPartial(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.newBuilder( + snapshotReservationDetail_) + .mergeFrom(value) + .buildPartial(); } else { snapshotReservationDetail_ = value; } @@ -3213,11 +3601,15 @@ public Builder mergeSnapshotReservationDetail(com.google.cloud.baremetalsolution return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ public Builder clearSnapshotReservationDetail() { if (snapshotReservationDetailBuilder_ == null) { @@ -3231,48 +3623,67 @@ public Builder clearSnapshotReservationDetail() { return this; } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder getSnapshotReservationDetailBuilder() { - + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder + getSnapshotReservationDetailBuilder() { + onChanged(); return getSnapshotReservationDetailFieldBuilder().getBuilder(); } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder + getSnapshotReservationDetailOrBuilder() { if (snapshotReservationDetailBuilder_ != null) { return snapshotReservationDetailBuilder_.getMessageOrBuilder(); } else { - return snapshotReservationDetail_ == null ? - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.getDefaultInstance() : snapshotReservationDetail_; + return snapshotReservationDetail_ == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + .getDefaultInstance() + : snapshotReservationDetail_; } } /** + * + * *
      * Details about snapshot space reservation and usage on the storage volume.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder> getSnapshotReservationDetailFieldBuilder() { if (snapshotReservationDetailBuilder_ == null) { - snapshotReservationDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( - getSnapshotReservationDetail(), - getParentForChildren(), - isClean()); + snapshotReservationDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail.Builder, + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder>( + getSnapshotReservationDetail(), getParentForChildren(), isClean()); snapshotReservationDetail_ = null; } return snapshotReservationDetailBuilder_; @@ -3280,94 +3691,125 @@ public com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrB private int snapshotAutoDeleteBehavior_ = 0; /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ - @java.lang.Override public int getSnapshotAutoDeleteBehaviorValue() { + @java.lang.Override + public int getSnapshotAutoDeleteBehaviorValue() { return snapshotAutoDeleteBehavior_; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @param value The enum numeric value on the wire for snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ public Builder setSnapshotAutoDeleteBehaviorValue(int value) { - + snapshotAutoDeleteBehavior_ = value; onChanged(); return this; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The snapshotAutoDeleteBehavior. */ @java.lang.Override - public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior() { + public com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + getSnapshotAutoDeleteBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf(snapshotAutoDeleteBehavior_); - return result == null ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED : result; + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior result = + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.valueOf( + snapshotAutoDeleteBehavior_); + return result == null + ? com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior.UNRECOGNIZED + : result; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @param value The snapshotAutoDeleteBehavior to set. * @return This builder for chaining. */ - public Builder setSnapshotAutoDeleteBehavior(com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { + public Builder setSnapshotAutoDeleteBehavior( + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior value) { if (value == null) { throw new NullPointerException(); } - + snapshotAutoDeleteBehavior_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The behavior to use when snapshot reserved space is full.
      * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return This builder for chaining. */ public Builder clearSnapshotAutoDeleteBehavior() { - + snapshotAutoDeleteBehavior_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3379,28 +3821,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3408,11 +3852,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 12; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3420,16 +3865,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 12; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels as key value pairs.
      * 
@@ -3437,12 +3883,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 12; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3450,74 +3895,74 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Labels as key value pairs.
      * 
* * map<string, string> labels = 12; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private boolean snapshotEnabled_ ; + private boolean snapshotEnabled_; /** + * + * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; + * * @return The snapshotEnabled. */ @java.lang.Override @@ -3525,30 +3970,36 @@ public boolean getSnapshotEnabled() { return snapshotEnabled_; } /** + * + * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; + * * @param value The snapshotEnabled to set. * @return This builder for chaining. */ public Builder setSnapshotEnabled(boolean value) { - + snapshotEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Whether snapshots are enabled.
      * 
* * bool snapshot_enabled = 13; + * * @return This builder for chaining. */ public Builder clearSnapshotEnabled() { - + snapshotEnabled_ = false; onChanged(); return this; @@ -3556,18 +4007,20 @@ public Builder clearSnapshotEnabled() { private java.lang.Object pod_ = ""; /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -3576,20 +4029,21 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -3597,61 +4051,68 @@ public java.lang.String getPod() { } } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod( - java.lang.String value) { + public Builder setPod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** + * + * *
      * Immutable. Pod name.
      * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes( - com.google.protobuf.ByteString value) { + public Builder setPodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = 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); } @@ -3661,12 +4122,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.baremetalsolution.v2.Volume) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.Volume) private static final com.google.cloud.baremetalsolution.v2.Volume DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.Volume(); } @@ -3675,16 +4136,16 @@ public static com.google.cloud.baremetalsolution.v2.Volume getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Volume parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Volume(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Volume parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Volume(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3699,6 +4160,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.baremetalsolution.v2.Volume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java rename to proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java index a2d3039..2946abb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.java +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeOrBuilder.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/baremetalsolution/v2/volume.proto package com.google.cloud.baremetalsolution.v2; -public interface VolumeOrBuilder extends +public interface VolumeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.Volume) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -17,10 +35,13 @@ public interface VolumeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of this `Volume`.
    * Resource names are schemeless URIs that follow the conventions in
@@ -30,80 +51,102 @@ public interface VolumeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * An identifier for the `Volume`, generated by the backend.
    * 
* * string id = 11; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The enum numeric value on the wire for storageType. */ int getStorageTypeValue(); /** + * + * *
    * The storage type for this volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2; + * * @return The storageType. */ com.google.cloud.baremetalsolution.v2.Volume.StorageType getStorageType(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of this storage volume.
    * 
* * .google.cloud.baremetalsolution.v2.Volume.State state = 3; + * * @return The state. */ com.google.cloud.baremetalsolution.v2.Volume.State getState(); /** + * + * *
    * The requested size of this storage volume, in GiB.
    * 
* * int64 requested_size_gib = 4; + * * @return The requestedSizeGib. */ long getRequestedSizeGib(); /** + * + * *
    * The current size of this storage volume, in GiB, including space reserved
    * for snapshots. This size might be different than the requested size if the
@@ -111,90 +154,129 @@ public interface VolumeOrBuilder extends
    * 
* * int64 current_size_gib = 5; + * * @return The currentSizeGib. */ long getCurrentSizeGib(); /** + * + * *
    * Additional emergency size that was requested for this Volume, in GiB.
    * current_size_gib includes this value.
    * 
* * int64 emergency_size_gib = 14; + * * @return The emergencySizeGib. */ long getEmergencySizeGib(); /** + * + * *
    * The size, in GiB, that this storage volume has expanded as a result of an
    * auto grow policy. In the absence of auto-grow, the value is 0.
    * 
* * int64 auto_grown_size_gib = 6; + * * @return The autoGrownSizeGib. */ long getAutoGrownSizeGib(); /** + * + * *
    * The space remaining in the storage volume for new LUNs, in GiB, excluding
    * space reserved for snapshots.
    * 
* * int64 remaining_space_gib = 7; + * * @return The remainingSpaceGib. */ long getRemainingSpaceGib(); /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return Whether the snapshotReservationDetail field is set. */ boolean hasSnapshotReservationDetail(); /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * * @return The snapshotReservationDetail. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail getSnapshotReservationDetail(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail + getSnapshotReservationDetail(); /** + * + * *
    * Details about snapshot space reservation and usage on the storage volume.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8; + * */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetailOrBuilder + getSnapshotReservationDetailOrBuilder(); /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The enum numeric value on the wire for snapshotAutoDeleteBehavior. */ int getSnapshotAutoDeleteBehaviorValue(); /** + * + * *
    * The behavior to use when snapshot reserved space is full.
    * 
* - * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9; + * + * * @return The snapshotAutoDeleteBehavior. */ - com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior(); + com.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior + getSnapshotAutoDeleteBehavior(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -203,30 +285,31 @@ public interface VolumeOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels as key value pairs.
    * 
@@ -235,48 +318,56 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels as key value pairs.
    * 
* * map<string, string> labels = 12; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Whether snapshots are enabled.
    * 
* * bool snapshot_enabled = 13; + * * @return The snapshotEnabled. */ boolean getSnapshotEnabled(); /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pod. */ java.lang.String getPod(); /** + * + * *
    * Immutable. Pod name.
    * 
* * string pod = 15 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pod. */ - com.google.protobuf.ByteString - getPodBytes(); + com.google.protobuf.ByteString getPodBytes(); } diff --git a/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java new file mode 100644 index 0000000..0ec60b4 --- /dev/null +++ b/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeProto.java @@ -0,0 +1,230 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/baremetalsolution/v2/volume.proto + +package com.google.cloud.baremetalsolution.v2; + +public final class VolumeProto { + private VolumeProto() {} + + 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_baremetalsolution_v2_Volume_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_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/baremetalsolution/v2/volu" + + "me.proto\022!google.cloud.baremetalsolution" + + ".v2\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032 google/protobuf" + + "/field_mask.proto\"\313\t\n\006Volume\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\n\n\002id\030\013 \001(\t\022K\n\014storage_type\030\002 \001(" + + "\01625.google.cloud.baremetalsolution.v2.Vo" + + "lume.StorageType\022>\n\005state\030\003 \001(\0162/.google" + + ".cloud.baremetalsolution.v2.Volume.State" + + "\022\032\n\022requested_size_gib\030\004 \001(\003\022\030\n\020current_" + + "size_gib\030\005 \001(\003\022\032\n\022emergency_size_gib\030\016 \001" + + "(\003\022\033\n\023auto_grown_size_gib\030\006 \001(\003\022\033\n\023remai" + + "ning_space_gib\030\007 \001(\003\022h\n\033snapshot_reserva" + + "tion_detail\030\010 \001(\0132C.google.cloud.baremet" + + "alsolution.v2.Volume.SnapshotReservation" + + "Detail\022k\n\035snapshot_auto_delete_behavior\030" + + "\t \001(\0162D.google.cloud.baremetalsolution.v" + + "2.Volume.SnapshotAutoDeleteBehavior\022E\n\006l" + + "abels\030\014 \003(\01325.google.cloud.baremetalsolu" + + "tion.v2.Volume.LabelsEntry\022\030\n\020snapshot_e" + + "nabled\030\r \001(\010\022\020\n\003pod\030\017 \001(\tB\003\340A\005\032\242\001\n\031Snaps" + + "hotReservationDetail\022\032\n\022reserved_space_g" + + "ib\030\001 \001(\003\022#\n\033reserved_space_used_percent\030" + + "\002 \001(\005\022$\n\034reserved_space_remaining_gib\030\003 " + + "\001(\003\022\036\n\026reserved_space_percent\030\004 \001(\005\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"=\n\013StorageType\022\034\n\030STORAGE_TYPE_UNSPEC" + + "IFIED\020\000\022\007\n\003SSD\020\001\022\007\n\003HDD\020\002\"E\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY" + + "\020\002\022\014\n\010DELETING\020\003\"}\n\032SnapshotAutoDeleteBe" + + "havior\022-\n)SNAPSHOT_AUTO_DELETE_BEHAVIOR_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\020\n\014OLDEST_FI" + + "RST\020\002\022\020\n\014NEWEST_FIRST\020\003:f\352Ac\n\'baremetals" + + "olution.googleapis.com/Volume\0228projects/" + + "{project}/locations/{location}/volumes/{" + + "volume}\"Q\n\020GetVolumeRequest\022=\n\004name\030\001 \001(" + + "\tB/\340A\002\372A)\n\'baremetalsolution.googleapis." + + "com/Volume\"\206\001\n\022ListVolumesRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\177\n\023ListVolum" + + "esResponse\022:\n\007volumes\030\001 \003(\0132).google.clo" + + "ud.baremetalsolution.v2.Volume\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206\001\n" + + "\023UpdateVolumeRequest\022>\n\006volume\030\001 \001(\0132).g" + + "oogle.cloud.baremetalsolution.v2.VolumeB" + + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\"h\n\023ResizeVolumeRequest\022?\n\006" + + "volume\030\001 \001(\tB/\340A\002\372A)\n\'baremetalsolution." + + "googleapis.com/Volume\022\020\n\010size_gib\030\002 \001(\003B" + + "\371\001\n%com.google.cloud.baremetalsolution.v" + + "2B\013VolumeProtoP\001ZRgoogle.golang.org/genp" + + "roto/googleapis/cloud/baremetalsolution/" + + "v2;baremetalsolution\252\002!Google.Cloud.Bare" + + "MetalSolution.V2\312\002!Google\\Cloud\\BareMeta" + + "lSolution\\V2\352\002$Google::Cloud::BareMetalS" + + "olution::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor, + new java.lang.String[] { + "Name", + "Id", + "StorageType", + "State", + "RequestedSizeGib", + "CurrentSizeGib", + "EmergencySizeGib", + "AutoGrownSizeGib", + "RemainingSpaceGib", + "SnapshotReservationDetail", + "SnapshotAutoDeleteBehavior", + "Labels", + "SnapshotEnabled", + "Pod", + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_SnapshotReservationDetail_descriptor, + new java.lang.String[] { + "ReservedSpaceGib", + "ReservedSpaceUsedPercent", + "ReservedSpaceRemainingGib", + "ReservedSpacePercent", + }); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor = + internal_static_google_cloud_baremetalsolution_v2_Volume_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_Volume_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_GetVolumeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ListVolumesResponse_descriptor, + new java.lang.String[] { + "Volumes", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_UpdateVolumeRequest_descriptor, + new java.lang.String[] { + "Volume", "UpdateMask", + }); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_baremetalsolution_v2_ResizeVolumeRequest_descriptor, + new java.lang.String[] { + "Volume", "SizeGib", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/baremetalsolution.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/instance.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/lun.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/network.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/nfs_share.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto b/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto rename to proto-google-cloud-bare-metal-solution-v2/src/main/proto/google/cloud/baremetalsolution/v2/volume.proto diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java similarity index 94% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java index a8ffec7..9b38708 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider1_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_create_setcredentialsprovider1_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.BareMetalSolutionSettings; diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/AsyncDetachLunLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameLunname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunInstancenameString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringLunname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/detachlun/SyncDetachLunStringString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/AsyncGetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getinstance/SyncGetInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/AsyncGetLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLun.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunLunname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getlun/SyncGetLunString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/AsyncGetNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkNetworkname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnetwork/SyncGetNetworkString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/AsyncGetNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareNfssharename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getnfsshare/SyncGetNfsShareString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/AsyncGetVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/getvolume/SyncGetVolumeVolumename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstances.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/AsyncListInstancesPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstances.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listinstances/SyncListInstancesString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLuns.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/AsyncListLunsPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLuns.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listluns/SyncListLunsVolumename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworks.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/AsyncListNetworksPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworks.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworks/SyncListNetworksString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/AsyncListNetworkUsage.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsage.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnetworkusage/SyncListNetworkUsageString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsShares.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/AsyncListNfsSharesPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsShares.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listnfsshares/SyncListNfsSharesString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumes.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/AsyncListVolumesPaged.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumes.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesLocationname.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/listvolumes/SyncListVolumesString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/AsyncResetInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resetinstance/SyncResetInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/AsyncResizeVolumeLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeStringLong.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/resizevolume/SyncResizeVolumeVolumenameLong.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/AsyncStartInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/startinstance/SyncStartInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/AsyncStopInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceInstancename.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/stopinstance/SyncStopInstanceString.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 87% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java index 564e794..0935bcf 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.Instance; import com.google.protobuf.FieldMask; @@ -37,4 +38,5 @@ public static void syncUpdateInstanceInstanceFieldmask() throws Exception { } } } -// [END baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] +// [END +// baremetalsolution_v2_generated_baremetalsolutionclient_updateinstance_instancefieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/AsyncUpdateNetworkLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetwork.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java similarity index 93% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java index dcb0b17..9747c60 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenetwork/SyncUpdateNetworkNetworkFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_updatenetwork_networkfieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.Network; import com.google.protobuf.FieldMask; diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/AsyncUpdateNfsShareLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShare.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java similarity index 87% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java index b825ac2..f7da42b 100644 --- a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatenfsshare/SyncUpdateNfsShareNfsshareFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.baremetalsolution.v2.samples; -// [START baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +// [START +// baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] import com.google.cloud.baremetalsolution.v2.BareMetalSolutionClient; import com.google.cloud.baremetalsolution.v2.NfsShare; import com.google.protobuf.FieldMask; @@ -37,4 +38,5 @@ public static void syncUpdateNfsShareNfsshareFieldmask() throws Exception { } } } -// [END baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] +// [END +// baremetalsolution_v2_generated_baremetalsolutionclient_updatenfsshare_nfssharefieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/AsyncUpdateVolumeLRO.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolume.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionclient/updatevolume/SyncUpdateVolumeVolumeFieldmask.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/baremetalsolutionsettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/baremetalsolution/v2/stub/baremetalsolutionstubsettings/getinstance/SyncGetInstance.java